From 8eace7b066ae0accffe31236558683c545ad1fd0 Mon Sep 17 00:00:00 2001 From: Efi Fogel Date: Thu, 1 Oct 2020 00:01:58 +0300 Subject: [PATCH] Construct opposite only if CGAL_ALWAYS_LEFT_TO_RIGHT --- Arrangement_on_surface_2/include/CGAL/Arr_polycurve_traits_2.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Arrangement_on_surface_2/include/CGAL/Arr_polycurve_traits_2.h b/Arrangement_on_surface_2/include/CGAL/Arr_polycurve_traits_2.h index 6d61db9e61e..941bbb0333a 100644 --- a/Arrangement_on_surface_2/include/CGAL/Arr_polycurve_traits_2.h +++ b/Arrangement_on_surface_2/include/CGAL/Arr_polycurve_traits_2.h @@ -852,9 +852,11 @@ public: if (x_seg != nullptr) { X_monotone_subcurve_2 seg = *x_seg; +#ifdef CGAL_ALWAYS_LEFT_TO_RIGHT // If for some reason the subcurve intersection // results in left oriented curve. if (cmp_seg_endpts(seg) == LARGER) seg = construct_opposite(seg); +#endif ocv.push_back(seg); }