From: Ian Jackson Date: Mon, 28 Aug 2023 10:32:27 +0000 (+0100) Subject: poster-tube-lid: WallMount wip X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=015e034ba82004d25740dc0eb0e713b6c79a6b46;p=reprap-play.git poster-tube-lid: WallMount wip Signed-off-by: Ian Jackson --- diff --git a/poster-tube-lid.scad b/poster-tube-lid.scad index fb46798..77d73a9 100644 --- a/poster-tube-lid.scad +++ b/poster-tube-lid.scad @@ -159,6 +159,7 @@ wm_y_min = sqrt( pow(sm_inner_rad, 2) - pow(sm_inner_rad - (wm_thick - sm_main_thick), 2) ); wm_y_screw = wm_y_min + wm_screw_around + wm_screw_dia/2; wm_y_max = wm_y_screw + wm_screw_dia/2 + wm_screw_around; +wm_y_slotc_screw = wm_y_screw + wm_screw_slot/2; wm_y_slot1_screw = wm_y_screw + wm_screw_slot; wm_y_slot1_max = wm_y_max + wm_screw_slot; wm_z_slot0_screw = wm_main_width + wm_screwdriver_dia/2; @@ -526,7 +527,7 @@ module ImplHeadCupTest(){ ////toplevel ImplHeadCup(); } -module SomeStrap(width){ +module SomeStrap(width, cut_width=0){ // children(0) is to add, (1) subtract difference(){ union(){ @@ -538,7 +539,7 @@ module SomeStrap(width){ children(0); } translate([0,0,-1]) - cylinder(r=sm_inner_rad, h=width+2); + cylinder(r=sm_inner_rad, h=max(width+2, cut_width)); translate(smc_pos) StrapMountBolt(10, width); translate(smc_pos) @@ -596,8 +597,13 @@ module StrapMount(){ ////toplevel } } +module WallScrewHole(){ ////toplevel + linextr_x_yz(-(wm_thick + 1), 1) + circle(r = wm_screw_dia/2); +} + module WallMount(){ ////toplevel - SomeStrap(sm_main_width){ + SomeStrap(sm_main_width, wm_z_max + 2){ union(){ linextr(0, wm_z_max){ translate([ -sm_outer_rad, 0 ]) @@ -605,7 +611,11 @@ module WallMount(){ ////toplevel [ wm_thick, wm_y_slot1_max ]); } } - union(){ } + union(){ + translate([ -sm_outer_rad + wm_thick, 0, wm_z_slotc_screw]) { + translate([ 0, wm_y_slotc_screw, 0 ]) WallScrewHole(); + } + } } }