Skip to content

Commit

Permalink
[SofaGeneralMeshCollision] revert break in TriangleOctree..
Browse files Browse the repository at this point in the history
  • Loading branch information
epernod authored Jan 7, 2019
1 parent c91ef5e commit de3f1a7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions modules/SofaGeneralMeshCollision/TriangleOctree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,6 @@ int TriangleOctree::trace (const defaulttype::Vector3 & origin,
if (idxMin != -1)
return nearestTriangle (idxMin, origin1, direction1,result);
}
break;
case END:
if(idxMin==-1&&objects.size())
return nearestTriangle (objects[0], origin1, direction1,result);
Expand Down Expand Up @@ -711,7 +710,6 @@ void TriangleOctree::traceAll (const defaulttype::Vector3 & origin,
childVec[7 ^ a]->traceAll (origin, direction, txm, tym,
tzm, tx1, ty1, tz1, a, b,origin1,direction1,results);
}
break;
case END:
allTriangles (origin1, direction1, results);
return;
Expand Down

0 comments on commit de3f1a7

Please sign in to comment.