Fix overly zealous check: if den is 0, it's not a failure but a non-event

This commit is contained in:
Mael Rouxel-Labbé 2023-03-15 18:40:05 +01:00
parent cfbb0d3f68
commit 0e0ec53fd8
1 changed files with 1 additions and 1 deletions

View File

@ -744,7 +744,7 @@ compute_degenerate_offset_lines_isec_timeC2 ( Trisegment_2_ptr< Trisegment_2<K,
CGAL_STSKEL_TRAITS_TRACE("Event time (degenerate, vertical) n=" << n2str(num) << " d=" << n2str(den) << " n/d=" << Rational<FT>(num,den) )
}
ok = CGAL_NTS is_finite(num) && CGAL_NTS is_finite(den) && !CGAL_NTS certified_is_zero(den);
ok = CGAL_NTS is_finite(num) && CGAL_NTS is_finite(den);
return cgal_make_optional(ok, Rational<FT>(num,den)) ;
}
else