Merge branch 'master' into cam-topo-new
This commit is contained in:
commit
4f2ccd2049
7 changed files with 12 additions and 7 deletions
|
|
@ -958,14 +958,14 @@ class OpTrace extends CamOp {
|
|||
poly2polyEmit(polys, newPoint(0,0,0), (poly, index, count, spoint) => {
|
||||
routed.push(poly);
|
||||
});
|
||||
for (let poly of routed) {
|
||||
for (let poly of POLY.nest(routed)) {
|
||||
let offdist = 0;
|
||||
switch (offset) {
|
||||
case "outside": offdist = toolDiam / 2; break;
|
||||
case "inside": offdist = -toolDiam / 2; break;
|
||||
}
|
||||
if (offdist) {
|
||||
let pnew = POLY.offset([poly], offdist);
|
||||
let pnew = POLY.offset([poly], offdist, { minArea: 0 });
|
||||
if (pnew) {
|
||||
poly = POLY.setZ(pnew, poly.getZ());
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -475,7 +475,10 @@ class Print {
|
|||
newlayer = true;
|
||||
autolayer = false;
|
||||
}
|
||||
line = line.split(";")[0].split(" ").filter(v => v);
|
||||
// if (["X","Y","Z"].indexOf(line.charAt(0)) >= 0) {
|
||||
// line = `G0${line}`;
|
||||
// }
|
||||
line = line.trim().split(";")[0].split(" ").filter(v => v);
|
||||
let cmd = line.shift();
|
||||
if (!cmd) return;
|
||||
if (cmd.charAt(0) === 'T') {
|
||||
|
|
@ -486,6 +489,7 @@ class Print {
|
|||
xoff.Y = -ext[pos].extOffsetY;
|
||||
}
|
||||
}
|
||||
|
||||
pos.E = 0.0;
|
||||
switch (cmd) {
|
||||
case 'M82':
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ gapp.main("main.kiri", [], (root) => {
|
|||
const modfns = root.kirimod = ( root.kirimod || [] );
|
||||
|
||||
const kiri = root.kiri = {
|
||||
beta: 3809,
|
||||
beta: 3810,
|
||||
driver: {}, // driver modules
|
||||
load(fn) {
|
||||
modfns.push(fn);
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
let terms = {
|
||||
COPYRIGHT: "Copyright (C) Stewart Allen <sa@grid.space> - All Rights Reserved",
|
||||
LICENSE: "See the license.md file included with the source distribution",
|
||||
VERSION: (is_self ? self : this).debug_version || "3.8.D9"
|
||||
VERSION: (is_self ? self : this).debug_version || "3.8.D10"
|
||||
};
|
||||
|
||||
if (typeof(module) === 'object') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue