Blender  V3.3
Functions | Variables
btTriangleShape.h File Reference
#include "btConvexShape.h"
#include "btBoxShape.h"

Go to the source code of this file.

Functions

virtual int getNumVertices () const
 
btVector3getVertexPtr (int index)
 
virtual void getVertex (int index, btVector3 &vert) const
 
virtual int getNumEdges () const
 
virtual void getEdge (int i, btVector3 &pa, btVector3 &pb) const
 
virtual void getAabb (const btTransform &t, btVector3 &aabbMin, btVector3 &aabbMax) const
 getAabb's default implementation is brute force, expected derived classes to implement a fast dedicated version More...
 
btVector3 localGetSupportingVertexWithoutMargin (const btVector3 &dir) const
 btConvexShape Interface More...
 
virtual void batchedUnitVectorGetSupportingVertexWithoutMargin (const btVector3 *vectors, btVector3 *supportVerticesOut, int numVectors) const
 
 btTriangleShape ()
 
 btTriangleShape (const btVector3 &p0, const btVector3 &p1, const btVector3 &p2)
 
virtual void getPlane (btVector3 &planeNormal, btVector3 &planeSupport, int i) const
 
virtual int getNumPlanes () const
 
void calcNormal (btVector3 &normal) const
 
virtual void getPlaneEquation (int i, btVector3 &planeNormal, btVector3 &planeSupport) const
 
virtual void calculateLocalInertia (btScalar mass, btVector3 &inertia) const
 CollisionShape Interface. More...
 
virtual bool isInside (const btVector3 &pt, btScalar tolerance) const
 
virtual const char * getName () const
 getName is for debugging More...
 
virtual int getNumPreferredPenetrationDirections () const
 
virtual void getPreferredPenetrationDirection (int index, btVector3 &penetrationVector) const
 

Variables

btTriangleShape __pad0__
 
btVector3 m_vertices1 [3]
 

Function Documentation

◆ batchedUnitVectorGetSupportingVertexWithoutMargin()

virtual void batchedUnitVectorGetSupportingVertexWithoutMargin ( const btVector3 vectors,
btVector3 supportVerticesOut,
int  numVectors 
) const
virtual

Definition at line 72 of file btTriangleShape.h.

References btVector3, and m_vertices1.

◆ btTriangleShape() [1/2]

btTriangleShape ( )

◆ btTriangleShape() [2/2]

btTriangleShape ( const btVector3 p0,
const btVector3 p1,
const btVector3 p2 
)

Definition at line 87 of file btTriangleShape.h.

References m_vertices1, and TRIANGLE_SHAPE_PROXYTYPE.

◆ calcNormal()

void calcNormal ( btVector3 normal) const

◆ calculateLocalInertia()

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

CollisionShape Interface.

Definition at line 118 of file btTriangleShape.h.

References btAssert, btTransform, btVector3, getAabb(), void, and x2.

◆ getAabb()

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

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 60 of file btTriangleShape.h.

References btMatrix3x3, btVector3, center, getAabbSlow(), getHalfHeight(), getRadius(), m_upAxis, and t.

Referenced by calculateLocalInertia(), calculateTemporalAabb(), getAabbNonVirtual(), and getBoundingSphere().

◆ getEdge()

virtual void getEdge ( int  i,
btVector3 pa,
btVector3 pb 
) const
virtual

Definition at line 54 of file btTriangleShape.h.

References getVertex().

Referenced by isInside().

◆ getName()

virtual const char* getName ( ) const
virtual

getName is for debugging

Definition at line 157 of file btTriangleShape.h.

◆ getNumEdges()

virtual int getNumEdges ( ) const
virtual

Definition at line 49 of file btTriangleShape.h.

◆ getNumPlanes()

virtual int getNumPlanes ( ) const
virtual

Definition at line 100 of file btTriangleShape.h.

◆ getNumPreferredPenetrationDirections()

virtual int getNumPreferredPenetrationDirections ( ) const
virtual

Definition at line 162 of file btTriangleShape.h.

◆ getNumVertices()

virtual int getNumVertices ( ) const
virtual

Definition at line 30 of file btTriangleShape.h.

◆ getPlane()

virtual void getPlane ( btVector3 planeNormal,
btVector3 planeSupport,
int  i 
) const
virtual

Definition at line 95 of file btTriangleShape.h.

References getPlaneEquation().

◆ getPlaneEquation()

virtual void getPlaneEquation ( int  i,
btVector3 planeNormal,
btVector3 planeSupport 
) const
virtual

Definition at line 111 of file btTriangleShape.h.

References calcNormal(), m_vertices1, and void.

Referenced by getPlane().

◆ getPreferredPenetrationDirection()

virtual void getPreferredPenetrationDirection ( int  index,
btVector3 penetrationVector 
) const
virtual

Definition at line 167 of file btTriangleShape.h.

References calcNormal().

◆ getVertex()

virtual void getVertex ( int  index,
btVector3 vert 
) const
virtual

Definition at line 44 of file btTriangleShape.h.

References m_vertices1.

Referenced by getEdge().

◆ getVertexPtr()

const btVector3 & getVertexPtr ( int  index)

Definition at line 35 of file btTriangleShape.h.

References m_vertices1.

◆ isInside()

virtual bool isInside ( const btVector3 pt,
btScalar  tolerance 
) const
virtual

Definition at line 125 of file btTriangleShape.h.

References btVector3, calcNormal(), getEdge(), m_vertices1, and normal.

◆ localGetSupportingVertexWithoutMargin()

btVector3 localGetSupportingVertexWithoutMargin ( const btVector3 dir) const

btConvexShape Interface

Definition at line 66 of file btTriangleShape.h.

References btVector3, and m_vertices1.

Referenced by localGetSupportingVertex().

Variable Documentation

◆ __pad0__

btTriangleShape __pad0__

Definition at line 23 of file btTriangleShape.h.

◆ m_vertices1

btVector3 m_vertices1[3]