Skip to content
Snippets Groups Projects
Commit 29f40776 authored by graham's avatar graham
Browse files

Fixing bug in faceIntersection where the sign of the distance was

being discarded on return from the triPointRef intersecion test.  Was
only appearing when using FULL_RAY tests.
parent 822019bb
No related branches found
No related tags found
No related merge requests found
...@@ -159,9 +159,9 @@ Foam::pointHit Foam::face::intersection ...@@ -159,9 +159,9 @@ Foam::pointHit Foam::face::intersection
if (curHit.hit()) if (curHit.hit())
{ {
if (Foam::mag(curHit.distance()) < nearestHitDist) if (Foam::mag(curHit.distance()) < Foam::mag(nearestHitDist))
{ {
nearestHitDist = Foam::mag(curHit.distance()); nearestHitDist = curHit.distance();
nearest.setHit(); nearest.setHit();
nearest.setPoint(curHit.hitPoint()); nearest.setPoint(curHit.hitPoint());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment