Construct a packed mesh.
The model this mesh came from.
The materials array for the packed mesh (referenced by index by primitives)
The primitives for this mesh (the mesh fragments by material), with the material index being the second item of the tuple.
Triangle element maps (one per primitive, in the same order, to map elements to primitives)
Element primitive index, maps element local ids to the correct primitive.
ReadonlyelementElement primitive index, maps element local ids to the correct primitive.
ReadonlymaterialsThe materials array for the packed mesh (referenced by index by primitives)
ReadonlymodelThe model this mesh came from.
ReadonlyprimitivesThe primitives for this mesh (the mesh fragments by material), with the material index being the second item of the tuple.
ReadonlytriangleTriangle element maps (one per primitive, in the same order, to map elements to primitives)
Get triangles from a cursor.
The cursor to extract triangles for
A packed mesh that has all the materials, primitives and the mapping back to model elements.
This can be considered the reified version of CanonicalGeometry.