Skip to main content

Function: isVoxelCenterInSlab()

isVoxelCenterInSlab(voxelCenter, planePoint, normal, referencePlaneThickness, voxelThickness): boolean

Rule M, depth half: whether a voxel centre is close enough to the annotation plane to be included.

This is only the depth test. A voxel is in an area annotation when this passes and its projection along the normal onto the annotation plane falls inside the annotation's 2D shape.

Parameters​

• voxelCenter: Point3

The voxel centre in world coordinates.

• planePoint: Point3

The annotation plane anchor.

• normal: Point3

The annotation's view plane normal. Unit length.

• referencePlaneThickness: number

The reference plane thickness, resolved.

• voxelThickness: number

The voxel thickness along the normal.

Returns​

boolean

Defined in​

packages/core/src/utilities/voxelSlab/slabMembership.ts:215