diff --git a/src/kiri/mode/fdm/post.js b/src/kiri/mode/fdm/post.js index 33b176d1..80955d23 100644 --- a/src/kiri/mode/fdm/post.js +++ b/src/kiri/mode/fdm/post.js @@ -164,11 +164,14 @@ function thin_type_2(params) { function thin_type_3(params) { // offsetN usually = extrusion width (nozzle diameter) - let { z, top, count, offsetN, last, gaps } = params; + let { z, top, count, offsetN } = params; // produce trace from outside of poly inward no more than max inset let noodleWidth = offsetN * count; - let { noodle,} = top.poly.noodle(noodleWidth); + let { noodle, remain } = top.poly.noodle(noodleWidth); + + // remaining area for infill after shells are extruded + let gaps = top.gaps = remain; // render inset "noodle" // shells.appendAll(noodle); @@ -189,6 +192,7 @@ function thin_type_3(params) { for (let i=0; i