Model loading · interface

ClusterLevel

Explained in Importing models.

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

Properties

NameTypeDescription
setClusterSetThe clusters at this level. Level 0 is the source mesh's.
positionsFloat32ArrayPositions the level's indices address. Level 0 shares the source mesh's.
ownErrorFloat32ArrayGeometric error each cluster at this level carries. Zero at level 0.
parentErrorFloat32ArrayThe error of the group that replaces this cluster one level up, or Infinity at the root.
groupOfUint32ArrayWhich group of this level was simplified together. Clusters sharing one share a parent.