SceneBounds

Returns the axis-aligned bounding box of polygon's vertices.

The polygon and the resulting bounds both live in CGA model space, so this is a plain min/extent read of the raw vertex coordinates — it lets a scene rectangle double as the viewport with no separately maintained bounds constant.

Return

The tightest SceneBounds covering every vertex.

Parameters

polygon

The polygon to bound.

Throws

when the vertices span zero raw width or height — a collinear axis-aligned loop has no rectangular extent.