Class PlaneDiscoveryVoxelGrid
A grid of voxels that is used to find and grow planes of a specific orientation over time. Planes can be found in each individual layer of the grid based on the density of points in each voxel.
Inherited Members
Namespace: Unity.MARS.Data.Synthetic
Assembly: Unity.MARS.dll
Syntax
[MovedFrom("Unity.MARS")]
public class PlaneDiscoveryVoxelGrid : PlaneVoxelGrid<MRLayerPlaneData>, IUsesCameraOffset, IFunctionalitySubscriber<IProvidesCameraOffset>, IFunctionalitySubscriber
Constructors
PlaneDiscoveryVoxelGrid(VoxelGridOrientation, Bounds, float, VoxelPlaneFindingParams)
Constructs an oriented voxel grid of a given size
Declaration
public PlaneDiscoveryVoxelGrid(VoxelGridOrientation orientation, Bounds containedBounds, float voxelSize, VoxelPlaneFindingParams planeFindingParams)
Parameters
Type | Name | Description |
---|---|---|
VoxelGridOrientation | orientation | Determines how the grid is divided into layers from which planes can be found |
Bounds | containedBounds | The grid will be just large enough to contain these bounds |
float | voxelSize | Side length of each voxel |
VoxelPlaneFindingParams | planeFindingParams | Parameters used to find planes |
Properties
CheckEmptyAreaForInitialPlanes
Declaration
protected override bool CheckEmptyAreaForInitialPlanes { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
provider
The functionality provider
Declaration
public IProvidesCameraOffset provider { get; set; }
Property Value
Type | Description |
---|---|
IProvidesCameraOffset |
Methods
CreateLayerPlane(PlaneVoxel)
Declaration
protected override MRLayerPlaneData CreateLayerPlane(PlaneVoxel startingVoxel)
Parameters
Type | Name | Description |
---|---|---|
PlaneVoxel | startingVoxel |
Returns
Type | Description |
---|---|
MRLayerPlaneData |
Overrides
DrawDebugVoxels()
Declaration
public void DrawDebugVoxels()
FindMRPlanes(List<MRPlane>, List<MRPlane>, List<MRPlane>, List<Color>)
Declaration
public void FindMRPlanes(List<MRPlane> addedPlanes, List<MRPlane> updatedPlanes, List<MRPlane> removedPlanes, List<Color> addedPlaneDebugColors)
Parameters
Type | Name | Description |
---|---|---|
List<MRPlane> | addedPlanes | |
List<MRPlane> | updatedPlanes | |
List<MRPlane> | removedPlanes | |
List<Color> | addedPlaneDebugColors |
TryMergePlanes(MRLayerPlaneData, MRLayerPlaneData, float, float)
Declaration
protected override bool TryMergePlanes(MRLayerPlaneData planeA, MRLayerPlaneData planeB, float planeAHeight, float planeBHeight)
Parameters
Type | Name | Description |
---|---|---|
MRLayerPlaneData | planeA | |
MRLayerPlaneData | planeB | |
float | planeAHeight | |
float | planeBHeight |
Returns
Type | Description |
---|---|
bool |
Overrides
Implements
Unity.XRTools.ModuleLoader.IFunctionalitySubscriber<TProvider>
Unity.XRTools.ModuleLoader.IFunctionalitySubscriber