chiark / gitweb /
toolbox-inserts: rail rework
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 4 May 2025 21:22:31 +0000 (22:22 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 4 May 2025 21:22:31 +0000 (22:22 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
toolbox-inserts.scad

index c88ef70bb02d3fd7dd626d12bb1c408dd2f1dc04..276e9516f8eeb48da1a4054dd5fc71171300b31f 100644 (file)
@@ -21,7 +21,7 @@ rail_mount_side_nom_r_w = 2.5;
 rail_mount_mid_nom_r_w = 7.18;
 rail_mount_mid_depth = 3.0;
 rail_mount_tongue_len = 10;
-rail_mount_back_full = 12.7;
+rail_mount_back_brace = 12.7;
 
 fixing_pitch = 12.7;
 fixing_depth = 5.0;
@@ -224,6 +224,22 @@ module RailMountPositiveElevation() {
     ellipse([ rail_mount_mid_nom_r_w, rail_mount_mid_depth ]/2);
 }
 
+// x origin is LHS of box
+module RailMountNegative(length) {
+  translate([ rail_mount_back_brace, 0,0 ]) {
+    linextr_y_xz(0, rail_mount_tongue_len + 1)
+      RailMountCutoutElevation();
+    linextr_y_xz(0, length)
+      RailMountSpaceElevation();
+  }
+}
+module RailMountPositive() {
+  translate([ rail_mount_back_brace, 0,0 ]) {
+    linextr_y_xz(-1, rail_mount_tongue_len)
+      RailMountPositiveElevation();
+  }
+}
+
 //---------- plates and the fixing holes ----------