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

Acceleration structure of triangles surrounded by axis aligned bounding boxes, supporting various speedy queries.
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
LeafMargin float

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

Метод Описание
GetOverlaps ( Microsoft.Xna.Framework.BoundingBox boundingBox, IList outputOverlappedElements ) : bool

Gets the triangles whose bounding boxes are overlapped by the query.

GetOverlaps ( BoundingFrustum boundingFrustum, IList outputOverlappedElements ) : bool

Gets the triangles whose bounding boxes are overlapped by the query.

GetOverlaps ( BoundingSphere boundingSphere, IList outputOverlappedElements ) : bool

Gets the triangles whose bounding boxes are overlapped by the query.

GetOverlaps ( Microsoft.Xna.Framework.Ray ray, IList outputOverlappedElements ) : bool

Gets the triangles whose bounding boxes are overlapped by the query.

GetOverlaps ( Microsoft.Xna.Framework.Ray ray, float maximumLength, IList outputOverlappedElements ) : bool

Gets the triangles whose bounding boxes are overlapped by the query.

MeshBoundingBoxTree ( MeshBoundingBoxTreeData data ) : System.Collections.Generic

Constructs a new tree.

Reconstruct ( ) : void

Reconstructs the tree based on the current data.

Refit ( ) : void

Refits the tree based on the current data. This process is cheaper to perform than a reconstruction when the topology of the mesh does not change.

Приватные методы

Метод Описание
Analyze ( List &depths, int &minDepth, int &maxDepth, int &nodeCount ) : void
Insert ( int triangleIndex ) : void

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

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

Gets the triangles whose bounding boxes are overlapped by the query.
public GetOverlaps ( Microsoft.Xna.Framework.BoundingBox boundingBox, IList outputOverlappedElements ) : bool
boundingBox Microsoft.Xna.Framework.BoundingBox Shape to query against the tree.
outputOverlappedElements IList Indices of triangles in the index buffer with bounding boxes which are overlapped by the query.
Результат bool

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

Gets the triangles whose bounding boxes are overlapped by the query.
public GetOverlaps ( BoundingFrustum boundingFrustum, IList outputOverlappedElements ) : bool
boundingFrustum BoundingFrustum Shape to query against the tree.
outputOverlappedElements IList Indices of triangles in the index buffer with bounding boxes which are overlapped by the query.
Результат bool

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

Gets the triangles whose bounding boxes are overlapped by the query.
public GetOverlaps ( BoundingSphere boundingSphere, IList outputOverlappedElements ) : bool
boundingSphere BoundingSphere Shape to query against the tree.
outputOverlappedElements IList Indices of triangles in the index buffer with bounding boxes which are overlapped by the query.
Результат bool

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

Gets the triangles whose bounding boxes are overlapped by the query.
public GetOverlaps ( Microsoft.Xna.Framework.Ray ray, IList outputOverlappedElements ) : bool
ray Microsoft.Xna.Framework.Ray Shape to query against the tree.
outputOverlappedElements IList Indices of triangles in the index buffer with bounding boxes which are overlapped by the query.
Результат bool

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

Gets the triangles whose bounding boxes are overlapped by the query.
public GetOverlaps ( Microsoft.Xna.Framework.Ray ray, float maximumLength, IList outputOverlappedElements ) : bool
ray Microsoft.Xna.Framework.Ray Shape to query against the tree.
maximumLength float Maximum length of the ray in units of the ray's length.
outputOverlappedElements IList Indices of triangles in the index buffer with bounding boxes which are overlapped by the query.
Результат bool

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

Constructs a new tree.
public MeshBoundingBoxTree ( MeshBoundingBoxTreeData data ) : System.Collections.Generic
data MeshBoundingBoxTreeData Data to use to construct the tree.
Результат System.Collections.Generic

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

Reconstructs the tree based on the current data.
public Reconstruct ( ) : void
Результат void

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

Refits the tree based on the current data. This process is cheaper to perform than a reconstruction when the topology of the mesh does not change.
public Refit ( ) : void
Результат void

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

LeafMargin публичное статическое свойство

The tiny extra margin added to leaf bounding boxes that allow the volume cost metric to function properly even in degenerate cases.
public static float LeafMargin
Результат float