9 #include "imstkPbdCollisionConstraint.h" 11 using namespace imstk;
25 const Vec3d& insertionPoint,
30 const Vec3d& contactPt,
31 const Vec3d& barycentricPt,
35 bool computeValueAndGradient(
PbdState& bodies,
36 double& c, std::vector<Vec3d>& dcdx)
override;
39 Vec3d m_insertionPoint;
40 Vec3d m_barycentricPt;
The PbdCollisionConstraint implements two sided collision. This allows the usage of differing stiffne...
std::pair< int, int > PbdParticleId
Index pair that refers to a particle in a PbdState. Index 0 is the body id, Index 1 is the particle i...
Constrains a barycentric point on a surface mesh to a rigid body arc needle.
Provides interface for accessing particles from a 2d array of PbdBody,Particles.