complete line type support
This commit is contained in:
parent
f30e3a0288
commit
ed0a831332
8 changed files with 39 additions and 32 deletions
|
|
@ -129,7 +129,7 @@
|
|||
|
||||
const output = scope.output = [ seq ];
|
||||
|
||||
function G0G1(moving, line) {
|
||||
function G0G1(g0, line) {
|
||||
const mov = {};
|
||||
line.forEach(function(tok) {
|
||||
if (abs) {
|
||||
|
|
@ -157,6 +157,8 @@
|
|||
factor * pos.Z + off.Z + xoff.Z + dz
|
||||
);
|
||||
|
||||
const moving = g0 || (fdm && pos.E <= 0);
|
||||
|
||||
// always add moves to the current sequence
|
||||
if (moving) {
|
||||
addOutput(seq, point, false, pos.F, tool);
|
||||
|
|
@ -218,7 +220,7 @@
|
|||
G0G1(true, line);
|
||||
break;
|
||||
case 'G1':
|
||||
G0G1(fdm ? pos.E <= 0 : false, line);
|
||||
G0G1(false, line);
|
||||
break;
|
||||
case 'M6':
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue