Wildmeshing Toolkit
Loading...
Searching...
No Matches
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
9namespace wmtk {
10class Mesh;
11class PointMesh;
12class EdgeMesh;
13class TriMesh;
14class TetMesh;
15} // namespace wmtk
16
17namespace wmtk::multimesh::utils {
18
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
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
Handle that represents attributes for some mesh.
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