Examples of deleteTess()


Examples of org.mt4j.util.opengl.GluTrianglulator.deleteTess()

    //Set new geometry info with triangulated vertices
    super.setGeometryInfo(new GeometryInfo(pApplet, tris.toArray(new Vertex[tris.size()])));
    //Set Mesh outlines
    this.setOutlineContours(bezierContours);
    //Delete triangulator (C++ object)
    triangulator.deleteTess();
//    */
   
    this.setPickable(false);
  }

 
View Full Code Here

Examples of org.mt4j.util.opengl.GluTrianglulator.deleteTess()

  public void setVertices(List<Vertex[]> contours, int windingRule) {
    this.setOutlineContours(contours);
   
    GluTrianglulator triangulator = new GluTrianglulator(getRenderer());
    List<Vertex> tris = triangulator.tesselate(contours, windingRule);
    triangulator.deleteTess();
   
    super.setVertices(tris.toArray(new Vertex[tris.size()]));
  }
 
View Full Code Here

Examples of org.mt4j.util.opengl.GluTrianglulator.deleteTess()

    contours.add(vertices);
    this.setOutlineContours(contours);
   
    GluTrianglulator triangulator = new GluTrianglulator(getRenderer());
    Vertex[] tris = triangulator.tesselate(vertices);
    triangulator.deleteTess();
   
    super.setVertices(tris);
  }
 
 
View Full Code Here

Examples of org.mt4j.util.opengl.GluTrianglulator.deleteTess()

      body.setMassFromShapes();
      //performance hit!?
      //theBody.setBullet(true);
      body.setUserData(this);
      this.setUserData("box2d", body);
      triangulator.deleteTess();
    }
   

  }
View Full Code Here

Examples of org.mt4j.util.opengl.GluTrianglulator.deleteTess()

      body.setMassFromShapes();
      //FIXME TEST - performance hit!?
      //theBody.setBullet(true);
      body.setUserData(this);
      this.setUserData("box2d", body);
      triangulator.deleteTess();
    }
  }
 
  protected void polyDefB4CreationCallback(PolygonDef def){
   
View Full Code Here

Examples of org.mt4j.util.opengl.GluTrianglulator.deleteTess()

   
    //TODO put outline contourse in own class SVGMesh!
    //not belonging in general mesh class
    mesh.setOutlineContours(bezierContours);
   
    triangulator.deleteTess(); //Delete triangulator (C++ object)
    return mesh;
  }
 

 
View Full Code Here

Examples of org.mt4j.util.opengl.GluTrianglulator.deleteTess()

    position.scaleLocal(1f/worldScale); //FIXME REALLY?
   
      GluTrianglulator triangulator = new GluTrianglulator(applet);
    List<Vertex> physicsTris = triangulator.tesselate(vertices, GLU.GLU_TESS_WINDING_NONZERO);
    Vertex[] triangulatedBodyVerts = physicsTris.toArray(new Vertex[physicsTris.size()]);
    triangulator.deleteTess();
    //Set the triangulated vertices as the polygons (mesh's) vertices
    this.setGeometryInfo(new GeometryInfo(applet, triangulatedBodyVerts));
   
    this.translate(position);
    Vector3D realBodyCenter = this.getCenterPointGlobal(); //FIXME geht nur if detached from world //rename futurebodycenter?
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.