3 // brk_*: "bracket", the Topeak MTX bracket
4 // rack_*: the Tortec rack
5 // adapt_*: the adapter, ie this file
9 brk_recess_actual = 5.20;
11 rack_rail_dia = 10.40 + 0.50;
12 rack_width_inner = 115.86 + 1.0; // between insides of rails
14 rear_elevation_nominal = 10.04; // top of rack to bottom of bracket
15 rear_to_front_distance = 230;
21 strap_barrel_dia = 12;
30 main_sz_z = beside_strap_sz*2 + strap_w;
32 brk_bottom_y = -brk_recess_actual;
33 adapt_main_top_y = brk_bottom_y + general_gap_y;
36 rack_rail_x = -(rack_width_inner/2 + rack_rail_dia/2);
37 rack_rail_outer_x = -(rack_width_inner/2 + rack_rail_dia);
39 grasp_large_r = (rack_rail_dia + grasp_sz)/2;
40 grasp_large_x = rack_rail_outer_x + grasp_large_r;
42 block_x = grasp_large_x + grasp_large_r/2;
43 block_y_min = adapt_main_top_y - main_sz_y;
45 strap_barrel_x = rack_width_inner/2 + strap_barrel_dia/2;
47 module GraspElevation(){
49 translate([ grasp_large_x, adapt_main_top_y - grasp_large_r ])
50 circle(grasp_large_r);
52 translate([ grasp_large_x, $rack_rail_y - rack_rail_dia/2 ])
53 circle(grasp_large_r);
55 translate([ grasp_large_x, $rack_rail_y + rack_rail_dia/2 ])
56 circle(grasp_large_r);
60 module BlockElevation(){
61 rectfromto([ +block_x, adapt_main_top_y ],
62 [ -block_x, block_y_min ]);
70 multmatrix([ [ 1, 0, 0, 0 ],
77 module GraspFixingElevation(){
80 mirror([1,0]) GraspElevation();
81 translate([ strap_barrel_x, $strap_barrel_y ])
82 circle(strap_barrel_dia/2 + strap_guide_sz);
85 rectfromto([0, $rack_rail_y],
86 [rack_width_inner, 50]);
88 translate([ rack_rail_x, $rack_rail_y ])
89 circle(r = rack_width_inner/2 - rack_rail_x, $fa=1);
91 [ rack_width_inner/2, 0 ],
92 [ rack_width_inner/2, $rack_rail_y - rack_rail_dia/2 ],
93 [ -block_x, block_y_min ],
100 module StrapBarrelElevation(){
101 translate([ strap_barrel_x, $strap_barrel_y ])
102 circle(strap_barrel_dia/2);
107 $rack_rail_y = brk_bottom_y - $elevation_nominal
108 - general_gap_y - rack_rail_dia/2;
110 $strap_barrel_y = $rack_rail_y + rack_rail_dia/2 + strap_barrel_dia/2;
118 RackShear() MainExtrude(){
119 StrapBarrelElevation();
123 RackShear() MainExtrude(){
124 GraspFixingElevation();
127 translate([0,0, main_sz_z/2]) linextr(-strap_w/2, +strap_w/2) {
128 translate([ rack_width_inner/2 - strap_th, 0 ])
129 rectfromto([ 0, -50 ], [ 50, 50 ]);
134 RackShear() linextr(-10, main_sz_z+10) {
137 translate([ rack_rail_x, $rack_rail_y ]){
139 for (dx = [-rack_rail_dia, 0])
141 circle(r= rack_rail_dia/2);
150 Principal($elevation_nominal=0);