iMSTK
Interactive Medical Simulation Toolkit
|
PbdBendConstraintFunctor generates constraints per cell of a LineMesh. 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 | setStride (const int stride) |
Get/Set the stride, that is the amount of lines between every bend constraint. | |
int | getStride () const |
double | getRestLength () const |
Get/Set the rest length, if not specified or negative the rest length will default to what it was when initialized. | |
void | setRestLength (const double restLength) |
![]() | |
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 |
int | m_stride = 3 |
double | m_restLengthOverride = -1.0 |
Additional Inherited Members | |
![]() | |
int | m_bodyIndex = 1 |
std::shared_ptr< PointSet > | m_geom = nullptr |
PbdBendConstraintFunctor generates constraints per cell of a LineMesh.
Definition at line 534 of file imstkPbdConstraintFunctor.h.