chiark / gitweb /
toolbox-inserts: rails tidy and sort out
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 4 May 2025 21:56:39 +0000 (22:56 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 4 May 2025 23:11:51 +0000 (00:11 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
toolbox-inserts.scad

index f3f6461310dbaa37ba9b08475603d07894edde2d..ed5aead7456f7320ea076fe4aaa710fc49fbde53 100644 (file)
@@ -235,7 +235,7 @@ module RailSpaceNegative(length) {
       RailSpaceCutoutElevation();
   }
 }
-module RailMountNegative(length) {
+module RailMountNegative() {
   translate([ 0, rail_mount_back_brace,0 ]) {
     linextr_y_xz(0, rail_mount_tongue_len + 1)
       RailMountCutoutElevation();
@@ -267,8 +267,8 @@ module FullPlate(right) { ////toplevel
        linextr(-20, 0) square(1000, center=true);
       }
 
-      AtRails() RailSpaceNegative(box_x/2);
-      AtRails() RailMountNegative(box_x/2);
+      hull() AtRails() RailSpaceNegative(box_x/2);
+      AtRails() RailMountNegative();
 
       AtPlateFixings() render() {
        linextr(-20, fixing_head_top_z)
@@ -277,6 +277,8 @@ module FullPlate(right) { ////toplevel
          circle(r = fixing_hole_d/2);
       }
     }
+
+    AtRails() RailMountPositive();
   }
 }
 
@@ -409,7 +411,7 @@ module RailMountTest(){ ////toplevel
       rectfromto([-15, -below_plane_z ],
                 [+15,  0             ]);
     RailSpaceNegative(30);
-    RailMountNegative(30);
+    RailMountNegative();
   }
   RailMountPositive();
 }