47 bitSet subsetCells(cellIdLabels);
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]];
98 static_cast<Mesh&
>(*this) =
rhs;
99 meshCells_ =
rhs.meshCells();
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual void remapFaces(const labelUList &faceMapNewToOld)
virtual label triangulate()
void resize(const label numElem, const unsigned int val=0u)
Reset addressable list size, does not shrink the allocated size.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
void set(const bitSet &bitset)
Set specified bits from another bitset.
virtual void performCut(const primitiveMesh &mesh, const bool triangulate, const labelUList &cellIdLabels)
Cut mesh, restricted to a list of cells.
void operator=(const cuttingSurfaceBase &rhs)
Copy assignment.
labelList meshCells_
List of the cells cut.
cuttingSurfaceBase()=default
Default construct.
virtual void remapFaces(const labelUList &faceMap)
Remap action on triangulation or cleanup.
static int debug
Debug information.
meshedSurface Mesh
Typedef for convenience.
Cell-face mesh analysis engine.
int debugSwitch(const char *name, const int deflt=0)
Lookup debug switch or add default value.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
void rhs(fvMatrix< typename Expr::value_type > &m, const Expr &expression)
bool notNull(const T *ptr) noexcept
True if ptr is not a pointer (of type T) to the nullObject.
UList< label > labelUList
A UList of labels.
#define forAll(list, i)
Loop across all elements in list.