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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
definesPolygon()
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.ConvexPolygon3D
getPolygon()
Get the 3D polygon defined by this face.int[]
getVertexIndices()
Get an array containing the 0-based indices of the vertices defining this face.java.util.List<Vector3D>
getVertices()
Get the vertices for the face.
-
-
-
Method Detail
-
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:
Mesh.getVertices()
-
getVertices
java.util.List<Vector3D> 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:
java.lang.IllegalArgumentException
- if the vertices for the face do not define a polygon- See Also:
definesPolygon()
-
-