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
6
IdSimplex::IdSimplex
(
const
NavigatableSimplex
& s)
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
IdSimplex.hpp
Mesh.hpp
NavigatableSimplex.hpp
wmtk::Mesh
Definition:
Mesh.hpp:106
wmtk::Mesh::id
int64_t id(const Tuple &tuple, PrimitiveType type) const
return the global id of the Tuple of the given dimension
Definition:
Mesh.hpp:1020
wmtk::Tuple
Definition:
Tuple.hpp:42
wmtk::simplex::IdSimplex
Definition:
IdSimplex.hpp:15
wmtk::simplex::IdSimplex::id
static int64_t id(const Mesh &m, PrimitiveType pt, const Tuple &t)
Definition:
IdSimplex.cpp:10
wmtk::simplex::IdSimplex::IdSimplex
IdSimplex()=default
wmtk::simplex::NavigatableSimplex
Definition:
NavigatableSimplex.hpp:16
wmtk::simplex
Definition:
Cell.hpp:7
wmtk::PrimitiveType
PrimitiveType
Definition:
PrimitiveType.hpp:9
src
wmtk
simplex
IdSimplex.cpp
Generated by
1.9.1