mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 16:35:40 +02:00
Raise the triangle thickness minimum to 2
This commit is contained in:
+3
-2
@@ -207,9 +207,10 @@ drawvec reduce_tiny_poly(drawvec &geom, int z, int detail, bool *still_needs_sim
|
||||
miny = std::min(miny, (long long) d.y);
|
||||
maxy = std::max(maxy, (long long) d.y);
|
||||
}
|
||||
if (area > 0 && area < minx * maxx / 4) {
|
||||
if (area > 0 && area <= pixel * pixel && area < (maxx - minx) * (maxy - miny) / 3) {
|
||||
// if the polygon doesn't use most of its area,
|
||||
// don't let it be dust.
|
||||
// don't let it be dust, because the shape is
|
||||
// probably something weird and interesting.
|
||||
area = pixel * pixel * 2;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user