ui/map/shapes/extrusion¶
Interfaces¶
ExtrusionBounds¶
Defined in: ui/map/shapes/extrusion.ts:4
Vertical extent of an extruded polygon, in metres above ground.
Properties¶
base¶
Defined in: ui/map/shapes/extrusion.ts:5
top¶
Defined in: ui/map/shapes/extrusion.ts:6
Functions¶
extrusionBounds()¶
Defined in: ui/map/shapes/extrusion.ts:18
Vertical extent for a polygon's 3D extrusion, or null when the shape has no renderable extent and must stay flat. The backend only forwards finite altitude bounds (BlueSky's +/-1e9 "unbounded" sentinels are stripped), so a missing top altitude means the shape is a plain 2D area.
A missing bottom defaults to ground level, and the base is clamped into [0, top] so malformed data can never produce an inside-out extrusion.
Parameters¶
poly¶
Pick\<PolygonShape, "topAltitude" | "bottomAltitude">
Returns¶
ExtrusionBounds | null