Enable mirror() to work on patches.

This commit is contained in:
Revar Desmera 2020-03-22 05:41:58 -07:00
parent 00f69ba95b
commit e296c3137e
2 changed files with 3 additions and 2 deletions

View file

@ -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()

View file

@ -8,7 +8,7 @@
//////////////////////////////////////////////////////////////////////
BOSL_VERSION = [2,0,216];
BOSL_VERSION = [2,0,217];
// Section: BOSL Library Version Functions