iMSTK
Interactive Medical Simulation Toolkit
Public Member Functions | List of all members
imstk::PbdInflatableDistanceConstraintFunctor Struct Reference
Inheritance diagram for imstk::PbdInflatableDistanceConstraintFunctor:
Inheritance graph
[legend]
Collaboration diagram for imstk::PbdInflatableDistanceConstraintFunctor:
Collaboration graph
[legend]

Public Member Functions

std::shared_ptr< PbdDistanceConstraintmakeDistConstraint (const VecDataArray< double, 3 > &vertices, int i1, int i2) override
 Create the distance constraint.
 
- Public Member Functions inherited from imstk::PbdDistanceConstraintFunctor
void operator() (PbdConstraintContainer &constraints) override
 Appends a set of constraint to the container given a geometry & body.
 
void addConstraints (PbdConstraintContainer &constraints, std::shared_ptr< std::unordered_set< size_t >> vertices) override
 Called when topology changed.
 
void setStiffness (const double stiffness)
 Get/Set the stiffness, how hard the constraint is.
 
double getStiffness () const
 
double getStretch () const
 Get/Set the factor that modifies the restlength.
 
void setStretch (double val)
 
- Public Member Functions inherited from imstk::PbdBodyConstraintFunctor
void setGeometry (std::shared_ptr< PointSet > geom)
 
void setBodyIndex (const int bodyIndex)
 
- Public Member Functions inherited from imstk::PbdConstraintFunctor
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.
 

Additional Inherited Members

- Public Attributes inherited from imstk::PbdBodyConstraintFunctor
int m_bodyIndex = 1
 
std::shared_ptr< PointSetm_geom = nullptr
 
- Protected Attributes inherited from imstk::PbdDistanceConstraintFunctor
double m_stiffness = 0.0
 
double m_stretch = 1.0
 

Detailed Description

Definition at line 74 of file imstkPbdInflatableDistanceConstraint.h.


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