49 #ifndef OPENMESH_CASTS_HH
50 #define OPENMESH_CASTS_HH
53 #include <OpenMesh/Core/Mesh/PolyMesh_ArrayKernelT.hh>
54 #include <OpenMesh/Core/Mesh/TriMesh_ArrayKernelT.hh>
60 template <
class Traits>
61 inline TriMesh_ArrayKernelT<Traits>& TRIMESH_CAST(PolyMesh_ArrayKernelT<Traits>& _poly_mesh)
62 {
return reinterpret_cast< TriMesh_ArrayKernelT<Traits>&
>(_poly_mesh); }
64 template <
class Traits>
65 inline const TriMesh_ArrayKernelT<Traits>& TRIMESH_CAST(
const PolyMesh_ArrayKernelT<Traits>& _poly_mesh)
66 {
return reinterpret_cast< const TriMesh_ArrayKernelT<Traits>&
>(_poly_mesh); }
68 template <
class Traits>
69 inline PolyMesh_ArrayKernelT<Traits>& POLYMESH_CAST(TriMesh_ArrayKernelT<Traits>& _tri_mesh)
70 {
return reinterpret_cast< PolyMesh_ArrayKernelT<Traits>&
>(_tri_mesh); }
72 template <
class Traits>
73 inline const PolyMesh_ArrayKernelT<Traits>& POLYMESH_CAST(
const TriMesh_ArrayKernelT<Traits>& _tri_mesh)
74 {
return reinterpret_cast< const PolyMesh_ArrayKernelT<Traits>&
>(_tri_mesh); }
77 #endif//OPENMESH_CASTS_HH
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:64