ENH: accept bitSet for MeshedSurface::subsetMesh

- add triSurface::subsetMesh single-parameter variant
This commit is contained in:
Mark Olesen
2019-07-12 08:54:34 +02:00
committed by Andrew Heather
parent 4380349f45
commit f1a48a3c2f
15 changed files with 89 additions and 124 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2015 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2015-2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2016 OpenFOAM Foundation
@ -379,12 +379,7 @@ int main(int argc, char *argv[])
// Create subsetted surface
labelList pointMap;
labelList faceMap;
triSurface surf2
(
surf1.subsetMesh(facesToSubset, pointMap, faceMap)
);
triSurface surf2(surf1.subsetMesh(facesToSubset));
Info<< "Subset:" << endl;
surf2.writeStats(Info);