vibespatial.constructive.point¶
Attributes¶
Functions¶
|
Create a point-only OwnedGeometryArray directly from x/y coordinate arrays. |
Create a device-resident point OwnedGeometryArray from host x/y arrays. |
|
Module Contents¶
- vibespatial.constructive.point.POINT_CLIP_GPU_THRESHOLD = 10000¶
- vibespatial.constructive.point.POINT_BUFFER_GPU_THRESHOLD = 10000¶
- vibespatial.constructive.point.point_owned_from_xy(x: numpy.ndarray, y: numpy.ndarray) vibespatial.geometry.owned.OwnedGeometryArray¶
Create a point-only OwnedGeometryArray directly from x/y coordinate arrays.
Avoids Shapely round-trip. Both arrays must be 1-D float64 of equal length.
- vibespatial.constructive.point.point_owned_from_xy_device(x: numpy.ndarray, y: numpy.ndarray) vibespatial.geometry.owned.OwnedGeometryArray¶
Create a device-resident point OwnedGeometryArray from host x/y arrays.
Uploads coordinate data directly to the GPU and builds a device-resident
OwnedGeometryArray. Host-side x/y arrays are kept in the family buffer for backward compatibility with code that readsbuffer.xdirectly (e.g.predicates/support.py:extract_point_coordinates).Both arrays must be 1-D float64 of equal length.
- vibespatial.constructive.point.clip_points_rect_owned(points: vibespatial.geometry.owned.OwnedGeometryArray, xmin: float, ymin: float, xmax: float, ymax: float, *, dispatch_mode: vibespatial.runtime.ExecutionMode = ExecutionMode.AUTO, boundary_inclusive: bool = True) vibespatial.geometry.owned.OwnedGeometryArray¶
- vibespatial.constructive.point.point_buffer_owned_array(points: vibespatial.geometry.owned.OwnedGeometryArray, distance: float | numpy.ndarray, *, quad_segs: int = 1, dispatch_mode: vibespatial.runtime.ExecutionMode = ExecutionMode.AUTO) vibespatial.geometry.owned.OwnedGeometryArray¶