geo3d.utils.geometry ==================== .. py:module:: geo3d.utils.geometry Functions --------- .. autoapisummary:: geo3d.utils.geometry.create_boundaries geo3d.utils.geometry.extract_xyz Module Contents --------------- .. py:function:: create_boundaries(box_dict: dict, stride: tuple = (7, 7, 1)) -> str Create a boundaries argument to be fed to the pdal cropper filter. :param box_dict: A dictionary containing an object's boundary's box with min and max of the coordinates. :param stride: A tuple of strides for the 3D boundary box :returns: '([minx, maxx], [miny, maxy], [minz, maxz])' :rtype: A boundary box in a string object in the forme .. py:function:: 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. :param array: The point cloud data as a structured array with dimensions as fields. :param shift: Shift coordinates. :returns: An array of shape (n, 3).