From c08cd885a53dc26b0a4df92b50ffb814ad0534cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Thu, 26 Aug 2010 11:42:47 +0000 Subject: [PATCH] revert part of commit 58266 that was supposed to fix a bug in locate. --- Convex_hull_d/include/CGAL/Delaunay_d.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Convex_hull_d/include/CGAL/Delaunay_d.h b/Convex_hull_d/include/CGAL/Delaunay_d.h index f142316018c..a3b4b920ade 100644 --- a/Convex_hull_d/include/CGAL/Delaunay_d.h +++ b/Convex_hull_d/include/CGAL/Delaunay_d.h @@ -834,14 +834,12 @@ locate(const Point_d& x) const this -> clear_visited_marks(origin_simplex_); //f and simplices in candidates are unbounded simplices only if ( f != Simplex_handle() ){ - CGAL_precondition(is_unbounded_simplex(f)); - return opposite_simplex(f,0); + return f; } - //SL: candidates contains only unbounded simplices, according - //to the documentation locate must return Simplex_handle() - //typename std::list::iterator it; - //for(it = candidates.begin(); it != candidates.end(); ++it) - // if ( contains(*it,x) ) return *it; + typename std::list::iterator it; + for(it = candidates.begin(); it != candidates.end(); ++it) + if ( contains(*it,x) ) return *it; + return Simplex_handle(); }