fix anchoring bug in rect() and doc fix in screw_hole

This commit is contained in:
Adrian Mariano 2023-03-12 23:25:13 -04:00
parent d138c0d07e
commit b813881d26
2 changed files with 2 additions and 2 deletions

View file

@ -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.

View file

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