44 #ifndef OPENMESH_CASTS_HH
45 #define OPENMESH_CASTS_HH
48 #include <OpenMesh/Core/Mesh/PolyMesh_ArrayKernelT.hh>
49 #include <OpenMesh/Core/Mesh/TriMesh_ArrayKernelT.hh>
55 template <
class Traits>
56 inline TriMesh_ArrayKernelT<Traits>& TRIMESH_CAST(PolyMesh_ArrayKernelT<Traits>& _poly_mesh)
57 {
return reinterpret_cast< TriMesh_ArrayKernelT<Traits>&
>(_poly_mesh); }
59 template <
class Traits>
60 inline const TriMesh_ArrayKernelT<Traits>& TRIMESH_CAST(
const PolyMesh_ArrayKernelT<Traits>& _poly_mesh)
61 {
return reinterpret_cast< const TriMesh_ArrayKernelT<Traits>&
>(_poly_mesh); }
63 template <
class Traits>
64 inline PolyMesh_ArrayKernelT<Traits>& POLYMESH_CAST(TriMesh_ArrayKernelT<Traits>& _tri_mesh)
65 {
return reinterpret_cast< PolyMesh_ArrayKernelT<Traits>&
>(_tri_mesh); }
67 template <
class Traits>
68 inline const PolyMesh_ArrayKernelT<Traits>& POLYMESH_CAST(
const TriMesh_ArrayKernelT<Traits>& _tri_mesh)
69 {
return reinterpret_cast< const PolyMesh_ArrayKernelT<Traits>&
>(_tri_mesh); }
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:59