faceCollapser Class Reference

Collapses faces into edges. Used to remove sliver faces (faces with small area but non-zero span). More...

Public Member Functions

 ClassName ("faceCollapser")
 Runtime type information. More...
 
 faceCollapser (const polyMesh &mesh)
 Construct from mesh. More...
 
 faceCollapser (const faceCollapser &)=delete
 Disallow default bitwise copy construction. More...
 
void setRefinement (const labelList &faceLabels, const labelList &fpA, const labelList &fpB, polyTopoChange &) const
 Collapse faces along endpoints. Play commands into. More...
 
void updateMesh (const mapPolyMesh &)
 Update stored quantities for new mesh labels. More...
 
void operator= (const faceCollapser &)=delete
 Disallow default bitwise assignment. More...
 

Detailed Description

Collapses faces into edges. Used to remove sliver faces (faces with small area but non-zero span).

Passed in as

  • face label
  • the two indices in the face (fpA, fpB) which delimit the vertices to be kept.

Takes the vertices outside the range fpA..fpB and projects them onto the kept edges (edges using kept vertices only).

Note:

  • Use in combination with edge collapse to cleanup meshes.
  • Can not remove cells so will mess up trying to remove a face on a tet.
  • WIP. Should be combined with edge collapsing and cell collapsing into proper 'collapser'.
  • Caller is responsible for making sure kept vertices (fpA..fpB) for one face are not the vertices to be removed for another face.
Source files

Definition at line 75 of file faceCollapser.H.

Constructor & Destructor Documentation

◆ faceCollapser() [1/2]

faceCollapser ( const polyMesh mesh)

Construct from mesh.

Definition at line 201 of file faceCollapser.C.

References faceCollapser::setRefinement().

Here is the call graph for this function:

◆ faceCollapser() [2/2]

faceCollapser ( const faceCollapser )
delete

Disallow default bitwise copy construction.

Member Function Documentation

◆ ClassName()

ClassName ( "faceCollapser"  )

Runtime type information.

◆ setRefinement()

◆ updateMesh()

void updateMesh ( const mapPolyMesh )
inline

Update stored quantities for new mesh labels.

Definition at line 144 of file faceCollapser.H.

References faceCollapser::operator=().

Here is the call graph for this function:

◆ operator=()

void operator= ( const faceCollapser )
delete

Disallow default bitwise assignment.

Referenced by faceCollapser::updateMesh().

Here is the caller graph for this function:

The documentation for this class was generated from the following files: