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
>
5
#include <
wmtk/components/utils/get_attributes.hpp
>
6
#include <
wmtk/io/HDF5Writer.hpp
>
7
#include <
wmtk/io/MeshReader.hpp
>
8
#include <
wmtk/simplex/Simplex.hpp
>
9
#include <
wmtk/simplex/faces_single_dimension.hpp
>
10
#include <
wmtk/simplex/open_star.hpp
>
11
#include <
wmtk/utils/Logger.hpp
>
12
13
#include "
internal/MultiMeshFromTag.hpp
"
14
15
namespace
wmtk
{
16
namespace
components {
17
18
using namespace
internal
;
19
20
void
multimesh_from_tag
(
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);
28
mmft.
compute_substructure_mesh
();
29
mmft.
remove_soup
();
30
}
31
}
// namespace components
32
}
// namespace wmtk
HDF5Writer.hpp
Logger.hpp
MeshReader.hpp
MultiMeshFromTag.hpp
Simplex.hpp
TriMesh.hpp
wmtk::Mesh
Definition:
Mesh.hpp:106
wmtk::attribute::MeshAttributeHandle
Definition:
MeshAttributeHandle.hpp:26
wmtk::components::internal::MultiMeshFromTag
This class generates a multi-mesh from a mesh where the substructure is represented by a tag.
Definition:
MultiMeshFromTag.hpp:12
wmtk::components::internal::MultiMeshFromTag::remove_soup
void remove_soup()
Remove the substructure soup from the multimesh.
Definition:
MultiMeshFromTag.cpp:60
wmtk::components::internal::MultiMeshFromTag::compute_substructure_mesh
void compute_substructure_mesh()
Create a manifold mesh from the substructure.
Definition:
MultiMeshFromTag.cpp:377
faces_single_dimension.hpp
get_attributes.hpp
multimesh_from_tag.hpp
internal
Definition:
local_switch_tuple.hpp:11
wmtk::components::multimesh_from_tag
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:
multimesh_from_tag.cpp:20
wmtk
Definition:
Accessor.hpp:6
open_star.hpp
components
multimesh_from_tag
wmtk
components
multimesh_from_tag
multimesh_from_tag.cpp
Generated by
1.9.1