tbfleming / jscut

In-browser CAM package
http://jscut.org
GNU General Public License v3.0
302 stars 141 forks source link

Inside op toolpath error #75

Open xmarduel opened 2 years ago

xmarduel commented 2 years ago

The "inside" op produces a wrong "last" toolpath, while the "outside" op is ok. It is visible with the following configuration:

1.Select op "Outside" with margin "2mm" and width "5mm" . Tool Diameter in inch 0.125, stepover 0.4 => 3 toolpaths, all Ok

  1. Select op "Inside" with margin "2mm" and width "5mm" . Tool Diameter in inch 0.125, stepover 0.4 => 3 toolpaths, but observe how in the inner side of the op the last toolpath is too far away from the border. Infact the bug is in the routine "jscut.priv.cam.outline" at line 197: the last offset is delta = width - currentWidth, but it should be, for "Inside" ops, -delta. Sincerely, XM