From: Ian Jackson Date: Mon, 24 Jul 2023 18:12:34 +0000 (+0100) Subject: topeak-mtx-tortec-expeditionrack-adapter: conditional prong, properly X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=e3bcdcf0d3ca014a9101e4de28b1d4d99da9540b;p=reprap-play.git topeak-mtx-tortec-expeditionrack-adapter: conditional prong, properly Signed-off-by: Ian Jackson --- 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);