230 const label nCutLayers,
263 label cType = cellType[celli];
298 for (
label celli = 0; celli < mesh.
nCells(); celli++)
300 if (internalCells.
found(celli))
307 const face&
f = faces[cFaces[cFacei]];
313 if (pointSide[pointi] == NOTSET)
315 pointSide[pointi] = INSIDE;
317 else if (pointSide[pointi] == OUTSIDE)
319 pointSide[pointi] = MIXED;
335 const face&
f = faces[cFaces[cFacei]];
341 if (pointSide[pointi] == NOTSET)
343 pointSide[pointi] = OUTSIDE;
345 else if (pointSide[pointi] == INSIDE)
347 pointSide[pointi] = MIXED;
379 const label celli = iter.key();
382 label usesMixedOnly =
true;
386 const face&
f = faces[cFaces[i]];
390 if (pointSide[
f[fp]] != MIXED)
392 usesMixedOnly =
false;
404 mixedOnlyCells.
insert(celli);
408 return mixedOnlyCells;
#define forAll(list, i)
Loop across all elements in list.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
bool insert(const Key &key)
Insert a new entry.
label size() const
Return number of elements in table.
bool found(const Key &) const
Return true if hashedEntry is found in table.
'Cuts' a mesh with a surface.
label trimCutCells(const label nLayers, const label meshType, const label fillType)
A cell is defined as a list of faces with extra functionality.
A face is a list of labels corresponding to mesh vertices.
A class for handling file names.
Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search.
Mesh consisting of general polyhedral cells.
Cell-face mesh analysis engine.
virtual const faceList & faces() const =0
Return faces.
const cellList & cells() const
static labelHashSet getHangingCells(const primitiveMesh &mesh, const labelHashSet &internalCells)
Get cells using points on 'outside' only.
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)
Divide cells into cut,inside and outside.
Helper class to search on triSurface.
Triangulated surface description with patch information.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.