OGS
RemoveMeshComponents.h
Go to the documentation of this file.
1
11#pragma once
12
13#include <string>
14#include <vector>
15
16namespace MeshLib
17{
18class Mesh;
19class Element;
20class Node;
21} // namespace MeshLib
22
23namespace MeshToolsLib
24{
25
35 const MeshLib::Mesh& mesh,
36 const std::vector<std::size_t>& removed_element_ids,
37 const std::string& new_mesh_name);
38
48 const std::vector<std::size_t>& del_nodes_idx,
49 const std::string& new_mesh_name);
50
52std::vector<bool> markUnusedNodes(
53 std::vector<MeshLib::Element*> const& elements,
54 std::vector<MeshLib::Node*> const& nodes);
55
57void removeMarkedNodes(std::vector<bool> const& nodes_to_delete,
58 std::vector<MeshLib::Node*>& nodes);
59} // namespace MeshToolsLib
std::vector< bool > markUnusedNodes(std::vector< MeshLib::Element * > const &elements, std::vector< MeshLib::Node * > const &nodes)
Marks nodes not used by any of the elements.
void removeMarkedNodes(std::vector< bool > const &nodes_to_delete, std::vector< MeshLib::Node * > &nodes)
Deallocates and removes nodes marked true.
MeshLib::Mesh * removeNodes(const MeshLib::Mesh &mesh, const std::vector< std::size_t > &del_nodes_idx, const std::string &new_mesh_name)
MeshLib::Mesh * removeElements(const MeshLib::Mesh &mesh, const std::vector< std::size_t > &removed_element_ids, const std::string &new_mesh_name)