Wildmeshing Toolkit
Loading...
Searching...
No Matches
multimesh_from_tag.cpp
Go to the documentation of this file.
2
3#include <deque>
4#include <wmtk/TriMesh.hpp>
11#include <wmtk/utils/Logger.hpp>
12
14
15namespace wmtk {
16namespace components {
17
18using 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.