Wildmeshing Toolkit
extract_child_mesh_from_tag.hpp
Go to the documentation of this file.
1 #pragma once
2 #include <array>
3 #include <memory>
4 #include <vector>
5 #include <wmtk/Tuple.hpp>
7 
8 
9 namespace wmtk {
10 class Mesh;
11 class PointMesh;
12 class EdgeMesh;
13 class TriMesh;
14 class TetMesh;
15 } // namespace wmtk
16 
17 namespace wmtk::multimesh::utils {
18 
30 std::shared_ptr<Mesh> extract_and_register_child_mesh_from_tag(
31  Mesh& m,
32  const std::string& tag,
33  const int64_t tag_value,
34  const PrimitiveType pt,
35  bool child_is_free = false);
36 
49  Mesh& m,
51  const int64_t tag_value,
52  bool child_is_free = false);
53 
54 
66 std::shared_ptr<Mesh> extract_and_register_child_mesh_from_tag(
69  bool child_is_free = false);
70 
71 } // namespace wmtk::multimesh::utils
std::variant< char, int64_t, double, wmtk::Rational, std::tuple< char, wmtk::Rational, double > > ValueVariant
std::shared_ptr< Mesh > extract_and_register_child_mesh_from_tag_handle(Mesh &m, const wmtk::attribute::TypedAttributeHandle< int64_t > &tag_handle, const int64_t tag_value, bool child_is_free)
extract a child mesh based on the tag handle and the tag value, and register it to the input (parent)...
std::shared_ptr< Mesh > extract_and_register_child_mesh_from_tag(Mesh &m, const std::string &tag, const int64_t tag_value, const PrimitiveType pt, bool child_is_free)
extract a child mesh based on the given tag and tag value, and register it to the input (parent) mesh
Definition: Accessor.hpp:6