Commit dc6d2963 authored by mattijs's avatar mattijs
Browse files

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

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