Method FromTernary2Bit
| Edit this page View SourceFromTernary2Bit(ReadOnlySpan<ulong>, GridMeta)
Create an occupancy grid from a packed ternary mask (2 bits per voxel).
Declaration
public static OccupancyGrid FromTernary2Bit(ReadOnlySpan<ulong> mask, GridMeta meta)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<ulong> | mask | packed ternary mask (2 bits per voxel) |
| GridMeta | meta | grid metadata |
Returns
| Type | Description |
|---|---|
| OccupancyGrid | new occupancy grid |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | if grid size does not match metadata |