From deb33e08c5fe3fa08cccd3f2d99bce5ed8348750 Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Thu, 26 Nov 2020 10:48:13 -0500 Subject: [PATCH] merge tabs --- src/mode/cam/slice.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mode/cam/slice.js b/src/mode/cam/slice.js index 7f4f5502..b288562b 100644 --- a/src/mode/cam/slice.js +++ b/src/mode/cam/slice.js @@ -567,7 +567,7 @@ function cutTabs(tabs, offset, z) { let noff = []; tabs = tabs.filter(tab => z < tab.pos.z + tab.dim.z/2).map(tab => tab.off).flat(); - offset.forEach(op => noff.appendAll( op.cut(tabs) )); + offset.forEach(op => noff.appendAll( op.cut(POLY.union(tabs)) )); return noff; }