Construct opposite only if CGAL_ALWAYS_LEFT_TO_RIGHT

This commit is contained in:
Efi Fogel 2020-10-01 00:01:58 +03:00
parent bd1501e184
commit 8eace7b066
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}