Wildmeshing Toolkit
Loading...
Searching...
No Matches
cell_dimension.hpp
Go to the documentation of this file.
1#pragma once
2namespace wmtk {
3class PointMesh;
4class EdgeMesh;
5class TriMesh;
6class TetMesh;
7} // namespace wmtk
9
10namespace detail {
11template <typename MeshType>
13{
14};
15template <>
17{
18 constexpr static int64_t value = 0;
19};
20template <>
22{
23 constexpr static int64_t value = 1;
24};
25template <>
27{
28 constexpr static int64_t value = 2;
29};
30template <>
32{
33 constexpr static int64_t value = 3;
34};
35} // namespace detail
36template <typename MeshType>
37constexpr static int64_t cell_dimension_v = detail::cell_dimension<MeshType>::value;
38
39/*
40constexpr static int64_t cell_dimension_v<PointMesh> = 0;
41constexpr static int64_t cell_dimension_v<EdgeMesh> = 1;
42constexpr static int64_t cell_dimension_v<TriMesh> = 2;
43constexpr static int64_t cell_dimension_v<EdgeMesh> = 3;
44*/
45
46
47} // namespace wmtk::utils::metaprogramming