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([0,0,barz]) {
64 rotate([0,90,0]) cylinder(r=barrad, h=spoolw/2+2, $fn=30);
65 translate([spoolw/2,0,0])
66 rotate([0,90,0]) cylinder(r=guiderad, h=guidewidth, $fn=60);
68 translate([spoolw/2 + guidewidth, 0, 0])
72 translate([-biggestw/2, -50, 0])
73 cube([biggestw, 100, 100]);
77 module Trestle(){ ////toplevel
78 legang = atan2(trestlebase/2, trestleheight);
79 eplen = sqrt(trestleheight*trestleheight + trestlebase*trestlebase*0.25);
80 topblockw = plugwmax + trestleplugd*2 + topblockthick*2;
82 pinholebasew = pinbasew + pindwidth*2;
83 pinholeh = pinmaxh + pindh;
89 rotate([0,0, -90-legang])
90 ExtenderPillars(length=eplen+trestlelegw,
95 translate([-trestlebase/2, -trestleheight, 0])
96 cylinder(r=trestlelegw/2*1.2, h=plugl);
99 translate([-topblockw/2, -topblockbasedepth, 0])
101 topblockbasedepth + plugh + topblockthick
102 + (pinmaxh - pinminh)*0.6 + pindh,
105 translate([-trestlebase/2, -trestleheight, 0])
106 ExtenderPillars(length=trestlebase, width=trestlebaseh*2, height=legw);
108 translate([-300, -trestleheight-50, -1])
109 cube([600, 50, plugl+2]);
112 Plug(d=trestleplugd);
115 translate([0,0,plugl/2]) rotate([0,rot,0]) translate([0,0,-plugl/2]) {
116 translate([-(topblockw*0.25+1),
117 plugh + pindh - (pinmaxh - pinminh)*0.75,
118 (plugl - pinholebasew*2)/3]) {
119 translate([0,0,pinholebasew/2]) rotate([-90,0,0]) %Pin();
121 linear_extrude(height = topblockw*1.0+2) {
122 polygon([[-1.0 * pinholebasew, -0.01],
123 [-0.5 * pinholebasew, pinholeh],
133 module Pin(){ ////toplevel
138 linear_extrude(height=0.1) {
141 [pinbasew*0.5*(pinminh/pinmaxh), 0]]);
143 translate([0,0,pintaperlen])
144 linear_extrude(height=pinstraightlen) {
155 module TestKit(){ ////toplevel
156 translate([30,0,0]) Pin();
157 translate([30,30,0]) Pin();
158 translate([0,40,0]) intersection(){
160 translate([-50,-10,-1]) cube([100,100,100]);
163 translate([-60,0,0]) Bar();
164 cube(50,center=true);
173 //ExtenderPillars(80,12,8, baseweb=true);