Wildmeshing Toolkit
multimesh_from_tag.cpp
Go to the documentation of this file.
1 #include "multimesh_from_tag.hpp"
2 
3 #include <deque>
4 #include <wmtk/TriMesh.hpp>
6 #include <wmtk/io/HDF5Writer.hpp>
7 #include <wmtk/io/MeshReader.hpp>
11 #include <wmtk/utils/Logger.hpp>
12 
14 
15 namespace wmtk {
16 namespace components {
17 
18 using namespace internal;
19 
21  std::shared_ptr<Mesh>& mesh_in,
22  attribute::MeshAttributeHandle& substructure_label,
23  int64_t substructure_value)
24 {
25  Mesh& mesh = static_cast<Mesh&>(*mesh_in);
26 
27  MultiMeshFromTag mmft(mesh, substructure_label, substructure_value);
29  mmft.remove_soup();
30 }
31 } // namespace components
32 } // namespace wmtk
This class generates a multi-mesh from a mesh where the substructure is represented by a tag.
void remove_soup()
Remove the substructure soup from the multimesh.
void compute_substructure_mesh()
Create a manifold mesh from the substructure.
void multimesh_from_tag(std::shared_ptr< Mesh > &mesh_in, attribute::MeshAttributeHandle &substructure_label, int64_t substructure_value)
Generate a multi-mesh from a mesh with a tag that represents the substructure, the mesh is changed.
Definition: Accessor.hpp:6