Skip to content

Commit 5352fb4

Browse files
committed
[algorithm] Absorb the FindClosestProximity for shaft collision
1 parent ec35524 commit 5352fb4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/CollisionAlgorithm/algorithm/InsertionAlgorithm.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,15 @@ class InsertionAlgorithm : public BaseAlgorithm
205205
if (!shaftProx) continue;
206206
shaftProx->normalize();
207207
}
208+
else
209+
{
210+
auto findClosestProxOnShaft =
211+
Operations::FindClosestProximity::Operation::get(l_shaftGeom);
212+
shaftProx = findClosestProxOnShaft(surfProx, l_shaftGeom,
213+
projectOnShaft, getFilterFunc());
214+
if (!shaftProx) continue;
215+
shaftProx->normalize();
216+
}
208217
collisionOutput.add(shaftProx, surfProx);
209218
}
210219
}

0 commit comments

Comments
 (0)