5 module FArcSegment_mask(beta) {
6 for (i=[0 : 0.75 : 3]) {
10 [cos(beta/4), sin(beta/4)]]);
14 module FArcSegment(xc,yc,inrad,outrad,alpha,delta) {
21 rotate(alpha) scale(outrad*2) {
22 FArcSegment_mask(delta);
43 tuberad = tubewidth/2;
44 bend = atan(tuberad/stemlen);
45 mainoutrad = tuberad + mainthick;
46 hookoutrad = hookinrad + hookwidth;
47 hookcy = -(stemlen - hookoutrad);
49 eltop = [topwidth/2, -tuberad + tubeheight + mainthick + 1];
50 elmid = [topwidth/2, -tuberad];
51 ellow = tangent_intersect_b([0,hookcy], hookinrad, elmid);
52 ellowextra = 180 - tangent_intersect_beta([0,hookcy], hookinrad, elmid);
55 dy = tubeheight - tuberad*2;
56 FArcSegment(0, dy, tuberad, mainoutrad, -1, 181);
57 FArcSegment(0, 0, tuberad, mainoutrad, -bend, bend+1);
58 translate([tuberad, 0]) square(center=false, size=[mainthick,dy]);
59 FArcSegment(0, 0, tuberad, tuberad + clipthick, 360-clipang, clipang+1);
60 rotate(-bend) translate([tuberad, 0]) mirror([0,1])
61 square(center=false, size=[mainthick, stemlen/cos(bend)]);
64 module ElevationCore(){
65 FArcSegment(0, hookcy, hookinrad, hookoutrad,
68 translate([-hookoutrad*sqrt(0.5), -(stemlen+10)]) mirror([1,0])
69 square(center=false, size=[topwidth, stemlen + tubeheight + 20]);
70 polygon([[-hookoutrad, ellow[1]],