chiark / gitweb /
topeak-mtx-tortec-expeditionrack-adapter: wip
[reprap-play.git] / topeak-mtx-tortec-expeditionrack-adapter.scad
index 82c3a8a6025ab5b47ba021e52a4d14458ab700bb..8a3d219d2af71b2b3cfa169376ee6abc728da06f 100644 (file)
@@ -16,7 +16,7 @@ rear_to_front_distance = 230;
 
 general_gap_y = 1.0;
 
-strap_w = 8.0;
+strap_w = 8.0 + 1.0;
 strap_th = 2.5;
 strap_barrel_dia = 12;
 strap_guide_sz = 2;
@@ -44,6 +44,8 @@ block_y_min = adapt_main_top_y - main_sz_y;
 
 strap_barrel_x = rack_width_inner/2 + strap_barrel_dia/2;
 
+rack_shear_ratio = rear_elevation_nominal / rear_to_front_distance;
+
 module GraspElevation(){
   hull(){
     translate([ grasp_large_x, adapt_main_top_y - grasp_large_r ])
@@ -67,10 +69,11 @@ module MainExtrude(){
     children();
 }
 module RackShear(){
-  multmatrix([ [ 1, 0,   0, 0 ],
-              [ 0, 1, 0.1, 0 ],
-              [ 0, 0,   1, 0 ],
-              [ 0, 0,   0, 1 ] ])
+  s = rack_shear_ratio;
+  multmatrix([ [ 1, 0,  0, 0 ],
+              [ 0, 1, s , 0 ],
+              [ 0, 0,  1, 0 ],
+              [ 0, 0,  0, 1 ] ])
     children();
 }