iMSTK
Interactive Medical Simulation Toolkit
|
This example demonstrates needle contact and puncture with tetrahedral meshed tissues. A organ, meshed with TetWild, is setup along with another skin layer. Both are simualted with PBD-based St. Venant Kirchoff model. A needle is also simualted with PBD rigid bodies and given a single line element as a collision geometry. The tool is controlled with virtual coupling.
Finally two NeedleInteraction
are setup with the organ+skin tissues to the rigid tool:
With NeedleInteraction
the needle is allowed to transition from a collision to puncturing state after the force threshold is exceeded. Once transitioned, collisions are disabled until the needle is removed again. Once punctured the embedding constraints kick in and constraint the needle to the original puncture locations on the triangles via the initial barycentric coordinates when it entered that triangle.