formatting
[clinton/wilson.git] / scad / x-end-idler.scad
1 // PRUSA iteration3
2 // X end idler
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 // Alterations for reprap wilson by M. Rice <mrice411@gmail.com>
8
9 include <configuration.scad>
10 use <x-end.scad>
11
12 idler_offs_z = -1; // negative here means "up" when installed
13 idler_offs_y = 7;
14
15 module x_end_idler_base(){
16 x_end_base();
17 }
18
19 module x_end_idler_holes(){
20 x_end_holes();
21 translate([0,idler_offs_y,idler_offs_z]) {
22 #translate(v=[0,-22,30.25]) rotate(a=[0,-90,0]) cylinder(h = 80, r=idler_bearing_inner_d/2+.3, $fn=30);
23 #translate(v=[2,-22,30.25]) rotate(a=[0,-90,0]) cylinder(h = 10, r=idler_bearing_inner_d/2 + 1, $fn=30);
24 #translate(v=[-22,-22,30.25]) rotate(a=[0,-90,0]) rotate(a=[0,0,30]) cylinder(h = 80, r=idler_bearing_inner_d, $fn=6);
25 }
26 }
27
28 // Final part
29 module x_end_idler(){
30 mirror([0,1,0]) difference(){
31 x_end_idler_base();
32 x_end_idler_holes();
33 }
34 }
35
36 x_end_idler();
37
38