Skip to main content

Function: calculateInteractiveImeasureBoundingBox()

calculateInteractiveImeasureBoundingBox(firstClicks, extraClicks, voxelToWorldAffine): TIMeasureCropRegion

Defined in: src/math/cropping.ts:110

Calculates interactive crop region and expands it to include extra clicks.

Parameters​

firstClicks​

Point3[]

Initial click set used to derive base center and span.

extraClicks​

Point3[] = []

Additional world-space clicks that may require crop expansion.

voxelToWorldAffine​

mat4

Affine that maps voxel coordinates to world coordinates.

Returns​

TIMeasureCropRegion

Crop region guaranteed to include the initial region and any outlying extra click.

Remarks​

Expansion is symmetric around the original center and only applied when needed.