Public Member Functions | Private Attributes

btMultimaterialTriangleMeshShape Class Reference

This file was created by Alex Silverman. More...

#include <btMultimaterialTriangleMeshShape.h>

Inheritance diagram for btMultimaterialTriangleMeshShape:
Inheritance graph
[legend]
Collaboration diagram for btMultimaterialTriangleMeshShape:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 BT_DECLARE_ALIGNED_ALLOCATOR ()
 btMultimaterialTriangleMeshShape (btStridingMeshInterface *meshInterface, bool useQuantizedAabbCompression, bool buildBvh=true)
 btMultimaterialTriangleMeshShape (btStridingMeshInterface *meshInterface, bool useQuantizedAabbCompression, const btVector3 &bvhAabbMin, const btVector3 &bvhAabbMax, bool buildBvh=true)
 optionally pass in a larger bvh aabb, used for quantization. This allows for deformations within this aabb
virtual ~btMultimaterialTriangleMeshShape ()
virtual const char * getName () const
const btMaterialgetMaterialProperties (int partID, int triIndex)
 Obtains the material for a specific triangle.

Private Attributes

btAlignedObjectArray
< btMaterial * > 
m_materialList
int ** m_triangleMaterials

Detailed Description

This file was created by Alex Silverman.

The BvhTriangleMaterialMeshShape extends the btBvhTriangleMeshShape. Its main contribution is the interface into a material array, which allows per-triangle friction and restitution.

Definition at line 25 of file btMultimaterialTriangleMeshShape.h.


Constructor & Destructor Documentation

btMultimaterialTriangleMeshShape::btMultimaterialTriangleMeshShape ( btStridingMeshInterface meshInterface,
bool  useQuantizedAabbCompression,
bool  buildBvh = true 
) [inline]

Definition at line 34 of file btMultimaterialTriangleMeshShape.h.

btMultimaterialTriangleMeshShape::btMultimaterialTriangleMeshShape ( btStridingMeshInterface meshInterface,
bool  useQuantizedAabbCompression,
const btVector3 bvhAabbMin,
const btVector3 bvhAabbMax,
bool  buildBvh = true 
) [inline]

optionally pass in a larger bvh aabb, used for quantization. This allows for deformations within this aabb

Definition at line 67 of file btMultimaterialTriangleMeshShape.h.

virtual btMultimaterialTriangleMeshShape::~btMultimaterialTriangleMeshShape (  )  [inline, virtual]

Definition at line 99 of file btMultimaterialTriangleMeshShape.h.


Member Function Documentation

btMultimaterialTriangleMeshShape::BT_DECLARE_ALIGNED_ALLOCATOR (  ) 

Reimplemented from btBvhTriangleMeshShape.

const btMaterial * btMultimaterialTriangleMeshShape::getMaterialProperties ( int  partID,
int  triIndex 
)

Obtains the material for a specific triangle.

This file was created by Alex Silverman.

Obtains the material for a specific triangle

Definition at line 24 of file btMultimaterialTriangleMeshShape.cpp.

virtual const char* btMultimaterialTriangleMeshShape::getName (  )  const [inline, virtual]

Reimplemented from btBvhTriangleMeshShape.

Definition at line 112 of file btMultimaterialTriangleMeshShape.h.


Member Data Documentation

Definition at line 27 of file btMultimaterialTriangleMeshShape.h.

Definition at line 28 of file btMultimaterialTriangleMeshShape.h.


The documentation for this class was generated from the following files: