Public Member Functions | List of all members
removePoints Class Reference

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 labelListsavedFaceLabels () 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 &)
 

Detailed Description

Removes selected points from mesh and updates faces using these points.

Source files

Definition at line 56 of file removePoints.H.

Constructor & Destructor Documentation

◆ removePoints()

removePoints ( const polyMesh mesh,
const bool  undoable = false 
)
explicit

Definition at line 128 of file removePoints.C.

Member Function Documentation

◆ ClassName()

ClassName ( "removePoints"  )

◆ savedFaceLabels()

const labelList& savedFaceLabels ( ) const
inline

Definition at line 111 of file removePoints.H.

Referenced by meshRefinement::doRemovePoints(), and meshRefinement::mergeEdgesUndo().

Here is the caller graph for this function:

◆ countPointUsage()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setRefinement()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateMesh()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getUnrefimentSet()

void getUnrefimentSet ( const labelList undoFaces,
labelList localFaces,
labelList localPoints 
) const

◆ setUnrefinement()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

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