fix for omissions of small lines

This commit is contained in:
Stewart Allen 2022-10-15 21:27:53 -04:00
commit ab422d20c0

View file

@ -217,6 +217,10 @@ class Layers {
const { faces, normals } = poly.toPath3D(offset, height, 0); const { faces, normals } = poly.toPath3D(offset, height, 0);
const cur = this.current; const cur = this.current;
const one = cur.paths; const one = cur.paths;
// happens with very short lines being omitted
if (!(faces && normals)) {
continue;
}
if (one) { if (one) {
// merge all contour geometry for massive speed gain // merge all contour geometry for massive speed gain
// todo: recode to concat all geometries at once, and not incrementally // todo: recode to concat all geometries at once, and not incrementally