ENH: add more direct methods for getting meshEdge (PrimitivePatch)

- refine definition of patch boundary faces to distinguish between
  boundaryFaces() and uniqBoundaryFaces().

  * boundaryFaces() for edge to face lookup on boundary edges.
  * uniqBoundaryFaces() for accessing quantities such as face areas
    or eroding an outer layer

ENH: LabelledItem container, replaces unused 'Keyed' container

- method names in alignment with objectHit, pointIndexHit etc.
  Top-level name aligns with labelledTri.
This commit is contained in:
Mark Olesen
2021-05-20 09:52:53 +02:00
parent aeb9644db4
commit 2990b14d89
15 changed files with 578 additions and 410 deletions

View File

@ -244,9 +244,10 @@ int main(int argc, char *argv[])
writeFaceFaces(localPoints, localFaces, faceFaces);
const labelList bndFaceIds(pp.boundaryFaces());
const labelList bndFaceIds(pp.uniqBoundaryFaces());
Info<< "Have: " << bndFaceIds.size() << " boundary faces" << nl;
Info<< "Have: " << bndFaceIds.size()
<< " unique boundary faces" << nl;
// Can calculate by hand
if (!pp.hasFaceCentres())