Skip to main content

Interface: VoxelSlabShape

A plane-anchored shape that can drive iterateVoxelsInShape.

containsPoint is the definition and getRuns the optimisation, and the two must always select the same voxels. Boundaries are inclusive.

See docs/docs/concepts/cornerstone-tools/annotation/voxel-statistics.md.

Methods​

containsPoint()​

containsPoint(point): boolean

The definition. Does the shape contain this world point?

Parameters​

• point: Point3

Returns​

boolean

Defined in​

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


getRequiredThickness()​

getRequiredThickness(): number

The smallest reference plane thickness for which Rule M's slab contains the whole shape. A planar shape returns 0; a shape with depth returns that depth, and a smaller referencePlaneThickness clips it.

Returns​

number

Defined in​

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


getRuns()​

getRuns(outerIndex, rowIndex, depthRun, slab): Iterable<Point2>

The optimisation. Exact inclusive runs along slab.columnAxis.

Signature matches ShapeRunProvider, so it can be handed straight to iterateVoxelsInShape as getShapeRuns.

Parameters​

• outerIndex: number

• rowIndex: number

• depthRun: Point2

• slab: IndexSpaceSlab

Returns​

Iterable<Point2>

Defined in​

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