found a bug and added a CGAL assertion and a few comments

This commit is contained in:
Menelaos Karavelas 2004-03-17 21:00:15 +00:00
parent df8f772042
commit b9855796a8
1 changed files with 5 additions and 0 deletions

View File

@ -373,6 +373,11 @@ insert_point_on_segment(const Storage_site_2& ss, const Site_2& t,
Site_2 sitev_supp(sitev.point(0), sitev.point(1));
do {
Face_handle ff1(fc1), ff2(fc2);
// MK::ERROR: ff1 and ff2 cannot be infinite. Modify the code to
// handle this case
CGAL_assertion( !is_infinite(ff1) && !is_infinite(ff2) );
Oriented_side os1 = oriented_side(fc1->vertex(0)->site(),
fc1->vertex(1)->site(),
fc1->vertex(2)->site(),