Skip to main content

Function: calculateStaticImeasureBoundingBox()

calculateStaticImeasureBoundingBox(clicks, voxelToWorldAffine): TIMeasureCropRegion

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

Calculates a bounding box for iMeasure cropping based on user clicks and world affines.

Expands the crop region if extra clicks are detected outside the initial box, ensuring the region includes all relevant points. Handles conversion between world and voxel space, and adjusts the crop box dimensions accordingly.

The function maintains the center and cropping planes, and updates edge lengths if necessary.

Parameters

clicks

[Point3, Point3]

voxelToWorldAffine

mat4

Returns

TIMeasureCropRegion