chiark / gitweb /
topeak-mtx-tortec-expeditionrack-adapter: cutoff
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 24 Jul 2023 18:40:29 +0000 (19:40 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 24 Jul 2023 18:40:29 +0000 (19:40 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
topeak-mtx-tortec-expeditionrack-adapter.scad

index fffbf69d4e5a15c61086be4d123a3ec5d72e16a5..3f547a55c75976a5a4ac91a1ecfdb1f4e9545a6e 100644 (file)
@@ -258,6 +258,7 @@ module FamLinextr(){
 }
 
 module FamGraspElevation(){
+difference(){
   hull(){
     ybot = $rack_rail_y - rack_rail_dia/2 + grasp_large_r
       - fit_slope_len * 0.5;
@@ -269,11 +270,18 @@ module FamGraspElevation(){
        translate([ -$foreaftmaint_rail_z + dx, y ])
          circle(r= grasp_large_r);
   }
+  if ($foreaftmaint_cutoff) {
+    translate([ -$foreaftmaint_rail_z, 0 ])
+      rectfromto([-100, -100],
+                [0, 100]);
+  }
+}
 }
 
 module FamStemElevation(){
   hull(){
-    rectfromto([ -$foreaftmaint_rail_z, adapt_main_top_y ],
+    rectfromto([ -$foreaftmaint_rail_z
+                , adapt_main_top_y ],
               [ 0, block_y_min]);
     translate([
               -$foreaftmaint_rail_z,
@@ -446,6 +454,7 @@ module Front(){ ////toplevel
   rotate([180,0,0])
   Principal($reverse_sign = -1,
            $foreaftmaint_top_block = false,
+           $foreaftmaint_cutoff = true,
            $elevation_nominal=
       elevation_of_bolt_for(rear_to_cross_rail + rear_bolt_to_front_bolt),
            $foreaftmaint_dz= front_to_cross_rail);
@@ -454,6 +463,7 @@ module Front(){ ////toplevel
 module Rear(){ ////toplevel
   Principal($reverse_sign = +1,
            $foreaftmaint_top_block = true,
+           $foreaftmaint_cutoff = false,
            $elevation_nominal=
       elevation_of_bolt_for(rear_to_cross_rail),
            $foreaftmaint_dz= rear_to_cross_rail);