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

index 9a8e169c48c2a0b688e65626bc0fdb83c401314d..c51dc137c0dbaff4c4ecfa424b9f58702563688a 100644 (file)
@@ -618,24 +618,27 @@ module WallScrewHoleSlot(){ ////toplevel
   }
 }
 
+module WallMountMounts(){
+  linextr(0, wm_z_max){
+    translate([ -sm_outer_rad, 0 ])
+      rectfromto([ 0, -wm_y_max ],
+                [ wm_thick, wm_y_slot1_max ]);
+  }
+}
+module WallMountScrewHoles(){
+  translate([ -sm_outer_rad + wm_thick, 0, wm_z_slotc_screw]) {
+    translate([ 0, wm_y_slotc_screw, 0 ])
+      WallScrewHoleSlot();
+    translate([ 0, -wm_y_slotc_screw, 0 ])
+      rotate([90,0,0])
+      WallScrewHoleSlot();
+  }
+}
+
 module WallMount(){ ////toplevel
   SomeStrap(sm_main_width, wm_z_max + 2){
-    union(){
-      linextr(0, wm_z_max){
-       translate([ -sm_outer_rad, 0 ])
-         rectfromto([ 0, -wm_y_max ],
-                    [ wm_thick, wm_y_slot1_max ]);
-      }
-    }
-    union(){
-      translate([ -sm_outer_rad + wm_thick, 0, wm_z_slotc_screw]) {
-       translate([ 0, wm_y_slotc_screw, 0 ])
-         WallScrewHoleSlot();
-       translate([ 0, -wm_y_slotc_screw, 0 ])
-         rotate([90,0,0])
-         WallScrewHoleSlot();
-      }
-    }
+    WallMountMounts();
+    WallMountScrewHoles();
   }
 }