3 spoolwidth = 80; // fixme needs to be measured
4 trestleheight = 80; // fixme needs to be checked
5 trestlebase = 80; // fixme needs to be checked
7 include <doveclip.scad>
19 plugwmax = plugwmin + plugh * plugslope * 2;
26 topblockbasedepth = 5;
34 pintaperlen = plugwmax * 0.85;
43 bdx = dw / cos(a) + bdy * plugslope;
45 tdx = bdx + tdy * plugslope;
46 translate([-d,0,0]) rotate([90,0,90]) linear_extrude(height=plugl+0.1+d*2){
47 polygon([[-(plugwmin/2 + bdx), bdy],
48 [-(plugwmax/2 + tdx), plugh + tdy],
49 [+(plugwmax/2 + tdx), plugh + tdy],
50 [+(plugwmin/2 + bdx), bdy]]);
54 module Bar(){ ////toplevel
55 spoolw = spoolwidth + spoolwidthgap*2;
57 biggestw = spoolw + 50;
62 translate([spoolw/2, 0, 0])
64 translate([-1, -50, -50])
65 cube([spoolw/2+1.1, 100, 100]);
68 translate([-biggestw/2, -50, 0])
69 cube([biggestw, 100, 100]);
70 translate([0,0,barz]) {
72 rotate([0,90,0]) cylinder(r=barrad, h=200, $fn=30);
78 AxlePin(barrad, (barrad + barwasherrad*2)/3 * 2);
81 module Trestle(){ ////toplevel
82 legang = atan2(trestlebase/2, trestleheight);
83 eplen = sqrt(trestleheight*trestleheight + trestlebase*trestlebase*0.25);
84 topblockw = plugwmax + trestleplugd*2 + topblockthick*2;
86 pinholebasew = pinbasew + pindwidth*2;
87 pinholeh = pinmaxh + pindh;
93 rotate([0,0, -90-legang])
94 ExtenderPillars(length=eplen+trestlelegw,
99 translate([-trestlebase/2, -trestleheight, 0])
100 cylinder(r=trestlelegw/2*1.2, h=plugl);
103 translate([-topblockw/2, -topblockbasedepth, 0])
105 topblockbasedepth + plugh + topblockthick
106 + (pinmaxh - pinminh)*0.6 + pindh,
109 translate([-trestlebase/2, -trestleheight, 0])
110 ExtenderPillars(length=trestlebase, width=trestlebaseh*2, height=legw);
112 translate([-300, -trestleheight-50, -1])
113 cube([600, 50, plugl+2]);
116 Plug(d=trestleplugd);
119 translate([0,0,plugl/2]) rotate([0,rot,0]) translate([0,0,-plugl/2]) {
120 translate([-(topblockw*0.25+1),
121 plugh + pindh - (pinmaxh - pinminh)*0.75,
122 (plugl - pinholebasew*2)/3]) {
123 translate([0,0,pinholebasew/2]) rotate([-90,0,0]) %Pin();
125 linear_extrude(height = topblockw*1.0+2) {
126 polygon([[-1.0 * pinholebasew, -0.01],
127 [-0.5 * pinholebasew, pinholeh],
137 module Pin(){ ////toplevel
142 linear_extrude(height=0.1) {
145 [pinbasew*0.5*(pinminh/pinmaxh), 0]]);
147 translate([0,0,pintaperlen])
148 linear_extrude(height=pinstraightlen) {
159 module TestKit(){ ////toplevel
160 translate([30,0,0]) Pin();
161 translate([30,30,0]) Pin();
162 translate([0,40,0]) intersection(){
164 translate([-50,-10,-1]) cube([100,100,100]);
167 translate([-60,0,0]) Bar();
168 cube(50,center=true);
178 //ExtenderPillars(80,12,8, baseweb=true);