Skip to content

Commit ebf8f9d

Browse files
committed
remove un-necessary if def basic viewer
1 parent cb42067 commit ebf8f9d

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

Polygon_repair/examples/Polygon_repair/repair_non_zero_polygon_2.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
66
#include <CGAL/Polygon_repair/repair.h>
77
#include <CGAL/IO/WKT.h>
8-
#ifdef CGAL_USE_BASIC_VIEWER_QT
98
#include <CGAL/draw_multipolygon_with_holes_2.h>
10-
#endif
119

1210
using Kernel = CGAL::Exact_predicates_inexact_constructions_kernel;
1311
using Point_2 = Kernel::Point_2;
@@ -24,9 +22,8 @@ int main(int argc, char* argv[]) {
2422
CGAL::IO::read_polygon_WKT(in, pin);
2523

2624
Multipolygon_with_holes_2 mp = CGAL::Polygon_repair::repair(pin, CGAL::Polygon_repair::Non_zero_rule());
27-
#ifdef CGAL_USE_BASIC_VIEWER_QT
25+
2826
CGAL::draw(mp);
29-
#endif
3027

3128
if (mp.number_of_polygons_with_holes() > 1) {
3229
CGAL::IO::write_multi_polygon_WKT(std::cout, mp);

Polygon_repair/examples/Polygon_repair/repair_union_intersect_2.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
#include <CGAL/Polygon_with_holes_2.h>
44
#include <CGAL/Multipolygon_with_holes_2.h>
55

6-
#ifdef CGAL_USE_BASIC_VIEWER_QT
76
#include <CGAL/draw_multipolygon_with_holes_2.h>
8-
#endif
97

108
#include <CGAL/Polygon_repair/repair.h>
119

@@ -49,9 +47,8 @@ main(int argc, char* argv[])
4947
{
5048
std::ofstream out("intersection.wkt");
5149
CGAL::IO::write_multi_polygon_WKT(out, mpwh);
52-
#ifdef CGAL_USE_BASIC_VIEWER_QT
50+
5351
CGAL::draw(mpwh);
54-
#endif
5552
}
5653

5754
{
@@ -64,9 +61,8 @@ main(int argc, char* argv[])
6461

6562
std::ofstream out("joinn.wkt");
6663
CGAL::IO::write_multi_polygon_WKT(out, mpwh);
67-
#ifdef CGAL_USE_BASIC_VIEWER_QT
64+
6865
CGAL::draw(mpwh);
69-
#endif
7066
}
7167
return 0;
7268
}

0 commit comments

Comments
 (0)