Interface Mesh<F extends Mesh.Face>
- Type Parameters:
F- Mesh face implementation type
- All Superinterfaces:
BoundarySource<PlaneConvexSubset>, BoundarySource3D, Linecastable3D
- All Known Subinterfaces:
TriangleMesh
- All Known Implementing Classes:
SimpleTriangleMesh
Interface representing a 3D mesh data structure.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInterface representing a single face in a mesh. -
Method Summary
Modifier and TypeMethodDescriptionfaces()Get an iterable containing all faces in the mesh.getFace(int index) Get a face from the mesh by its index.intGet the number of faces in the mesh.getFaces()Get a list containing all faces in the mesh.intGet the number of vertices in the mesh.Get a list containing all vertices in the mesh.Return a new, transformed mesh by applying the given transform to all vertices.vertices()Get an iterable containing the vertices in the mesh.Methods inherited from interface BoundarySource
boundaryStreamMethods inherited from interface BoundarySource3D
getBounds, linecast, linecastFirst, toList, toTree, toTriangleMesh, triangleStreamMethods inherited from interface Linecastable3D
linecast, linecastFirst
-
Method Details
-
vertices
-
getVertices
-
getVertexCount
int getVertexCount()Get the number of vertices in the mesh.- Returns:
- the number of vertices in the mesh
-
faces
-
getFaces
-
getFaceCount
int getFaceCount()Get the number of faces in the mesh.- Returns:
- the number of faces in the mesh
-
getFace
Get a face from the mesh by its index.- Parameters:
index- the index of the mesh to retrieve- Returns:
- the face at the given index
- Throws:
IndexOutOfBoundsException- if the index is out of bounds
-
transform
-