parq_blockmodel.utils.pyvista.pyvista_utils.calculate_spacing#
- parq_blockmodel.utils.pyvista.pyvista_utils.calculate_spacing(grid)[source]#
Calculate the spacing of an UnstructuredGrid by finding the mode of unique differences.
- Parameters:
grid (pv.UnstructuredGrid) – The input PyVista UnstructuredGrid.
- Returns:
The spacing in x, y, and z directions.
- Return type:
tuple[float, float, float]