Removes selected points from mesh and updates faces using these points. More...
Public Member Functions | |
ClassName ("removePoints") | |
removePoints (const polyMesh &mesh, const bool undoable=false) | |
const labelList & | savedFaceLabels () const |
label | countPointUsage (const scalar minCos, boolList &pointCanBeDeleted) const |
void | setRefinement (const boolList &, polyTopoChange &) |
void | updateMesh (const mapPolyMesh &) |
void | getUnrefimentSet (const labelList &undoFaces, labelList &localFaces, labelList &localPoints) const |
void | setUnrefinement (const labelList &localFaces, const labelList &localPoints, polyTopoChange &) |
Removes selected points from mesh and updates faces using these points.
Definition at line 56 of file removePoints.H.
|
explicit |
Definition at line 128 of file removePoints.C.
ClassName | ( | "removePoints" | ) |
|
inline |
Definition at line 111 of file removePoints.H.
Referenced by meshRefinement::doRemovePoints(), and meshRefinement::mergeEdgesUndo().
Foam::label countPointUsage | ( | const scalar | minCos, |
boolList & | pointCanBeDeleted | ||
) | const |
Definition at line 141 of file removePoints.C.
References List::clear(), edge::commonVertex(), Foam::constant::electromagnetic::e, f(), forAll, Foam::normalised(), edge::otherVertex(), points, Foam::returnReduce(), List::setSize(), and syncTools::syncPointList().
Referenced by edgeCollapser::markMergeEdges(), and meshRefinement::mergeEdgesUndo().
void setRefinement | ( | const boolList & | pointCanBeDeleted, |
polyTopoChange & | meshMod | ||
) |
Definition at line 289 of file removePoints.C.
References Foam::abort(), Foam::expressions::patchExpr::debug, f(), Foam::FatalError, FatalErrorInFunction, forAll, HashSet::insert(), Foam::nl, pFaces, polyTopoChange::setAction(), and List::setSize().
Referenced by meshRefinement::doRemovePoints().
void updateMesh | ( | const mapPolyMesh & | map | ) |
Definition at line 444 of file removePoints.C.
References Foam::abort(), Foam::expressions::patchExpr::debug, f(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::nl, mapPolyMesh::reverseFaceMap(), mapPolyMesh::reversePointMap(), and List::setSize().
Referenced by meshRefinement::doRemovePoints(), and meshRefinement::doRestorePoints().
void getUnrefimentSet | ( | const labelList & | undoFaces, |
labelList & | localFaces, | ||
labelList & | localPoints | ||
) | const |
Definition at line 546 of file removePoints.C.
References Foam::abort(), Foam::expressions::patchExpr::debug, Foam::endl(), Foam::FatalError, FatalErrorInFunction, forAll, HashSet::insert(), VectorSpace< Vector< scalar >, scalar, 3 >::max, List::setSize(), faceSet::sync(), and syncTools::syncBoundaryFaceList().
Referenced by meshRefinement::doRestorePoints().
void setUnrefinement | ( | const labelList & | localFaces, |
const labelList & | localPoints, | ||
polyTopoChange & | meshMod | ||
) |
Definition at line 758 of file removePoints.C.
References Foam::abort(), Foam::expressions::patchExpr::debug, Foam::FatalError, FatalErrorInFunction, forAll, VectorSpace< Vector< scalar >, scalar, 3 >::max, polyTopoChange::setAction(), and List::setSize().
Referenced by meshRefinement::doRestorePoints().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.