BUG: distanceSurface has gaps in mesh (#1374)

- need to be more generous when prefiltering the cell selection
This commit is contained in:
Mark Olesen
2019-07-12 16:38:04 +02:00
committed by Andrew Heather
parent 658d660333
commit bb35d784a2

View File

@ -209,6 +209,9 @@ void Foam::distanceSurface::createGeometry()
cellBb.clear();
cellBb.add(fvm.points(), fvm.cellPoints(i));
// Expand slightly to catch corners
cellBb.inflate(0.1);
if (!cellBb.contains(nearest[i].hitPoint()))
{
ignoreCells.set(i);