// -*- C -*-
+// use shell thickness 1.50
+// use fill density 40%
+
include <funcs.scad>
tube_dia = 27.5 + 1.625;
cliprecess_h = 16;
total_h = 45;
-back_gap = 10;
-main_th = 2.5;
-tube_th = 2.25;
+back_gap = 12.5;
+main_th = 2.75;
+tube_th = 2.125;
midweb_d = 3;
clip_th = 3.5;
mountscrew_dia = 4 + 0.5;
clipbolt_dia = 5 + 0.1;
-backflange_th = 3.5;
+backflange_th = 4.5;
$fn=50;
-join_cr = 5;
+join_cr = 9;
+
+tube_rear_extra_th = 1;
// calculated
}
}
-module JoinCirc(jr){
+module JoinCircs(jr){
+ // http://mathworld.wolfram.com/Circle-CircleIntersection.html
R = tube_or + join_cr;
r = lock_or[1] + join_cr;
d = dist2d( [0,0], lock_0 );
echo(lock_0x, lock_0y, R,r, d, x,y);
- rotate(atan2(lock_0y, lock_0x)) {
- translate([x,-y])
- circle(r= jr);
+ for (m=[0,1]) {
+ mirror([m,0]) {
+ rotate(atan2(lock_0y, lock_0x)) {
+ translate([x,-y])
+ circle(r= jr);
+ }
+ }
}
}
module MainPlan(){
difference(){
union(){
- circle(r = tube_or);
+ hull(){
+ for (t=[0, tube_rear_extra_th])
+ translate([0, -t])
+ circle(r = tube_or);
+ }
translate([-back_ohw,0]) mirror([0,1])
square([back_ohw*2, backflange_ymin]);
}
hull(){
- for (m=[0,1])
- mirror([m,0])
- JoinCirc(0.01);
+ JoinCircs(0.01);
polygon([[0,0], lock_0, [-lock_0[0], lock_0[1]]]);
}
}
oval([lock_w/2, lock_d/2]);
}
- for (m=[0,1])
- mirror([m,0])
- JoinCirc(join_cr);
+ JoinCircs(join_cr);
}
}
//TestTopEdge();
//TestClipBoltHole();
-//Bracket();
+Bracket();