add CAM 3D engraving and marking with the pocket contouring operation

This commit is contained in:
Stewart Allen 2022-10-10 18:01:43 -04:00
commit b7f8ce5b52
7 changed files with 30 additions and 8 deletions

View file

@ -69,11 +69,19 @@ class Tool {
return this.unitScale() * this.tool.shaft_diam;
}
isBallMill() {
return this.type === "ballmill";
}
isTaperMill() {
return this.type === "tapermill";
}
generateProfile(resolution) {
// generate tool profile
let type = this.getType(),
ball = type === "ballmill",
taper = type === "tapermill",
ball = this.isBallMill(),
taper = this.isTaperMill(),
tip_diameter = this.tipDiameter(),
shaft_offset = this.fluteLength(),
flute_diameter = this.fluteDiameter(),