Skip to content

Commit 71782d1

Browse files
committed
[algorithm] Changed FindClosestProximityAlgorithm to find the closest proximity back on the from geometry
1 parent 9b6039c commit 71782d1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/CollisionAlgorithm/algorithm/FindClosestProximityAlgorithm.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ class FindClosestProximityAlgorithm : public BaseAlgorithm {
6767

6868

6969
if (d_projective.getValue()) {
70-
auto pfromProj = projectFromOp(pdest->getPosition(),itfrom->element()).prox;
70+
//auto pfromProj = projectFromOp(pdest->getPosition(),itfrom->element()).prox;
71+
auto projectOnShaft = Operations::Project::Operation::get(l_from);
72+
auto findClosestProxOnShaft = Operations::FindClosestProximity::Operation::get(l_from);
73+
auto pfromProj = findClosestProxOnShaft(pdest, l_from, projectOnShaft, getFilterFunc());
7174
if (pfromProj == nullptr) continue;
7275
pfromProj->normalize();
7376

0 commit comments

Comments
 (0)