f4enix.output.cdgs.mesh_definitions.MeshByNumberOfVoxels#

class f4enix.output.cdgs.mesh_definitions.MeshByNumberOfVoxels(n_voxels: tuple[int, int, int], bbox: dict)#

Bases: RegularMeshDefinition

Build the structured mesh with constant voxels. Dimension will be based on the provided number of voxels.

Parameters:
  • n_voxels (tuple[int, int, int]) – Number of voxels in each dimension (x, y, z).

  • bbox (dict) – Bounding box for the mesh. The dictionary should have the following keys: “x_min”, “x_max”, “y_min”, “y_max”, “z_min”, “z_max”.

Methods

__init__(n_voxels, bbox)

Build the structured mesh with constant voxels.