Skip to main content

Function: getSliceRange()

getSliceRange(volumeActor, viewPlaneNormal, focalPoint): ActorSliceRange

Given a vtkVolumeActor, and a normal direction, calculate the range of slices in the focal normal direction that encapsulate the volume. Also project the focalPoint onto this range.

Parameters​

• volumeActor: vtkVolume

The vtkVolumeActor.

• viewPlaneNormal: Point3

The normal to the camera view.

• focalPoint: Point3

The focal point of the camera.

Returns​

ActorSliceRange

an object containing the min, max and current positions in the normal direction.

Defined in​

packages/core/src/utilities/getSliceRange.ts:25