Wildmeshing Toolkit
largest_shared_subdart_size.cpp
Go to the documentation of this file.
2 #include <cassert>
6 
9  PrimitiveType mesh_type,
10  int8_t dart_index,
11  int8_t simplex_dimension,
12  int8_t simplex_index) -> int8_t
13 {
14  switch (mesh_type) {
17  dart_index,
18  simplex_dimension,
19  simplex_index);
22  dart_index,
23  simplex_dimension,
24  simplex_index);
27  dart_index,
28  simplex_dimension,
29  simplex_index);
30  case PrimitiveType::Vertex: return {};
31  default: assert(false);
32  }
33  return {};
34 }
35 
37  PrimitiveType mesh_type,
38  int8_t dart_index,
39  PrimitiveType primitive_type,
40  int8_t simplex_index)
41 {
42  const int8_t type_index = get_primitive_type_id(primitive_type);
43  return largest_shared_subdart_size(mesh_type, dart_index, type_index, simplex_index);
44 }
45 } // namespace wmtk::autogen::utils
int8_t subdart_maximal_action_to_face_size(int8_t dart_index, int8_t simplex_dimension, int8_t simplex_index)
int8_t subdart_maximal_action_to_face_size(int8_t dart_index, int8_t simplex_dimension, int8_t simplex_index)
int8_t subdart_maximal_action_to_face_size(int8_t dart_index, int8_t simplex_dimension, int8_t simplex_index)
auto largest_shared_subdart_size(PrimitiveType mesh_type, int8_t dart_index, int8_t simplex_dimension, int8_t simplex_index) -> int8_t
constexpr int8_t get_primitive_type_id(PrimitiveType t)
Get a unique integer id corresponding to each primitive type.