41 #ifndef cuttingSurfaceBase_H 42 #define cuttingSurfaceBase_H 92 template<
class EdgeOrientIntersect,
class EdgeAlphaIntersect>
97 const EdgeOrientIntersect& edgeOrientIntersect,
98 const EdgeAlphaIntersect& edgeAlphaIntersect,
126 bitSet&& cellSelectionMask
136 const word callerName,
174 const word callerName,
void size(const label n)
Older name for setAddressableSize.
void operator=(const cuttingSurfaceBase &rhs)
Copy assignment.
Base for creating a MeshedSurface by performing some type of cell cutting/intersection.
Cell-face mesh analysis engine.
static bitSet cellSelection(const polyMesh &mesh, const boundBox &userBounds, const wordRes &zoneNames, boundBox &meshBounds)
Define cell selection from bounding-box and zones.
A bounding box defined in terms of min/max extrema points.
Description of cuts across cells.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
meshedSurface Mesh
Typedef for convenience.
virtual ~cuttingSurfaceBase()=default
Destructors.
void walkCellCuts(const primitiveMesh &mesh, const bitSet &cellCuts, const EdgeOrientIntersect &edgeOrientIntersect, const EdgeAlphaIntersect &edgeAlphaIntersect, const bool triangulate, label nFaceCuts=0)
Walk cell cuts to create faces.
static void checkOverlap(const word callerName, const boundBox &meshBounds, const boundBox &userBounds)
Check and warn if bounding boxes do not intersect.
A class for handling words, derived from Foam::string.
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.
A List of wordRe with additional matching capabilities.
bool cut() const
Have any cells been cut?
labelList meshCells_
List of the cells cut.
virtual void remapFaces(const labelUList &faceMap)
Remap action on triangulation or cleanup.
static int debug
Debug information.
const labelList & meshCells() const
The mesh cells cut.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
Mesh consisting of general polyhedral cells.
cuttingSurfaceBase()=default
Default construct.