Package com.jozufozu.flywheel.lib.model
Class LineModelBuilder.LineMesh
java.lang.Object
com.jozufozu.flywheel.lib.model.LineModelBuilder.LineMesh
- All Implemented Interfaces:
Mesh
- Enclosing class:
- LineModelBuilder
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLineMesh(int vertexCount, VertexView vertexView, MemoryBlock data, org.joml.Vector4f boundingSphere) -
Method Summary
Modifier and TypeMethodDescriptionorg.joml.Vector4fcGet a vec4 representing this mesh's bounding sphere in the format (x, y, z, radius).voiddelete()Free this mesh's resources, memory, etc.intintvoidwrite(MutableVertexList vertexList) Write this mesh into a vertex list.
-
Field Details
-
INDEX_SEQUENCE
-
-
Constructor Details
-
LineMesh
public LineMesh(int vertexCount, VertexView vertexView, MemoryBlock data, org.joml.Vector4f boundingSphere)
-
-
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. -
indexSequence
- Specified by:
indexSequencein interfaceMesh
-
indexCount
public int indexCount()- Specified by:
indexCountin interfaceMesh
-
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.
-
delete
public void delete()Description copied from interface:MeshFree this mesh's resources, memory, etc.
-