Wildmeshing Toolkit
IdSimplex.cpp
Go to the documentation of this file.
1 #include "IdSimplex.hpp"
2 #include <wmtk/Mesh.hpp>
3 #include "NavigatableSimplex.hpp"
4 namespace wmtk::simplex {
5 
7  : IdSimplex(s.primitive_type(), s.index())
8 {}
9 
10 int64_t IdSimplex::id(const Mesh& m, PrimitiveType pt, const Tuple& t)
11 {
12  return m.id(t, pt);
13 }
14 } // namespace wmtk::simplex
int64_t id(const Tuple &tuple, PrimitiveType type) const
return the global id of the Tuple of the given dimension
Definition: Mesh.hpp:1020
static int64_t id(const Mesh &m, PrimitiveType pt, const Tuple &t)
Definition: IdSimplex.cpp:10