Interface Mesh.Face
- All Known Subinterfaces:
TriangleMesh.Face
- All Known Implementing Classes:
SimpleTriangleMesh.SimpleTriangleFace
public static interface Mesh.Face
Interface representing a single face in a mesh.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Return true if the vertices for this face define a convex polygon with non-zero size.int
getIndex()
Get the 0-based index of the face in the mesh.Get the 3D polygon defined by this face.int[]
Get an array containing the 0-based indices of the vertices defining this face.Get the vertices for the face.
-
Method Details
-
getIndex
int getIndex()Get the 0-based index of the face in the mesh.- Returns:
- the 0-based index of the face in the mesh
-
getVertexIndices
int[] getVertexIndices()Get an array containing the 0-based indices of the vertices defining this face. The indices are references to the vertex positions in the mesh vertex list.- Returns:
- an array containing the indices of the vertices defining this face
- See Also:
-
getVertices
Get the vertices for the face.- Returns:
- the vertices for the face
-
definesPolygon
boolean definesPolygon()Return true if the vertices for this face define a convex polygon with non-zero size.- Returns:
- true if the vertices for this face define a convex polygon with non-zero size
-
getPolygon
ConvexPolygon3D getPolygon()Get the 3D polygon defined by this face.- Returns:
- the 3D polygon defined by this face
- Throws:
IllegalArgumentException
- if the vertices for the face do not define a polygon- See Also:
-