mirror of https://github.com/CGAL/cgal
revert part of commit 58266 that was supposed to fix a bug in locate.
This commit is contained in:
parent
6bdfdf8f70
commit
c08cd885a5
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue