File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
src/CollisionAlgorithm/algorithm Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -191,6 +191,7 @@ class SOFA_COLLISIONALGORITHM_API InsertionAlgorithm : public BaseAlgorithm
191191
192192 // Shaft collision sequence - Disable if coupling points have been added
193193 sofa::helper::AdvancedTimer::stepBegin (" Shaft collision - " +this ->getName ());
194+
194195 if (d_enableShaftCollision.getValue () && m_couplingPts.empty () && l_shaftGeom)
195196 {
196197 auto createShaftProximity =
@@ -230,6 +231,7 @@ class SOFA_COLLISIONALGORITHM_API InsertionAlgorithm : public BaseAlgorithm
230231 {
231232 // Insertion sequence
232233 sofa::helper::AdvancedTimer::stepBegin (" Needle insertion - " + this ->getName ());
234+
233235 if (!d_enableInsertion.getValue () || !l_tipGeom || !l_volGeom || !l_shaftGeom) return ;
234236
235237 ElementIterator::SPtr itTip = l_tipGeom->begin ();
@@ -332,6 +334,7 @@ class SOFA_COLLISIONALGORITHM_API InsertionAlgorithm : public BaseAlgorithm
332334 }
333335
334336 sofa::helper::AdvancedTimer::stepBegin (" Reproject coupling points - " +this ->getName ());
337+
335338 if (d_enableInsertion.getValue () && !m_couplingPts.empty () && l_shaftGeom)
336339 {
337340 // Reprojection on shaft geometry sequence
You can’t perform that action at this time.
0 commit comments