From ebf8f9dba145b1286a1e212812480f7f162437da Mon Sep 17 00:00:00 2001 From: Guillaume Damiand Date: Fri, 18 Apr 2025 11:27:19 +0200 Subject: [PATCH] remove un-necessary if def basic viewer --- .../examples/Polygon_repair/repair_non_zero_polygon_2.cpp | 5 +---- .../examples/Polygon_repair/repair_union_intersect_2.cpp | 8 ++------ 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/Polygon_repair/examples/Polygon_repair/repair_non_zero_polygon_2.cpp b/Polygon_repair/examples/Polygon_repair/repair_non_zero_polygon_2.cpp index d868d68165f..b87459e968d 100644 --- a/Polygon_repair/examples/Polygon_repair/repair_non_zero_polygon_2.cpp +++ b/Polygon_repair/examples/Polygon_repair/repair_non_zero_polygon_2.cpp @@ -5,9 +5,7 @@ #include #include #include -#ifdef CGAL_USE_BASIC_VIEWER_QT #include -#endif using Kernel = CGAL::Exact_predicates_inexact_constructions_kernel; using Point_2 = Kernel::Point_2; @@ -24,9 +22,8 @@ int main(int argc, char* argv[]) { CGAL::IO::read_polygon_WKT(in, pin); Multipolygon_with_holes_2 mp = CGAL::Polygon_repair::repair(pin, CGAL::Polygon_repair::Non_zero_rule()); -#ifdef CGAL_USE_BASIC_VIEWER_QT + CGAL::draw(mp); -#endif if (mp.number_of_polygons_with_holes() > 1) { CGAL::IO::write_multi_polygon_WKT(std::cout, mp); diff --git a/Polygon_repair/examples/Polygon_repair/repair_union_intersect_2.cpp b/Polygon_repair/examples/Polygon_repair/repair_union_intersect_2.cpp index f00da2bd943..44c9b18f31a 100644 --- a/Polygon_repair/examples/Polygon_repair/repair_union_intersect_2.cpp +++ b/Polygon_repair/examples/Polygon_repair/repair_union_intersect_2.cpp @@ -3,9 +3,7 @@ #include #include -#ifdef CGAL_USE_BASIC_VIEWER_QT #include -#endif #include @@ -49,9 +47,8 @@ main(int argc, char* argv[]) { std::ofstream out("intersection.wkt"); CGAL::IO::write_multi_polygon_WKT(out, mpwh); -#ifdef CGAL_USE_BASIC_VIEWER_QT + CGAL::draw(mpwh); -#endif } { @@ -64,9 +61,8 @@ main(int argc, char* argv[]) std::ofstream out("joinn.wkt"); CGAL::IO::write_multi_polygon_WKT(out, mpwh); -#ifdef CGAL_USE_BASIC_VIEWER_QT + CGAL::draw(mpwh); -#endif } return 0; }