Skip to main content

Function: createRectangleShape()

createRectangleShape(options): VoxelSlabShape

A rectangle lying in the annotation plane, or a box centred on it.

A third half extent promotes the flat rectangle to a solid. createEllipseShape takes the same options, so the two are interchangeable. The depth extent is widened by half a voxel; the in-plane extents are not.

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

Parameters​

• options: RectangleShapeOptions

Returns​

VoxelSlabShape

Defined in​

packages/core/src/utilities/voxelSlab/shapes/createRectangleShape.ts:67