add milling direction per op

This commit is contained in:
Stewart Allen 2025-12-12 12:46:43 -05:00
commit a1880f7dc3
11 changed files with 26 additions and 33 deletions

View file

@ -73,22 +73,11 @@ class Tool {
return diam ? diam * step : step;
}
// setTaperLengthFromAngle(angle) {
// const rad = (this.flute_diam - this.taper_tip) / 2;
// return this.flute_len = calcTaperLength(rad, angle);
// }
getTaperAngle() {
let { flute_diam, flute_len, taper_tip } = this.tool;
return calcTaperAngle((flute_diam - taper_tip) / 2, flute_len);
}
// getTaperBallExtent() {
// let rad = this.tipDiameter() / 2;
// let ang = this.getTaperAngle() * DEG2RAD;
// return calcTaperBallExtent(rad, ang);
// }
shaftLength() {
return this.unitScale() * this.tool.shaft_len;
}