MutableMeshData
data class MutableMeshData(val vertexData: MutableVertexData, val polygons: MutableList<IndexedPolygon>) : IMeshData(source)
Represents mutable mesh data with modifiable vertex data and polygonal structure.
Properties
Functions
Link copied to clipboard
Checks if all polygons in the mesh are triangular.
Link copied to clipboard
Converts the current mesh data into an immutable MeshData
instance.
Link copied to clipboard
Converts the current mesh data into a mutable representation.
Link copied to clipboard
Converts the current mesh data into a list of polygons.
Link copied to clipboard
fun IMeshData.toVertexBuffer(elementOffset: Int = 0, vertexBuffer: VertexBuffer? = null): VertexBuffer
Converts the current mesh data into a VertexBuffer representation, preparing geometry for rendering.
Link copied to clipboard
Converts the current mesh data into a fully triangulated form.
Link copied to clipboard
fun IMeshData.weld(positionFractBits: Int, textureCoordFractBits: Int = -1, colorFractBits: Int = -1, normalFractBits: Int = -1, tangentFractBits: Int = -1, bitangentFractBits: Int = -1): MeshData
Welds the mesh data by consolidating vertices based on specified fractional bit precision for attributes such as positions, texture coordinates, colors, normals, tangents, and bitangents. This reduces redundant vertices and optimizes the mesh structure.