Skip to content

Commit 7972e08

Browse files
committed
[algorithm] small change to fix ci
1 parent 35d0739 commit 7972e08

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/sofa/collisionAlgorithm/algorithm/InsertionAlgorithm.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ class InsertionAlgorithm : public BaseAlgorithm
136136

137137
const bool isProjective = d_projective.getValue();
138138
const SReal punctureForceThreshold = d_punctureForceThreshold.getValue();
139-
for (const auto& itTip : *l_tipGeom)
139+
for (auto itTip = l_tipGeom->begin(); itTip != l_tipGeom->end(); itTip++)
140140
{
141-
BaseProximity::SPtr tipProx = createTipProximity(itTip.element());
141+
BaseProximity::SPtr tipProx = createTipProximity(itTip->element());
142142
if (!tipProx) continue;
143143
const BaseProximity::SPtr surfProx = findClosestProxOnSurf(
144144
tipProx, l_surfGeom.get(), projectOnSurf, getFilterFunc());
@@ -167,7 +167,7 @@ class InsertionAlgorithm : public BaseAlgorithm
167167
// 1.2 If not, create a proximity pair for the tip-surface collision
168168
if (isProjective)
169169
{
170-
tipProx = projectOnTip(surfProx->getPosition(), itTip.element()).prox;
170+
tipProx = projectOnTip(surfProx->getPosition(), itTip->element()).prox;
171171
if (!tipProx) continue;
172172
tipProx->normalize();
173173
}
@@ -181,9 +181,9 @@ class InsertionAlgorithm : public BaseAlgorithm
181181
auto createShaftProximity =
182182
Operations::CreateCenterProximity::Operation::get(l_shaftGeom->getTypeInfo());
183183
auto projectOnShaft = Operations::Project::Operation::get(l_shaftGeom);
184-
for (const auto& itShaft : *l_shaftGeom)
184+
for (auto itShaft = l_shaftGeom->begin(); itShaft != l_shaftGeom->end(); itShaft++)
185185
{
186-
BaseProximity::SPtr shaftProx = createShaftProximity(itShaft.element());
186+
BaseProximity::SPtr shaftProx = createShaftProximity(itShaft->element());
187187
if (!shaftProx) continue;
188188
const BaseProximity::SPtr surfProx = findClosestProxOnSurf(
189189
shaftProx, l_surfGeom.get(), projectOnSurf, getFilterFunc());
@@ -194,7 +194,7 @@ class InsertionAlgorithm : public BaseAlgorithm
194194
// 1.2 If not, create a proximity pair for the tip-surface collision
195195
if (d_projective.getValue())
196196
{
197-
shaftProx = projectOnShaft(surfProx->getPosition(), itShaft.element()).prox;
197+
shaftProx = projectOnShaft(surfProx->getPosition(), itShaft->element()).prox;
198198
if (!shaftProx) continue;
199199
shaftProx->normalize();
200200
}

0 commit comments

Comments
 (0)