Go to the documentation of this file.
42 #ifndef cuttingPlane_H
43 #define cuttingPlane_H
101 const label startEdgeI,
155 return static_cast<const plane&
>(*this);
tmp< Field< Type > > sample(const Field< Type > &) const
Sample the cell field.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
const labelList & cutCells() const
Return List of cells cut by the plane.
virtual label triangulate()
Triangulate in-place, returning the number of triangles added.
A class for managing temporary objects.
Constructs plane through mesh.
void operator=(const cuttingPlane &)
Geometric class that creates a 2D plane and can return the intersection point between a line and the ...
static bool walkCell(const primitiveMesh &, const labelUList &edgePoint, const label cellI, const label startEdgeI, DynamicList< label > &faceVerts)
Walk circumference of cell, starting from startEdgeI crossing.
const plane & planeDesc() const
Return plane used.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
Cutting plane sampling functionality.
void reCut(const primitiveMesh &, const bool triangulate, const labelUList &cellIdLabels=labelUList::null())
Recut mesh with existing planeDesc, restricted to a list of cells.
virtual void remapFaces(const labelUList &faceMap)
Remap action on triangulation or cleanup.
MeshedSurface< face > MeshStorage
Private typedef for convenience.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
labelList cutCells_
List of cells cut by the plane.
void size(const label)
Override size to be inconsistent with allocated storage.
bool cut() const
Return true or false to question: have any cells been cut?
static const UList< T > & null()
Return a null UList.
A surface geometry mesh with zone information, not to be confused with the similarly named surfaceMes...
void calcCutCells(const primitiveMesh &, const scalarField &dotProducts, const labelUList &cellIdLabels=labelUList::null())
Determine cut cells, possibly restricted to a list of cells.
void intersectEdges(const primitiveMesh &, const scalarField &dotProducts, List< label > &edgePoint)
Determine intersection points (cutPoints).
void walkCellCuts(const primitiveMesh &mesh, const bool triangulate, const labelUList &edgePoint)
Determine cuts for all cut cells.
cuttingPlane(const plane &)
Construct plane description without cutting.
Cell-face mesh analysis engine.