Skip to main content

Function: getDepthRun()

getDepthRun(slab, outerIndex, rowIndex, clampTo?): Point2 | null

The inclusive run along slab.columnAxis satisfying the depth half of Rule M for a fixed outer and row position, or null when the column holds no voxels.

Parameters​

• slab: IndexSpaceSlab

• outerIndex: number

• rowIndex: number

• clampTo?: Point2

Inclusive bounds along the column axis, normally the volume dimension. Required whenever depth does not vary along the column axis, since the run is then unbounded.

Returns​

Point2 | null

Defined in​

packages/core/src/utilities/voxelSlab/indexSpaceSlab.ts:298