Class SimpleQuadMesh
java.lang.Object
dev.engine_room.flywheel.lib.model.SimpleQuadMesh
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleQuadMesh(VertexList vertexList) SimpleQuadMesh(VertexList vertexList, @Nullable String descriptor) -
Method Summary
Modifier and TypeMethodDescriptionorg.joml.Vector4fcGet a vec4 representing this mesh's bounding sphere in the format (x, y, z, radius).toString()intvoidwrite(MutableVertexList dst) Write this mesh into a vertex list.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface dev.engine_room.flywheel.lib.model.QuadMesh
indexCount, indexSequence
-
Constructor Details
-
SimpleQuadMesh
-
SimpleQuadMesh
-
-
Method Details
-
vertexCount
public int vertexCount()- Specified by:
vertexCountin interfaceMesh- Returns:
- The number of vertices this mesh has.
-
write
Description copied from interface:MeshWrite this mesh into a vertex list. Vertices with index <0 or >=Mesh.vertexCount()will not be read or modified. -
boundingSphere
public org.joml.Vector4fc boundingSphere()Description copied from interface:MeshGet a vec4 representing this mesh's bounding sphere in the format (x, y, z, radius).- Specified by:
boundingSpherein interfaceMesh- Returns:
- A vec4 view.
-
toString
-