ENH: polyBoundaryMesh additional faces() and faceOwner() slice methods

- return a subList view of the mesh faces, owners
This commit is contained in:
Mark Olesen
2023-11-06 13:58:00 +01:00
parent 546b204793
commit 08a9b03891
3 changed files with 36 additions and 2 deletions

View File

@ -52,9 +52,9 @@ void writeVTKtetMesh(const fileName& output, const polyMesh& mesh_)
{
nTets += 2 * faces[facei].nTriangles();
}
for (label facei = mesh_.nInternalFaces(); facei < mesh_.nFaces(); ++facei)
for (const face& f : mesh_.boundaryMesh().faces())
{
nTets += faces[facei].nTriangles();
nTets += f.nTriangles();
}
const label nPoints = (mesh_.nPoints() + mesh_.nCells());