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

Public Member Functions

void setConnectiveStrandObj (std::shared_ptr< PbdObject > connectiveStrandObj)
 Sets PBD object that represents the connective tissue. This must use a line mesh for the physics mesh.
 
void generateDistanceConstraints ()
 Creates distance constraints for the connective strands using the default m_distStiffness value. To modify the stiffness, call setDistStiffness before calling generateDistanceConstraints.
 
void setConnectedObjA (std::shared_ptr< PbdObject > objA)
 Sets PBD object to connect to connective strands assumes the surface mesh of ObjA is coincident with the end points of one side of the strands.
 
void setConnectedObjB (std::shared_ptr< PbdObject > objB)
 Sets PBD object to connect to connective straints assumes the surface mesh of ObjB is coincident with the end points of one side of the strands.
 
void operator() (PbdConstraintContainer &constraints) override
 Appends a set of constraint to the container given a geometry & body.
 
void setDistStiffness (double stiffness)
 Get/Set the stiffness for the distance constraint.
 
double getDistStiffness ()
 
void setTolerance (double tolerance)
 Get/Set Tolerance for checking coincidence of surface to line mesh.
 
double getTolerance ()
 
- 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.
 

Protected Member Functions

void connectLineToTetMesh (std::shared_ptr< PbdObject > pbdObj, PbdConstraintContainer &constraints)
 Used to generate connecting constraints when the body being attached uses a tet mesh as the physics mesh.
 
void connectLineToSurfMesh (std::shared_ptr< PbdObject > pbdObj, PbdConstraintContainer &constraints)
 Used to generate connecting constraints when the body being attached uses a surface mesh as the physics mesh.
 

Protected Attributes

std::shared_ptr< PbdObjectm_connectiveStrandObj = nullptr
 Connective tissue that is made.
 
std::shared_ptr< PbdObjectm_objA = nullptr
 Organ being connected.
 
std::shared_ptr< PbdObjectm_objB = nullptr
 Organ being connected.
 
double m_distStiffness = 50.0
 Stiffness used for distance constraints.
 
double m_tolerance = 0.00001
 Tolerance for checking coincidence of surface to line mesh.
 

Additional Inherited Members

- Public Attributes inherited from imstk::PbdBodyConstraintFunctor
int m_bodyIndex = 1
 
std::shared_ptr< PointSetm_geom = nullptr
 

Detailed Description

Definition at line 33 of file imstkPbdConnectiveTissueConstraintGenerator.h.


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