Understanding surface planes

As mentioned previously, the spatial map mesh is a triangle mesh subject to noise in the device's depth sensing and mesh generating technology. But since we're not looking for complex geometric shapes (like furniture or other objects), we can safely apply algorithms to simplify the mesh into surface planes. HoloToolkit includes spatial processing and interpreting components to assist with this.

The key to it is the SurfaceMeshesToPlanes component (found in the Holotoolkit/SpatialMapping/Scripts/SpatialProcessing folder). Add this component to your SpatialMapping object in Hierarchy. The component takes a number of parameters, including a SurfacePlane prefab that it uses to replace mesh geometry with any planar ...

Get Augmented Reality for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.