ENH: add findIndex/Indices to polyBoundaryMesh, align polyPatchID, ZoneID with keyType syntax

This commit is contained in:
Mark Olesen
2010-08-04 17:01:43 +02:00
parent 1866a2b0fd
commit 2d93b5c202
7 changed files with 203 additions and 115 deletions

View File

@ -134,19 +134,15 @@ bool Foam::sampledPlane::update()
sampledSurface::clearGeom();
PackedBoolList cellsInZone;
if (zoneKey_.size())
{
cellsInZone = mesh().cellZones().inZone(zoneKey_);
}
labelList selectedCells = mesh().cellZones().findMatching(zoneKey_).used();
if (cellsInZone.empty())
if (selectedCells.empty())
{
reCut(mesh(), true); // always triangulate. Note:Make option?
}
else
{
reCut(mesh(), true, cellsInZone.used()());
reCut(mesh(), true, selectedCells);
}
if (debug)