From 08fb7dd6f3b2a53a87ae4030ebf2d6ffbf896e73 Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Sun, 9 Oct 2022 13:29:11 -0400 Subject: [PATCH] start release notes. tweak xray debug to skip fill --- release.md | 5 +++++ src/kiri-mode/fdm/slice.js | 16 +++++++++++++--- src/kiri/ui.js | 1 + 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/release.md b/release.md index b3644aed..45db98ea 100644 --- a/release.md +++ b/release.md @@ -3,6 +3,11 @@ Full docs @ https://docs.grid.space/projects/kiri-moto +# Release 3.6 + +* + + # Release 3.5 (2022-10-07) ## Kiri:moto diff --git a/src/kiri-mode/fdm/slice.js b/src/kiri-mode/fdm/slice.js index b1f99d05..a7d5a61b 100644 --- a/src/kiri-mode/fdm/slice.js +++ b/src/kiri-mode/fdm/slice.js @@ -307,6 +307,9 @@ FDM.slice = function(settings, widget, onupdate, ondone) { if (changes) { healed = true; slice.changes = changes; + if (self.debug) { + console.log('slice healed', slice.index, slice.z); + } } if (process.xray) { slice.index = process.xrayi.shift(); @@ -832,7 +835,6 @@ function doRender(slice, isSynth, params, devel) { .setLayer("support", COLOR.support) .addLines(poly.fill, vopt({ offset, height })); }); - if (slice.xray) { const color = [ 0xff0000, 0x00aa00, 0x0000ff, 0xaaaa00, 0xff00ff, 0x0 ]; if (slice.lines) { @@ -891,6 +893,10 @@ function doShells(slice, count, offset1, offsetN, fillOffset, opt = {}) { * @param {number} density */ function doSolidLayerFill(slice, spacing, angle) { + if (slice.xray) { + return; + } + if (slice.tops.length === 0 || typeof(angle) != 'number') { slice.isSolidLayer = false; return; @@ -909,6 +915,10 @@ function doShells(slice, count, offset1, offsetN, fillOffset, opt = {}) { * the bounds of the top polygons and their inner solid areas. */ function doSparseLayerFill(slice, options = {}) { + if (slice.xray) { + return; + } + let process = options.process, spacing = options.spacing, // spacing space between fill lines density = options.density, // density of infill 0.0 - 1.0 @@ -1081,7 +1091,7 @@ function doSparseLayerFill(slice, options = {}) { */ function doDiff(slice, options = {}) { const { sla, fakedown, grow, min } = options; - if (slice.index <= 0 && !fakedown) { + if ((slice.index <= 0 && !fakedown) || slice.xray) { return; } const top = slice, @@ -1165,7 +1175,7 @@ function doSolidsFill(slice, spacing, angle, minArea, fillQ) { return; } - if (slice.isSolidLayer) { + if (slice.isSolidLayer || slice.xray) { return; } diff --git a/src/kiri/ui.js b/src/kiri/ui.js index 10cd005d..9066cdd0 100644 --- a/src/kiri/ui.js +++ b/src/kiri/ui.js @@ -892,6 +892,7 @@ gapp.register("kiri.ui", [], (root, exports) => { row = newDiv(opt), hide = opt.hide; + row.isBlank = true; row.setAttribute("class", "var-row"); row.style.display = hide ? 'none' : '';