Remove duplicate vertices before calling wagyu

This commit is contained in:
Eric Fischer 2016-12-13 16:55:33 -08:00
parent a4f5406cfb
commit d7d5bed781
2 changed files with 126 additions and 125 deletions

View File

@ -197,6 +197,7 @@ static void decode_clipped(mapbox::geometry::multi_polygon<long long> &t, drawve
drawvec clean_or_clip_poly(drawvec &geom, int z, int detail, int buffer, bool clip) {
mapbox::geometry::wagyu::wagyu<long long> wagyu;
geom = remove_noop(geom, VT_POLYGON, 0);
for (size_t i = 0; i < geom.size(); i++) {
if (geom[i].op == VT_MOVETO) {
size_t j;

File diff suppressed because one or more lines are too long