From 613ae0d564c35b681d3f1745185d67a1b18a57c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Tue, 22 Nov 2022 18:33:43 +0100 Subject: [PATCH] Proper fix after botched fix (adb10155fcc) --- BGL/include/CGAL/boost/graph/properties_OpenMesh.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/BGL/include/CGAL/boost/graph/properties_OpenMesh.h b/BGL/include/CGAL/boost/graph/properties_OpenMesh.h index 6b2e69c1bb2..bdc9cec7ef0 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 }