C# 클래스 BEPUphysics.DataStructures.MeshBoundingBoxTree

Acceleration structure of triangles surrounded by axis aligned bounding boxes, supporting various speedy queries.
파일 보기 프로젝트 열기: Indiefreaks/igf 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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