BUG: snappyHexMesh: detect gaps

This commit is contained in:
mattijs
2013-09-20 17:32:26 +01:00
parent 69d83b5208
commit 09313fa7ce

View File

@ -1245,6 +1245,11 @@ bool Foam::meshRefinement::isGap
}
if (avg != vector::zero)
{
avg /= mag(avg);
// Check normal distance of intersection locations
if (mag(avg&d) > mergeDistance())
{
return true;
}
@ -1258,6 +1263,11 @@ bool Foam::meshRefinement::isGap
return false;
}
}
else
{
return false;
}
}
// Mark small gaps