From e3bcdcf0d3ca014a9101e4de28b1d4d99da9540b Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 24 Jul 2023 19:12:34 +0100 Subject: [PATCH] topeak-mtx-tortec-expeditionrack-adapter: conditional prong, properly Signed-off-by: Ian Jackson --- topeak-mtx-tortec-expeditionrack-adapter.scad | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/topeak-mtx-tortec-expeditionrack-adapter.scad b/topeak-mtx-tortec-expeditionrack-adapter.scad index f5dce9d..e11b591 100644 --- a/topeak-mtx-tortec-expeditionrack-adapter.scad +++ b/topeak-mtx-tortec-expeditionrack-adapter.scad @@ -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); -- 2.30.2