geo3d.utils.geometry¶
Functions¶
|
Create a boundaries argument to be fed to the pdal cropper filter. |
|
Extract the xyz dimensions from a structured pdal array. |
Module Contents¶
- geo3d.utils.geometry.create_boundaries(box_dict: dict, stride: tuple = (7, 7, 1)) str¶
Create a boundaries argument to be fed to the pdal cropper filter.
- Parameters:
box_dict – A dictionary containing an object’s boundary’s box with min and max of the coordinates.
stride – A tuple of strides for the 3D boundary box
- Returns:
‘([minx, maxx], [miny, maxy], [minz, maxz])’
- Return type:
A boundary box in a string object in the forme
- geo3d.utils.geometry.extract_xyz(array: numpy.typing.NDArray[numpy.floating], shift: bool = True) numpy.typing.NDArray[numpy.floating]¶
Extract the xyz dimensions from a structured pdal array.
- Parameters:
array – The point cloud data as a structured array with dimensions as fields.
shift – Shift coordinates.
- Returns:
An array of shape (n, 3).