Skip to main content

Function: getSlabHalfWidth()

getSlabHalfWidth(thickness, voxelThickness, coverage): number

The half width along the normal for the given coverage, in mm.

Both rules read the same resolved thickness, so a caller passes one thickness and picks the rule with SlabDepthCoverage. A caller never computes a half width of its own.

Parameters​

• thickness: number

The resolved slab thickness along the normal, in mm. See resolveReferencePlaneThickness.

• voxelThickness: number

The voxel thickness along the normal.

• coverage: SlabDepthCoverage = 'overlapping'

Which voxels the slab selects. Defaults to 'overlapping'.

Returns​

number

Defined in​

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