Blender
V3.3
|
#include <btSparseSDF.h>
Classes | |
struct | Cell |
struct | IntFrac |
Public Member Functions | |
~btSparseSdf () | |
void | Initialize (int hashsize=2383, int clampCells=256 *1024) |
void | setDefaultVoxelsz (btScalar sz) |
void | Reset () |
void | GarbageCollect (int lifetime=256) |
int | RemoveReferences (btCollisionShape *pcs) |
btScalar | Evaluate (const btVector3 &x, const btCollisionShape *shape, btVector3 &normal, btScalar margin) |
void | BuildCell (Cell &c) |
Static Public Member Functions | |
static btScalar | DistanceToShape (const btVector3 &x, const btCollisionShape *shape) |
static IntFrac | Decompose (btScalar x) |
static btScalar | Lerp (btScalar a, btScalar b, btScalar t) |
static unsigned int | Hash (int x, int y, int z, const btCollisionShape *shape) |
Public Attributes | |
btAlignedObjectArray< Cell * > | cells |
btScalar | voxelsz |
btScalar | m_defaultVoxelsz |
int | puid |
int | ncells |
int | m_clampCells |
int | nprobes |
int | nqueries |
Definition at line 58 of file btSparseSDF.h.
|
inline |
Definition at line 91 of file btSparseSDF.h.
References btSparseSdf< CELLSIZE >::Reset().
|
inline |
Definition at line 289 of file btSparseSDF.h.
References btVector3, Freestyle::c, btSparseSdf< CELLSIZE >::DistanceToShape(), btSparseSdf< CELLSIZE >::voxelsz, x, y, and z.
Referenced by btSparseSdf< CELLSIZE >::Evaluate().
|
inlinestatic |
Definition at line 325 of file btSparseSDF.h.
Referenced by btSparseSdf< CELLSIZE >::Evaluate().
|
inlinestatic |
Definition at line 311 of file btSparseSDF.h.
References btConvexShape(), btTransform, btGjkEpaSolver2::SignedDistance(), and x.
Referenced by btSparseSdf< CELLSIZE >::BuildCell().
|
inline |
Definition at line 196 of file btSparseSDF.h.
References btSparseSdf< CELLSIZE >::IntFrac::b, btVector3, btSparseSdf< CELLSIZE >::BuildCell(), Freestyle::c, btSparseSdf< CELLSIZE >::cells, btSparseSdf< CELLSIZE >::Decompose(), btSparseSdf< CELLSIZE >::IntFrac::f, btSparseSdf< CELLSIZE >::Hash(), btSparseSdf< CELLSIZE >::IntFrac::i, btSparseSdf< CELLSIZE >::Lerp(), btSparseSdf< CELLSIZE >::m_clampCells, btSparseSdf< CELLSIZE >::ncells, normal, btSparseSdf< CELLSIZE >::nprobes, btSparseSdf< CELLSIZE >::nqueries, btSparseSdf< CELLSIZE >::puid, btSparseSdf< CELLSIZE >::Reset(), btSparseSdf< CELLSIZE >::voxelsz, and x.
Referenced by btSoftBody::appendDeformableAnchor(), btSoftBody::checkContact(), btSoftBody::checkDeformableContact(), btSoftBody::checkDeformableFaceContact(), and btDeformableMultiBodyDynamicsWorld::integrateTransforms().
|
inline |
Definition at line 136 of file btSparseSDF.h.
References btSparseSdf< CELLSIZE >::cells, btSparseSdf< CELLSIZE >::ncells, btSparseSdf< CELLSIZE >::Cell::next, btSparseSdf< CELLSIZE >::nprobes, btSparseSdf< CELLSIZE >::nqueries, btSparseSdf< CELLSIZE >::Cell::puid, and btSparseSdf< CELLSIZE >::puid.
|
inlinestatic |
Definition at line 347 of file btSparseSDF.h.
References HsiehHash(), ptr, result, w(), x, y, and z.
Referenced by btSparseSdf< CELLSIZE >::Evaluate().
|
inline |
Definition at line 100 of file btSparseSDF.h.
References btSparseSdf< CELLSIZE >::cells, btSparseSdf< CELLSIZE >::m_clampCells, btSparseSdf< CELLSIZE >::m_defaultVoxelsz, and btSparseSdf< CELLSIZE >::Reset().
Referenced by btDeformableMultiBodyDynamicsWorld::btDeformableMultiBodyDynamicsWorld(), btSoftMultiBodyDynamicsWorld::btSoftMultiBodyDynamicsWorld(), and btSoftRigidDynamicsWorld::btSoftRigidDynamicsWorld().
|
inlinestatic |
Definition at line 341 of file btSparseSDF.h.
References Freestyle::a, usdtokens::b(), and t.
Referenced by btSparseSdf< CELLSIZE >::Evaluate().
|
inline |
Definition at line 168 of file btSparseSDF.h.
References btSparseSdf< CELLSIZE >::cells, btSparseSdf< CELLSIZE >::Cell::next, and btSparseSdf< CELLSIZE >::Cell::pclient.
Referenced by btSoftBodyTriangleCallback::clearCache().
|
inline |
Definition at line 116 of file btSparseSDF.h.
References btSparseSdf< CELLSIZE >::cells, btSparseSdf< CELLSIZE >::m_defaultVoxelsz, btSparseSdf< CELLSIZE >::ncells, btSparseSdf< CELLSIZE >::Cell::next, btSparseSdf< CELLSIZE >::nprobes, btSparseSdf< CELLSIZE >::nqueries, btSparseSdf< CELLSIZE >::puid, and btSparseSdf< CELLSIZE >::voxelsz.
Referenced by btDeformableMultiBodyDynamicsWorld::btDeformableMultiBodyDynamicsWorld(), btSoftMultiBodyDynamicsWorld::btSoftMultiBodyDynamicsWorld(), btSoftRigidDynamicsWorld::btSoftRigidDynamicsWorld(), btSparseSdf< CELLSIZE >::Evaluate(), btSparseSdf< CELLSIZE >::Initialize(), and btSparseSdf< CELLSIZE >::~btSparseSdf().
|
inline |
Definition at line 111 of file btSparseSDF.h.
References btSparseSdf< CELLSIZE >::m_defaultVoxelsz.
Referenced by btDeformableMultiBodyDynamicsWorld::btDeformableMultiBodyDynamicsWorld().
btAlignedObjectArray<Cell*> btSparseSdf< CELLSIZE >::cells |
Definition at line 82 of file btSparseSDF.h.
Referenced by btSparseSdf< CELLSIZE >::Evaluate(), btSparseSdf< CELLSIZE >::GarbageCollect(), btSparseSdf< CELLSIZE >::Initialize(), btSparseSdf< CELLSIZE >::RemoveReferences(), and btSparseSdf< CELLSIZE >::Reset().
int btSparseSdf< CELLSIZE >::m_clampCells |
Definition at line 87 of file btSparseSDF.h.
Referenced by btSparseSdf< CELLSIZE >::Evaluate(), and btSparseSdf< CELLSIZE >::Initialize().
btScalar btSparseSdf< CELLSIZE >::m_defaultVoxelsz |
Definition at line 84 of file btSparseSDF.h.
Referenced by btSparseSdf< CELLSIZE >::Initialize(), btSparseSdf< CELLSIZE >::Reset(), and btSparseSdf< CELLSIZE >::setDefaultVoxelsz().
int btSparseSdf< CELLSIZE >::ncells |
Definition at line 86 of file btSparseSDF.h.
Referenced by btSparseSdf< CELLSIZE >::Evaluate(), btSparseSdf< CELLSIZE >::GarbageCollect(), and btSparseSdf< CELLSIZE >::Reset().
int btSparseSdf< CELLSIZE >::nprobes |
Definition at line 88 of file btSparseSDF.h.
Referenced by btSparseSdf< CELLSIZE >::Evaluate(), btSparseSdf< CELLSIZE >::GarbageCollect(), and btSparseSdf< CELLSIZE >::Reset().
int btSparseSdf< CELLSIZE >::nqueries |
Definition at line 89 of file btSparseSDF.h.
Referenced by btSparseSdf< CELLSIZE >::Evaluate(), btSparseSdf< CELLSIZE >::GarbageCollect(), and btSparseSdf< CELLSIZE >::Reset().
int btSparseSdf< CELLSIZE >::puid |
Definition at line 85 of file btSparseSDF.h.
Referenced by btSparseSdf< CELLSIZE >::Evaluate(), btSparseSdf< CELLSIZE >::GarbageCollect(), and btSparseSdf< CELLSIZE >::Reset().
btScalar btSparseSdf< CELLSIZE >::voxelsz |
Definition at line 83 of file btSparseSDF.h.
Referenced by btSparseSdf< CELLSIZE >::BuildCell(), btSparseSdf< CELLSIZE >::Evaluate(), and btSparseSdf< CELLSIZE >::Reset().