API

Interface IMeshDataOptions

Options when computing data about a mesh

interface IMeshDataOptions {
    applyBakedVertexAnimation?: boolean;
    applyMorph?: boolean;
    applySkeleton?: boolean;
    bakedVertexAnimationSettings?: DeepImmutableObject<Vector4>;
    cache?: IMeshDataCache;
    updatePositionsArray?: boolean;
}
Index
applyBakedVertexAnimation?: boolean

Apply baked vertex animation when computing data. Defaults to false.

applyMorph?: boolean

Apply morph when computing the bounding info. Defaults to false.

applySkeleton?: boolean

Apply skeleton when computing the bounding info. Defaults to false.

bakedVertexAnimationSettings?: DeepImmutableObject<Vector4>

Baked vertex animation settings to use instead of the manager's animationParameters.

Cache to avoid redundant allocations and computations when computing the bounding info multiple times. Pass in an initial empty object and continue with subsequent calls using the same object. Caching is disabled by default.

updatePositionsArray?: boolean

Update the cached positions stored as a Vector3 array. Defaults to true.