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
......@@ -159,9 +159,9 @@ Foam::pointHit Foam::face::intersection
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();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment