5 auto make_opp_actions() -> std::array<int8_t, 4>
7 std::array<int8_t, 4> darts;
9 for (int8_t j = 1; j < darts.size(); ++j) {
12 darts[j] = sd.opposite();
17 auto make_right_ear_darts() -> std::array<int8_t, 4>
19 return make_opp_actions();
21 auto make_left_ear_darts() -> std::array<int8_t, 4>
23 auto darts = make_opp_actions();
24 for (int8_t j = 1; j < darts.size(); ++j) {
27 int8_t& action = darts[j];
32 const static std::array<int8_t, 4> left_ear_darts = make_left_ear_darts();
33 const static std::array<int8_t, 4> right_ear_darts = make_right_ear_darts();
39 return left_ear_darts[off];
44 return right_ear_darts[off];
int8_t right_ear_action(PrimitiveType mesh_type)
int8_t left_ear_action(PrimitiveType mesh_type)
constexpr PrimitiveType get_primitive_type_from_id(int8_t id)
Get the primitive type corresponding to its unique integer id.
constexpr int8_t get_primitive_type_id(PrimitiveType t)
Get a unique integer id corresponding to each primitive type.