From b9890ca58970c11a68ce71e506c3283bbff175d9 Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Mon, 20 Apr 2020 17:53:26 +0100 Subject: [PATCH] Reduced printed box screw inset when top_thickness is zero. --- printed/printed_box.scad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/printed/printed_box.scad b/printed/printed_box.scad index a9a1aae..2fa6b61 100644 --- a/printed/printed_box.scad +++ b/printed/printed_box.scad @@ -71,7 +71,7 @@ function pbox_mid_offset(type) = pbox_ridges(type).y + pbox_wall(type) / 2; // O function pbox_screw_inset(type) = //! How far the base screws are inset let(foot = pbox_foot(type), - r = foot ? foot_diameter(foot) / 2 : washer_radius(pbox_washer(type)), + r = foot ? foot_diameter(foot) / 2 : pbox_base(type) ? washer_radius(pbox_washer(type)) : insert_hole_radius(pbox_insert(type)), R = pbox_radius(type) ) max(r, R - (R - r) / sqrt(2));