Skip to content

Commit

Permalink
Fix for two identical points. Must be checked with André
Browse files Browse the repository at this point in the history
  • Loading branch information
afabri committed Dec 9, 2024
1 parent 55a3cb5 commit ddbfcd0
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ fill_lambda(const Point& circle_center,
}
c -= CGAL::square(typename Traits::FT(radius));

if(is_zero(a)){
I = std::make_pair(Lambda<C>(0), Lambda<C>(1));
return true;
}

FT minus_b_div_a = b / a;
FT d = CGAL::square(minus_b_div_a) - c / a;

Expand Down

0 comments on commit ddbfcd0

Please sign in to comment.