docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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
    object
    PlaneVoxelGrid<MRLayerPlaneData>
    PlaneDiscoveryVoxelGrid
    Implements
    IUsesCameraOffset
    IFunctionalitySubscriber<IProvidesCameraOffset>
    IFunctionalitySubscriber
    Inherited Members
    PlaneVoxelGrid<MRLayerPlaneData>.k_PlaneYEpsilon
    PlaneVoxelGrid<MRLayerPlaneData>.k_Up
    PlaneVoxelGrid<MRLayerPlaneData>.m_VoxelSize
    PlaneVoxelGrid<MRLayerPlaneData>.m_Layers
    PlaneVoxelGrid<MRLayerPlaneData>.m_UpdatedVoxelsPerLayer
    PlaneVoxelGrid<MRLayerPlaneData>.m_PlanesPerLayer
    PlaneVoxelGrid<MRLayerPlaneData>.m_ModifiedPlanesPerLayer
    PlaneVoxelGrid<MRLayerPlaneData>.m_RemovedPlanesPerLayer
    PlaneVoxelGrid<MRLayerPlaneData>.m_MinSideLength
    PlaneVoxelGrid<MRLayerPlaneData>.GetVoxel(int, int, int)
    PlaneVoxelGrid<MRLayerPlaneData>.GetVoxel(Vector3Int)
    PlaneVoxelGrid<MRLayerPlaneData>.AddPoints(List<Vector3>)
    PlaneVoxelGrid<MRLayerPlaneData>.GetLayerOriginPose(int)
    PlaneVoxelGrid<MRLayerPlaneData>.FindPlanes()
    PlaneVoxelGrid<MRLayerPlaneData>.TryGetPlaneData(LayerPlaneData, Pose, List<Vector3>, out Pose, out Vector3, out Vector2)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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
    PlaneVoxelGrid<MRLayerPlaneData>.CheckEmptyAreaForInitialPlanes

    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
    PlaneVoxelGrid<MRLayerPlaneData>.CreateLayerPlane(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
    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
    PlaneVoxelGrid<MRLayerPlaneData>.TryMergePlanes(MRLayerPlaneData, MRLayerPlaneData, float, float)

    Implements

    IUsesCameraOffset
    Unity.XRTools.ModuleLoader.IFunctionalitySubscriber<TProvider>
    Unity.XRTools.ModuleLoader.IFunctionalitySubscriber

    Extension Methods

    CameraOffsetExtensions.PoseToCameraSpace(IUsesCameraOffset, Pose, Vector3)
    IUsesCameraOffsetMethods.ApplyInverseOffsetToDirection(IUsesCameraOffset, Vector3)
    IUsesCameraOffsetMethods.ApplyInverseOffsetToPose(IUsesCameraOffset, Pose)
    IUsesCameraOffsetMethods.ApplyInverseOffsetToPosition(IUsesCameraOffset, Vector3)
    IUsesCameraOffsetMethods.ApplyInverseOffsetToRotation(IUsesCameraOffset, Quaternion)
    IUsesCameraOffsetMethods.ApplyOffsetToDirection(IUsesCameraOffset, Vector3)
    IUsesCameraOffsetMethods.ApplyOffsetToPose(IUsesCameraOffset, Pose)
    IUsesCameraOffsetMethods.ApplyOffsetToPosition(IUsesCameraOffset, Vector3)
    IUsesCameraOffsetMethods.ApplyOffsetToRotation(IUsesCameraOffset, Quaternion)
    IUsesCameraOffsetMethods.GetCameraOffsetMatrix(IUsesCameraOffset)
    IUsesCameraOffsetMethods.GetCameraPositionOffset(IUsesCameraOffset)
    IUsesCameraOffsetMethods.GetCameraScale(IUsesCameraOffset)
    IUsesCameraOffsetMethods.GetCameraYawOffset(IUsesCameraOffset)
    IUsesCameraOffsetMethods.SetCameraPositionOffset(IUsesCameraOffset, Vector3)
    IUsesCameraOffsetMethods.SetCameraScale(IUsesCameraOffset, float)
    IUsesCameraOffsetMethods.SetCameraYawOffset(IUsesCameraOffset, float)
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)