Wildmeshing Toolkit
simplex_index_from_valid_index.cpp
Go to the documentation of this file.
1
#include "
simplex_index_from_valid_index.hpp
"
2
#include <
wmtk/autogen/edge_mesh/simplex_index_from_valid_index.hpp
>
3
#include <
wmtk/autogen/tet_mesh/simplex_index_from_valid_index.hpp
>
4
#include <
wmtk/autogen/tri_mesh/simplex_index_from_valid_index.hpp
>
5
6
namespace
wmtk::autogen::utils
{
7
auto
simplex_index_from_valid_index
(
8
const
PrimitiveType
mesh_type,
9
int8_t valid_index,
10
wmtk::PrimitiveType
type) -> int8_t
11
{
12
switch
(mesh_type) {
13
case
PrimitiveType::Edge
:
return
edge_mesh::simplex_index_from_valid_index
(valid_index, type);
14
case
PrimitiveType::Triangle
:
15
return
tri_mesh::simplex_index_from_valid_index
(valid_index, type);
16
case
PrimitiveType::Tetrahedron
:
17
return
tet_mesh::simplex_index_from_valid_index
(valid_index, type);
18
case
PrimitiveType::Vertex
:
return
0;
19
default
: assert(
false
);
20
}
21
return
0;
22
}
23
}
// namespace wmtk::autogen::utils
simplex_index_from_valid_index.hpp
wmtk::autogen::edge_mesh::simplex_index_from_valid_index
int8_t simplex_index_from_valid_index(int8_t valid_index, wmtk::PrimitiveType type)
Definition:
simplex_index_from_valid_index.hxx:7
wmtk::autogen::tet_mesh::simplex_index_from_valid_index
int8_t simplex_index_from_valid_index(int8_t valid_index, wmtk::PrimitiveType type)
Definition:
simplex_index_from_valid_index.hxx:7
wmtk::autogen::tri_mesh::simplex_index_from_valid_index
int8_t simplex_index_from_valid_index(int8_t valid_index, wmtk::PrimitiveType type)
Definition:
simplex_index_from_valid_index.hxx:7
wmtk::autogen::utils
Definition:
largest_shared_subdart_size.cpp:7
wmtk::autogen::utils::simplex_index_from_valid_index
auto simplex_index_from_valid_index(const PrimitiveType mesh_type, int8_t valid_index, wmtk::PrimitiveType type) -> int8_t
Definition:
simplex_index_from_valid_index.cpp:7
wmtk::PrimitiveType
PrimitiveType
Definition:
PrimitiveType.hpp:9
wmtk::PrimitiveType::Triangle
@ Triangle
wmtk::PrimitiveType::Vertex
@ Vertex
wmtk::PrimitiveType::Tetrahedron
@ Tetrahedron
wmtk::PrimitiveType::Edge
@ Edge
simplex_index_from_valid_index.hpp
simplex_index_from_valid_index.hpp
simplex_index_from_valid_index.hpp
src
wmtk
autogen
utils
simplex_index_from_valid_index.cpp
Generated by
1.9.1