Wildmeshing Toolkit
local_switch_tuple.cpp
Go to the documentation of this file.
1 #include "local_switch_tuple.hpp"
2 #include <wmtk/Tuple.hpp>
6 namespace wmtk::multimesh::utils {
7 
9  PrimitiveType mesh_primitive_type,
10  const Tuple& source,
11  PrimitiveType primitive_type)
12 {
13  switch (mesh_primitive_type) {
15  return autogen::tri_mesh::local_switch_tuple(source, primitive_type);
17  return autogen::tet_mesh::local_switch_tuple(source, primitive_type);
18  case PrimitiveType::Edge: return autogen::edge_mesh::local_switch_tuple(source, primitive_type);
20  default: return Tuple();
21  }
22 }
23 
25  PrimitiveType mesh_primitive_type,
26  const Tuple& tuple,
27  const std::initializer_list<PrimitiveType>& op_sequence)
28 {
29  return local_switch_tuples<std::initializer_list<PrimitiveType>>(
30  mesh_primitive_type,
31  tuple,
32  op_sequence);
33 }
34 } // namespace wmtk::multimesh::utils
Tuple local_switch_tuple(const Tuple &t, PrimitiveType pt)
Tuple local_switch_tuple(const Tuple &t, PrimitiveType pt)
Tuple local_switch_tuple(const Tuple &t, PrimitiveType pt)
Tuple local_switch_tuples(PrimitiveType mesh_primitive_type, const Tuple &tuple, const std::initializer_list< PrimitiveType > &op_sequence)
Tuple local_switch_tuple(PrimitiveType mesh_primitive_type, const Tuple &source, PrimitiveType primitive_type)