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

index f6fbcd27ae18acae964093d2e283325d474e7844..9ff4e66b18573e9596db40a84a3cc950e6d16aef 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_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();
   }
 }