Go to the documentation of this file.
229 const label nCutLayers,
282 const primitiveMesh&
mesh,
295 List<pointStatus> pointSide(
mesh.
nPoints(), NOTSET);
297 for (label celli = 0; celli <
mesh.
nCells(); celli++)
299 if (internalCells.found(celli))
306 const face&
f = faces[cFaces[cFacei]];
310 label pointi =
f[fp];
312 if (pointSide[pointi] == NOTSET)
314 pointSide[pointi] = INSIDE;
316 else if (pointSide[pointi] == OUTSIDE)
318 pointSide[pointi] = MIXED;
334 const face&
f = faces[cFaces[cFacei]];
338 label pointi =
f[fp];
340 if (pointSide[pointi] == NOTSET)
342 pointSide[pointi] = OUTSIDE;
344 else if (pointSide[pointi] == INSIDE)
346 pointSide[pointi] = MIXED;
376 for (
const label celli : internalCells)
378 const cell& cFaces =
cells[celli];
380 label usesMixedOnly =
true;
382 for (
const label facei : cFaces)
384 const face&
f = faces[facei];
386 for (
const label pointi :
f)
388 if (pointSide[pointi] != MIXED)
390 usesMixedOnly =
false;
402 mixedOnlyCells.insert(celli);
406 return mixedOnlyCells;
List< label > labelList
A List of labels.
static labelHashSet getHangingCells(const primitiveMesh &mesh, const labelHashSet &internalCells)
static void getSurfaceSets(const polyMesh &mesh, const fileName &surfName, const triSurface &surf, const triSurfaceSearch &querySurf, const pointField &outsidePts, const label nCutLayers, labelHashSet &inside, labelHashSet &outside, labelHashSet &cut)
Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search.
A class for handling file names.
const cellList & cells() const
A HashTable with keys but without contents that is similar to std::unordered_set.
Helper class to search on triSurface.
Mesh consisting of general polyhedral cells.
label nPoints() const noexcept
label nCells() const noexcept
Generic templated field type.
Triangulated surface description with patch information.
List< cell > cellList
A List of cells.
Patchify triangles based on orientation w.r.t other (triangulated or triangulatable) surfaces.
'Cuts' a mesh with a surface.
virtual const faceList & faces() const
List< face > faceList
A List of faces.
bool insert(const Key &key)
A face is a list of labels corresponding to mesh vertices.
HashSet< label, Hash< label > > labelHashSet
A HashSet with label keys and label hasher.
A cell is defined as a list of faces with extra functionality.
Cell-face mesh analysis engine.