Collapses faces into edges. Used to remove sliver faces (faces with small area but non-zero span). More...
Public Member Functions | |
ClassName ("faceCollapser") | |
faceCollapser (const polyMesh &mesh) | |
void | setRefinement (const labelList &faceLabels, const labelList &fpA, const labelList &fpB, polyTopoChange &) const |
void | updateMesh (const mapPolyMesh &) |
Collapses faces into edges. Used to remove sliver faces (faces with small area but non-zero span).
Takes the vertices outside the range fpA..fpB and projects them onto the kept edges (edges using kept vertices only).
Note:
Definition at line 74 of file faceCollapser.H.
|
explicit |
Definition at line 196 of file faceCollapser.C.
ClassName | ( | "faceCollapser" | ) |
void setRefinement | ( | const labelList & | faceLabels, |
const labelList & | fpA, | ||
const labelList & | fpB, | ||
polyTopoChange & | meshMod | ||
) | const |
Definition at line 205 of file faceCollapser.C.
References Foam::abort(), DynamicList::append(), Foam::constant::electromagnetic::e, Foam::endl(), f(), Foam::FatalError, FatalErrorInFunction, Foam::meshTools::findEdge(), forAll, forAllConstIters(), SortableList::indices(), insert(), Foam::magSqr(), line::nearestDist(), Foam::nl, points, Foam::Pout, PointHit< PointType >::rawPoint(), Foam::reverse(), polyTopoChange::setAction(), PointHit< PointType >::setPoint(), DynamicList::shrink(), SortableList::sort(), Foam::sqrt(), and Foam::meshTools::writeOBJ().
|
inline |
Definition at line 147 of file faceCollapser.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.