From 1745dbbb7faa71ad2c9ef58e67e75b3be05fbc9f Mon Sep 17 00:00:00 2001 From: Garth Minette Date: Tue, 30 Mar 2021 16:13:29 -0700 Subject: [PATCH] slice() cleanup tweak. --- vnf.scad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnf.scad b/vnf.scad index 7635cf5..9c05e0f 100644 --- a/vnf.scad +++ b/vnf.scad @@ -481,7 +481,7 @@ function _triangulate_planar_convex_polygons(polys) = tris = [for (poly=polys) if (len(poly)==3) poly], bigs = [for (poly=polys) if (len(poly)>3) poly], newtris = [for (poly=bigs) select(poly,-2,0)], - newbigs = [for (poly=bigs) list_head(poly)], + newbigs = [for (poly=bigs) select(poly,0,-2)], newtris2 = _triangulate_planar_convex_polygons(newbigs), outtris = concat(tris, newtris, newtris2) ) outtris;