From 779ce1baf21a6dd31ff611f07f140fb0a79a359a Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 28 Aug 2023 12:57:01 +0100 Subject: [PATCH] poster-tube-lid: WallMountBase wip Signed-off-by: Ian Jackson --- poster-tube-lid.scad | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/poster-tube-lid.scad b/poster-tube-lid.scad index f6fbcd2..9ff4e66 100644 --- a/poster-tube-lid.scad +++ b/poster-tube-lid.scad @@ -105,6 +105,7 @@ wmb_nut_behind_min = 5; wmb_nut_th = 4; // XXX wmb_mount_wall = 4.5; wmb_mount_gap_xy = 0.5; +wmb_mount_gap_z = 0.5; wmb_mount_y_width = 10; wmb_ring_gap = 1.0; @@ -691,8 +692,8 @@ module WallMountBaseRingCut(){ module WallMountBaseMounts(){ linextr(0, wmb_z_max) { difference(){ - rectfromto([ -sm_outer_rad, -wmb_y_mount_max ], - [ wmb_x_outer, +wmb_y_mount_max ]); + rectfromto([ -sm_outer_rad, -wmb_y_mount_max ], + [ wmb_x_outer, +wmb_y_mount_max ]); WallMountBaseRingCut(); } } @@ -710,7 +711,7 @@ module WallMountBaseScrewsEtc(){ ////toplevel wmb_y_screw_end + 100) // XXX change 100 circle(r = wmb_screw_head_dia/2); linextr_y_xz(wmb_y_nut_min, - wmb_y_nut_min + wmb_nut_th){ + wmb_y_nut_min + wmb_nut_th) { hull(){ rotate(30) circle(r = wmb_nut_rad, $fn = 6); @@ -751,6 +752,17 @@ module WallMountBase(){ ////toplevel } } } + + // cutaway for mount part + linextr(-wmb_mount_gap_z, wmb_z_max+1) { + for (my = [0,1]) { + mirror([0, my]) + rectfromto([ -sm_outer_rad-1, wmb_y_mount_max + wmb_mount_gap_xy ], + [ wmb_x_outer + wmb_mount_gap_xy, 1 ]); + } + } + + WallMountBaseScrewsEtc(); } } -- 2.30.2