Removed an ugly static_cast

This commit is contained in:
Mael Rouxel-Labbé 2017-05-01 16:15:40 +02:00
parent 40566671c7
commit bbccf42ef9
1 changed files with 4 additions and 3 deletions

View File

@ -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<Weighted_point>(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