Wildmeshing Toolkit
valid_index_to_simplex_index.cpp
Go to the documentation of this file.
6 
7 namespace wmtk::autogen {
8 class SimplexDart;
9 }
10 namespace wmtk::autogen::utils {
12  PrimitiveType mesh_type,
13  int8_t current_orientation,
14  PrimitiveType target_type)
15 {
16  switch (mesh_type) {
18  return edge_mesh::simplex_index_from_valid_index(current_orientation, target_type);
20  return tri_mesh::simplex_index_from_valid_index(current_orientation, target_type);
22  return tet_mesh::simplex_index_from_valid_index(current_orientation, target_type);
23  case PrimitiveType::Vertex: return 0;
24  default: assert(false);
25  }
26  return 0;
27 }
28 
29 } // namespace wmtk::autogen::utils
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 valid_index_to_simplex_index(PrimitiveType mesh_type, int8_t current_orientation, PrimitiveType target_type)