Collapses faces into edges. Used to remove sliver faces (faces with small area but non-zero span). More...
#include <faceCollapser.H>
Public Member Functions | |
| ClassName ("faceCollapser") | |
| Runtime type information. | |
| faceCollapser (const polyMesh &mesh) | |
| Construct from mesh. | |
| void | setRefinement (const labelList &faceLabels, const labelList &fpA, const labelList &fpB, polyTopoChange &) const |
| Collapse faces along endpoints. Play commands into. | |
| void | updateMesh (const mapPolyMesh &) |
| Update stored quantities for new mesh labels. | |
Collapses faces into edges. Used to remove sliver faces (faces with small area but non-zero span).
Passed in as
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 |
| ClassName | ( | "faceCollapser" | ) |
Runtime type information.
References faceLabels(), and mesh.

| void setRefinement | ( | const labelList & | faceLabels, |
| const labelList & | fpA, | ||
| const labelList & | fpB, | ||
| polyTopoChange & | meshMod ) const |
Collapse faces along endpoints. Play commands into.
polyTopoChange to create mesh.
Definition at line 204 of file faceCollapser.C.
References Foam::abort(), DynamicList< T, SizeMin >::append(), Vector< Cmpt >::distSqr(), e, Foam::endl(), HashTable< T, Key, Hash >::erase(), f(), faceLabels(), Foam::FatalError, FatalErrorInFunction, forAll, forAllConstIters, SortableList< T >::indices(), HashTable< T, Key, Hash >::insert(), insert(), Foam::magSqr(), line< Point, PointRef >::nearestDist(), Foam::nl, PointHit< PointType >::point(), points, Foam::Pout, Foam::reverse(), polyTopoChange::setAction(), PointHit< PointType >::setPoint(), DynamicList< T, SizeMin >::shrink(), UList< T >::size(), SortableList< T >::sort(), Foam::sqrt(), and Foam::meshTools::writeOBJ().

|
inline |
Update stored quantities for new mesh labels.
Definition at line 168 of file faceCollapser.H.