cleanup - mainly suggested by Shriramana Sharma

This commit is contained in:
Efi Fogel 2013-02-11 16:56:09 +02:00
parent c9f1fa974b
commit be12d8abcd
1 changed files with 16 additions and 17 deletions

View File

@ -16,7 +16,6 @@ int main ()
#include <CGAL/Cartesian.h>
#include <CGAL/CORE_algebraic_number_traits.h>
#include <CGAL/Arr_Bezier_curve_traits_2.h>
#include <CGAL/Arrangement_2.h>
#include <CGAL/Gps_traits_2.h>
#include <CGAL/Boolean_set_operations_2.h>
#include <CGAL/Timer.h>
@ -94,8 +93,8 @@ bool read_Bezier_polygon (const char* filename, Polygon_with_holes_2& P)
Polygon_2 pgn(xcvs.begin(), xcvs.end());
CGAL::Orientation orient = pgn.orientation();
if ((pgns.empty() && orient == CGAL::CLOCKWISE) ||
(! pgns.empty() && orient == CGAL::COUNTERCLOCKWISE))
if ((pgns.empty() && (orient == CGAL::CLOCKWISE)) ||
(! pgns.empty() && (orient == CGAL::COUNTERCLOCKWISE)))
pgn.reverse_orientation();
pgns.push_back(pgn);