Function: collectVoxelsInShape()
collectVoxelsInShape(
options):Point3[]
Collects the voxel indices iterateVoxelsInShape would visit.
Copies each index, unlike the generator, so the result is safe to retain. Intended for tests and for callers that genuinely need the whole list; prefer the generator when accumulating statistics.
Parameters
• options: VoxelsInShapeOptions
Returns
Point3[]
Defined in
packages/core/src/utilities/voxelSlab/iterateVoxelsInShape.ts:233