Add an option to drop a fraction of polygons by zoom.

Only warn once about polygon cleaning failures.
This commit is contained in:
Eric Fischer
2016-04-06 14:17:44 -07:00
parent d1456c0f66
commit 574a2b79c8
9 changed files with 2587 additions and 3 deletions
+6 -1
View File
@@ -311,7 +311,12 @@ drawvec clean_or_clip_poly(drawvec &geom, int z, int detail, int buffer, bool cl
}
if (!clipper.Execute(ClipperLib::ctUnion, clipped)) {
fprintf(stderr, "Polygon clean failed\n");
static bool complained = false;
if (!complained) {
fprintf(stderr, "Polygon clean failed\n");
complained = true;
}
}
}