Go to the documentation of this file.
36 #ifndef combineFaces_H
37 #define combineFaces_H
39 #include "indirectPrimitivePatch.H"
86 const scalar minConcaveCos,
95 const scalar minConcaveCos,
159 const scalar featureCos,
160 const scalar minConcaveCos,
168 const scalar featureCos,
169 const scalar minConcaveCos
labelList savedPointLabels_
If undoable: saved point labels.
static face getOutsideFace(const indirectPrimitivePatch &)
Gets outside of patch as a face (in mesh point labels)
Combines boundary faces into single face. The faces get the patch of the first face ('the master')
const labelList & savedPointLabels() const
If undoable: set of original point labels of stored points.
ClassName("combineFaces")
Runtime type information.
Direct mesh changes based on v1.3 polyTopoChange syntax.
labelListList getMergeSets(const scalar featureCos, const scalar minConcaveCos, const labelHashSet &boundaryCells) const
Extract lists of all (non-coupled) boundary faces on selected.
Mesh consisting of general polyhedral cells.
combineFaces(const combineFaces &)
Disallow default bitwise copy construct.
List< faceList > faceSetsVertices_
If undoable: per set the vertices of all the faces in the set.
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.
void updateMesh(const mapPolyMesh &)
Force recalculation of locally stored data on topological change.
void setUnrefinement(const labelList &masterFaces, polyTopoChange &meshMod, Map< label > &restoredPoints, Map< label > &restoredFaces, Map< label > &restoredCells)
Play commands into polyTopoChange to reinsert original faces.
bool faceNeighboursValid(const label cellI, const Map< label > &faceRegion) const
Does merging faces invalidate (unmerged) neighbouring faces?
labelList masterFace_
If undoable: masterface for every set.
const labelList & masterFace() const
If undoable: masterface for every set.
const bool undoable_
Whether undoable.
const polyMesh & mesh_
Reference to mesh.
void operator=(const combineFaces &)
Disallow default bitwise assignment.
static bool convexFace(const scalar minConcaveCos, const pointField &, const face &)
Test if face is convex. Allow slight concavity through.
void regioniseFaces(const scalar minCos, const label cellI, const labelList &cEdges, Map< label > &faceRegion) const
Create cell-local map from face to region (formed by merging faces.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
pointField savedPoints_
If undoable: saved coordinates of above points.
static bool validFace(const scalar minConcaveCos, const indirectPrimitivePatch &)
Test if set of faces (in primitivePatch) can be combined into.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
void setRefinement(const labelListList &, polyTopoChange &)
Play commands into polyTopoChange to combine faces. Gets.
A face is a list of labels corresponding to mesh vertices.
A list of faces which address into the list of points.