Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.
Options

MRTK plane finding on ceiling

RalphRalph
edited July 2018 in Questions And Answers

I'm using the PlaneFinding.cs from the holotoolkit pretty much as in the example.

private List<PlaneFinding.MeshData> _meshData = new List<PlaneFinding.MeshData>();
private BoundedPlane[] _planes;

        foreach (MeshFilter mesh in SpatialMappingManager.Instance.GetMeshFilters())
        {
            _meshData.Add(new PlaneFinding.MeshData(mesh));
        }

        float SnapToGravityThreshold = 0.0f;
        float MinArea = 0.0f;

        _planes = PlaneFinding.FindPlanes(_meshData, SnapToGravityThreshold, MinArea);

Now this finds about 60 planes in my apartment but none on the ceiling. So I guess this is hardcoded? Problem is for the app I'm building I only need to find appropriate spots on surfaces with normal vector pointing down.

Any suggestions without using Spatial Understanding?

Sign In or Register to comment.