Package toxi.newmesh
Class IndexedTriangleMesh
java.lang.Object
toxi.newmesh.IndexedTriangleMesh
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddFaceAttribute
(AttributedFace f, String attrib, Object attA, Object attB, Object attC) addFaceAttributes
(AttributedFace f, HashMap<String, Object[]> attribs) addMesh
(IndexedTriangleMesh mesh) clear()
compile()
extrudeFace
(AttributedFace f, Vec3D offset, float scale) Flips the current order of all face vertices and attributes.getAttributeIndex
(String attID) getEdges()
getEdgesForVertexID
(int id) Object[]
getFaceAttribValues
(AttributedFace f, String att) getFaceAttribValues
(AttributedFace f, String... attribs) getFaces()
final Vec3D[]
getFaceVertices
(AttributedFace f, Vec3D[] verts) getNeighborsForVertexID
(int id, List<Vec3D> neighbors) final int
final int
float
getVerticesForIDs
(List<Vec3D> verts, int... ids) intersectsRay
(Ray3D ray) void
setVertexDelta
(float delta) smooth()
subdivide
(NewSubdivStrategy strategy) toString()
-
Field Details
-
ATTR_EDGES
- See Also:
-
ATTR_FNORMALS
- See Also:
-
ATTR_UVCOORDS
- See Also:
-
ATTR_VCOLORS
- See Also:
-
ATTR_VERTICES
- See Also:
-
ATTR_VNORMALS
- See Also:
-
vertices
-
fnormals
-
faces
-
attributes
-
-
Constructor Details
-
IndexedTriangleMesh
public IndexedTriangleMesh()
-
-
Method Details
-
addFace
-
addFace
-
addFaceAttribute
-
addFaceAttributes
-
addMesh
-
addMeshWithAttribs
-
clear
-
compile
-
compile
-
computeEdges
-
computeFaceNormals
-
computeVertexNormals
-
extrudeFace
-
flipVertexOrder
Flips the current order of all face vertices and attributes. If face or vertex normals are present their direction will be inverted as well.- Returns:
- itself
-
getAttributeIndex
-
getBoundingSphere
-
getBounds
-
getCentroid
-
getClosestVertexToPoint
-
getDefaultCompilers
-
getEdges
- Returns:
- the edges
-
getEdgesForVertex
-
getEdgesForVertexID
-
getFaceAsTriangle
-
getFaceAttribValues
-
getFaceAttribValues
-
getFaceNormals
- Returns:
- the fnormals
-
getFaces
- Returns:
- the faces
-
getFacesForVertex
-
getFaceVertices
-
getNeighborsForVertexID
-
getNumFaces
public final int getNumFaces() -
getNumVertices
public final int getNumVertices() -
getVertexDelta
public float getVertexDelta() -
getVertices
- Returns:
- the vertices
-
getVerticesForIDs
-
intersectsRay
-
rebuildVertexIndex
public void rebuildVertexIndex() -
removeFace
-
setVertexDelta
-
smooth
-
subdivide
-
toString
-