Collapses faces into edges. Used to remove sliver faces (faces with small area but non-zero span). More...
#include <dynamicMesh/faceCollapser.H>
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 76 of file 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.
|
faceCollapser | ( | const polyMesh & | mesh ) |
Construct from mesh.
Definition at line 203 of file faceCollapser.C.
ClassName | ( | "faceCollapser" | ) |
Runtime type information.
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 212 of file faceCollapser.C.
References Foam::abort(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), HashTable< T, Key, Hash >::begin(), dist, E(), Foam::endl(), Foam::FatalError, FatalErrorIn, UList< T >::fcIndex(), Foam::meshTools::findEdge(), forAll, SortableList< T >::indices(), insert(), Foam::magSqr(), line< Point, PointRef >::nearestDist(), Foam::nl, points, Foam::Pout, PointHit< Point >::rawPoint(), UList< T >::rcIndex(), Foam::reverse(), polyTopoChange::setAction(), PointHit< Point >::setPoint(), List< T >::size(), SortableList< T >::sort(), Foam::sqrt(), edge::start(), and Foam::meshTools::writeOBJ().
void updateMesh | ( | const mapPolyMesh & | ) | [inline]
|
Update stored quantities for new mesh labels.
Definition at line 149 of file faceCollapser.H.