C# Класс BEPUphysics.DataStructures.MeshBoundingBoxTreeData

Superclass of the data used to create triangle mesh bounding box trees.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GetBoundingBox ( int triangleIndex, Microsoft.Xna.Framework.BoundingBox &boundingBox ) : void

Gets the bounding box of an element in the data.

GetTriangle ( int triangleIndex, Microsoft.Xna.Framework.Vector3 &v1, Microsoft.Xna.Framework.Vector3 &v2, Microsoft.Xna.Framework.Vector3 &v3 ) : void

Gets the triangle vertex positions at a given index.

GetVertexPosition ( int i, Microsoft.Xna.Framework.Vector3 &vertex ) : void

Gets the position of a vertex in the data.

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

GetBoundingBox() публичный метод

Gets the bounding box of an element in the data.
public GetBoundingBox ( int triangleIndex, Microsoft.Xna.Framework.BoundingBox &boundingBox ) : void
triangleIndex int Index of the triangle in the data.
boundingBox Microsoft.Xna.Framework.BoundingBox Bounding box of the triangle.
Результат void

GetTriangle() публичный абстрактный метод

Gets the triangle vertex positions at a given index.
public abstract GetTriangle ( int triangleIndex, Microsoft.Xna.Framework.Vector3 &v1, Microsoft.Xna.Framework.Vector3 &v2, Microsoft.Xna.Framework.Vector3 &v3 ) : void
triangleIndex int First index of a triangle's vertices in the index buffer.
v1 Microsoft.Xna.Framework.Vector3 First vertex of the triangle.
v2 Microsoft.Xna.Framework.Vector3 Second vertex of the triangle.
v3 Microsoft.Xna.Framework.Vector3 Third vertex of the triangle.
Результат void

GetVertexPosition() публичный абстрактный метод

Gets the position of a vertex in the data.
public abstract GetVertexPosition ( int i, Microsoft.Xna.Framework.Vector3 &vertex ) : void
i int Index of the vertex.
vertex Microsoft.Xna.Framework.Vector3 Position of the vertex.
Результат void