From: Ian Jackson Date: Fri, 4 Nov 2022 23:45:53 +0000 (+0000) Subject: topeak-mtx-tortec-expeditionrack-adapter: wip X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=3a66633983f8d1246a4c22f477a56cc770393b59;p=reprap-play.git topeak-mtx-tortec-expeditionrack-adapter: wip Signed-off-by: Ian Jackson --- diff --git a/topeak-mtx-tortec-expeditionrack-adapter.scad b/topeak-mtx-tortec-expeditionrack-adapter.scad index 2622b17..a66207a 100644 --- a/topeak-mtx-tortec-expeditionrack-adapter.scad +++ b/topeak-mtx-tortec-expeditionrack-adapter.scad @@ -26,8 +26,8 @@ brk_bottom_y = -brk_recess_actual; adapt_main_top_y = brk_bottom_y + general_gap_y; // on LHS, so -ve -rack_rail_x = -(rack_width_inner + rack_rail_dia/2); -rack_rail_outer_x = -(rack_width_inner + rack_rail_dia); +rack_rail_x = -(rack_width_inner/2 + rack_rail_dia/2); +rack_rail_outer_x = -(rack_width_inner/2 + rack_rail_dia); grasp_large_r = (rack_rail_dia + grasp_sz)/2; grasp_large_x = rack_rail_outer_x + grasp_large_r; @@ -45,6 +45,11 @@ module GraspElevation(){ } } +module BlockElevation(){ + rectfromto([ -rack_width_inner/2, adapt_main_top_y ], + [ +rack_width_inner/2, adapt_main_top_y - main_sz_y ]); +} + module Principal(){ // calculated $rack_rail_y = brk_bottom_y - $elevation_nominal @@ -53,16 +58,22 @@ module Principal(){ difference(){ linextr(0, main_sz_z){ GraspElevation(); + BlockElevation(); + mirror([1,0]) GraspElevation(); } linextr(-10, main_sz_z+10) { - translate([ rack_rail_x, $rack_rail_y ]){ - hull(){ - for (dx = [-rack_rail_dia, 0]) - translate([dx, 0]) - circle(r= rack_rail_dia/2); + for (mx=[0,1]) { + mirror([mx,0]) { + translate([ rack_rail_x, $rack_rail_y ]){ + hull(){ + for (dx = [-rack_rail_dia, 0]) + translate([dx, 0]) + circle(r= rack_rail_dia/2); + } + } } - } + } } } }