vibespatial.constructive.envelope

GPU-accelerated envelope (bounding box) computation.

Computes per-geometry bounds and emits a 5-vertex closed polygon per row:

(xmin,ymin) -> (xmax,ymin) -> (xmax,ymax) -> (xmin,ymax) -> (xmin,ymin)

Output is always Polygon family. Empty/null geometries produce empty Polygons.

ADR-0033: Tier 1 NVRTC, 1 thread per geometry. ADR-0002: COARSE class — bounds are exact in any precision.

Attributes

cp

Functions

envelope_owned(...)

Compute the envelope (bounding box) for each geometry.

Module Contents

vibespatial.constructive.envelope.cp = None
vibespatial.constructive.envelope.envelope_owned(owned: vibespatial.geometry.owned.OwnedGeometryArray, *, dispatch_mode: vibespatial.runtime.ExecutionMode | str = ExecutionMode.AUTO, precision: vibespatial.runtime.precision.PrecisionMode | str = PrecisionMode.AUTO) vibespatial.geometry.owned.OwnedGeometryArray

Compute the envelope (bounding box) for each geometry.

Returns an OwnedGeometryArray of Polygon geometries.