From d2e9a901fdc6e86764adb2bf9c7a311c2343348e Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 28 Aug 2023 22:06:10 +0100 Subject: [PATCH] poster-tube-lid: fix Signed-off-by: Ian Jackson --- poster-tube-lid.scad | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/poster-tube-lid.scad b/poster-tube-lid.scad index 3bb15b6..659af07 100644 --- a/poster-tube-lid.scad +++ b/poster-tube-lid.scad @@ -209,7 +209,10 @@ function wmb_screw_thing_y_min(dia) = sqrt( pow(wmb_x_screw + dia/2, 2) ); wmb_y_screw_end = wmb_screw_thing_y_min(wmb_screw_dia); -wmb_y_nut_min = wmb_screw_thing_y_min(wmb_nut_across + wmb_nut_around_min*2); +wmb_y_nut_min = max( + wmb_screw_thing_y_min(wmb_nut_across + wmb_nut_around_min*2), + wm_y_slot1_max + ); wmb_y_mount_max = max( wmb_y_nut_min + wmb_nut_th + wmb_nut_behind_min, wmb_y_screw_end + wmb_screw_depth_min -- 2.30.2