Wildmeshing Toolkit
local_dart_action.cpp
Go to the documentation of this file.
1
#include <
wmtk/Primitive.hpp
>
2
#include <
wmtk/autogen/Dart.hpp
>
3
#include <
wmtk/autogen/SimplexDart.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
Dart.hpp
Primitive.hpp
SimplexDart.hpp
wmtk::autogen::Dart
Definition:
Dart.hpp:8
wmtk::autogen::Dart::local_orientation
int8_t & local_orientation()
Definition:
Dart.hpp:18
wmtk::autogen::Dart::global_id
int64_t & global_id()
Definition:
Dart.hpp:15
wmtk::autogen::SimplexDart
Definition:
SimplexDart.hpp:11
wmtk::autogen::SimplexDart::product
int8_t product(int8_t a, int8_t b) const
Definition:
SimplexDart.cpp:93
wmtk::autogen
Definition:
Dart.cpp:4
wmtk::autogen::local_dart_action
int8_t local_dart_action(const SimplexDart &sd, int8_t s, int8_t action)
Definition:
local_dart_action.cpp:7
src
wmtk
autogen
local_dart_action.cpp
Generated by
1.9.1