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

Why SpatialMappingManager has multiple meshes?

In SpatialMappingManager.cs:

            // Gets all meshes that are associated with the SpatialMapping mesh.  
            // Collection of Mesh objects representing the SpatialMapping mesh.  
            public List<Mesh> GetMeshes()  
            {  
                List<Mesh> meshes = new List<Mesh>();  
                List<MeshFilter> meshFilters = GetMeshFilters();  

            // Get all valid mesh filters for observed surfaces.  
            foreach (MeshFilter filter in meshFilters)  
            {  
                // GetMeshFilters ensures that both filter and filter.sharedMesh are not null.  
                meshes.Add(filter.sharedMesh);  
            }  

            return meshes;  
        }  

Why there are more than one meshes?
How do know which one is the visualized one currently in my view?

Tagged:

Answers

  • Options

    Unity handles meshes up to the size of ~ 2^16 vertices or triangles. As your spatial mapping mesh grows, it will quickly pass that limit and has to be split into several sub-meshes during the import.

Sign In or Register to comment.