Example #1
0
 /**
  * Auto-initialization of the main class.
  *
  * @param args
  */
 public static void main(String args[]) {
   // "--present",
   PAppletHax.main(
       new String[] {
         "--hide-stop", "--bgcolor=000000", "com.haxademic.sketch.three_d.AudioMeshDeform"
       });
 }
Example #2
0
 public void setup() {
   super.setup();
   blocks = new Block[numBlocks];
   for (int i = 0; i < numBlocks; i++) {
     blocks[i] = new Block(i);
   }
   smooth();
 }
Example #3
0
  public void setup() {
    super.setup();

    //		_mesh = MeshUtil.meshFromOBJ( p, "../data/models/pointer_cursor_2_hollow.obj", 1.5f );
    //		_mesh = MeshUtil.getExtrudedMesh( MeshUtil.meshFromSVG( p, "../data/svg/diamond.svg", -1, 3,
    // 0.5f ), 20 );
    //		_mesh = MeshUtil.meshFromOBJ( p, "../data/models/cacheflowe-3d.obj", 120f );
    //		_mesh = MeshUtil.meshFromOBJ( p, "../data/models/mode-set.obj", 150f )
    //		_mesh = MeshUtil.meshFromOBJ( p, "../data/models/diamond.obj", 1f );
    //		_mesh = MeshUtil.meshFromImg( p, "../data/images/kacheout/ufo_1.gif", 14f );
    _mesh = new WETriangleMesh();
    _mesh.addMesh((new Sphere(200)).toMesh(25));
    _meshDeform = _mesh.copy();
  }