Model loading · interface
ClusterSet
Explained in Importing models.
interface ClusterSetimport type { ClusterSet } from '@driftengine/assets';Properties
| Name | Type | Description |
|---|---|---|
triangleOffsets | Uint32Array | First triangle of each cluster, as an index into indices divided by three. |
triangleCounts | Uint32Array | How many triangles each cluster holds. |
indices | Uint32Array | The mesh's indices, reordered so each cluster's triangles are contiguous. |
boundsCentre | Float32Array | Three floats per cluster. |
boundsRadius | Float32Array | One float per cluster. |
coneAxis | Float32Array | Three floats per cluster: the average face normal, normalised. |
coneCutoff | Float32Array | One float per cluster: the minimum dot product of any face normal against the axis. |
count | number |