diff --git a/src/geo/polygon.js b/src/geo/polygon.js index 2f71074c..d0a543bc 100644 --- a/src/geo/polygon.js +++ b/src/geo/polygon.js @@ -1830,7 +1830,7 @@ class Polygon { if (dl < max) { continue; } - const div = dl / dist; + const div = dl / max; const fit = div | 0; const add = fit - 1; const ix = dx / fit; @@ -1838,7 +1838,7 @@ class Polygon { let ox = p1.x + ix; let oy = p1.y + iy; for (let i=0; i p.segment(topo.tolerance * 2)); + for (let poly of hirez) { for (let point of poly.points) { point.z = topo.toolAtXY(point.x, point.y); } } + return hirez; } prepare(ops, progress) {