Skip to main content

Function: isPlaneDepthViewable()

isPlaneDepthViewable(planePoint, focalPoint, viewPlaneNormal, referencePlaneThickness?, viewportSlabThickness?): boolean

The depth half of Rule D: whether a referenced plane is close enough to a viewport's focal plane to be displayed.

  |depth| < (viewportSlabThickness + referencePlaneThickness) / 2

Both are full geometric thicknesses in mm. A reference with no thickness falls back to an exact-to-within-isEqual plane match.

See docs/docs/concepts/cornerstone-tools/annotation/voxel-statistics.md.

Parameters

planePoint: Point3

The point identifying the referenced plane's depth.

focalPoint: Point3

The viewport camera focal point.

viewPlaneNormal: Point3

The viewport view plane normal. Unit length.

referencePlaneThickness?: number

The plane's own thickness, or undefined when not recorded.

viewportSlabThickness?: number = 0

Defaults to 0, which halves the window - correct for a stack viewport, which has no slab.

Returns

boolean

Defined in

packages/core/src/utilities/voxelSlab/isPlaneDepthViewable.ts:27