ZLab.Discrete ZLab.Discrete
ZLab.Discrete ZLab.Discrete
Developed by Zeke Zhang

Search Results for

    Edit this page

    Constructor GridMeta

    | Edit this page View Source

    GridMeta(int, int, int, int, int, int, Vector3)

    Creates a new GridMeta instance with the specified parameters.

    Declaration
    public GridMeta(int minX, int minY, int minZ, int nx, int ny, int nz, Vector3 voxelSize)
    Parameters
    Type Name Description
    int minX

    Minimum X coordinate.

    int minY

    Minimum Y coordinate.

    int minZ

    Minimum Z coordinate.

    int nx

    Size along X axis in voxels.

    int ny

    Size along Y axis in voxels.

    int nz

    Size along Z axis in voxels.

    Vector3 voxelSize

    Size of each voxel in world units.

    | Edit this page View Source

    GridMeta(Vector3, Vector3, Vector3, int)

    Creates a GridMeta instance based on world-space bounds and voxel size, with optional padding.

    Declaration
    public GridMeta(Vector3 min, Vector3 max, Vector3 voxelSize, int paddingVoxels = 0)
    Parameters
    Type Name Description
    Vector3 min

    Bounds minimum corner in world coordinates.

    Vector3 max

    Bounds maximum corner in world coordinates.

    Vector3 voxelSize

    Size of each voxel in world units.

    int paddingVoxels

    Number of voxels to pad around the bounds in each dimension. Default is 0 (no padding).

    Exceptions
    Type Condition
    ArgumentException

    Thrown if the computed grid dimensions are invalid (non-positive).