Upgrade Clipper to 07b828b1 to fix self-intersecting polygons

This commit is contained in:
Eric Fischer
2016-03-18 16:35:29 -07:00
parent 7140a3dd91
commit 707036fe79
10 changed files with 548 additions and 106 deletions
+3
View File
@@ -537,6 +537,9 @@ void *partial_feature_worker(void *v) {
// Give Clipper a chance to try to fix it.
for (unsigned i = 0; i < geoms.size(); i++) {
geoms[i] = clean_or_clip_poly(geoms[i], 0, 0, 0, false);
if (additional[A_DEBUG_POLYGON]) {
check_polygon(geoms[i]);
}
geoms[i] = close_poly(geoms[i]);
}
}