From 6be15165ce7b833f63318cad6ecae0e407244b4b Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Mon, 23 Apr 2018 08:39:22 -0400 Subject: [PATCH] make circularity comparisons in drilling more forgiving --- js/kiri-driver-cam.js | 2 +- js/license.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/kiri-driver-cam.js b/js/kiri-driver-cam.js index 68282619..abb46762 100644 --- a/js/kiri-driver-cam.js +++ b/js/kiri-driver-cam.js @@ -828,7 +828,7 @@ var gs_kiri_cam = exports; slices.forEach(function(slice) { var inner = slice.gatherTopPolyInners([]); inner.forEach(function(poly) { - if (poly.circularity() >= 0.995 && Math.abs(poly.area() - area) <= areaDelta) { + if (poly.circularity() >= 0.99 && Math.abs(poly.area() - area) <= areaDelta) { var center = poly.circleCenter(), merged = false, closest = Infinity, diff --git a/js/license.js b/js/license.js index 1562d0d4..6b933c12 100644 --- a/js/license.js +++ b/js/license.js @@ -1,6 +1,6 @@ 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.", + COPYRIGHT:"Copyright (C) 2014-2018 Stewart Allen - All Rights Reserved", + LICENSE:"See the license.md file included with the source distribution", VERSION:"1.2.2" }; if (!module) var module = {};