region2.boundingBox

The region’s bounds, as a box in the z = 0 plane.

Value helperSince 0.4.0

Usage

TypeScript
region.boundingBox(): BBox

Returns

The union of the outlines’ boxes, z = 0; BBox.empty for Region2.empty.

Example

TypeScript
BBox.diagonal(Region2.of(Polygon2.rectangle(3, 4).value).boundingBox()) // → 5

See also