From ab422d20c0998ff481c9a6fe778e9d6f19e740b9 Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Sat, 15 Oct 2022 21:27:53 -0400 Subject: [PATCH] fix for omissions of small lines --- src/kiri/layers.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/kiri/layers.js b/src/kiri/layers.js index b16d9060..91541b9c 100644 --- a/src/kiri/layers.js +++ b/src/kiri/layers.js @@ -217,6 +217,10 @@ class Layers { const { faces, normals } = poly.toPath3D(offset, height, 0); const cur = this.current; const one = cur.paths; + // happens with very short lines being omitted + if (!(faces && normals)) { + continue; + } if (one) { // merge all contour geometry for massive speed gain // todo: recode to concat all geometries at once, and not incrementally