Visual3D Game EngineAPI Documentation for XNA, C#, VB, and .NET
The BvhTriangleMeshShape is a static-triangle mesh shape with several optimizations, such as bounding volume hierarchy and cache friendly traversal for PlayStation 3 Cell SPU. It is recommended to enable UseQuantizedAabbCompression for better memory usage. It takes a triangle mesh as input, for example a TriangleMesh or TriangleIndexVertexArray. The BvhTriangleMeshShape class allows for triangle mesh deformations by a refit or PartialRefit method. Instead of building the bounding volume hierarchy acceleration structure, it is also possible to serialize (save) and deserialize (load) the structure from disk. See Demos\ConcaveDemo\ConcavePhysicsDemo.cpp for an example.

Namespace: Visual3D.Physics.BulletX
Assembly: Visual3D.Physics (in Visual3D.Physics.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

      
 C#  Visual Basic 
public class BvhTriangleMeshShape : TriangleMeshShape
Public Class BvhTriangleMeshShape _
	Inherits TriangleMeshShape

Members

            
 All Members  Constructors   Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
BvhTriangleMeshShape()()()()
Initializes a new instance of the BvhTriangleMeshShape class
BvhTriangleMeshShape(StridingMeshInterface, Boolean)
Initializes a new instance of the BvhTriangleMeshShape class
BvhTriangleMeshShape(StridingMeshInterface, Boolean, Boolean)
Bvh Concave triangle mesh is a static-triangle mesh shape with Bounding Volume Hierarchy optimization. Uses an interface to access the triangles to allow for sharing graphics/physics triangles.
BvhTriangleMeshShape(StridingMeshInterface, Boolean, Vector3, Vector3, Boolean)
Optionally pass in a larger bvh aabb, used for quantization. This allows for deformations within this aabb.
CalculateLocalInertia(Single, Vector3%) (Inherited from TriangleMeshShape.)
CalculateTemporalAabb(Matrix%, Vector3%, Vector3%, Single, Vector3%, Vector3%)
Calculates the enclosing aabb for the moving object over interval [0..timeStep) result is conservative
(Inherited from CollisionShape.)
ContactBreakingThreshold (Inherited from CollisionShape.)
GetAabb(Matrix%, Vector3%, Vector3%) (Inherited from TriangleMeshShape.)
GetAngularMotionDisc()()()()
Returns the maximus radius needed for Conservative Advancement to handle time-of-impact with rotations.
(Inherited from CollisionShape.)
GetBoundingSphere(Vector3%, Single%) (Inherited from CollisionShape.)
getLocalAabbMax()()()() (Inherited from TriangleMeshShape.)
GetLocalAabbMin()()()() (Inherited from TriangleMeshShape.)
GetOptimizedBvh()()()()
IsCompound (Inherited from CollisionShape.)
IsConcave (Inherited from CollisionShape.)
IsConvex (Inherited from CollisionShape.)
IsInfinite (Inherited from CollisionShape.)
IsPolyhedral (Inherited from CollisionShape.)
LocalGetSupportingVertex(Vector3%) (Inherited from TriangleMeshShape.)
LocalGetSupportingVertexWithoutMargin(Vector3%) (Inherited from TriangleMeshShape.)
LocalScaling (Overrides TriangleMeshShape..::..LocalScaling.)
Margin (Inherited from ConcaveShape.)
MeshInterface (Inherited from TriangleMeshShape.)
Name (Overrides TriangleMeshShape..::..Name.)
OwnsBvh
PartialRefitTree(Vector3%, Vector3%)
For a fast incremental refit of parts of the tree. Note: the entire AABB of the tree will become more conservative, it never shrinks.
PerformConvexcast(ITriangleCallback, Vector3%, Vector3%, Vector3%, Vector3%)
PerformRaycast(ITriangleCallback, Vector3%, Vector3%)
ProcessAllTriangles(ITriangleCallback, Vector3%, Vector3%)
Perform bvh tree traversal and report overlapping triangles to 'callback'.
(Overrides TriangleMeshShape..::..ProcessAllTriangles(ITriangleCallback, Vector3%, Vector3%).)
RecalcLocalAabb()()()() (Inherited from TriangleMeshShape.)
RefitTree(Vector3%, Vector3%)
SetOptimizedBvh(OptimizedBvh)
SetOptimizedBvh(OptimizedBvh, Vector3)
ShapeType (Inherited from CollisionShape.)
UsesQuantizedAabbCompression

Inheritance Hierarchy

System..::..Object
  Visual3D.Physics.BulletX..::..CollisionShape
    Visual3D.Physics.BulletX..::..ConcaveShape
      Visual3D.Physics.BulletX..::..TriangleMeshShape
        Visual3D.Physics.BulletX..::..BvhTriangleMeshShape
          Visual3D.PhysicsNew.Terrain..::..PhysicalTerrainShape

See Also