From e296c3137ece9abef07fa49261677c779a363cf9 Mon Sep 17 00:00:00 2001 From: Revar Desmera Date: Sun, 22 Mar 2020 05:41:58 -0700 Subject: [PATCH] Enable mirror() to work on patches. --- transforms.scad | 3 ++- version.scad | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/transforms.scad b/transforms.scad index 93a0f77..64bfae5 100644 --- a/transforms.scad +++ b/transforms.scad @@ -738,8 +738,9 @@ function mirror(v, p) = assert(is_list(p)) let(m = len(v)==2? affine2d_mirror(v) : affine3d_mirror(v)) is_undef(p)? m : + is_num(p.x)? apply(m,p) : is_vnf(p)? [mirror(v=v,p=p[0]), [for (face=p[1]) reverse(face)]] : - apply(m, p); + [for (l=p) is_vector(l)? apply(m,l) : mirror(v=v, p=l)]; // Function&Module: xflip() diff --git a/version.scad b/version.scad index 253fbfb..ce1456a 100644 --- a/version.scad +++ b/version.scad @@ -8,7 +8,7 @@ ////////////////////////////////////////////////////////////////////// -BOSL_VERSION = [2,0,216]; +BOSL_VERSION = [2,0,217]; // Section: BOSL Library Version Functions