Wildmeshing Toolkit
simplex_index_from_valid_index.cpp
Go to the documentation of this file.
2 #include <cassert>
6 namespace wmtk::autogen {
8  PrimitiveType mesh_type,
9  int8_t valid_tuple_index,
10  PrimitiveType simplex_type)
11 {
12  switch (mesh_type) {
14  return tet_mesh::simplex_index_from_valid_index(valid_tuple_index, simplex_type);
16  return tri_mesh::simplex_index_from_valid_index(valid_tuple_index, simplex_type);
18  return edge_mesh::simplex_index_from_valid_index(valid_tuple_index, simplex_type);
20  default: assert(false); // "not implemented"
21  }
22  return {};
23 }
24 } // namespace wmtk::autogen
int8_t simplex_index_from_valid_index(int8_t valid_index, wmtk::PrimitiveType type)
int8_t simplex_index_from_valid_index(int8_t valid_index, wmtk::PrimitiveType type)
int8_t simplex_index_from_valid_index(int8_t valid_index, wmtk::PrimitiveType type)
int8_t simplex_index_from_valid_index(PrimitiveType mesh_type, int8_t valid_tuple_index, PrimitiveType simplex_type)