Blender
V3.3
|
Go to the source code of this file.
Classes | |
struct | btFace |
Macros | |
#define | TEST_INTERNAL_OBJECTS 1 |
This file was written by Erwin Coumans. More... | |
Functions | |
virtual | ~btConvexPolyhedron () |
void | initialize () |
void | initialize2 () |
bool | testContainment () const |
void | project (const btTransform &trans, const btVector3 &dir, btScalar &minProj, btScalar &maxProj, btVector3 &witnesPtMin, btVector3 &witnesPtMax) const |
#define TEST_INTERNAL_OBJECTS 1 |
This file was written by Erwin Coumans.
Definition at line 24 of file btConvexPolyhedron.h.
void initialize | ( | ) |
void btConvexPolyhedron::initialize2 | ( | ) |
Definition at line 177 of file btConvexPolyhedron.cpp.
References btFabs(), btVector3, blender::math::cross(), blender::math::length(), m_extents, m_faces, m_localCenter, m_radius, m_vertices, mC, mE, Normal, numVertices(), r, sqrtf, and testContainment().
void project | ( | const btTransform & | trans, |
const btVector3 & | dir, | ||
btScalar & | minProj, | ||
btScalar & | maxProj, | ||
btVector3 & | witnesPtMin, | ||
btVector3 & | witnesPtMax | ||
) | const |
bool btConvexPolyhedron::testContainment | ( | ) | const |
Definition at line 71 of file btConvexPolyhedron.cpp.
References btVector3, m_extents, m_faces, m_localCenter, and Normal.
Referenced by initialize2().
|
virtual |
Definition at line 26 of file btConvexPolyhedron.cpp.
btConvexPolyhedron |
This file was written by Erwin Coumans Separating axis rest based on work from Pierre Terdiman, see And contact clipping based on work from Simon Hobbs
Definition at line 34 of file btConvexPolyhedron.h.
Referenced by btCollisionWorld::debugDrawObject(), initializePolyhedralFeatures(), btConvexConvexAlgorithm::processCollision(), and setPolyhedralFeatures().
btVector3 m_extents |
Definition at line 47 of file btConvexPolyhedron.h.
Referenced by initialize2(), and testContainment().
btAlignedObjectArray<btFace> m_faces |
Definition at line 43 of file btConvexPolyhedron.h.
Referenced by initialize2(), and testContainment().
btVector3 m_localCenter |
Definition at line 46 of file btConvexPolyhedron.h.
Referenced by initialize2(), and testContainment().
btScalar m_radius |
Definition at line 48 of file btConvexPolyhedron.h.
btAlignedObjectArray<btVector3> m_uniqueEdges |
Definition at line 44 of file btConvexPolyhedron.h.
btAlignedObjectArray<btVector3> m_vertices |
Definition at line 42 of file btConvexPolyhedron.h.
btVector3 mC |
Definition at line 49 of file btConvexPolyhedron.h.
Referenced by initialize2().
btVector3 mE |
Definition at line 50 of file btConvexPolyhedron.h.
Referenced by initialize2().