Skip to content

Commit a7364a9

Browse files
committed
[algorithm] Remove projection operation on tip in the InsertionAlgorithm- completely unnecessary
1 parent e042ea6 commit a7364a9

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/CollisionAlgorithm/algorithm/InsertionAlgorithm.h

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ class InsertionAlgorithm : public BaseAlgorithm
136136
auto projectOnSurf = Operations::Project::Operation::get(l_surfGeom);
137137
auto projectOnTip = Operations::Project::Operation::get(l_tipGeom);
138138

139-
const bool isProjective = d_projective.getValue();
140139
const SReal punctureForceThreshold = d_punctureForceThreshold.getValue();
141140
for (auto itTip = l_tipGeom->begin(); itTip != l_tipGeom->end(); itTip++)
142141
{
@@ -167,13 +166,7 @@ class InsertionAlgorithm : public BaseAlgorithm
167166
}
168167
}
169168

170-
// 1.2 If not, create a proximity pair for the tip-surface collision
171-
if (isProjective)
172-
{
173-
tipProx = projectOnTip(surfProx->getPosition(), itTip->element()).prox;
174-
if (!tipProx) continue;
175-
tipProx->normalize();
176-
}
169+
// ... if not, create a proximity pair for the tip-surface collision
177170
collisionOutput.add(tipProx, surfProx);
178171
}
179172
}

0 commit comments

Comments
 (0)