Wildmeshing Toolkit
Loading...
Searching...
No Matches
AttributeScopeHandle.cpp
Go to the documentation of this file.
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>
11{
12 auto get_handles = [&](auto&& mesh) {
13 using T = std::remove_reference_t<decltype(mesh)>;
14 if constexpr (!std::is_const_v<T>) {
15 m_scopes.emplace_back(mesh.create_single_mesh_scope());
16 }
17 };
18
19 MultiMeshVisitor(get_handles).execute_from_root(m);
20}
21
22
24{
25 for (single_handle_type& scope : m_scopes) {
26 scope.mark_failed();
27 }
28}
29} // namespace wmtk::multimesh::attribute
This handle is a wrapper for the MeshManager scope funtions.