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

index 1ae66dece28a1af5f162ced1252a459131ef6424..f6fbcd27ae18acae964093d2e283325d474e7844 100644 (file)
@@ -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_y_width = 10;
 wmb_ring_gap = 1.0;
 
 catch_stalk_h = 4.5;
@@ -205,7 +206,7 @@ wmb_z_screw = max(
                  );
 wmb_z_max = wmb_z_screw * 2;
 wmbb_y_max = wmb_y_mount_max + wmb_mount_gap_xy + wmb_mount_wall;
-wmbb_x_outer = wmb_x_outer - (wmb_mount_gap_xy + wmb_mount_wall);
+wmbb_x_outer = wmb_x_outer + (wmb_mount_gap_xy + wmb_mount_wall);
 wmbb_z_min = -20; // XXX
 
 smc_pos = [ 0, sm_inner_rad, 0 ];
@@ -736,11 +737,19 @@ module WallMountForBase(){ ////toplevel
 }
 
 module WallMountBase(){ ////toplevel
-  linextr(wmbb_z_min, wmb_z_max) {
-    difference(){
-      rectfromto([ 0,            -wmbb_y_max ],
-                [ wmbb_x_outer, +wmbb_y_max ]);
-      WallMountBaseRingCut();
+  difference(){
+    union(){
+      linextr(wmbb_z_min, wmb_z_max) {
+       difference(){
+         for (my = [0,1]) {
+           mirror([0, my]) {
+             rectfromto([ -sm_outer_rad, wmbb_y_max - wmb_mount_y_width ],
+                        [ wmbb_x_outer, wmbb_y_max ]);
+           }
+         }
+         WallMountBaseRingCut();
+       }
+      }
     }
   }
 }