mirror of https://github.com/CGAL/cgal
remove un-necessary if def basic viewer
This commit is contained in:
parent
cb42067263
commit
ebf8f9dba1
|
|
@ -5,9 +5,7 @@
|
|||
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
|
||||
#include <CGAL/Polygon_repair/repair.h>
|
||||
#include <CGAL/IO/WKT.h>
|
||||
#ifdef CGAL_USE_BASIC_VIEWER_QT
|
||||
#include <CGAL/draw_multipolygon_with_holes_2.h>
|
||||
#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);
|
||||
|
|
|
|||
|
|
@ -3,9 +3,7 @@
|
|||
#include <CGAL/Polygon_with_holes_2.h>
|
||||
#include <CGAL/Multipolygon_with_holes_2.h>
|
||||
|
||||
#ifdef CGAL_USE_BASIC_VIEWER_QT
|
||||
#include <CGAL/draw_multipolygon_with_holes_2.h>
|
||||
#endif
|
||||
|
||||
#include <CGAL/Polygon_repair/repair.h>
|
||||
|
||||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue