chiark / gitweb /
toolbox-inserts: rails, wip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 27 Apr 2025 23:35:37 +0000 (00:35 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 27 Apr 2025 23:35:37 +0000 (00:35 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
toolbox-inserts.scad

index 583d4611e55e5a3336677c3266d66b243109fd41..178cb192e0e54c34407aa9aee4fd129ad8783375 100644 (file)
@@ -18,6 +18,7 @@ plane_min_th = 2;
 rail_mount_nom_width = 16;
 rail_mount_side_nom_r_w = 2.5;
 rail_mount_mid_nom_r_w = 5.0;
+rail_mount_mid_depth = 4.0;
 
 fixing_pitch = 12.7;
 fixing_depth = 5.0;
@@ -208,14 +209,13 @@ module RailMountCutoutElevation() {
   square([ rail_mount_nom_width, 20 ], center=true);
 }
 module RailMountPositiveElevation() {
-  translate([ 0, -below_plane_z/2 ]) {
-    for (xs = [-1,+1]) {
-      translate([ xs * rail_mount_nom_width/2, 0 ])
-       ellipse([ rail_mount_side_nom_r_w, below_plane_z ]/2);
-    }
-
-    ellipse([ rail_mount_mid_nom_r_w, below_plane_z ]/2);
+  for (xs = [-1,+1]) {
+    translate([ xs * rail_mount_nom_width/2, , -below_plane_z/2 ])
+      ellipse([ rail_mount_side_nom_r_w, below_plane_z ]/2);
   }
+
+  translate([ 0, -rail_mount_mid_depth/2 ])
+    ellipse([ rail_mount_mid_nom_r_w, rail_mount_mid_depth ]/2);
 }
 
 //---------- plates and the fixing holes ----------