Commit aa7cce91 authored by Mark Olesen's avatar Mark Olesen
Browse files

STYLE: eliminate unnecessary DIY version of cellPoints(label)

parent 3366a16b
......@@ -91,30 +91,11 @@ void Foam::cuttingSurface::calcCellCuts
boundBox cellBb;
labelHashSet cpts;
for (const label celli : cellCuts)
{
cellBb.clear();
if (fvm.hasCellPoints())
{
cellBb.add(pts, fvm.cellPoints(celli));
}
else
{
// DIY version of cellPoints
cpts.clear();
const cell& cFaces = cells[celli];
for (const label facei : cFaces)
{
cpts.insert(faces[facei]);
}
cellBb.add(pts, cpts);
}
cellBb.add(pts, fvm.cellPoints(celli));
if (!cellBb.contains(nearest[celli].hitPoint()))
{
......
......@@ -202,8 +202,6 @@ void Foam::distanceSurface::createGeometry()
: Foam::sign(diff & norms[i]) * Foam::mag(diff)
);
// Since cellPoints() is used in isoSurfaceCell too,
// no additional overhead caused here
if (filterCells)
{
cellBb.clear();
......
Markdown is supported
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