#include <iostream>
#include <fstream>
#include <string>
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Polygon_repair/repair.h>
#include <CGAL/IO/WKT.h>
int main(int argc, char* argv[]) {
const char* filename = (argc > 1) ? argv[1] : "data/bridge-edge.wkt";
std::ifstream in(filename);
Polygon_with_holes_2 pin;
if (mp.number_of_polygons_with_holes() > 1) {
} else {
}
return 0;
}
Multipolygon_with_holes_2< Kernel, Container > repair(const Polygon_2< Kernel, Container > &p, Rule=Rule())
repairs polygon p using the given rule
Definition: repair.h:51
bool read_polygon_WKT(std::istream &in, Polygon &polygon)
std::ostream & write_polygon_WKT(std::ostream &out, const Polygon &poly)
std::ostream & write_multi_polygon_WKT(std::ostream &out, MultiPolygon &polygons)