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
>
9
#include <
wmtk/multimesh/MultiMeshVisitor.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
EdgeMesh.hpp
Mesh.hpp
MultiMeshVisitor.hpp
PointMesh.hpp
TetMesh.hpp
TriMesh.hpp
wmtk::Mesh
Definition:
Mesh.hpp:106
wmtk::multimesh::MultiMeshVisitor
Definition:
MultiMeshVisitor.hpp:29
wmtk::multimesh::MultiMeshVisitor::execute_from_root
void execute_from_root(Mesh &mesh)
Definition:
MultiMeshVisitor.hpp:79
consolidate.hpp
wmtk::multimesh
Definition:
Mesh.hpp:81
wmtk::multimesh::consolidate
void consolidate(Mesh &mesh)
Definition:
consolidate.cpp:13
src
wmtk
multimesh
consolidate.cpp
Generated by
1.9.1