fix closed traces
This commit is contained in:
parent
2401c539e5
commit
debcf048fd
3 changed files with 6 additions and 5 deletions
|
|
@ -687,7 +687,7 @@
|
||||||
sep: UC.newBlank({class:"pop-sep"}),
|
sep: UC.newBlank({class:"pop-sep"}),
|
||||||
spindle: UC.newInput(LANG.cc_spnd_s, {title:LANG.cc_spnd_l, convert:UC.toInt, show:hasSpindle}),
|
spindle: UC.newInput(LANG.cc_spnd_s, {title:LANG.cc_spnd_l, convert:UC.toInt, show:hasSpindle}),
|
||||||
down: UC.newInput(LANG.cc_sdwn_s, {title:LANG.cc_sdwn_l, convert:UC.toFloat, units:true}),
|
down: UC.newInput(LANG.cc_sdwn_s, {title:LANG.cc_sdwn_l, convert:UC.toFloat, units:true}),
|
||||||
step: UC.newInput(LANG.cc_sovr_s, {title:LANG.cc_sovr_l, convert:UC.toFloat, bound:UC.bound(0.01,1.0)}),
|
step: UC.newInput(LANG.cc_sovr_s, {title:LANG.cc_sovr_l, convert:UC.toFloat, bound:UC.bound(0.01,1.0), show:() => popOp.outline.rec.wide}),
|
||||||
rate: UC.newInput(LANG.cc_feed_s, {title:LANG.cc_feed_l, convert:UC.toInt, units:true}),
|
rate: UC.newInput(LANG.cc_feed_s, {title:LANG.cc_feed_l, convert:UC.toInt, units:true}),
|
||||||
plunge: UC.newInput(LANG.cc_plng_s, {title:LANG.cc_plng_l, convert:UC.toInt, units:true}),
|
plunge: UC.newInput(LANG.cc_plng_s, {title:LANG.cc_plng_l, convert:UC.toInt, units:true}),
|
||||||
sep: UC.newBlank({class:"pop-sep"}),
|
sep: UC.newBlank({class:"pop-sep"}),
|
||||||
|
|
|
||||||
|
|
@ -276,7 +276,7 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
slice.camLines = offset;
|
slice.camLines = offset;
|
||||||
if (true) slice.output()
|
if (false) slice.output()
|
||||||
.setLayer("slice", {line: 0xaaaa00}, true)
|
.setLayer("slice", {line: 0xaaaa00}, true)
|
||||||
.addPolys(slice.topPolys())
|
.addPolys(slice.topPolys())
|
||||||
// .setLayer("top shadow", {line: 0x0000aa})
|
// .setLayer("top shadow", {line: 0x0000aa})
|
||||||
|
|
|
||||||
|
|
@ -392,9 +392,10 @@
|
||||||
let traceTool = new CAM.Tool(settings, tool);
|
let traceTool = new CAM.Tool(settings, tool);
|
||||||
let traceToolDiam = traceTool.fluteDiameter();
|
let traceToolDiam = traceTool.fluteDiameter();
|
||||||
slice.camLines.forEach(poly => {
|
slice.camLines.forEach(poly => {
|
||||||
poly.forEachPoint(function(point, pidx) {
|
let idx = 0, close = !poly.open;
|
||||||
camOut(point.clone(), pidx > 0);
|
poly.forEachPoint(point => {
|
||||||
}, !poly.open);
|
camOut(point.clone(), idx++ > 0);
|
||||||
|
}, close);
|
||||||
});
|
});
|
||||||
newLayer();
|
newLayer();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue