mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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.
This commit is contained in:
@ -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();
|
||||
nearest.setHit();
|
||||
nearest.setPoint(curHit.hitPoint());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user