Wildmeshing Toolkit
valid_index_from_tuple.cpp
Go to the documentation of this file.
1
2
#include "
valid_index_from_tuple.hpp
"
3
#include <cassert>
4
#include <
wmtk/autogen/edge_mesh/valid_index_from_tuple.hpp
>
5
#include <
wmtk/autogen/tet_mesh/valid_index_from_tuple.hpp
>
6
#include <
wmtk/autogen/tri_mesh/valid_index_from_tuple.hpp
>
7
namespace
wmtk::autogen
{
8
int8_t
valid_index_from_tuple
(
PrimitiveType
mesh_type,
const
Tuple
& t)
9
{
10
switch
(mesh_type) {
11
case
PrimitiveType::Tetrahedron
:
return
tet_mesh::valid_index_from_tuple
(t);
12
case
PrimitiveType::Triangle
:
return
tri_mesh::valid_index_from_tuple
(t);
13
case
PrimitiveType::Edge
:
return
edge_mesh::valid_index_from_tuple
(t);
14
case
PrimitiveType::Vertex
:
15
default
:
return
0;
16
}
17
return
{};
18
}
19
}
// namespace wmtk::autogen
wmtk::Tuple
Definition:
Tuple.hpp:42
valid_index_from_tuple.hpp
wmtk::autogen::edge_mesh::valid_index_from_tuple
int8_t valid_index_from_tuple(const Tuple &t)
Definition:
valid_index_from_tuple.hxx:7
wmtk::autogen::tet_mesh::valid_index_from_tuple
int8_t valid_index_from_tuple(const Tuple &t)
Definition:
valid_index_from_tuple.hxx:7
wmtk::autogen::tri_mesh::valid_index_from_tuple
int8_t valid_index_from_tuple(const Tuple &t)
Definition:
valid_index_from_tuple.hxx:7
wmtk::autogen
Definition:
Dart.cpp:4
wmtk::autogen::valid_index_from_tuple
int8_t valid_index_from_tuple(PrimitiveType mesh_type, const Tuple &t)
Definition:
valid_index_from_tuple.cpp:8
wmtk::PrimitiveType
PrimitiveType
Definition:
PrimitiveType.hpp:9
wmtk::PrimitiveType::Triangle
@ Triangle
wmtk::PrimitiveType::Vertex
@ Vertex
wmtk::PrimitiveType::Tetrahedron
@ Tetrahedron
wmtk::PrimitiveType::Edge
@ Edge
valid_index_from_tuple.hpp
valid_index_from_tuple.hpp
valid_index_from_tuple.hpp
src
wmtk
autogen
valid_index_from_tuple.cpp
Generated by
1.9.1