22 MeshLib::Mesh const& mesh, std::vector<int>
const& selected_material_ids)
26 std::vector<MeshLib::Element*> selected_elements;
28 for (std::size_t i = 0; i < material_ids.size(); ++i)
30 if (ranges::contains(selected_material_ids, material_ids[i]))
32 selected_elements.push_back(elements[i]);
35 return selected_elements;