Blender V4.3
btTriangleMeshShape.h File Reference

Go to the source code of this file.

Functions

 btTriangleMeshShape (btStridingMeshInterface *meshInterface)
 
 BT_DECLARE_ALIGNED_ALLOCATOR ()
 
virtual ~btTriangleMeshShape ()
 
virtual btVector3 localGetSupportingVertex (const btVector3 &vec) const
 
virtual btVector3 localGetSupportingVertexWithoutMargin (const btVector3 &vec) const
 btConvexShape Interface
 
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.
 
virtual void processAllTriangles (btTriangleCallback *callback, const btVector3 &aabbMin, const btVector3 &aabbMax) const
 
virtual void calculateLocalInertia (btScalar mass, btVector3 &inertia) const
 CollisionShape Interface.
 
virtual void setLocalScaling (const btVector3 &scaling)
 in case we receive negative scaling
 
virtual const btVector3getLocalScaling () const
 
btStridingMeshInterfacegetMeshInterface ()
 
const btVector3getLocalAabbMin () const
 
const btVector3getLocalAabbMax () const
 
virtual const char * getName () const
 getName is for debugging
 

Variables

btTriangleMeshShape __pad0__
 The btTriangleMeshShape is an internal concave triangle mesh interface. Don't use this class directly, use btBvhTriangleMeshShape instead.
 
btVector3 m_localAabbMax
 
btStridingMeshInterfacem_meshInterface
 

Function Documentation

◆ BT_DECLARE_ALIGNED_ALLOCATOR()

BT_DECLARE_ALIGNED_ALLOCATOR ( )

◆ btTriangleMeshShape()

btTriangleMeshShape::btTriangleMeshShape ( btStridingMeshInterface * meshInterface)

btTriangleMeshShape constructor has been disabled/protected, so that users will not mistakenly use this class. Don't use btTriangleMeshShape but use btBvhTriangleMeshShape instead!

Definition at line 23 of file btTriangleMeshShape.cpp.

References m_localAabbMax, m_localAabbMin, recalcLocalAabb(), and TRIANGLE_MESH_SHAPE_PROXYTYPE.

Referenced by btCollisionWorld::objectQuerySingleInternal().

◆ calculateLocalInertia()

virtual void calculateLocalInertia ( btScalar mass,
btVector3 & inertia ) const
virtual

CollisionShape Interface.

Definition at line 54 of file btConeShape.h.

◆ getAabb()

virtual void getAabb ( const btTransform & t,
btVector3 & aabbMin,
btVector3 & aabbMax ) const
virtual

getAabb returns the axis aligned bounding box in the coordinate frame of the given transform t.

getAabb's default implementation is brute force, expected derived classes to implement a fast dedicated version

getAabb returns the axis aligned bounding box in the coordinate frame of the given transform t.

Definition at line 54 of file btCapsuleShape.h.

◆ getLocalAabbMax()

const btVector3 & getLocalAabbMax ( ) const

Definition at line 73 of file btTriangleMeshShape.h.

References m_localAabbMax.

◆ getLocalAabbMin()

const btVector3 & getLocalAabbMin ( ) const

Definition at line 69 of file btTriangleMeshShape.h.

References m_localAabbMin.

◆ getLocalScaling()

virtual const btVector3 & getLocalScaling ( ) const
virtual

Definition at line 126 of file btCompoundShape.h.

◆ getMeshInterface()

btStridingMeshInterface * getMeshInterface ( )

Definition at line 59 of file btTriangleMeshShape.h.

References m_meshInterface.

◆ getName()

virtual const char * getName ( ) const
virtual

getName is for debugging

Definition at line 79 of file btTriangleMeshShape.h.

◆ localGetSupportingVertex()

virtual btVector3 localGetSupportingVertex ( const btVector3 & vec) const
virtual

Definition at line 51 of file btBox2dShape.h.

Referenced by localGetSupportingVertexWithoutMargin().

◆ localGetSupportingVertexWithoutMargin()

virtual btVector3 localGetSupportingVertexWithoutMargin ( const btVector3 & vec) const
virtual

btConvexShape Interface

Definition at line 42 of file btTriangleMeshShape.h.

References btAssert, and localGetSupportingVertex().

◆ processAllTriangles()

virtual void processAllTriangles ( btTriangleCallback * callback,
const btVector3 & aabbMin,
const btVector3 & aabbMax ) const
virtual

Definition at line 57 of file btEmptyShape.h.

◆ recalcLocalAabb()

◆ setLocalScaling()

virtual void setLocalScaling ( const btVector3 & scaling)
virtual

in case we receive negative scaling

Definition at line 120 of file btBox2dShape.h.

◆ ~btTriangleMeshShape()

btTriangleMeshShape::~btTriangleMeshShape ( )
virtual

Definition at line 37 of file btTriangleMeshShape.cpp.

Variable Documentation

◆ __pad0__

The btTriangleMeshShape is an internal concave triangle mesh interface. Don't use this class directly, use btBvhTriangleMeshShape instead.

Definition at line 24 of file btTriangleMeshShape.h.

◆ m_localAabbMax

btVector3 m_localAabbMax

Definition at line 28 of file btTriangleMeshShape.h.

Referenced by getLocalAabbMax().

◆ m_meshInterface