From bbccf42ef9d786737365e2299a3da40fa6f3b33c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Mon, 1 May 2017 16:15:40 +0200 Subject: [PATCH] Removed an ugly static_cast --- Triangulation_3/include/CGAL/Regular_triangulation_3.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Triangulation_3/include/CGAL/Regular_triangulation_3.h b/Triangulation_3/include/CGAL/Regular_triangulation_3.h index 34bf93f938d..acd07cd490b 100644 --- a/Triangulation_3/include/CGAL/Regular_triangulation_3.h +++ b/Triangulation_3/include/CGAL/Regular_triangulation_3.h @@ -1574,9 +1574,10 @@ namespace CGAL { Locate_type lt; int li, lj; - // I put the cast here temporarily - // until we solve the traits class pb of regular triangulation - Cell_handle c = locate(static_cast(p), lt, li, lj, start); + + typename Gt::Construct_weighted_point_3 p2wp = + geom_traits().construct_weighted_point_3_object(); + Cell_handle c = locate(p2wp(p), lt, li, lj, start); // - start with the closest vertex from the located cell. // - repeatedly take the nearest of its incident vertices if any