Blender  V3.3
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
btSparseSdf< CELLSIZE > Struct Template Reference

#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
 

Detailed Description

template<const int CELLSIZE>
struct btSparseSdf< CELLSIZE >

Definition at line 58 of file btSparseSDF.h.

Constructor & Destructor Documentation

◆ ~btSparseSdf()

template<const int CELLSIZE>
btSparseSdf< CELLSIZE >::~btSparseSdf ( )
inline

Definition at line 91 of file btSparseSDF.h.

References btSparseSdf< CELLSIZE >::Reset().

Member Function Documentation

◆ BuildCell()

template<const int CELLSIZE>
void btSparseSdf< CELLSIZE >::BuildCell ( Cell c)
inline

◆ Decompose()

template<const int CELLSIZE>
static IntFrac btSparseSdf< CELLSIZE >::Decompose ( btScalar  x)
inlinestatic

Definition at line 325 of file btSparseSDF.h.

References r, and x.

Referenced by btSparseSdf< CELLSIZE >::Evaluate().

◆ DistanceToShape()

template<const int CELLSIZE>
static btScalar btSparseSdf< CELLSIZE >::DistanceToShape ( const btVector3 x,
const btCollisionShape shape 
)
inlinestatic

◆ Evaluate()

template<const int CELLSIZE>
btScalar btSparseSdf< CELLSIZE >::Evaluate ( const btVector3 x,
const btCollisionShape shape,
btVector3 normal,
btScalar  margin 
)
inline

◆ GarbageCollect()

template<const int CELLSIZE>
void btSparseSdf< CELLSIZE >::GarbageCollect ( int  lifetime = 256)
inline

◆ Hash()

template<const int CELLSIZE>
static unsigned int btSparseSdf< CELLSIZE >::Hash ( int  x,
int  y,
int  z,
const btCollisionShape shape 
)
inlinestatic

Definition at line 347 of file btSparseSDF.h.

References HsiehHash(), ptr, result, w(), x, y, and z.

Referenced by btSparseSdf< CELLSIZE >::Evaluate().

◆ Initialize()

template<const int CELLSIZE>
void btSparseSdf< CELLSIZE >::Initialize ( int  hashsize = 2383,
int  clampCells = 256 * 1024 
)
inline

◆ Lerp()

template<const int CELLSIZE>
static btScalar btSparseSdf< CELLSIZE >::Lerp ( btScalar  a,
btScalar  b,
btScalar  t 
)
inlinestatic

Definition at line 341 of file btSparseSDF.h.

References Freestyle::a, usdtokens::b(), and t.

Referenced by btSparseSdf< CELLSIZE >::Evaluate().

◆ RemoveReferences()

template<const int CELLSIZE>
int btSparseSdf< CELLSIZE >::RemoveReferences ( btCollisionShape pcs)
inline

◆ Reset()

template<const int CELLSIZE>
void btSparseSdf< CELLSIZE >::Reset ( )
inline

◆ setDefaultVoxelsz()

template<const int CELLSIZE>
void btSparseSdf< CELLSIZE >::setDefaultVoxelsz ( btScalar  sz)
inline

Member Data Documentation

◆ cells

template<const int CELLSIZE>
btAlignedObjectArray<Cell*> btSparseSdf< CELLSIZE >::cells

◆ m_clampCells

template<const int CELLSIZE>
int btSparseSdf< CELLSIZE >::m_clampCells

◆ m_defaultVoxelsz

template<const int CELLSIZE>
btScalar btSparseSdf< CELLSIZE >::m_defaultVoxelsz

◆ ncells

template<const int CELLSIZE>
int btSparseSdf< CELLSIZE >::ncells

◆ nprobes

template<const int CELLSIZE>
int btSparseSdf< CELLSIZE >::nprobes

◆ nqueries

template<const int CELLSIZE>
int btSparseSdf< CELLSIZE >::nqueries

◆ puid

template<const int CELLSIZE>
int btSparseSdf< CELLSIZE >::puid

◆ voxelsz

template<const int CELLSIZE>
btScalar btSparseSdf< CELLSIZE >::voxelsz

The documentation for this struct was generated from the following file: