vibespatial.constructive.orient¶
GPU-accelerated polygon orientation (ring winding order).
Ensures exterior rings are counter-clockwise and interior rings are clockwise (or vice versa when exterior_cw=True). Uses shoelace signed area to detect current orientation and reverses rings with wrong winding.
ADR-0033: Tier 1 NVRTC, 1 thread per ring.
Attributes¶
Functions¶
|
Orient polygon rings to specified winding order. |
Module Contents¶
- vibespatial.constructive.orient.cp = None¶
- vibespatial.constructive.orient.orient_owned(owned: vibespatial.geometry.owned.OwnedGeometryArray, *, exterior_cw: bool = False, dispatch_mode: vibespatial.runtime.ExecutionMode | str = ExecutionMode.AUTO) vibespatial.geometry.owned.OwnedGeometryArray¶
Orient polygon rings to specified winding order.
Parameters¶
- exterior_cwbool
If True, exterior rings are clockwise. Default False (CCW).