|
| BT_DECLARE_ALIGNED_ALLOCATOR () |
|
| btBvhTriangleMeshShape (btStridingMeshInterface *meshInterface, bool useQuantizedAabbCompression, bool buildBvh=true) |
| Bvh Concave triangle mesh is a static-triangle mesh shape with Bounding Volume Hierarchy optimization. More...
|
|
| btBvhTriangleMeshShape (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 More...
|
|
virtual | ~btBvhTriangleMeshShape () |
|
bool | getOwnsBvh () const |
|
void | performRaycast (btTriangleCallback *callback, const btVector3 &raySource, const btVector3 &rayTarget) |
|
void | performConvexcast (btTriangleCallback *callback, const btVector3 &boxSource, const btVector3 &boxTarget, const btVector3 &boxMin, const btVector3 &boxMax) |
|
virtual void | processAllTriangles (btTriangleCallback *callback, const btVector3 &aabbMin, const btVector3 &aabbMax) const |
|
void | refitTree (const btVector3 &aabbMin, const btVector3 &aabbMax) |
|
void | partialRefitTree (const btVector3 &aabbMin, const btVector3 &aabbMax) |
| for a fast incremental refit of parts of the tree. Note: the entire AABB of the tree will become more conservative, it never shrinks More...
|
|
virtual const char * | getName () const |
|
virtual void | setLocalScaling (const btVector3 &scaling) |
|
btOptimizedBvh * | getOptimizedBvh () |
|
void | setOptimizedBvh (btOptimizedBvh *bvh, const btVector3 &localScaling=btVector3(1, 1, 1)) |
|
void | buildOptimizedBvh () |
|
bool | usesQuantizedAabbCompression () const |
|
void | setTriangleInfoMap (btTriangleInfoMap *triangleInfoMap) |
|
const btTriangleInfoMap * | getTriangleInfoMap () const |
|
btTriangleInfoMap * | getTriangleInfoMap () |
|
virtual int | calculateSerializeBufferSize () const |
|
virtual const char * | serialize (void *dataBuffer, btSerializer *serializer) const |
| fills the dataBuffer and returns the struct name (and 0 on failure) More...
|
|
virtual void | serializeSingleBvh (btSerializer *serializer) const |
|
virtual void | serializeSingleTriangleInfoMap (btSerializer *serializer) const |
|
| BT_DECLARE_ALIGNED_ALLOCATOR () |
|
virtual | ~btTriangleMeshShape () |
|
virtual btVector3 | localGetSupportingVertex (const btVector3 &vec) const |
|
virtual btVector3 | localGetSupportingVertexWithoutMargin (const btVector3 &vec) const |
|
void | recalcLocalAabb () |
|
virtual void | getAabb (const btTransform &t, btVector3 &aabbMin, btVector3 &aabbMax) const |
| getAabb returns the axis aligned bounding box in the coordinate frame of the given transform t. More...
|
|
virtual void | calculateLocalInertia (btScalar mass, btVector3 &inertia) const |
|
virtual const btVector3 & | getLocalScaling () const |
|
btStridingMeshInterface * | getMeshInterface () |
|
const btStridingMeshInterface * | getMeshInterface () const |
|
const btVector3 & | getLocalAabbMin () const |
|
const btVector3 & | getLocalAabbMax () const |
|
| BT_DECLARE_ALIGNED_ALLOCATOR () |
|
| btConcaveShape () |
|
virtual | ~btConcaveShape () |
|
virtual btScalar | getMargin () const |
|
virtual void | setMargin (btScalar collisionMargin) |
|
| BT_DECLARE_ALIGNED_ALLOCATOR () |
|
| btCollisionShape () |
|
virtual | ~btCollisionShape () |
|
virtual void | getBoundingSphere (btVector3 ¢er, btScalar &radius) const |
|
virtual btScalar | getAngularMotionDisc () const |
| getAngularMotionDisc returns the maximus radius needed for Conservative Advancement to handle time-of-impact with rotations. More...
|
|
virtual btScalar | getContactBreakingThreshold (btScalar defaultContactThresholdFactor) const |
|
void | calculateTemporalAabb (const btTransform &curTrans, const btVector3 &linvel, const btVector3 &angvel, btScalar timeStep, btVector3 &temporalAabbMin, btVector3 &temporalAabbMax) const |
| calculateTemporalAabb calculates the enclosing aabb for the moving object over interval [0..timeStep) result is conservative More...
|
|
bool | isPolyhedral () const |
|
bool | isConvex2d () const |
|
bool | isConvex () const |
|
bool | isNonMoving () const |
|
bool | isConcave () const |
|
bool | isCompound () const |
|
bool | isSoftBody () const |
|
bool | isInfinite () const |
| isInfinite is used to catch simulation error (aabb check) More...
|
|
int | getShapeType () const |
|
virtual btVector3 | getAnisotropicRollingFrictionDirection () const |
| the getAnisotropicRollingFrictionDirection can be used in combination with setAnisotropicFriction See Bullet/Demos/RollingFrictionDemo for an example More...
|
|
void | setUserPointer (void *userPtr) |
| optional user data pointer More...
|
|
void * | getUserPointer () const |
|
virtual void | serializeSingleShape (btSerializer *serializer) const |
|
The btBvhTriangleMeshShape is a static-triangle mesh shape, it can only be used for fixed/non-moving objects.
If you required moving concave triangle meshes, it is recommended to perform convex decomposition using HACD, see Bullet/Demos/ConvexDecompositionDemo. Alternatively, you can use btGimpactMeshShape for moving concave triangle meshes. btBvhTriangleMeshShape has 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 btTriangleMesh or btTriangleIndexVertexArray. The btBvhTriangleMeshShape 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.
Definition at line 34 of file btBvhTriangleMeshShape.h.