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

index f5dce9da7201e552428562da7cc2ddf3b64b81c6..e11b591ab46d9872fb1cca1fc3e4f829aeb40e66 100644 (file)
@@ -332,7 +332,7 @@ module Principal(){
       }
 
       FamLinextr(){
-       if ($foreaftmaint_rail_z > foreaftmaint_top_block_zs[0] - bolt_z) {
+       if ($foreaftmaint_top_block) {
          rectfromto([ -foreaftmaint_top_block_zs[0] + bolt_z, 0 ],
                     [ -foreaftmaint_top_block_zs[1] + bolt_z, block_y_min] );
        }
@@ -433,6 +433,7 @@ module RackForDemoCrosses(){
 module Front(){ ////toplevel
   // xxx elevation is wrong
   Principal($reverse_sign = -1,
+           $foreaftmaint_top_block = false,
            $elevation_nominal=
       elevation_of_bolt_for(rear_to_cross_rail + rear_bolt_to_front_bolt),
            $foreaftmaint_dz= front_to_cross_rail);
@@ -440,6 +441,7 @@ module Front(){ ////toplevel
 
 module Rear(){ ////toplevel
   Principal($reverse_sign = +1,
+           $foreaftmaint_top_block = true,
            $elevation_nominal=
       elevation_of_bolt_for(rear_to_cross_rail),
            $foreaftmaint_dz= rear_to_cross_rail);