43 const bool triangulate,
56 const bool triangulate,
66 subsetCells.
set(cellIdLabels);
69 performCut(
mesh, triangulate, std::move(subsetCells));
79 List<label> remappedCells(
faceMap.size());
82 remappedCells[facei] = meshCells_[
faceMap[facei]];
84 meshCells_.transfer(remappedCells);
98 static_cast<Mesh&
>(*this) = rhs;
99 meshCells_ = rhs.meshCells();
void set(const bitSet &bitset)
Set specified bits from another bitset.
void operator=(const cuttingSurfaceBase &rhs)
Copy assignment.
Cell-face mesh analysis engine.
int debugSwitch(const char *name, const int deflt=0)
Lookup debug switch or add default value.
UList< label > labelUList
A UList of labels.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
void resize(const label numElem, 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.
virtual void performCut(const primitiveMesh &mesh, const bool triangulate, const labelUList &cellIdLabels)
Cut mesh, restricted to a list of cells.
virtual label triangulate()
Triangulate in-place, returning the number of triangles added.
virtual void remapFaces(const labelUList &faceMap)
Remap action on triangulation or cleanup.
static int debug
Debug information.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
label nCells() const noexcept
Number of mesh cells.
bool notNull(const T *ptr)
True if ptr is not a pointer (of type T) to the nullObject.