C# Class BEPUphysics.DataStructures.MeshBoundingBoxTreeData

Superclass of the data used to create triangle mesh bounding box trees.
Datei anzeigen Open project: Indiefreaks/igf Class Usage Examples

Public Methods

Method Description
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.

Method Details

GetBoundingBox() public method

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.
return void

GetTriangle() public abstract method

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.
return void

GetVertexPosition() public abstract method

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.
return void