diff --git a/BGL/include/CGAL/boost/graph/properties_OpenMesh.h b/BGL/include/CGAL/boost/graph/properties_OpenMesh.h index 9261d01b7f9..f52f17fd72b 100644 --- a/BGL/include/CGAL/boost/graph/properties_OpenMesh.h +++ b/BGL/include/CGAL/boost/graph/properties_OpenMesh.h @@ -13,8 +13,6 @@ #include #include #include -#include - #include #ifndef OPEN_MESH_CLASS @@ -233,8 +231,9 @@ public: #if defined(CGAL_USE_OM_POINTS) const_cast(*pm.sm_).set_point(v,p); #else - typedef typename CGAL::Kernel_traits::type FT; - const_cast(*pm.sm_).set_point(v, typename OpenMesh::Point(FT(p[0]), FT(p[1]), FT(p[2]))); + typedef typename OpenMesh::vector_traits::value_type Scalar; + const_cast(*pm.sm_).set_point + (v, typename OpenMesh::Point(Scalar(p[0]), Scalar(p[1]), Scalar(p[2]))); #endif }