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

Search Results for

    Edit this page

    Constructor DistanceGrid

    | Edit this page View Source

    DistanceGrid(Vector3, BBox)

    Initializes a distance grid covering the specified bounds.

    Declaration
    public DistanceGrid(Vector3 voxelSize, BBox bounds)
    Parameters
    Type Name Description
    Vector3 voxelSize

    Voxel size in each dimension (must be positive)

    BBox bounds

    World-space axis-aligned bounding box

    Exceptions
    Type Condition
    ArgumentException

    Thrown if voxel size is not positive or if bounds are invalid.

    | Edit this page View Source

    DistanceGrid(GridMeta)

    Initializes an empty distance grid with given metadata.

    Declaration
    public DistanceGrid(GridMeta meta)
    Parameters
    Type Name Description
    GridMeta meta

    Grid metadata (voxel size must be positive)

    Exceptions
    Type Condition
    ArgumentException

    Thrown if voxel size is not positive or if grid dimensions are invalid.

    | Edit this page View Source

    DistanceGrid(OccupancyGrid)

    Initializes a distance grid based on the dimensions of an occupancy grid.

    Declaration
    public DistanceGrid(OccupancyGrid og)
    Parameters
    Type Name Description
    OccupancyGrid og

    Occupancy grid to match