iMSTK
Interactive Medical Simulation Toolkit
|
PbdConstantDensityConstraintFunctor generates a global constant density constraint for an entire PointSet. More...
#include <imstkPbdConstraintFunctor.h>
Public Member Functions | |
void | operator() (PbdConstraintContainer &constraints) override |
Appends a set of constraint to the container given a geometry & body. | |
void | setStiffness (const double stiffness) |
Get/Set the stiffness, how hard the constraint is. | |
double | getStiffness () const |
void | setParticleRadius (const double particleRadius) |
Get/Set the stiffness, how hard the constraint is. | |
double | getParticleRadius () const |
void | setRestDensity (const double restDensity) |
Get/Set the resting density, default rest density of water for m. | |
double | getRestDensity () const |
![]() | |
void | setGeometry (std::shared_ptr< PointSet > geom) |
void | setBodyIndex (const int bodyIndex) |
![]() | |
virtual void | addConstraints (PbdConstraintContainer &imstkNotUsed(constraints), std::shared_ptr< std::unordered_set< size_t >> imstkNotUsed(vertices)) |
Appends a set of constraint to the container given a geometry and a set of newly inserted vertices This is for dealing with topology diffs during runtime. | |
Protected Attributes | |
double | m_stiffness = 0.0 |
double | m_particleRadius = 0.2 |
double | m_restDensity = 6378.0 |
Additional Inherited Members | |
![]() | |
int | m_bodyIndex = 1 |
std::shared_ptr< PointSet > | m_geom = nullptr |
PbdConstantDensityConstraintFunctor generates a global constant density constraint for an entire PointSet.
Definition at line 833 of file imstkPbdConstraintFunctor.h.