From e55a8328e34d37585ae011884e2a027fd32df1bc Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Fri, 19 Sep 2025 12:13:02 -0400 Subject: [PATCH] re-add gaps visualization. remove unused inset iteration for single intersections --- src/kiri/mode/fdm/post.js | 48 ++++++++++++++++++++------------------- 1 file changed, 25 insertions(+), 23 deletions(-) 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