From 3d8e627a8eb51088b907b8984aac9dd034aaf4f6 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 5 Nov 2022 13:24:19 +0000 Subject: [PATCH] topeak-mtx-tortec-expeditionrack-adapter: break out Signed-off-by: Ian Jackson --- topeak-mtx-tortec-expeditionrack-adapter.scad | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/topeak-mtx-tortec-expeditionrack-adapter.scad b/topeak-mtx-tortec-expeditionrack-adapter.scad index b9b0b67..fa713f0 100644 --- a/topeak-mtx-tortec-expeditionrack-adapter.scad +++ b/topeak-mtx-tortec-expeditionrack-adapter.scad @@ -214,6 +214,12 @@ module IfFam(){ } } +module FamLinextr(){ + IfFam() + linextr_x_yz(-main_sz_x_fam/2, +main_sz_x_fam/2) + children(); +} + module Principal(){ // calculated $rack_rail_y = rack_rail_y_of_elevation($elevation_nominal); @@ -263,9 +269,8 @@ module Principal(){ } } - RackShear() IfFam(){ - linextr_x_yz(-main_sz_x_fam/2, - +main_sz_x_fam/2){ + RackShear() + FamLinextr(){ rotate(-90) difference(){ union(){ @@ -286,8 +291,7 @@ module Principal(){ translate([0, adapt_main_top_y]) rectfromto([-500, 0], [500, 500]); } - } - } + } } RackShear() linextr(-10, main_sz_lhs_z+main_sz_rhs_z) { -- 2.30.2