Class GridBase
Base class for 3D grid structures, providing common properties and methods.
Inherited Members
Namespace: ZLab.Discrete.Grids
Assembly: ZLab.Discrete.dll
Syntax
public abstract class GridBase : LicensedBase
Properties
| Name | Description |
|---|---|
| Bounds | Axis-aligned bounding box of the grid in world coordinates. |
| Meta | Metadata about the grid, including dimensions and voxel size. |
Methods
| Name | Description |
|---|---|
| Contains((int x, int y, int z)) | Checks if a 3D index is within grid bounds. |
| TryGetLinearIndex((int x, int y, int z), out int) | Converts a 3D grid index to a flat array index. |
| UpdateMeta(GridMeta) | Updates the grid metadata and recomputes the bounding box accordingly. |