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