f4enix.output.cdgs.mesh_definitions.MeshByAverageDistance#
- class f4enix.output.cdgs.mesh_definitions.MeshByAverageDistance(factor: float, bbox: dict | None = None)#
Bases:
RegularMeshDefinitionBuild the structured mesh with constant voxels. Dimension will be based on average distance between cloud points.
- Parameters:
factor (float) – Factor to scale the average distance between cloud points to determine the voxel size.
bbox (dict, optional) – Bounding box for the mesh. If None, the bounding box will be determined from the coordinates of the cloud points. The dictionary should have the following keys: “x_min”, “x_max”, “y_min”, “y_max”, “z_min”, “z_max”.
Methods
__init__(factor[, bbox])Build the structured mesh with constant voxels.