Blender V2.61 - r43446
|
The btBU_Simplex1to4 implements tetrahedron, triangle, line, vertex collision shapes. In most cases it is better to use btConvexHullShape instead. More...
#include <btTetrahedronShape.h>
Public Member Functions | |
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 () |
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 | |
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 | |
Protected Attributes | |
int | m_numVertices |
btVector3 | m_vertices [4] |
The btBU_Simplex1to4 implements tetrahedron, triangle, line, vertex collision shapes. In most cases it is better to use btConvexHullShape instead.
Definition at line 25 of file btTetrahedronShape.h.
btBU_Simplex1to4::btBU_Simplex1to4 | ( | ) |
Definition at line 19 of file btTetrahedronShape.cpp.
References TETRAHEDRAL_SHAPE_PROXYTYPE.
btBU_Simplex1to4::btBU_Simplex1to4 | ( | const btVector3 & | pt0 | ) |
Definition at line 25 of file btTetrahedronShape.cpp.
References addVertex(), and TETRAHEDRAL_SHAPE_PROXYTYPE.
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::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::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.
void btBU_Simplex1to4::addVertex | ( | const btVector3 & | pt | ) |
Definition at line 82 of file btTetrahedronShape.cpp.
References m_numVertices, m_vertices, and btPolyhedralConvexAabbCachingShape::recalcLocalAabb().
Referenced by btBU_Simplex1to4().
void btBU_Simplex1to4::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
Reimplemented from btPolyhedralConvexAabbCachingShape.
Definition at line 60 of file btTetrahedronShape.cpp.
References BT_LARGE_FLOAT, i, m_numVertices, and m_vertices.
void btBU_Simplex1to4::getEdge | ( | int | i, |
btVector3 & | pa, | ||
btVector3 & | pb | ||
) | const [virtual] |
Implements btPolyhedralConvexShape.
Definition at line 113 of file btTetrahedronShape.cpp.
References m_numVertices, and m_vertices.
int btBU_Simplex1to4::getIndex | ( | int | i | ) | const [virtual] |
Definition at line 209 of file btTetrahedronShape.cpp.
virtual const char* btBU_Simplex1to4::getName | ( | void | ) | const [inline, virtual] |
getName is for debugging
Definition at line 70 of file btTetrahedronShape.h.
int btBU_Simplex1to4::getNumEdges | ( | ) | const [virtual] |
Implements btPolyhedralConvexShape.
Definition at line 94 of file btTetrahedronShape.cpp.
References m_numVertices.
int btBU_Simplex1to4::getNumPlanes | ( | ) | const [virtual] |
Implements btPolyhedralConvexShape.
Definition at line 182 of file btTetrahedronShape.cpp.
References m_numVertices.
int btBU_Simplex1to4::getNumVertices | ( | ) | const [virtual] |
Implements btPolyhedralConvexShape.
Definition at line 89 of file btTetrahedronShape.cpp.
References m_numVertices.
void btBU_Simplex1to4::getPlane | ( | btVector3 & | planeNormal, |
btVector3 & | planeSupport, | ||
int | i | ||
) | const [virtual] |
Implements btPolyhedralConvexShape.
Definition at line 204 of file btTetrahedronShape.cpp.
void btBU_Simplex1to4::getVertex | ( | int | i, |
btVector3 & | vtx | ||
) | const [virtual] |
Implements btPolyhedralConvexShape.
Definition at line 177 of file btTetrahedronShape.cpp.
References i, and m_vertices.
bool btBU_Simplex1to4::isInside | ( | const btVector3 & | pt, |
btScalar | tolerance | ||
) | const [virtual] |
Implements btPolyhedralConvexShape.
Definition at line 214 of file btTetrahedronShape.cpp.
void btBU_Simplex1to4::reset | ( | ) | [inline] |
Definition at line 41 of file btTetrahedronShape.h.
References m_numVertices.
int btBU_Simplex1to4::m_numVertices [protected] |
Definition at line 29 of file btTetrahedronShape.h.
Referenced by addVertex(), btTetrahedronShapeEx::btTetrahedronShapeEx(), getAabb(), getEdge(), getNumEdges(), getNumPlanes(), getNumVertices(), and reset().
btVector3 btBU_Simplex1to4::m_vertices[4] [protected] |
Definition at line 30 of file btTetrahedronShape.h.
Referenced by addVertex(), getAabb(), getEdge(), getVertex(), and btTetrahedronShapeEx::setVertices().