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>
20 plugwmax = plugwmin + plugh * plugslope * 2;
27 topblockbasedepth = 5;
35 pintaperlen = plugwmax * 0.85;
44 bdx = dw / cos(a) + bdy * plugslope;
46 tdx = bdx + tdy * plugslope;
47 translate([-d,0,0]) rotate([90,0,90]) linear_extrude(height=plugl+0.1+d*2){
48 polygon([[-(plugwmin/2 + bdx), bdy],
49 [-(plugwmax/2 + tdx), plugh + tdy],
50 [+(plugwmax/2 + tdx), plugh + tdy],
51 [+(plugwmin/2 + bdx), bdy]]);
55 module Bar(){ ////toplevel
56 spoolw = spoolwidth + spoolwidthgap*2;
58 biggestw = spoolw + 50;
63 translate([0,0,barz]) {
64 scale([1,barrady,barradz]) translate([-1,0,0])
65 rotate([0,90,0]) cylinder(r=1, h=spoolw/2+2, $fn=30);
66 translate([spoolw/2,0,0])
67 rotate([0,90,0]) cylinder(r=guiderad, h=guidewidth, $fn=60);
69 translate([spoolw/2 + guidewidth, 0, 0])
73 translate([-biggestw/2, -50, 0])
74 cube([biggestw, 100, 100]);
78 module Trestle(){ ////toplevel
79 legang = atan2(trestlebase/2, trestleheight);
80 eplen = sqrt(trestleheight*trestleheight + trestlebase*trestlebase*0.25);
81 topblockw = plugwmax + trestleplugd*2 + topblockthick*2;
83 pinholebasew = pinbasew + pindwidth*2;
84 pinholeh = pinmaxh + pindh;
90 rotate([0,0, -90-legang])
91 ExtenderPillars(length=eplen+trestlelegw,
96 translate([-trestlebase/2, -trestleheight, 0])
97 cylinder(r=trestlelegw/2*1.2, h=plugl);
100 translate([-topblockw/2, -topblockbasedepth, 0])
102 topblockbasedepth + plugh + topblockthick
103 + (pinmaxh - pinminh)*0.6 + pindh,
106 translate([-trestlebase/2, -trestleheight, 0])
107 ExtenderPillars(length=trestlebase, width=trestlebaseh*2, height=legw);
109 translate([-300, -trestleheight-50, -1])
110 cube([600, 50, plugl+2]);
113 Plug(d=trestleplugd);
116 translate([0,0,plugl/2]) rotate([0,rot,0]) translate([0,0,-plugl/2]) {
117 translate([-(topblockw*0.25+1),
118 plugh + pindh - (pinmaxh - pinminh)*0.75,
119 (plugl - pinholebasew*2)/3]) {
120 translate([0,0,pinholebasew/2]) rotate([-90,0,0]) %Pin();
122 linear_extrude(height = topblockw*1.0+2) {
123 polygon([[-1.0 * pinholebasew, -0.01],
124 [-0.5 * pinholebasew, pinholeh],
134 module Pin(){ ////toplevel
139 linear_extrude(height=0.1) {
142 [pinbasew*0.5*(pinminh/pinmaxh), 0]]);
144 translate([0,0,pintaperlen])
145 linear_extrude(height=pinstraightlen) {
156 module TestKit(){ ////toplevel
157 translate([30,0,0]) Pin();
158 translate([30,30,0]) Pin();
159 translate([0,40,0]) intersection(){
161 translate([-50,-10,-1]) cube([100,100,100]);
164 translate([-60,0,0]) Bar();
165 cube(50,center=true);
174 //ExtenderPillars(80,12,8, baseweb=true);