Skip to main content

Function: toIntegerRun()

toIntegerRun(range): Point2 | null

The inclusive integer run inside a real interval.

Boundaries are inclusive, unlike the depth runs of Rule M, whose endpoints are exclusive so that a one-voxel-thick annotation selects one layer. Infinite bounds are preserved; the iterator intersects them with the always-finite depth run.

Parameters​

• range: RealRange

Returns​

Point2 | null

Defined in​

packages/core/src/utilities/voxelSlab/shapes/shapeGeometry.ts:267