Wildmeshing Toolkit
consolidate.cpp
Go to the documentation of this file.
1 #include "consolidate.hpp"
2 #include <wmtk/EdgeMesh.hpp>
3 #include <wmtk/Mesh.hpp>
4 #include <wmtk/PointMesh.hpp>
5 #include <wmtk/TetMesh.hpp>
6 #include <wmtk/TriMesh.hpp>
7 
8 #include <wmtk/Mesh.hpp>
10 
11 
12 namespace wmtk::multimesh {
13 void consolidate(Mesh& mesh)
14 {
15  auto run = [&](auto&& m) {
16  if constexpr (!std::is_const_v<std::remove_reference_t<decltype(m)>>) {
17  m.consolidate();
18  }
19  };
20  multimesh::MultiMeshVisitor visitor(run);
21  visitor.execute_from_root(mesh);
22 }
23 } // namespace wmtk::multimesh
void consolidate(Mesh &mesh)
Definition: consolidate.cpp:13