Model loading · interface

ClusterSet

Explained in Importing models.

interface ClusterSet
import type { ClusterSet } from '@driftengine/assets';

Properties

NameTypeDescription
triangleOffsetsUint32ArrayFirst triangle of each cluster, as an index into indices divided by three.
triangleCountsUint32ArrayHow many triangles each cluster holds.
indicesUint32ArrayThe mesh's indices, reordered so each cluster's triangles are contiguous.
boundsCentreFloat32ArrayThree floats per cluster.
boundsRadiusFloat32ArrayOne float per cluster.
coneAxisFloat32ArrayThree floats per cluster: the average face normal, normalised.
coneCutoffFloat32ArrayOne float per cluster: the minimum dot product of any face normal against the axis.
countnumber