Struct GridMeta
Metadata for a 3D grid, including its dimensions, minimum coordinates, and voxel size.
Inherited Members
Namespace: ZLab.Discrete.Grids
Assembly: ZLab.Discrete.dll
Syntax
public readonly struct GridMeta
Constructors
| Name | Description |
|---|---|
| GridMeta(int, int, int, int, int, int, Vector3) | Creates a new GridMeta instance with the specified parameters. |
| GridMeta(Vector3, Vector3, Vector3, int) | Creates a GridMeta instance based on world-space bounds and voxel size, with optional padding. |
Properties
| Name | Description |
|---|---|
| Count | Total number of voxels in the grid. |
| Dimensions | Dimensions of the grid as a tuple (Nx, Ny, Nz) in voxel counts. |
| MinX | Minimum X coordinate of the grid. |
| MinY | Minimum Y coordinate of the grid. |
| MinZ | Minimum Z coordinate of the grid. |
| Nx | Number of voxels along the X axis. |
| Ny | Number of voxels along the Y axis. |
| Nz | Number of voxels along the Z axis. |
| SizeWorld | Size dimensions of the entire grid in world units. |
| VoxelSize | Size of each voxel in world units. |
Methods
| Name | Description |
|---|---|
| GetBounds() | Computes the world-space axis-aligned bounding box of the grid based on its metadata. |
| ToString() | String representation of the GridMeta. |