From a6abf2d76b5094561fbd57dba481f2d02b85182b Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Sun, 11 Jul 2021 01:19:01 -0400 Subject: [PATCH] wasm subtract still has bugs --- src/geo/polygons.js | 2 +- src/mode/fdm/slice.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/geo/polygons.js b/src/geo/polygons.js index 9ad3c305..b8707453 100644 --- a/src/geo/polygons.js +++ b/src/geo/polygons.js @@ -898,7 +898,7 @@ let ra = a[i]; let rb = b[i]; // test circularity - if (Math.abs(ra.c - rb.c) > 0.001) { + if (Math.abs(ra.c - rb.c) > 0.0005) { return false; } // test perimeter diff --git a/src/mode/fdm/slice.js b/src/mode/fdm/slice.js index 6195bdd9..1eb3c8d3 100644 --- a/src/mode/fdm/slice.js +++ b/src/mode/fdm/slice.js @@ -1058,7 +1058,7 @@ } POLY.subtract(topInner, downInner, bridges, flats, slice.z, minArea, { - wasm: options.wasm + // wasm: options.wasm }); };