Wildmeshing Toolkit
local_switch_tuple.cpp
Go to the documentation of this file.
1 #include "local_switch_tuple.hpp"
5 namespace wmtk::autogen {
7 {
8  switch (mesh_type) {
13  default: assert(false); // "not implemented"
14  }
15  return {};
16 }
17 Tuple local_switch_tuple(PrimitiveType mesh_type, const Tuple& t, int8_t valid_tuple_index)
18 {
19  switch (mesh_type) {
20  case PrimitiveType::Triangle: return tri_mesh::local_switch_tuple(t, valid_tuple_index);
21  case PrimitiveType::Tetrahedron: return tet_mesh::local_switch_tuple(t, valid_tuple_index);
22  case PrimitiveType::Edge: return edge_mesh::local_switch_tuple(t, valid_tuple_index);
24  default: assert(false); // "not implemented"
25  }
26  return {};
27 }
28 
29 namespace internal {
31 {
32  switch (mesh_type) {
39  default: assert(false); // "not implemented"
40  }
41  return {};
42 }
44 {
45  switch (mesh_type) {
50  default: assert(false); // "not implemented"
51  }
52  return {};
53 }
54 } // namespace internal
55 } // namespace wmtk::autogen
int8_t switch_primitive_to_valid_tuple_index(wmtk::PrimitiveType pt)
Tuple local_switch_tuple(const Tuple &t, PrimitiveType pt)
int8_t identity_valid_tuple_index(PrimitiveType mesh_type)
int8_t switch_primitive_to_valid_tuple_index(PrimitiveType mesh_type, PrimitiveType pt)
int8_t switch_primitive_to_valid_tuple_index(wmtk::PrimitiveType pt)
Tuple local_switch_tuple(const Tuple &t, PrimitiveType pt)
int8_t switch_primitive_to_valid_tuple_index(wmtk::PrimitiveType pt)
Tuple local_switch_tuple(const Tuple &t, PrimitiveType pt)
Tuple local_switch_tuple(PrimitiveType mesh_type, const Tuple &t, PrimitiveType pt)