revert part of commit 58266 that was supposed to fix a bug in locate.

This commit is contained in:
Sébastien Loriot 2010-08-26 11:42:47 +00:00
parent 6bdfdf8f70
commit c08cd885a5
1 changed files with 5 additions and 7 deletions

View File

@ -834,14 +834,12 @@ locate(const Point_d& x) const
this -> clear_visited_marks(origin_simplex_); this -> clear_visited_marks(origin_simplex_);
//f and simplices in candidates are unbounded simplices only //f and simplices in candidates are unbounded simplices only
if ( f != Simplex_handle() ){ if ( f != Simplex_handle() ){
CGAL_precondition(is_unbounded_simplex(f)); return f;
return opposite_simplex(f,0);
} }
//SL: candidates contains only unbounded simplices, according typename std::list<Simplex_handle>::iterator it;
//to the documentation locate must return Simplex_handle() for(it = candidates.begin(); it != candidates.end(); ++it)
//typename std::list<Simplex_handle>::iterator it; if ( contains(*it,x) ) return *it;
//for(it = candidates.begin(); it != candidates.end(); ++it)
// if ( contains(*it,x) ) return *it;
return Simplex_handle(); return Simplex_handle();
} }