Interface Mesh
- All Known Subinterfaces:
QuadMesh
- All Known Implementing Classes:
RetexturedMesh,SimpleQuadMesh
public interface Mesh
A holder for arbitrary vertex data that can be written to memory or a vertex list.
-
Method Summary
Modifier and TypeMethodDescriptionorg.joml.Vector4fcGet a vec4 representing this mesh's bounding sphere in the format (x, y, z, radius).intintvoidwrite(MutableVertexList vertexList) Write this mesh into a vertex list.
-
Method Details
-
vertexCount
int vertexCount()- Returns:
- The number of vertices this mesh has.
-
write
Write this mesh into a vertex list. Vertices with index <0 or >=vertexCount()will not be read or modified.- Parameters:
vertexList- The vertex list to which data is written to.
-
indexSequence
IndexSequence indexSequence() -
indexCount
int indexCount() -
boundingSphere
org.joml.Vector4fc boundingSphere()Get a vec4 representing this mesh's bounding sphere in the format (x, y, z, radius).- Returns:
- A vec4 view.
-