Skip to content

Commit

Permalink
Fixed bug in Compare_y_near_boundary
Browse files Browse the repository at this point in the history
  • Loading branch information
efifogel committed Sep 9, 2024
1 parent a6c965b commit d226b11
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1772,13 +1772,13 @@ class Arr_polycurve_basic_traits_2 {
auto cmp_endpt = geom_traits->compare_endpoints_xy_2_object();
Comparison_result direction1 = cmp_endpt(xcv1[0]);
const X_monotone_subcurve_2& xs1 =
(((direction1 == SMALLER) && (ce == ARR_MAX_END)) ||
((direction1 == LARGER) && (ce == ARR_MIN_END))) ?
(((direction1 == SMALLER) && (ce == ARR_MIN_END)) ||
((direction1 == LARGER) && (ce == ARR_MAX_END))) ?
xcv1[0] : xcv1[xcv1.number_of_subcurves()-1];
Comparison_result direction2 = cmp_endpt(xcv2[0]);
const X_monotone_subcurve_2& xs2 =
(((direction2 == SMALLER) && (ce == ARR_MAX_END)) ||
((direction2 == LARGER) && (ce == ARR_MIN_END))) ?
(((direction2 == SMALLER) && (ce == ARR_MIN_END)) ||
((direction2 == LARGER) && (ce == ARR_MAX_END))) ?
xcv2[0] : xcv2[xcv2.number_of_subcurves()-1];
return geom_traits->compare_y_near_boundary_2_object()(xs1, xs2, ce);
}
Expand Down

0 comments on commit d226b11

Please sign in to comment.