C# Class HoloToolkit.Unity.SpatialMapping.SurfacePlane

The SurfacePlane class is used by SurfaceMeshesToPlanes to create different types of planes (walls, floors, tables, etc.) based on the Spatial Mapping data returned by the SpatialMappingManager's source. This script should be a component on the SufacePlane prefab, which is used by SurfaceMeshesToPlanes.
Inheritance: MonoBehaviour
Show file Open project: austinirvine/soundaround Class Usage Examples

Private Methods

Method Description
Awake ( ) : void
SetPlaneGeometry ( ) : void

Updates the plane geometry to match the bounded plane found by SurfaceMeshesToPlanes.

SetPlaneMaterialByType ( ) : void

Sets the renderer material to match the object's plane type.

SetPlaneType ( ) : void

Classifies the surface as a floor, wall, ceiling, table, etc.

Start ( ) : void
UpdateSurfacePlane ( ) : void

Updates the SurfacePlane object to have the same configuration of the BoundingPlane object. Determine what type of plane the SurfacePlane aligns to. Sets the material based on the plane type.