![]() |
OGS
|
Node search class.
Definition at line 24 of file NodeSearch.h.
#include <NodeSearch.h>
Public Member Functions | |
| NodeSearch (const MeshLib::Mesh &mesh) | |
| const std::vector< std::size_t > & | getSearchedNodeIDs () const |
| return marked node IDs | |
| std::size_t | searchNodesConnectedToOnlyGivenElements (const std::vector< std::size_t > &elements) |
| std::size_t | searchUnused () |
| Marks all unused nodes. | |
| std::size_t | searchBoundaryNodes () |
| Marks all boundary nodes. | |
Private Member Functions | |
| void | updateUnion (const std::vector< std::size_t > &vec) |
| Updates the vector of marked items with values from vec. | |
Private Attributes | |
| const MeshLib::Mesh & | _mesh |
| The mesh from which elements should be removed. | |
| std::vector< std::size_t > | _marked_nodes |
| The vector of element indices that should be removed. | |
|
explicit |
Definition at line 22 of file NodeSearch.cpp.
References _mesh.
|
inline |
return marked node IDs
Definition at line 30 of file NodeSearch.h.
References _marked_nodes.
Referenced by MeshToolsLib::MeshValidation::allNodesUsed(), LayeredMeshGenerator::getMesh(), MeshAnalysisDialog::on_startButton_pressed(), and MeshToolsLib::removeElements().
| std::size_t MeshLib::NodeSearch::searchBoundaryNodes | ( | ) |
Marks all boundary nodes.
Definition at line 76 of file NodeSearch.cpp.
References _mesh, and updateUnion().
Referenced by ProcessLib::LIE::anonymous_namespace{MeshUtils.cpp}::IsCrackTip::IsCrackTip().
| std::size_t MeshLib::NodeSearch::searchNodesConnectedToOnlyGivenElements | ( | const std::vector< std::size_t > & | elements | ) |
Marks all nodes connected to any of the given elements ids.
Definition at line 24 of file NodeSearch.cpp.
References _mesh, MeshLib::getNodeIndex(), and updateUnion().
Referenced by MeshToolsLib::removeElements().
| std::size_t MeshLib::NodeSearch::searchUnused | ( | ) |
Marks all unused nodes.
Definition at line 58 of file NodeSearch.cpp.
References _mesh, and updateUnion().
Referenced by MeshToolsLib::MeshValidation::allNodesUsed(), LayeredMeshGenerator::getMesh(), and MeshAnalysisDialog::on_startButton_pressed().
|
private |
Updates the vector of marked items with values from vec.
Definition at line 154 of file NodeSearch.cpp.
References _marked_nodes.
Referenced by searchBoundaryNodes(), searchNodesConnectedToOnlyGivenElements(), and searchUnused().
|
private |
The vector of element indices that should be removed.
Definition at line 50 of file NodeSearch.h.
Referenced by getSearchedNodeIDs(), and updateUnion().
|
private |
The mesh from which elements should be removed.
Definition at line 48 of file NodeSearch.h.
Referenced by NodeSearch(), searchBoundaryNodes(), searchNodesConnectedToOnlyGivenElements(), and searchUnused().