Blender V4.5
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
btVector3 localGetSupportingVertexWithoutMargin (const btVector3 &dir) const
 btConvexShape Interface
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
virtual bool isInside (const btVector3 &pt, btScalar tolerance) const
virtual const char * getName () const
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, i, and m_vertices1.

◆ btTriangleShape() [1/2]

◆ btTriangleShape() [2/2]

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

◆ calcNormal()

void calcNormal ( btVector3 & normal) const

Definition at line 105 of file btTriangleShape.h.

References btVector3, cross, and m_vertices1.

Referenced by getPlaneEquation(), getPreferredPenetrationDirection(), and isInside().

◆ calculateLocalInertia()

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

Definition at line 118 of file btTriangleShape.h.

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

◆ getAabb()

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

◆ getEdge()

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

Definition at line 54 of file btTriangleShape.h.

References btVector3, getVertex(), and i.

Referenced by isInside().

◆ getName()

virtual const char * getName ( ) const
virtual

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 btVector3, getPlaneEquation(), and i.

◆ getPlaneEquation()

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

Definition at line 111 of file btTriangleShape.h.

References btVector3, calcNormal(), i, and m_vertices1.

Referenced by getPlane().

◆ getPreferredPenetrationDirection()

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

Definition at line 167 of file btTriangleShape.h.

References btVector3, and calcNormal().

◆ getVertex()

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

Definition at line 44 of file btTriangleShape.h.

References btVector3, and m_vertices1.

Referenced by getEdge().

◆ getVertexPtr()

const btVector3 & getVertexPtr ( int index)

Definition at line 35 of file btTriangleShape.h.

References btVector3, and 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(), i, and m_vertices1.

◆ localGetSupportingVertexWithoutMargin()

btVector3 localGetSupportingVertexWithoutMargin ( const btVector3 & dir) const

btConvexShape Interface

Definition at line 66 of file btTriangleShape.h.

References btVector3, and m_vertices1.

Variable Documentation

◆ __pad0__

btTriangleShape __pad0__

Definition at line 23 of file btTriangleShape.h.

◆ m_vertices1