if (x != undefined) line += " " + xOutput.format(x); if (y != undefined) line += " " + yOutput.format(y); if (z != undefined) line += " " + zOutput.format(z);
// Main processing function function onSection(section) switch(section) case "setup": onSetup(); break; case "toolpath": onToolpath(); break;
var toolNumber = tool.number; var toolOffset = tool.number; var toolDiameter = tool.diameter; var toolLength = tool.lengthOffset;
// Arc center offsets if (center.x != undefined) line += " " + iOutput.format(center.x); if (center.y != undefined) line += " " + jOutput.format(center.y);
var line = "G0";
writeBlock(line);