make circularity comparisons in drilling more forgiving

This commit is contained in:
Stewart Allen 2018-04-23 08:39:22 -04:00
commit 6be15165ce
2 changed files with 3 additions and 3 deletions

View file

@ -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,

View file

@ -1,6 +1,6 @@
var exports = {
COPYRIGHT:"Copyright (C) 2014-2017 Stewart Allen <stewart@neuron.com> - All Rights Reserved",
LICENSE:"Unauthorized copying, modification and re-distribution are strictly prohibited without prior written consent.",
COPYRIGHT:"Copyright (C) 2014-2018 Stewart Allen <sa@grid.space> - All Rights Reserved",
LICENSE:"See the license.md file included with the source distribution",
VERSION:"1.2.2"
};
if (!module) var module = {};