Wildmeshing Toolkit
Loading...
Searching...
No Matches
relative_face_index.cpp
Go to the documentation of this file.
1
4
5namespace wmtk::autogen {
6class SimplexDart;
7}
8namespace wmtk::autogen::utils {
10 const SimplexDart& sd,
11 int8_t current_orientation,
12 PrimitiveType target_type,
13 int8_t target_index)
14{
15 const int8_t identity_action_to_right_face = 0; // sd.simplex_index(target_index, target_type);
16 const int8_t action_to_right_face =
17 sd.product(identity_action_to_right_face, sd.inverse(current_orientation));
18
19 const int8_t relative_face = sd.simplex_index(action_to_right_face, target_type);
20 return relative_face;
21}
22
23} // namespace wmtk::autogen::utils
int8_t simplex_index(const int8_t valid_index, PrimitiveType simplex_type) const
int8_t inverse(int8_t a) const
int8_t product(int8_t a, int8_t b) const
int8_t relative_face_index(const SimplexDart &sd, int8_t current_orientation, PrimitiveType target_type, int8_t target_index)
: Returns the relative local index of a simplex with respect to an orientation When we switch a dart ...