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.
Inheritance
PlaneDiscoveryVoxelGrid
Syntax
public class PlaneDiscoveryVoxelGrid : PlaneVoxelGrid<MRLayerPlaneData>, IUsesCameraOffset, IFunctionalitySubscriber<IProvidesCameraOffset>, IFunctionalitySubscriber
Constructors
PlaneDiscoveryVoxelGrid(VoxelGridOrientation, Bounds, Single, VoxelPlaneFindingParams)
Declaration
public PlaneDiscoveryVoxelGrid(VoxelGridOrientation orientation, Bounds containedBounds, float voxelSize, VoxelPlaneFindingParams planeFindingParams)
Parameters
Properties
CheckEmptyAreaForInitialPlanes
Declaration
protected override bool CheckEmptyAreaForInitialPlanes { get; }
Property Value
Overrides
Unity.MARS.PlaneVoxelGrid<Unity.MARS.MRLayerPlaneData>.CheckEmptyAreaForInitialPlanes
provider
Declaration
public IProvidesCameraOffset provider { get; set; }
Property Value
Implements
Methods
CreateLayerPlane(PlaneVoxel)
Declaration
protected override MRLayerPlaneData CreateLayerPlane(PlaneVoxel startingVoxel)
Parameters
Returns
Overrides
Unity.MARS.PlaneVoxelGrid<Unity.MARS.MRLayerPlaneData>.CreateLayerPlane(Unity.MARS.PlaneVoxel)
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
TryMergePlanes(MRLayerPlaneData, MRLayerPlaneData, Single, Single)
Declaration
protected override bool TryMergePlanes(MRLayerPlaneData planeA, MRLayerPlaneData planeB, float planeAHeight, float planeBHeight)
Parameters
Returns
Overrides
Unity.MARS.PlaneVoxelGrid<Unity.MARS.MRLayerPlaneData>.TryMergePlanes(Unity.MARS.MRLayerPlaneData, Unity.MARS.MRLayerPlaneData, System.Single, System.Single)
Extension Methods