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;
25 brk_block_z = 14.55 - 0.75;
27 brk_bolt_dia = 4.0 + 0.5;
28 brk_nearbolt_recess_dia = 8.86 + 1.5;
29 brk_nearbolt_recess_depth = 1.09 + 0.25;
40 main_sz_z = beside_strap_sz*2 + strap_w;
42 brk_bottom_y = -brk_recess_actual;
43 adapt_main_top_y = brk_bottom_y + general_gap_y;
46 rack_rail_x = -(rack_width_inner/2 + rack_rail_dia/2);
47 rack_rail_outer_x = -(rack_width_inner/2 + rack_rail_dia);
49 grasp_large_r = (rack_rail_dia + grasp_sz)/2;
50 grasp_large_x = rack_rail_outer_x + grasp_large_r;
52 block_x = grasp_large_x + grasp_large_r/2;
53 block_y_min = adapt_main_top_y - main_sz_y;
55 strap_barrel_x = rack_width_inner/2 + strap_barrel_dia/2;
57 rack_shear_ratio = rear_elevation_nominal / rear_to_front_distance;
59 module GraspElevation(){
61 translate([ grasp_large_x, adapt_main_top_y - grasp_large_r ])
62 circle(grasp_large_r);
64 translate([ grasp_large_x, $rack_rail_y - rack_rail_dia/2 ])
65 circle(grasp_large_r);
67 translate([ grasp_large_x, $rack_rail_y + rack_rail_dia/2 ])
68 circle(grasp_large_r);
72 module BlockElevation(){
73 rectfromto([ +block_x, adapt_main_top_y ],
74 [ -block_x, block_y_min ]);
83 multmatrix([ [ 1, 0, 0, 0 ],
90 module GraspFixingElevation(){
93 mirror([1,0]) GraspElevation();
94 translate([ strap_barrel_x, $strap_barrel_y ])
95 circle(strap_barrel_dia/2 + strap_guide_sz);
98 rectfromto([0, $rack_rail_y],
99 [rack_width_inner, 50]);
101 translate([ rack_rail_x, $rack_rail_y ])
102 circle(r = rack_width_inner/2 - rack_rail_x);
104 [ rack_width_inner/2, 0 ],
105 [ rack_width_inner/2, $rack_rail_y - rack_rail_dia/2 ],
106 [ -block_x, block_y_min ],
107 [ 0, block_y_min ]]);
113 module StrapBarrelElevation(){
114 translate([ strap_barrel_x, $strap_barrel_y ])
115 circle(strap_barrel_dia/2);
118 // Bracket support block, goes up inside bracket
119 // Z origin is bolt hole
121 linextr( -brk_block_z/2,
123 rectfromto([ -brk_block_xw/2, adapt_main_top_y - 0.1 ],
124 [ +brk_block_xw/2, 0 ]);
128 // Z origin is bolt hole
130 linextr_y_xz( -100, 10 )
131 circle(brk_bolt_dia/2);
133 linextr_y_xz( -brk_nearbolt_recess_depth, 10)
134 circle(brk_nearbolt_recess_dia/2);
139 $rack_rail_y = brk_bottom_y - $elevation_nominal
140 - general_gap_y - rack_rail_dia/2;
142 $strap_barrel_y = $rack_rail_y + rack_rail_dia/2 + strap_barrel_dia/2;
150 RackShear() MainExtrude(){
151 StrapBarrelElevation();
153 translate([ 0,0, brk_block_z/2]) BrkBlock();
156 RackShear() MainExtrude(){
157 GraspFixingElevation();
160 translate([0,0, main_sz_z/2]) linextr(-strap_w/2, +strap_w/2) {
161 translate([ rack_width_inner/2 - strap_th, 0 ])
162 rectfromto([ 0, -50 ], [ 50, 50 ]);
167 RackShear() linextr(-10, main_sz_z+10) {
170 translate([ rack_rail_x, $rack_rail_y ]){
172 for (dx = [-rack_rail_dia, 0])
174 circle(r= rack_rail_dia/2);
181 translate([ 0,0, brk_block_z/2]) BoltHole();
186 Principal($elevation_nominal=0);