Plane Generation

I am trying to get a surfacePlane for a wall in a room. I built my program based on the SpatialMapping/SpatialUnderstanding example from the HoloLenToolKit example.

From my understanding, the scanning part is trying to figure our where you are in the already stored mesh in Hololens. Then, the planes are generated based on that mesh. Currently, when I face a wall and try to find a plane for that wall. It does not always give me the same plane. For the wall in front of me, there can be multiple plane generated and the result would depend on which plane is processed first. Then, I try to find the largest plane in front of me instead. However, there are planes that are similar size and the resulted plane is still inconsistent.

Is there a way to make sure you always find the same plane? I am currently using remote holographic to run my program due to some constraint, I am unsure whether that is the cause of the problem.

Thanks in advance.

That’s specific to the HoloToolkit/MixedRealityToolkit, which wasn’t written by any Unity dev. You’d probably have better luck asking about that over here: GitHub - microsoft/MixedRealityToolkit-Unity: This repository is for the legacy Mixed Reality Toolkit (MRTK) v2. For the latest version of the MRTK please visit https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity

Thanks. I will ask there too.