Blender V4.3
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
 
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
 CollisionShape Interface.
 
virtual bool isInside (const btVector3 &pt, btScalar tolerance) const
 
virtual const char * getName () const
 getName is for debugging
 
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 m_vertices1.

Referenced by btPolyhedralConvexAabbCachingShape::recalcLocalAabb().

◆ btTriangleShape() [1/2]

btTriangleShape ( )

Definition at line 82 of file btTriangleShape.h.

References TRIANGLE_SHAPE_PROXYTYPE.

◆ 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

Definition at line 105 of file btTriangleShape.h.

References cross(), and m_vertices1.

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

◆ calculateLocalInertia()

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

CollisionShape Interface.

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

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, getAabbSlow(), getHalfHeight(), getRadius(), and m_upAxis.

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(), 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 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 calcNormal(), getEdge(), and m_vertices1.

◆ localGetSupportingVertexWithoutMargin()

btVector3 localGetSupportingVertexWithoutMargin ( const btVector3 & dir) const

btConvexShape Interface

Definition at line 66 of file btTriangleShape.h.

References m_vertices1.

Referenced by localGetSupportingVertex().

Variable Documentation

◆ __pad0__

btTriangleShape __pad0__

Definition at line 23 of file btTriangleShape.h.

◆ m_vertices1