OGS
RemoveMeshComponents.h
Go to the documentation of this file.
1 
11 #pragma once
12 
13 #include <string>
14 #include <vector>
15 
16 namespace MeshLib
17 {
18 class Mesh;
19 class Element;
20 class Node;
21 
30  const MeshLib::Mesh& mesh,
31  const std::vector<std::size_t>& removed_element_ids,
32  const std::string& new_mesh_name);
33 
43  const std::vector<std::size_t>& del_nodes_idx,
44  const std::string& new_mesh_name);
45 
47 std::vector<bool> markUnusedNodes(std::vector<Element*> const& elements,
48  std::vector<Node*> const& nodes);
49 
51 void removeMarkedNodes(std::vector<bool> const& nodes_to_delete,
52  std::vector<Node*>& nodes);
53 } // end namespace MeshLib
MeshLib::Mesh * removeElements(const MeshLib::Mesh &mesh, const std::vector< std::size_t > &removed_element_ids, const std::string &new_mesh_name)
std::vector< bool > markUnusedNodes(std::vector< Element * > const &elements, std::vector< Node * > const &nodes)
Marks nodes not used by any of the elements.
MeshLib::Mesh * removeNodes(const MeshLib::Mesh &mesh, const std::vector< std::size_t > &del_nodes_idx, const std::string &new_mesh_name)
void removeMarkedNodes(std::vector< bool > const &nodes_to_delete, std::vector< Node * > &nodes)
Deallocates and removes nodes marked true.