summaryrefslogtreecommitdiff
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) (side-by-side diff)
tree16bf918a7ba057b82bed392091977fab6498cc69
parentdb51c14562252dff8013d1d7a4fdbed36b69ef36 (diff)
downloadcarriagery-11828e3050d4daf21ea756c217174a8e05ab542e.zip
carriagery-11828e3050d4daf21ea756c217174a8e05ab542e.tar.gz
carriagery-11828e3050d4daf21ea756c217174a8e05ab542e.tar.bz2
render for printing
Diffstat (more/less context) (show 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() {
rotate([90,0,0]) cylinder(r=r1,h=belt_width+2,center=true,$fn=30);
dgn= sqrt(pow(x1-x0,2)+pow(z1-z0,2));
echo(dgn);
translate([x0,0,z0])
rotate([90,0,0])
* cylinder(r=dgn/2-r-belt_thickness,h=belt_width+2,center=true,$fn=30);
/*
pd = 4.5; // post diameter
bhd = 5; // belt holder diameter
translate([cw/2-pd/2,0,belts_apart/2-belts_thickness-bhd/2]) cube(size=[pd,belt_width,bhd],center=true);
translate([(cw-pd)/2,0,0]) // TODO: z
rotate([-90,0,0]) translate([0,0,-1]) cylinder(d=pd,h=belt_width+2,center=true,$fn=30); */
}
} // difference
translate([0,0,30/*heatsink height*//2])
for(mhft = mounting_holes_from_top) translate([mhft[0],0,-mhft[1]]) {
rotate([90,0,0]) cylinder(d=screw_d+2*play_tolerance,h=bearings_d+2*bearings_s+2,center=true,$fn=30);
translate([0,belt_width/2+screwhead_h+play_tolerance,0])
rotate([90,0,0]) cylinder(d=screwhead_d+2*play_tolerance,h=screwhead_h+play_tolerance+1,$fn=30);
}
} // difference
}
-xcarriage();
+print=false;
+if(print) rotate([-90,0,0]) xcarriage();
+else xcarriage();