C# Class HoloToolkit.Unity.PlaneFinding.MeshData

PlaneFinding is an expensive task that should not be run from Unity's main thread as it will stall the thread and cause a frame rate dip. Instead, the PlaneFinding APIs should be exclusively called from background threads. Unfortunately, Unity's built-in data types (such as MeshFilter) are not thread safe and cannot be accessed from background threads. The MeshData struct exists to work-around this limitation. When you want to find planes in a collection of MeshFilter objects, start by constructing a list of MeshData structs from those MeshFilters. You can then take the resulting list of MeshData structs, and safely pass it to the FindPlanes() API from a background thread.
显示文件 Open project: Microsoft/HoloToolkit-Unity Class Usage Examples

Public Properties

Property Type Description
Indices System.Int32[]
Normals Vector3[]
Transform UnityEngine.Matrix4x4
Verts Vector3[]

Public Methods

Method Description
MeshData ( MeshFilter meshFilter ) : System

Method Details

MeshData() public method

public MeshData ( MeshFilter meshFilter ) : System
meshFilter UnityEngine.MeshFilter
return System

Property Details

Indices public_oe property

public Int32[],System Indices
return System.Int32[]

Normals public_oe property

public Vector3[] Normals
return Vector3[]

Transform public_oe property

public Matrix4x4,UnityEngine Transform
return UnityEngine.Matrix4x4

Verts public_oe property

public Vector3[] Verts
return Vector3[]