Blender  V3.3
Functions | Variables
btTetrahedronShape.h File Reference
#include "btPolyhedralConvexShape.h"
#include "BulletCollision/BroadphaseCollision/btBroadphaseProxy.h"

Go to the source code of this file.

Functions

 BT_DECLARE_ALIGNED_ALLOCATOR ()
 
 btBU_Simplex1to4 ()
 
 btBU_Simplex1to4 (const btVector3 &pt0)
 
 btBU_Simplex1to4 (const btVector3 &pt0, const btVector3 &pt1)
 
 btBU_Simplex1to4 (const btVector3 &pt0, const btVector3 &pt1, const btVector3 &pt2)
 
 btBU_Simplex1to4 (const btVector3 &pt0, const btVector3 &pt1, const btVector3 &pt2, const btVector3 &pt3)
 
void reset ()
 clear internal cached data and reset random seed More...
 
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...
 
void addVertex (const btVector3 &pt)
 
virtual int getNumVertices () const
 
virtual int getNumEdges () const
 
virtual void getEdge (int i, btVector3 &pa, btVector3 &pb) const
 
virtual void getVertex (int i, btVector3 &vtx) const
 
virtual int getNumPlanes () const
 
virtual void getPlane (btVector3 &planeNormal, btVector3 &planeSupport, int i) const
 
virtual int getIndex (int i) const
 
virtual bool isInside (const btVector3 &pt, btScalar tolerance) const
 
virtual const char * getName () const
 getName is for debugging More...
 

Variables

btBU_Simplex1to4 __pad0__
 The btBU_Simplex1to4 implements tetrahedron, triangle, line, vertex collision shapes. In most cases it is better to use btConvexHullShape instead. More...
 
btVector3 m_vertices [4]
 

Function Documentation

◆ addVertex()

void btBU_Simplex1to4::addVertex ( const btVector3 pt)

Definition at line 77 of file btTetrahedronShape.cpp.

References m_numVertices, m_vertices, and recalcLocalAabb().

Referenced by btBU_Simplex1to4().

◆ BT_DECLARE_ALIGNED_ALLOCATOR()

BT_DECLARE_ALIGNED_ALLOCATOR ( )

◆ btBU_Simplex1to4() [1/5]

btBU_Simplex1to4::btBU_Simplex1to4 ( )

◆ btBU_Simplex1to4() [2/5]

btBU_Simplex1to4::btBU_Simplex1to4 ( const btVector3 pt0)

Definition at line 25 of file btTetrahedronShape.cpp.

References addVertex(), and TETRAHEDRAL_SHAPE_PROXYTYPE.

◆ btBU_Simplex1to4() [3/5]

btBU_Simplex1to4::btBU_Simplex1to4 ( const btVector3 pt0,
const btVector3 pt1 
)

Definition at line 32 of file btTetrahedronShape.cpp.

References addVertex(), and TETRAHEDRAL_SHAPE_PROXYTYPE.

◆ btBU_Simplex1to4() [4/5]

btBU_Simplex1to4::btBU_Simplex1to4 ( const btVector3 pt0,
const btVector3 pt1,
const btVector3 pt2 
)

Definition at line 40 of file btTetrahedronShape.cpp.

References addVertex(), and TETRAHEDRAL_SHAPE_PROXYTYPE.

◆ btBU_Simplex1to4() [5/5]

btBU_Simplex1to4::btBU_Simplex1to4 ( const btVector3 pt0,
const btVector3 pt1,
const btVector3 pt2,
const btVector3 pt3 
)

Definition at line 49 of file btTetrahedronShape.cpp.

References addVertex(), and TETRAHEDRAL_SHAPE_PROXYTYPE.

◆ 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.

◆ getEdge()

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

Definition at line 218 of file btBox2dShape.h.

References btAssert, and getVertex().

Referenced by isInside().

◆ getIndex()

int btBU_Simplex1to4::getIndex ( int  i) const
virtual

Definition at line 195 of file btTetrahedronShape.cpp.

◆ getName()

virtual const char* getName ( ) const
virtual

getName is for debugging

Definition at line 68 of file btTetrahedronShape.h.

◆ getNumEdges()

virtual int getNumEdges ( ) const
virtual

Definition at line 174 of file btBox2dShape.h.

Referenced by set_ccgdm_all_geometry().

◆ getNumPlanes()

virtual int getNumPlanes ( ) const
virtual

Definition at line 169 of file btBox2dShape.h.

◆ getNumVertices()

virtual int getNumVertices ( ) const
virtual

Definition at line 140 of file btBox2dShape.h.

Referenced by initializePolyhedralFeatures().

◆ getPlane()

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

Definition at line 155 of file btBox2dShape.h.

References btVector3, getPlaneEquation(), and localGetSupportingVertex().

◆ getVertex()

virtual void getVertex ( int  i,
btVector3 vtx 
) const
virtual

◆ isInside()

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

◆ reset()

void reset ( )

clear internal cached data and reset random seed

Definition at line 40 of file btTetrahedronShape.h.

References m_numVertices.

Variable Documentation

◆ __pad0__

btBU_Simplex1to4 __pad0__

The btBU_Simplex1to4 implements tetrahedron, triangle, line, vertex collision shapes. In most cases it is better to use btConvexHullShape instead.

Definition at line 24 of file btTetrahedronShape.h.

◆ m_vertices

btVector3 m_vertices[4]

Definition at line 28 of file btTetrahedronShape.h.