Skip to content

Commit d2afd61

Browse files
authored
Merge branch 'master' into dev-profiling
2 parents 193b847 + aa7174d commit d2afd61

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/CollisionAlgorithm/algorithm/InsertionAlgorithm.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)