OGS
createMaterialIDsBasedSubMesh.cpp
Go to the documentation of this file.
1
16
17#include "MeshLib/Mesh.h"
21
22namespace MeshLib
23{
24std::unique_ptr<MeshLib::Mesh> createMaterialIDsBasedSubMesh(
25 MeshLib::Mesh const& mesh, std::vector<int> const& material_ids,
26 std::string const& name_for_created_mesh)
27{
28 auto const elements =
31 name_for_created_mesh, MeshLib::cloneElements(elements));
32}
33} // namespace MeshLib
Definition of Duplicate functions.
Definition of the Mesh class.
std::unique_ptr< MeshLib::Mesh > createMeshFromElementSelection(std::string mesh_name, std::vector< MeshLib::Element * > const &elements)
std::vector< MeshLib::Element * > getMeshElementsForMaterialIDs(MeshLib::Mesh const &mesh, std::vector< int > const &selected_material_ids)
std::unique_ptr< MeshLib::Mesh > createMaterialIDsBasedSubMesh(MeshLib::Mesh const &mesh, std::vector< int > const &material_ids, std::string const &name_for_created_mesh)
std::vector< Element * > cloneElements(std::vector< Element * > const &elements)
Clones a vector of elements using the Element::clone() function.