have two hits

This commit is contained in:
mattijs
2008-10-02 08:42:21 +01:00
parent 83d33e425a
commit ce88985738

View File

@ -826,6 +826,19 @@ void Foam::refinementSurfaces::findNearestIntersection
}
}
}
// Make sure that if hit1 has hit something, hit2 will have at least the
// same point (due to tolerances it might miss its end point)
forAll(hit1, pointI)
{
if (hit1[pointI].hit() && !hit2[pointI].hit())
{
hit2[pointI] = hit1[pointI];
surface2[pointI] = surface1[pointI];
region2[pointI] = region1[pointI];
}
}
}