Raise the triangle thickness minimum to 2

This commit is contained in:
Erica Fischer
2023-10-27 15:33:22 -07:00
parent 705da717b2
commit 93c7398998
61 changed files with 31907 additions and 27233 deletions
+3 -2
View File
@@ -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;
}