Go to the documentation of this file.
49 const bool triangulate,
53 bitSet subsetCells(cellIdLabels);
55 performCut(
mesh, triangulate, std::move(subsetCells));
62 const bool triangulate,
72 subsetCells.
set(cellIdLabels);
75 performCut(
mesh, triangulate, std::move(subsetCells));
83 MeshStorage::remapFaces(
faceMap);
88 remappedCells[facei] = meshCells_[
faceMap[facei]];
90 meshCells_.transfer(remappedCells);
const labelList & meshCells() const
The mesh cells cut.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
int debugSwitch(const char *name, const int deflt=0)
Lookup debug switch or add default value.
cuttingSurfaceBase()
Construct null.
void set(const bitSet &bitset)
Set specified bits from another bitset.
void resize(const label nElem, const unsigned int val=0u)
Reset addressable list size, does not shrink the allocated size.
#define forAll(list, i)
Loop across all elements in list.
label nCells() const
Number of mesh cells.
virtual void remapFaces(const labelUList &faceMap)
Remap action on triangulation or cleanup.
bool notNull(const T *ptr)
True if ptr is not a pointer (of type T) to the nullObject.
static int debug
Debug information.
Base for creating a MeshedSurface by performing some type of cell cutting/intersection.
void operator=(const cuttingSurfaceBase &rhs)
Copy assignment.
virtual void performCut(const primitiveMesh &mesh, const bool triangulate, const labelUList &cellIdLabels)
Cut mesh, restricted to a list of cells.
Cell-face mesh analysis engine.