We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68e2a6c commit 2b56205Copy full SHA for 2b56205
src/sofa/collisionAlgorithm/algorithm/InsertionAlgorithm.h
@@ -296,6 +296,11 @@ class InsertionAlgorithm : public BaseAlgorithm
296
shaftProx->normalize();
297
insertionOutput.add(shaftProx, m_couplingPts[i]);
298
}
299
+ // This is a final-frontier check: If there are coupling points stored, but the
300
+ // findClosestProxOnShaf operation yields no proximities on the shaft, it could be
301
+ // because the needle has exited abruptly. Thus, we clear the coupling points.
302
+ if (insertionOutput.size() == 0)
303
+ m_couplingPts.clear();
304
305
306
d_collisionOutput.endEdit();
0 commit comments