From b813881d26718aae32fb91cc1266917059756513 Mon Sep 17 00:00:00 2001 From: Adrian Mariano Date: Sun, 12 Mar 2023 23:25:13 -0400 Subject: [PATCH] fix anchoring bug in rect() and doc fix in screw_hole --- screws.scad | 2 +- shapes2d.scad | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/screws.scad b/screws.scad index 26345c5..315d9ac 100644 --- a/screws.scad +++ b/screws.scad @@ -744,7 +744,7 @@ module screw(spec, head, drive, thread, drive_size, // spec = screw specification, e.g. "M5x1" or "#8-32". See [screw naming](#subsection-screw-naming). This can also be a screw specification structure of the form produced by {{screw_info()}}. // head = head type. See [screw heads](#subsection-screw-heads) Default: none // --- -// thread = thread type or specification for threaded masks, or false to make an unthreaded mask. See [screw pitch](#subsection-standard-screw-pitch). Default: false +// thread = thread type or specification for threaded masks, true to make a threaded mask with the standard threads, or false to make an unthreaded mask. See [screw pitch](#subsection-standard-screw-pitch). Default: false // teardrop = if true produce teardrop hole. Only compatible with clearance holes, not threaded. Default: false // oversize = amount to increase diameter of the screw hole (hole and countersink). A scalar or length 2 vector. Default: use computed tolerance // hole_oversize = amount to increase diameter of the hole. Overrides the use of tolerance and replaces any settings given in the screw specification. diff --git a/shapes2d.scad b/shapes2d.scad index 5fd455f..1561c7b 100644 --- a/shapes2d.scad +++ b/shapes2d.scad @@ -148,7 +148,7 @@ function rect(size=1, rounding=0, chamfer=0, atype="box", anchor=CENTER, spin=0, assert(is_num(rounding) || is_vector(rounding,4)) assert(in_list(atype, ["box", "perim"])) let( - anchor=point2d(anchor), + anchor=_force_anchor_2d(anchor), size = force_list(size,2), chamfer = force_list(chamfer,4), rounding = force_list(rounding,4)