chiark / gitweb /
topeak-mtx-tortec-expeditionrack-adapter: wip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 5 Nov 2022 02:14:26 +0000 (02:14 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 5 Nov 2022 02:14:26 +0000 (02:14 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
topeak-mtx-tortec-expeditionrack-adapter.scad

index 06f295f7f156490f04bf48bb21f01f0b00c00e0d..504b934c238de17a1a701d8580b3a54915667170 100644 (file)
@@ -170,8 +170,7 @@ module BoltHole(){
 
 module AsForeAftMaint(){
   if ($foreaftmaint_dz) {
-    translate([ 0, $foreaftmaint_rail_y, $foreaftmaint_rail_z ])
-      children();
+    children();
   }
 }
 
@@ -222,14 +221,19 @@ module Principal(){
       AsForeAftMaint(){
        linextr_x_yz(-main_sz_x_fam/2,
                     +main_sz_x_fam/2){
-         hull(){
-           for (y = [-rack_rail_dia/2 + grasp_large_r,
-                     (-$foreaftmaint_rail_y
-                      + adapt_main_top_y - grasp_large_r)
-                     ])
-             for (dx= [-1,+1] * rack_rail_dia/2)
-               translate([ y, dx ])
-                 circle(r= grasp_large_r);
+         rotate(-90)
+         difference(){
+           hull(){
+             for (y = [
+                       $foreaftmaint_rail_y - rack_rail_dia/2 + grasp_large_r,
+                       adapt_main_top_y - grasp_large_r
+                       ])
+               for (dx= [-1,+1] * rack_rail_dia/2)
+                 translate([ -$foreaftmaint_rail_z + dx, y ])
+                   circle(r= grasp_large_r);
+           }
+           translate([0, adapt_main_top_y])
+              rectfromto([-500, 0], [500, 500]);
          }
        }
       }
@@ -251,8 +255,9 @@ module Principal(){
 
     // Distance from bolt hole, in backwards direction
     AsForeAftMaint(){
-      linextr_x_yz(+rack_rail_x,
-                  -rack_rail_x) {
+      translate([ 0, $foreaftmaint_rail_y, $foreaftmaint_rail_z ])
+       linextr_x_yz(+rack_rail_x,
+                    -rack_rail_x) {
        hull(){
          for (dy=[0,50]) {
            translate([-dy,0])