From d4a767deb74280c536ec1e01d219790933bece04 Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Sun, 19 Feb 2023 08:12:38 -0500 Subject: [PATCH] fix contour taper mill step over --- src/kiri-mode/cam/topo4.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/kiri-mode/cam/topo4.js b/src/kiri-mode/cam/topo4.js index eefac473..ed24d4b3 100644 --- a/src/kiri-mode/cam/topo4.js +++ b/src/kiri-mode/cam/topo4.js @@ -56,13 +56,17 @@ class Topo4 { step = this.step = (tool.traceOffset() * 2) * op.step, angle = this.angle = op.angle || 1; + if (tool.isTaperMill() && step === 0) { + step = this.step = op.step * tool.unitScale(); + } + if (tolerance === 0) { console.log(widget.id, 'topo4 auto tolerance', resolution.round(4)); } this.zBottom = state.zBottom; this.resolution = resolution; - this.vertices = widget.getGeoVertices(); + this.vertices = widget.getGeoVertices({ unroll: true, translate: true }); this.tabverts = widget.getTabVertices(); this.tool = tool.generateProfile(resolution).profile; this.maxo = tool.profileDim.maxo * resolution;