From a46b4ab384be126d137e6054cae32e3d48f4b66c Mon Sep 17 00:00:00 2001 From: stewart allen Date: Wed, 28 Apr 2021 16:49:30 -0400 Subject: [PATCH] add ribs to anchor bump --- src/mode/fdm/slice.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/mode/fdm/slice.js b/src/mode/fdm/slice.js index 402976ab..6eed5231 100644 --- a/src/mode/fdm/slice.js +++ b/src/mode/fdm/slice.js @@ -391,9 +391,21 @@ count--; // break; } + let first = poly.first(); poly.push(poly.last().add({x:0, y, z:0})); poly.push(poly.first().add({x:0, y, z:0})); poly.setClosed(); + if (count > 2 && maxx - minx > 10) { + let mp = (maxx + minx) / 2; + let dx = (maxx - minx - 2); + dx = (Math.floor(dx / 3) * 3) / 2; + let fy = first.y; + let fz = first.z; + let n2 = nozzleSize / 2; + for (let x = mp - dx; x <= mp + dx ; x += 3) { + add.push( BASE.newPolygon().add(x, fy - n2, fz).add(x, fy + y + n2, fz).setOpen() ); + } + } } } }