OpenMesh
typename.hh
1
#pragma once
2
7
8
#include <string>
9
#include <typeinfo>
10
#include <vector>
11
#include <OpenMesh/Core/Mesh/Handles.hh>
12
#include <OpenMesh/Core/Geometry/VectorT.hh>
13
14
namespace
OpenMesh
{
15
16
template
<
typename
T>
17
std::string get_type_name()
18
{
19
#ifdef _MSC_VER
20
// MSVC'S type_name returns only a friendly name with name() method,
21
// to get a unique name use raw_name() method instead
22
return
typeid
(T).raw_name();
23
#else
24
// GCC and clang curently return mangled name as name(), there is no raw_name() method
25
return
typeid
(T).name();
26
#endif
27
}
28
29
}
//namespace OpenMesh
OpenMesh
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition:
MeshItems.hh:59
Project
OpenMesh
, © Visual Computing Institute, RWTH Aachen. Documentation generated using
doxygen
.