Blender V5.0
btTetrahedronShape.h File Reference

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

Variables

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

Function Documentation

◆ addVertex()

void btBU_Simplex1to4::addVertex ( const btVector3 & pt)

◆ BT_DECLARE_ALIGNED_ALLOCATOR()

BT_DECLARE_ALIGNED_ALLOCATOR ( )

References btVector3.

◆ btBU_Simplex1to4() [1/5]

btBU_Simplex1to4::btBU_Simplex1to4 ( )

◆ btBU_Simplex1to4() [2/5]

btBU_Simplex1to4::btBU_Simplex1to4 ( const btVector3 & pt0)

◆ btBU_Simplex1to4() [3/5]

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

◆ btBU_Simplex1to4() [4/5]

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

◆ btBU_Simplex1to4() [5/5]

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

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

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.

◆ 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

◆ getVertex()

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

◆ isInside()

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

◆ reset()

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.