diff --git a/Nef_3/include/CGAL/Nef_3/SNC_point_locator.h b/Nef_3/include/CGAL/Nef_3/SNC_point_locator.h index 0cb23307d66..9b4ede6b4d8 100644 --- a/Nef_3/include/CGAL/Nef_3/SNC_point_locator.h +++ b/Nef_3/include/CGAL/Nef_3/SNC_point_locator.h @@ -349,10 +349,8 @@ public: CGAL_assertion( initialized); _CGAL_NEF_TRACEN( "locate "<
objects_around_point(p);
@@ -366,23 +364,23 @@ public:
if(p==v->point())
return make_object(v);
- min_distance = CGAL::squared_distance(v->point(),p);
- result = make_object(v);
+ closest = v;
++o;
while(o!=candidates.end() && CGAL::assign(v,*o)) {
if ( p == v->point()) {
_CGAL_NEF_TRACEN("found on vertex "<