Wildmeshing Toolkit
Loading...
Searching...
No Matches
convert.hxx
Go to the documentation of this file.
1
#pragma once
2
3
#include <cassert>
4
#include "
convert.hpp
"
5
#include "
subgroup_transformations.hpp
"
6
namespace
wmtk::autogen::subgroup
{
7
8
inline
int8_t
convert
(
PrimitiveType
from,
PrimitiveType
to, int8_t source)
9
{
10
return
convert
(int8_t(from), int8_t(to), source);
11
}
12
inline
int8_t
convert
(int8_t from, int8_t to, int8_t source)
13
{
14
const
int8_t v =
remap_table
[from - 1][to - 1][source];
15
assert(v != -1);
16
return
v;
17
}
18
}
// namespace wmtk::autogen::subgroup
convert.hpp
wmtk::autogen::subgroup
Definition
convert.hpp:4
wmtk::autogen::subgroup::remap_table
const int8_t * remap_table[3][3]
Definition
subgroup_transformations.cpp:29
wmtk::autogen::subgroup::convert
int8_t convert(PrimitiveType from, PrimitiveType to, int8_t source)
Definition
convert.hxx:8
wmtk::PrimitiveType
PrimitiveType
Definition
PrimitiveType.hpp:9
subgroup_transformations.hpp
src
wmtk
autogen
subgroup
convert.hxx
Generated by
1.9.8