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>
55template <
class Traits>
56inline TriMesh_ArrayKernelT<Traits>& TRIMESH_CAST(PolyMesh_ArrayKernelT<Traits>& _poly_mesh)
57{
return reinterpret_cast< TriMesh_ArrayKernelT<Traits>&
>(_poly_mesh); }
59template <
class Traits>
60inline const TriMesh_ArrayKernelT<Traits>& TRIMESH_CAST(
const PolyMesh_ArrayKernelT<Traits>& _poly_mesh)
61{
return reinterpret_cast< const TriMesh_ArrayKernelT<Traits>&
>(_poly_mesh); }
63template <
class Traits>
64inline PolyMesh_ArrayKernelT<Traits>& POLYMESH_CAST(TriMesh_ArrayKernelT<Traits>& _tri_mesh)
65{
return reinterpret_cast< PolyMesh_ArrayKernelT<Traits>&
>(_tri_mesh); }
67template <
class Traits>
68inline 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