Wildmeshing Toolkit
Loading...
Searching...
No Matches
mesh_type_from_primitive_type.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <wmtk/Primitive.hpp>
4
5namespace wmtk {
6class Mesh;
7class EdgeMesh;
8class PointMesh;
9class TetMesh;
10class TriMesh;
11} // namespace wmtk
12namespace wmtk::utils {
13
14// helper functions for identifying a simplicial complex from a primtivie type
15template <PrimitiveType pt>
17{
18 // if we ever call this something is wrong, but leaving this impl to let compilation work
19 using type = Mesh;
20};
21template <PrimitiveType pt>
23
24template <>
29template <>
34template <>
39
40template <>
45
46template <int8_t DIM>
52
53
54template <int8_t DIM>
56} // namespace wmtk::utils
typename mesh_type_from_dimension< DIM >::type mesh_type_from_dimension_t
typename mesh_type_from_primitive_type< pt >::type mesh_type_from_primitive_type_t
constexpr PrimitiveType get_primitive_type_from_id(int8_t id)
Get the primitive type corresponding to its unique integer id.
wmtk::utils::mesh_type_from_primitive_type_t< primitive_type > type