Struct PlaneVoxel
Namespace: Unity.MARS
Syntax
public struct PlaneVoxel
Fields
LayerCoordinates
The column and row in the layer where this voxel exists
Declaration
public Vector2Int LayerCoordinates
Field Value
Type | Description |
---|---|
Vector2Int |
PointDensity
Number of points within this voxel. A voxel only contributes to a plane if its point density exceeds a minimum threshold.
Declaration
public int PointDensity
Field Value
Type | Description |
---|---|
Int32 |
PointYOffset
Average local y offset of all points within this voxel. If a voxel is part of a plane, this value affects the y offset of the plane relative to the layer origin.
Declaration
public float PointYOffset
Field Value
Type | Description |
---|---|
Single |