From 46b7c73e3730b6c46f6b88dae9984519536b63e7 Mon Sep 17 00:00:00 2001 From: Michael Hemmer Date: Tue, 20 Oct 2020 16:58:36 +0200 Subject: [PATCH] Allow Epec in Refine_edges_with_clusters Allow instantiation of Refine_edges_with_clusters with EPEC. This should be a null op with Epic. --- Mesh_2/include/CGAL/Mesh_2/Refine_edges_with_clusters.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Mesh_2/include/CGAL/Mesh_2/Refine_edges_with_clusters.h b/Mesh_2/include/CGAL/Mesh_2/Refine_edges_with_clusters.h index 655d9a3724e..8fe8b44bd84 100644 --- a/Mesh_2/include/CGAL/Mesh_2/Refine_edges_with_clusters.h +++ b/Mesh_2/include/CGAL/Mesh_2/Refine_edges_with_clusters.h @@ -273,8 +273,10 @@ private: const Point m = midpoint(a, b); typename Geom_traits::Vector_2 v = vector(a,m); - v = scaled_vector(v,CGAL_NTS sqrt(c.minimum_squared_length / - squared_distance(a,b))); + v = scaled_vector( + v, CGAL_NTS sqrt(CGAL::to_double(c.minimum_squared_length / + squared_distance(a, b)))); + Point i = translate(a,v), i2(i);