From df72bb89962a0283e99451981f7f6caa6104c32b Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Tue, 23 Dec 2025 10:36:33 -0500 Subject: [PATCH] fix use of flatness to drop points in cpu contour --- src/kiri/mode/cam/topo3.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kiri/mode/cam/topo3.js b/src/kiri/mode/cam/topo3.js index 7668dd18..460881bb 100644 --- a/src/kiri/mode/cam/topo3.js +++ b/src/kiri/mode/cam/topo3.js @@ -725,7 +725,7 @@ export class Trace { const slope = Math.atan2(dz, dl); if (curvesOnly && Math.abs(dz) < flatness) { end_poly(newP); - } else if (lastSlope !== undefined && Math.abs(lastSlope - slope) < 0.001) { + } else if (lastSlope !== undefined && Math.abs(lastSlope - slope) < flatness) { latent = newP; } else { if (latent) {