summaryrefslogtreecommitdiff
path: root/x-carriage.scad
authorMichael Krelin <hacker@klever.net>2016-07-15 19:01:16 (UTC)
committer Michael Krelin <hacker@klever.net>2016-07-15 19:01:16 (UTC)
commit11828e3050d4daf21ea756c217174a8e05ab542e (patch) (unidiff)
tree16bf918a7ba057b82bed392091977fab6498cc69 /x-carriage.scad
parentdb51c14562252dff8013d1d7a4fdbed36b69ef36 (diff)
downloadcarriagery-11828e3050d4daf21ea756c217174a8e05ab542e.zip
carriagery-11828e3050d4daf21ea756c217174a8e05ab542e.tar.gz
carriagery-11828e3050d4daf21ea756c217174a8e05ab542e.tar.bz2
render for printing
Diffstat (limited to 'x-carriage.scad') (more/less context) (ignore whitespace changes)
-rw-r--r--x-carriage.scad4
1 files changed, 3 insertions, 1 deletions
diff --git a/x-carriage.scad b/x-carriage.scad
index a546bb7..e2ccc3a 100644
--- a/x-carriage.scad
+++ b/x-carriage.scad
@@ -86,26 +86,28 @@ module xcarriage() {
86 rotate([90,0,0]) cylinder(r=r1,h=belt_width+2,center=true,$fn=30); 86 rotate([90,0,0]) cylinder(r=r1,h=belt_width+2,center=true,$fn=30);
87 dgn= sqrt(pow(x1-x0,2)+pow(z1-z0,2)); 87 dgn= sqrt(pow(x1-x0,2)+pow(z1-z0,2));
88 echo(dgn); 88 echo(dgn);
89 translate([x0,0,z0]) 89 translate([x0,0,z0])
90 rotate([90,0,0]) 90 rotate([90,0,0])
91 * cylinder(r=dgn/2-r-belt_thickness,h=belt_width+2,center=true,$fn=30); 91 * cylinder(r=dgn/2-r-belt_thickness,h=belt_width+2,center=true,$fn=30);
92 /* 92 /*
93 pd = 4.5;// post diameter 93 pd = 4.5;// post diameter
94 bhd = 5;// belt holder diameter 94 bhd = 5;// belt holder diameter
95 translate([cw/2-pd/2,0,belts_apart/2-belts_thickness-bhd/2]) cube(size=[pd,belt_width,bhd],center=true); 95 translate([cw/2-pd/2,0,belts_apart/2-belts_thickness-bhd/2]) cube(size=[pd,belt_width,bhd],center=true);
96 translate([(cw-pd)/2,0,0]) // TODO: z 96 translate([(cw-pd)/2,0,0]) // TODO: z
97 rotate([-90,0,0]) translate([0,0,-1]) cylinder(d=pd,h=belt_width+2,center=true,$fn=30); */ 97 rotate([-90,0,0]) translate([0,0,-1]) cylinder(d=pd,h=belt_width+2,center=true,$fn=30); */
98 } 98 }
99 } // difference 99 } // difference
100 100
101 translate([0,0,30/*heatsink height*//2]) 101 translate([0,0,30/*heatsink height*//2])
102 for(mhft = mounting_holes_from_top) translate([mhft[0],0,-mhft[1]]) { 102 for(mhft = mounting_holes_from_top) translate([mhft[0],0,-mhft[1]]) {
103 rotate([90,0,0]) cylinder(d=screw_d+2*play_tolerance,h=bearings_d+2*bearings_s+2,center=true,$fn=30); 103 rotate([90,0,0]) cylinder(d=screw_d+2*play_tolerance,h=bearings_d+2*bearings_s+2,center=true,$fn=30);
104 translate([0,belt_width/2+screwhead_h+play_tolerance,0]) 104 translate([0,belt_width/2+screwhead_h+play_tolerance,0])
105 rotate([90,0,0]) cylinder(d=screwhead_d+2*play_tolerance,h=screwhead_h+play_tolerance+1,$fn=30); 105 rotate([90,0,0]) cylinder(d=screwhead_d+2*play_tolerance,h=screwhead_h+play_tolerance+1,$fn=30);
106 } 106 }
107 } // difference 107 } // difference
108} 108}
109 109
110xcarriage(); 110print=false;
111if(print) rotate([-90,0,0]) xcarriage();
112else xcarriage();
111 113