Wildmeshing Toolkit
find_local_dart_action.cpp
Go to the documentation of this file.
1
2
#include "
find_local_dart_action.hpp
"
3
4
#include <cassert>
5
#include <optional>
6
#include <stdexcept>
7
#include <
wmtk/autogen/SimplexDart.hpp
>
8
#include <
wmtk/autogen/find_local_dart_action.hpp
>
9
#include <
wmtk/utils/TupleInspector.hpp
>
10
#include "
local_switch_tuple.hpp
"
11
namespace
wmtk::multimesh::utils
{
12
int8_t
find_local_dart_action
(
PrimitiveType
pt,
const
Tuple
& source,
const
Tuple
& target)
13
{
14
wmtk::autogen::SimplexDart
sd(pt);
15
return
find_local_dart_action
(sd, source, target);
16
}
17
int8_t
find_local_dart_action
(
18
const
wmtk::autogen::SimplexDart
& sd,
19
const
Tuple
& source,
20
const
Tuple
& target)
21
{
22
// target = R * source
23
// target * source^{-1} = R
24
int8_t src = sd.
valid_index_from_tuple
(source);
25
int8_t tgt = sd.
valid_index_from_tuple
(target);
26
return
wmtk::autogen::find_local_dart_action
(sd, src, tgt);
27
}
28
int8_t
find_local_dart_action
(
29
const
wmtk::autogen::SimplexDart
& sd,
30
const
wmtk::autogen::Dart
& source,
31
const
wmtk::autogen::Dart
& target)
32
{
33
return
wmtk::autogen::find_local_dart_action
(
34
sd,
35
source.
local_orientation
(),
36
target.
local_orientation
());
37
}
38
39
}
// namespace wmtk::multimesh::utils
SimplexDart.hpp
TupleInspector.hpp
find_local_dart_action.hpp
wmtk::Tuple
Definition:
Tuple.hpp:42
wmtk::autogen::Dart
Definition:
Dart.hpp:8
wmtk::autogen::Dart::local_orientation
int8_t & local_orientation()
Definition:
Dart.hpp:18
wmtk::autogen::SimplexDart
Definition:
SimplexDart.hpp:11
wmtk::autogen::SimplexDart::valid_index_from_tuple
int8_t valid_index_from_tuple(const wmtk::Tuple &t) const
Definition:
SimplexDart.cpp:129
find_local_dart_action.hpp
local_switch_tuple.hpp
wmtk::autogen::find_local_dart_action
int8_t find_local_dart_action(const SimplexDart &sd, int8_t source, int8_t target)
Definition:
find_local_dart_action.hpp:6
wmtk::multimesh::utils
Definition:
Mesh.hpp:91
wmtk::multimesh::utils::find_local_dart_action
int8_t find_local_dart_action(PrimitiveType pt, const Tuple &source, const Tuple &target)
Definition:
find_local_dart_action.cpp:12
wmtk::PrimitiveType
PrimitiveType
Definition:
PrimitiveType.hpp:9
src
wmtk
multimesh
utils
find_local_dart_action.cpp
Generated by
1.9.1