fix contour taper mill step over

This commit is contained in:
Stewart Allen 2023-02-19 08:12:38 -05:00
commit d4a767deb7

View file

@ -56,13 +56,17 @@ class Topo4 {
step = this.step = (tool.traceOffset() * 2) * op.step, step = this.step = (tool.traceOffset() * 2) * op.step,
angle = this.angle = op.angle || 1; angle = this.angle = op.angle || 1;
if (tool.isTaperMill() && step === 0) {
step = this.step = op.step * tool.unitScale();
}
if (tolerance === 0) { if (tolerance === 0) {
console.log(widget.id, 'topo4 auto tolerance', resolution.round(4)); console.log(widget.id, 'topo4 auto tolerance', resolution.round(4));
} }
this.zBottom = state.zBottom; this.zBottom = state.zBottom;
this.resolution = resolution; this.resolution = resolution;
this.vertices = widget.getGeoVertices(); this.vertices = widget.getGeoVertices({ unroll: true, translate: true });
this.tabverts = widget.getTabVertices(); this.tabverts = widget.getTabVertices();
this.tool = tool.generateProfile(resolution).profile; this.tool = tool.generateProfile(resolution).profile;
this.maxo = tool.profileDim.maxo * resolution; this.maxo = tool.profileDim.maxo * resolution;