C# Класс 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.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Indices System.Int32[]
Normals Vector3[]
Transform UnityEngine.Matrix4x4
Verts Vector3[]

Открытые методы

Метод Описание
MeshData ( MeshFilter meshFilter ) : System

Описание методов

MeshData() публичный Метод

public MeshData ( MeshFilter meshFilter ) : System
meshFilter UnityEngine.MeshFilter
Результат System

Описание свойств

Indices публичное свойство

public Int32[],System Indices
Результат System.Int32[]

Normals публичное свойство

public Vector3[] Normals
Результат Vector3[]

Transform публичное свойство

public Matrix4x4,UnityEngine Transform
Результат UnityEngine.Matrix4x4

Verts публичное свойство

public Vector3[] Verts
Результат Vector3[]