Blender V4.3
btMiniSDF Struct Reference

#include <btMiniSDF.h>

Public Member Functions

 btMiniSDF ()
 
bool load (const char *data, int size)
 
bool isValid () const
 
unsigned int multiToSingleIndex (btMultiIndex const &ijk) const
 
btAlignedBox3d subdomain (btMultiIndex const &ijk) const
 
btMultiIndex singleToMultiIndex (unsigned int l) const
 
btAlignedBox3d subdomain (unsigned int l) const
 
btShapeMatrix shape_function_ (btVector3 const &xi, btShapeGradients *gradient=0) const
 
bool interpolate (unsigned int field_id, double &dist, btVector3 const &x, btVector3 *gradient) const
 

Public Attributes

btAlignedBox3d m_domain
 
unsigned int m_resolution [3]
 
btVector3 m_cell_size
 
btVector3 m_inv_cell_size
 
std::size_t m_n_cells
 
std::size_t m_n_fields
 
bool m_isValid
 
btAlignedObjectArray< btAlignedObjectArray< double > > m_nodes
 
btAlignedObjectArray< btAlignedObjectArray< btCell32 > > m_cells
 
btAlignedObjectArray< btAlignedObjectArray< unsigned int > > m_cell_map
 

Detailed Description

Definition at line 90 of file btMiniSDF.h.

Constructor & Destructor Documentation

◆ btMiniSDF()

btMiniSDF::btMiniSDF ( )
inline

Definition at line 104 of file btMiniSDF.h.

Member Function Documentation

◆ interpolate()

◆ isValid()

bool btMiniSDF::isValid ( ) const
inline

Definition at line 109 of file btMiniSDF.h.

References m_isValid.

Referenced by btSdfCollisionShape::getAabb().

◆ load()

◆ multiToSingleIndex()

unsigned int btMiniSDF::multiToSingleIndex ( btMultiIndex const & ijk) const

Definition at line 155 of file btMiniSDF.cpp.

References btMultiIndex::ijk, and m_resolution.

Referenced by interpolate().

◆ shape_function_()

btShapeMatrix btMiniSDF::shape_function_ ( btVector3 const & xi,
btShapeGradients * gradient = 0 ) const

◆ singleToMultiIndex()

btMultiIndex btMiniSDF::singleToMultiIndex ( unsigned int l) const

Definition at line 176 of file btMiniSDF.cpp.

References btAssert, btMultiIndex::ijk, l, m_isValid, and m_resolution.

Referenced by subdomain().

◆ subdomain() [1/2]

btAlignedBox3d btMiniSDF::subdomain ( btMultiIndex const & ijk) const

Definition at line 161 of file btMiniSDF.cpp.

References btAssert, double(), btMultiIndex::ijk, m_cell_size, m_domain, m_isValid, and btAlignedBox3d::min().

Referenced by interpolate(), and subdomain().

◆ subdomain() [2/2]

btAlignedBox3d btMiniSDF::subdomain ( unsigned int l) const

Definition at line 192 of file btMiniSDF.cpp.

References btAssert, l, m_isValid, singleToMultiIndex(), and subdomain().

Member Data Documentation

◆ m_cell_map

btAlignedObjectArray<btAlignedObjectArray<unsigned int> > btMiniSDF::m_cell_map

Definition at line 102 of file btMiniSDF.h.

Referenced by interpolate(), and load().

◆ m_cell_size

btVector3 btMiniSDF::m_cell_size

Definition at line 94 of file btMiniSDF.h.

Referenced by load(), and subdomain().

◆ m_cells

Definition at line 101 of file btMiniSDF.h.

Referenced by interpolate(), and load().

◆ m_domain

btAlignedBox3d btMiniSDF::m_domain

Definition at line 92 of file btMiniSDF.h.

Referenced by btSdfCollisionShape::getAabb(), interpolate(), load(), and subdomain().

◆ m_inv_cell_size

btVector3 btMiniSDF::m_inv_cell_size

Definition at line 95 of file btMiniSDF.h.

Referenced by interpolate(), and load().

◆ m_isValid

bool btMiniSDF::m_isValid

◆ m_n_cells

std::size_t btMiniSDF::m_n_cells

Definition at line 96 of file btMiniSDF.h.

Referenced by load().

◆ m_n_fields

std::size_t btMiniSDF::m_n_fields

Definition at line 97 of file btMiniSDF.h.

Referenced by load().

◆ m_nodes

Definition at line 100 of file btMiniSDF.h.

Referenced by interpolate(), and load().

◆ m_resolution

unsigned int btMiniSDF::m_resolution[3]

Definition at line 93 of file btMiniSDF.h.

Referenced by interpolate(), load(), multiToSingleIndex(), and singleToMultiIndex().


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