BUG: matchPoints: use 2* match tolerance as tolerance in magSqr comparison

This commit is contained in:
mattijs
2011-06-22 14:29:39 +01:00
parent a38774d7e6
commit dc6d296372

View File

@ -66,7 +66,7 @@ bool Foam::matchPoints
scalar matchDist = matchDistances[face0I]; scalar matchDist = matchDistances[face0I];
label startI = findLower(pts1MagSqr, 0.99999*dist0 - matchDist); label startI = findLower(pts1MagSqr, 0.99999*dist0 - 2*matchDist);
if (startI == -1) if (startI == -1)
{ {
@ -83,7 +83,7 @@ bool Foam::matchPoints
label j = startI; label j = startI;
( (
(j < pts1MagSqr.size()) (j < pts1MagSqr.size())
&& (pts1MagSqr[j] < 1.00001*dist0 + matchDist) && (pts1MagSqr[j] < 1.00001*dist0 + 2*matchDist)
); );
j++ j++
) )
@ -117,7 +117,7 @@ bool Foam::matchPoints
label j = startI; label j = startI;
( (
(j < pts1MagSqr.size()) (j < pts1MagSqr.size())
&& (pts1MagSqr[j] < 1.00001*dist0 + matchDist) && (pts1MagSqr[j] < 1.00001*dist0 + 2*matchDist)
); );
j++ j++
) )