MutableCompoundMeshData

A mutable implementation of a compound mesh data structure, combining vertex data and a set of named mesh compounds.

This class allows the manipulation of multiple meshes grouped under named compounds, while sharing a common vertex data structure. It supports operations such as triangulation and conversion to a unified mesh representation.

Constructors

Link copied to clipboard
constructor(vertexData: MutableVertexData, compounds: MutableMap<String, MutableMeshData>)

Properties

Link copied to clipboard

A mutable mapping of compound names to their associated mutable mesh data.

Link copied to clipboard
open override val vertexData: MutableVertexData

The mutable vertex data shared across the compound meshes.

Functions

Link copied to clipboard
open override fun toMeshData(): IMeshData
Link copied to clipboard

Converts the compound mesh data into a map of polygons grouped by their compound names.

Link copied to clipboard
fun ICompoundMeshData.toVertexBuffer(): VertexBuffer

Converts the compound mesh data into a single VertexBuffer for rendering.

Link copied to clipboard
Link copied to clipboard

Generates a wireframe representation of the compound mesh data.