Skip to content

MeshClusters

Defined in: sdk/src/asset/meshFormat.ts:140

The mesh at every level of detail, as clusters a view picks from piece by piece (the model import builds them for a dense static mesh). The mesh’s own indices are level 0, in cluster order, so a reader that knows nothing of clusters draws the mesh as it was. Cluster runs are addressed in indices followed by coarseIndices, as one array.

bounds: Float32Array

Defined in: sdk/src/asset/meshFormat.ts:146

MESH_CLUSTER_BOUNDS_FLOATS per cluster. A cluster nothing replaces has Infinity for its group’s error.


coarseIndices: Uint32Array

Defined in: sdk/src/asset/meshFormat.ts:142

The triangles of every level above the mesh’s own. They name the same vertices.


ranges: Uint32Array

Defined in: sdk/src/asset/meshFormat.ts:144

Two per cluster: the first index of its run, and how many indices the run has.