Revert "reduced size to make holes line up with the single plate y-axis"
[clinton/prusa3.git] / old_single_plate / src / y-corners.scad
1 // PRUSA iteration3
2 // Y frame corners
3 // GNU GPL v3
4 // Josef Průša <iam@josefprusa.cz> and contributors
5 // http://www.reprap.org/wiki/Prusa_Mendel
6 // http://prusamendel.org
7
8
9 module corner_base(){
10 translate([-9,-11,0])cube([18,22,47]);
11 }
12
13 module corner_holes(){
14 translate([-11,-11,0]){
15 // Bottom hole
16 translate([0,11,10]) rotate([0,90,0]) translate([0,0,-5]) cylinder(h = 270, r=4.4, $fn=30);
17 // Top hole
18 translate([0,11,30]) rotate([0,90,0]) translate([0,0,-5]) cylinder(h = 270, r=4.4, $fn=30);
19 // Middle hole
20 translate([11,0,20]) rotate([0,0,90]) rotate([0,90,0]) translate([0,0,-5]) cylinder(h = 270, r=5.4, $fn=30);
21
22 // Washer hole
23 translate([11,-3,20]) rotate([0,0,90]) rotate([0,90,0]) translate([0,0,-5]) cylinder(h = 10, r=11, $fn=30);
24
25 // Top smooth rod insert
26 // Smooth rod place
27 translate([11,2,45]) rotate([0,90,90]) cylinder(h = 270, r=4.2, $fn=30);
28 // Ziptie
29 translate([-5,9,39]) cube([30,3.5,2]);
30 }
31 }
32
33 module corner_fancy(){
34 // Side corner cutouts
35 translate([-8,-9,0]) rotate([0,0,-45-180]) translate([-15,0,-1]) cube([30,30,51]);
36 translate([8,-9,0]) rotate([0,0,45-180]) translate([-15,0,-1]) cube([30,30,51]);
37 // Top corner cutouts
38 translate([7,0,49-2]) rotate([0,45,0]) translate([-15,-15,0]) cube([30,30,30]);
39 translate([-7,0,49-2]) rotate([0,-45,0]) translate([-15,-15,0]) cube([30,30,30]);
40 rotate([0,0,90]){
41 translate([-9,0,49-2]) rotate([0,-45,0]) translate([-15,-15,0]) cube([30,30,30]);
42 }
43 }
44
45
46 // Final part
47 module corner(){
48 // Rotate the part for better printing
49 translate([0,0,11]) rotate([-90,0,0]) difference(){
50 corner_base();
51 corner_holes();
52 corner_fancy();
53 }
54 }
55
56 corner();