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

index 55853f42adeeb7b331d6ebeb17a6aa2846b3a9be..7e99fcbe0f861aa9ad467ef4f5508ae13491cfb5 100644 (file)
@@ -19,6 +19,7 @@ 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 = 3.0;
+rail_mount_tongue_len = 10;
 
 fixing_pitch = 12.7;
 fixing_depth = 5.0;
@@ -359,6 +360,18 @@ module RailMountElevationDemo() { ////toplevel
   color("purple") translate([0,0,  5]) RailMountPositiveElevation();
 }
 
+module RailMountTest(){ ////toplevel
+  difference() {
+    linextr_y_xz(-20, 30)
+      rectfromto([-15, -below_plane_z ],
+                [+15,  0             ]);
+    linextr_y_xz(0, 40)
+      RailMountCutoutElevation();
+  }
+  linextr_y_xz(-1, rail_mount_tongue_len)
+    RailMountPositiveElevation();
+}
+
 module OdAt(x,y) {
   translate(fixing_pitch * [x,y,0])
     children(0);