improve contouring: colinear, curves only

This commit is contained in:
Stewart Allen 2023-01-19 16:26:58 -05:00
commit ada0be3550
3 changed files with 58 additions and 31 deletions

View file

@ -65,6 +65,11 @@ class Tool {
return (this.isTaperMill() ? this.tipDiameter() : this.fluteDiameter()) / 2;
}
contourOffset(step) {
const diam = Math.min(this.isTaperMill() ? this.tipDiameter() : this.fluteDiameter());
return diam ? diam * step : step;
}
shaftLength() {
return this.unitScale() * this.tool.shaft_len;
}