From 8d3ea6b7276c75646bbe2b87a5d7476b1c9d7518 Mon Sep 17 00:00:00 2001 From: Revar Desmera Date: Mon, 9 Mar 2020 19:13:13 -0700 Subject: [PATCH] Fixed alignment error with square() when rounding is used. --- primitives.scad | 4 ++-- version.scad | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/primitives.scad b/primitives.scad index 44424ea..2499665 100644 --- a/primitives.scad +++ b/primitives.scad @@ -46,9 +46,9 @@ module square(size=1, center, rounding=0, chamfer=0, anchor, spin=0) { size = is_num(size)? [size,size] : point2d(size); anchor = get_anchor(anchor, center, FRONT+LEFT, FRONT+LEFT); - pts = square(size=size, rounding=rounding, chamfer=chamfer, center=false); + pts = square(size=size, rounding=rounding, chamfer=chamfer, center=true); attachable(anchor,spin, two_d=true, size=size) { - translate(-size/2) polygon(pts); + translate(-size/2) polygon(move(size/2,p=pts)); // Extraneous translation works around fine grid quantizing. children(); } } diff --git a/version.scad b/version.scad index c36cb13..bb1aa27 100644 --- a/version.scad +++ b/version.scad @@ -8,7 +8,7 @@ ////////////////////////////////////////////////////////////////////// -BOSL_VERSION = [2,0,174]; +BOSL_VERSION = [2,0,175]; // Section: BOSL Library Version Functions