Wildmeshing Toolkit
local_dart_action.cpp
Go to the documentation of this file.
1 #include <wmtk/Primitive.hpp>
2 #include <wmtk/autogen/Dart.hpp>
4 
5 // NOTE: this header primarily exists to simplify unit testing, not really for use
6 namespace wmtk::autogen {
7 int8_t local_dart_action(const SimplexDart& sd, int8_t s, int8_t action)
8 {
9  return sd.product(action, s);
10 }
11 Dart local_dart_action(const SimplexDart& sd, const Dart& d, int8_t action)
12 {
13  return {d.global_id(), local_dart_action(sd, d.local_orientation(), action)};
14 }
15 
16 } // namespace wmtk::autogen
int8_t & local_orientation()
Definition: Dart.hpp:18
int64_t & global_id()
Definition: Dart.hpp:15
int8_t product(int8_t a, int8_t b) const
Definition: SimplexDart.cpp:93
int8_t local_dart_action(const SimplexDart &sd, int8_t s, int8_t action)