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_);
//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<Simplex_handle>::iterator it;
//for(it = candidates.begin(); it != candidates.end(); ++it)
// if ( contains(*it,x) ) return *it;
typename std::list<Simplex_handle>::iterator it;
for(it = candidates.begin(); it != candidates.end(); ++it)
if ( contains(*it,x) ) return *it;
return Simplex_handle();
}