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