Skip to main content

Function: iterateVoxelsInShape()

iterateVoxelsInShape(options): Generator<VoxelInShape, void, undefined>

Iterates the voxels of an area annotation according to Rule M of https://github.com/cornerstonejs/cornerstone3D/issues/2889

Every qualifying voxel is visited once, and iteration is independent of zoom, canvas size and every other display property. See docs/docs/concepts/cornerstone-tools/annotation/voxel-statistics.md.

Parameters​

• options: VoxelsInShapeOptions

Returns​

Generator<VoxelInShape, void, undefined>

Defined in​

packages/core/src/utilities/voxelSlab/iterateVoxelsInShape.ts:100