From b1ae85e65c3a8160360b3b05a53be03289b7fabc Mon Sep 17 00:00:00 2001 From: Revar Desmera Date: Mon, 18 May 2020 01:49:46 -0700 Subject: [PATCH] Bugfix for split_polygons_at_each_z() --- geometry.scad | 2 +- version.scad | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/geometry.scad b/geometry.scad index aab5cda..0e1905f 100644 --- a/geometry.scad +++ b/geometry.scad @@ -1514,7 +1514,7 @@ function _split_polygon_at_y(poly, y) = function _split_polygon_at_z(poly, z) = let( - zs = subindex(poly,1) + zs = subindex(poly,2) ) (min(zs) >= z || max(zs) <= z)? [poly] : let( poly2 = [ diff --git a/version.scad b/version.scad index a5d3b51..ffde0f8 100644 --- a/version.scad +++ b/version.scad @@ -8,7 +8,7 @@ ////////////////////////////////////////////////////////////////////// -BOSL_VERSION = [2,0,304]; +BOSL_VERSION = [2,0,305]; // Section: BOSL Library Version Functions