Progress on preventing polygon collapse

This commit is contained in:
Erica Fischer
2023-10-25 14:19:43 -07:00
parent 307d917dd0
commit 897d62359b
+5 -2
View File
@@ -614,8 +614,11 @@ void *partial_feature_worker(void *v) {
drawvec geom = (*partials)[i].geoms[0];
if (t == VT_POLYGON) {
geom = clean_or_clip_poly(geom, 0, 0, false, false);
fix_by_triangulation(geom, z, out_detail);
drawvec cleaned = clean_or_clip_poly(geom, 0, 0, false, false);
drawvec fixed = fix_by_triangulation(geom, z, out_detail);
if (fixed != cleaned) {
geom = fixed;
}
}
to_tile_scale(geom, z, out_detail);