Skip to content

Documentation / loaders / computeStrandSetsBounds

Function: computeStrandSetsBounds()

computeStrandSetsBounds(sets): [number, number, number, number, number, number]

Defined in: libs/loaders/src/curves/origin.ts:77

Bounding box enclosing every strand set, in the units the points are in.

Parameters

sets

StrandPositionSet[]

Strand sets to measure.

Returns

[number, number, number, number, number, number]

[minX, minY, minZ, maxX, maxY, maxZ], or null when the sets hold no finite points to measure.

Remarks

All sets at once rather than one box each: an archive's curve objects are parts of a single groom, and boxing them separately would shift them relative to one another.

Released under the MIT License.