Wildmeshing Toolkit
simplex_index_from_valid_index.hxx
Go to the documentation of this file.
1 #pragma once
2 // DO NOT MODIFY, autogenerated from the /scripts directory
6 namespace wmtk::autogen::tet_mesh {
7 inline int8_t simplex_index_from_valid_index(int8_t valid_index, wmtk::PrimitiveType type)
8 {
9  const int8_t type_index = get_primitive_type_id(type);
10  return auto_valid_tuples[valid_index][type_index];
11 }
12 
13 } // namespace wmtk::autogen::tet_mesh
const int8_t auto_valid_tuples[24][3]
int8_t simplex_index_from_valid_index(int8_t valid_index, wmtk::PrimitiveType type)
constexpr int8_t get_primitive_type_id(PrimitiveType t)
Get a unique integer id corresponding to each primitive type.