Wildmeshing Toolkit
Loading...
Searching...
No Matches
local_id_table_offset.cpp
Go to the documentation of this file.
2#include <cassert>
6
7namespace wmtk::autogen::utils {
8auto local_id_table_offset(PrimitiveType mesh_type, const Tuple& t) -> int8_t
9{
10 switch (mesh_type) {
14 case PrimitiveType::Vertex: return 0;
15 default: assert(false);
16 }
17 return 0;
18}
19} // namespace wmtk::autogen::utils
The Tuple is the basic navigation tool in our mesh data structure.
Definition Tuple.hpp:19
int64_t local_id_table_offset(const Tuple &t)
int64_t local_id_table_offset(const Tuple &t)
int64_t local_id_table_offset(const Tuple &t)
auto local_id_table_offset(PrimitiveType mesh_type, const Tuple &t) -> int8_t