From 804365c55dafd15c2542df1c124691fa460d4d9e Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Sat, 13 Jan 2018 09:05:48 -0500 Subject: [PATCH] fix thin wall in compound offsets --- js/kiri-slice.js | 3 +-- js/license.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/js/kiri-slice.js b/js/kiri-slice.js index c215b995..8401d31e 100644 --- a/js/kiri-slice.js +++ b/js/kiri-slice.js @@ -429,12 +429,11 @@ var gs_kiri_slice = exports; }, // thin wall probe function(p1, p2) { - var pall = POLY.nest([].appendAll(p1).appendAll(p2), true), + var pall = POLY.nest([].appendAll(p1).appendAll(p2).clone(true)), pnew = POLY.expand(pall, -offset1, z, null, 1), r1 = fillArea(pnew, 45, offsetN, [], 0, offsetN * 2), r2 = fillArea(pnew, 135, offsetN, [], 0, offsetN * 2), rall = top.thin_fill.appendAll(cullIntersections(r1, r2)); - // if (rall.length) console.log([slice.index, pnew.length, rall.length]); }, z); } else { diff --git a/js/license.js b/js/license.js index 20fd7928..63906301 100644 --- a/js/license.js +++ b/js/license.js @@ -1,7 +1,7 @@ var exports = { COPYRIGHT:"Copyright (C) 2014-2017 Stewart Allen - All Rights Reserved", LICENSE:"Unauthorized copying, modification and re-distribution are strictly prohibited without prior written consent.", - VERSION:"1.0.83" + VERSION:"1.0.84" }; if (!module) var module = {}; module.exports = exports;