Skip to main content

Function: normalizedFactors()

normalizedFactors(factors): Point3

Gives the box size of each axis as a number of at least 1.

A box size can hold a fraction: a reduction of an edge of N voxels to M voxels takes the box size N / M, and each box then averages the source over [j * N / M, (j + 1) * N / M). A factor below 1 and a value that is not a number each become 1, so the arithmetic below never divides by 0.

Parameters​

• factors: Point3

Returns​

Point3

Defined in​

packages/core/src/utilities/voxelGrid/reducedDimensions.ts:11