Wildmeshing Toolkit
find_local_dart_action.hpp
Go to the documentation of this file.
1 #pragma once
2 #include "SimplexDart.hpp"
3 
4 // #include "wmtk/multimesh/utils/find_local_dart_action.hpp"
5 namespace wmtk::autogen {
6 inline int8_t find_local_dart_action(const SimplexDart& sd, int8_t source, int8_t target)
7 {
8  int8_t src_inv = sd.inverse(source);
9  return sd.product(target, src_inv);
10 }
11 } // namespace wmtk::autogen
int8_t inverse(int8_t a) const
Definition: SimplexDart.cpp:97
int8_t product(int8_t a, int8_t b) const
Definition: SimplexDart.cpp:93
int8_t find_local_dart_action(const SimplexDart &sd, int8_t source, int8_t target)