chiark / gitweb /
poster-tube-lid: WallMount wip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 28 Aug 2023 10:32:27 +0000 (11:32 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 28 Aug 2023 10:32:27 +0000 (11:32 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
poster-tube-lid.scad

index fb467986333f6379259b90d8b92290b24530ac79..77d73a91023c04af7d1196aaaa7cec317a0b6585 100644 (file)
@@ -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();
+      }
+    }
   }
 }