|
Blender V5.0
|
#include <btSparseSDF.h>
Classes | |
| struct | IntFrac |
| struct | Cell |
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 Reset().
|
inline |
Definition at line 289 of file btSparseSDF.h.
References btVector3, btSparseSdf< CELLSIZE >::Cell::c, btSparseSdf< CELLSIZE >::Cell::d, DistanceToShape(), i, btSparseSdf< CELLSIZE >::Cell::pclient, voxelsz, x, y, and z().
Referenced by Evaluate().
|
inlinestatic |
Definition at line 325 of file btSparseSDF.h.
References btSparseSdf< CELLSIZE >::IntFrac::b, btSparseSdf< CELLSIZE >::IntFrac::f, btSparseSdf< CELLSIZE >::IntFrac::i, and x.
Referenced by Evaluate().
|
inlinestatic |
Definition at line 311 of file btSparseSDF.h.
References btCollisionShape, btConvexShape(), btTransform, btVector3, btGjkEpaSolver2::SignedDistance(), and x.
Referenced by BuildCell().
|
inline |
Definition at line 196 of file btSparseSDF.h.
References btSparseSdf< CELLSIZE >::IntFrac::b, btCollisionShape, btVector3, BuildCell(), btSparseSdf< CELLSIZE >::Cell::c, cells, btSparseSdf< CELLSIZE >::Cell::d, Decompose(), btSparseSdf< CELLSIZE >::IntFrac::f, Hash(), btSparseSdf< CELLSIZE >::Cell::hash, btSparseSdf< CELLSIZE >::IntFrac::i, Lerp(), m_clampCells, ncells, btSparseSdf< CELLSIZE >::Cell::next, nprobes, nqueries, btSparseSdf< CELLSIZE >::Cell::pclient, btSparseSdf< CELLSIZE >::Cell::puid, puid, Reset(), voxelsz, and x.
Referenced by btDeformableMultiBodyDynamicsWorld::integrateTransforms().
|
inline |
Definition at line 136 of file btSparseSDF.h.
References cells, i, ncells, btSparseSdf< CELLSIZE >::Cell::next, nprobes, nqueries, btSparseSdf< CELLSIZE >::Cell::puid, and puid.
|
inlinestatic |
Definition at line 347 of file btSparseSDF.h.
References btCollisionShape, HsiehHash(), ptr, result, w(), x, y, and z().
Referenced by Evaluate().
|
inline |
Definition at line 100 of file btSparseSDF.h.
References cells, m_clampCells, m_defaultVoxelsz, and Reset().
|
inlinestatic |
|
inline |
Definition at line 168 of file btSparseSDF.h.
References btCollisionShape, cells, i, btSparseSdf< CELLSIZE >::Cell::next, and btSparseSdf< CELLSIZE >::Cell::pclient.
|
inline |
Definition at line 116 of file btSparseSDF.h.
References cells, i, m_defaultVoxelsz, ncells, btSparseSdf< CELLSIZE >::Cell::next, nprobes, nqueries, puid, and voxelsz.
Referenced by Evaluate(), Initialize(), and ~btSparseSdf().
|
inline |
Definition at line 111 of file btSparseSDF.h.
References m_defaultVoxelsz.
| btAlignedObjectArray<Cell*> btSparseSdf< CELLSIZE >::cells |
Definition at line 82 of file btSparseSDF.h.
Referenced by Evaluate(), GarbageCollect(), Initialize(), RemoveReferences(), and Reset().
| int btSparseSdf< CELLSIZE >::m_clampCells |
Definition at line 87 of file btSparseSDF.h.
Referenced by Evaluate(), and Initialize().
| btScalar btSparseSdf< CELLSIZE >::m_defaultVoxelsz |
Definition at line 84 of file btSparseSDF.h.
Referenced by Initialize(), Reset(), and setDefaultVoxelsz().
| int btSparseSdf< CELLSIZE >::ncells |
Definition at line 86 of file btSparseSDF.h.
Referenced by Evaluate(), GarbageCollect(), and Reset().
| int btSparseSdf< CELLSIZE >::nprobes |
Definition at line 88 of file btSparseSDF.h.
Referenced by Evaluate(), GarbageCollect(), and Reset().
| int btSparseSdf< CELLSIZE >::nqueries |
Definition at line 89 of file btSparseSDF.h.
Referenced by Evaluate(), GarbageCollect(), and Reset().
| int btSparseSdf< CELLSIZE >::puid |
Definition at line 85 of file btSparseSDF.h.
Referenced by Evaluate(), GarbageCollect(), and Reset().
| btScalar btSparseSdf< CELLSIZE >::voxelsz |
Definition at line 83 of file btSparseSDF.h.
Referenced by BuildCell(), Evaluate(), and Reset().