From 50ff72a0379a421c419132fa2f3592346f7243cb Mon Sep 17 00:00:00 2001 From: Casper Lamboo Date: Wed, 2 May 2018 16:54:19 +0200 Subject: [PATCH] change distance check to 3 --- src/sliceActions/helpers/comb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sliceActions/helpers/comb.js b/src/sliceActions/helpers/comb.js index b4e1fbd..80e7b41 100644 --- a/src/sliceActions/helpers/comb.js +++ b/src/sliceActions/helpers/comb.js @@ -4,7 +4,7 @@ import earcut from 'earcut'; const TRIANGULATED_OUTLINES = new WeakMap(); export default function comb(outline, start, end) { - if (distanceTo(start, end) < 10) return [start, end]; + if (distanceTo(start, end) < 3) return [start, end]; if (!TRIANGULATED_OUTLINES.has(outline)) TRIANGULATED_OUTLINES.set(outline, decompose(outline)); const { convexPolygons, vertices } = TRIANGULATED_OUTLINES.get(outline);