fix phantom support generation off part or under bed

This commit is contained in:
Stewart Allen 2022-03-14 09:29:23 -04:00
commit 6d87325379
3 changed files with 6 additions and 1 deletions

View file

@ -12,6 +12,7 @@
* `P` move all persisted / workspace settings/data to IndexedDB (LS limitations)
* `P` do not move (average) endpoints connected to long lines in decimate
* `P` explore widget vertex reloading / replacing (Onshape) (issue #48)
* `P` faster ray intersect https://github.com/gkjohnson/three-mesh-bvh/
* `F` edit in Mesh:Tool
* `F` custom device vars for profiles / ranges / gcode
@ -30,6 +31,7 @@
* `B` multi-extruder rendering of raft fails to offset the rest of the print
* `B` multi-extruder purge blocks fail to generate properly for rafts
* `F` add layer start position as a range option
* `F` support pillar top/bottom should conform to part
* `F` support pillar should have solid top/bottom
* `F` more explicit line width control with ranges and min/max adaptive

View file

@ -26,6 +26,7 @@
* `C` add parameterized control of bridge/flat and infill print speeds
* `C` add api control over threading workloads and use of wasm
* `C` updates to raft generation: add border, connect infill lines
* `C` fix phantom support generation off part or under bed
* `P` template vars: nozzles used and layers until next use (IDEX)
* `-` improved vertex replacement and widget update matrix tracking

View file

@ -386,7 +386,7 @@ FDM.init = function(kiri, api) {
removeWidgetSupport(lastPillar.widget, lastPillar);
return;
}
if (!iw) return;
if (!(iw && lastBox)) return;
let { point, dim } = lastBox;
p1.y = Math.max(0, p1.y);
p2.y = Math.max(0, p2.y);
@ -504,6 +504,8 @@ FDM.init = function(kiri, api) {
addbox({x:p1.x, y:hy, z:p1.z}, 0x0000dd, 'supp', {
x:dw, y:dw, z:dy, rz
});
} else {
lastBox = null;
}
if (event && event.altKey) {
return func.hoverup();