Permalink
Browse files

Final refactoring complete

  • Loading branch information...
josefprusa committed Sep 3, 2012
1 parent abcf6c9 commit e6b2166c14e240d841483d0f21b6b062177efbb0
View

This file was deleted.

Oops, something went wrong.
View
@@ -0,0 +1,75 @@
// PRUSA iteration3
// Bearing holders
// GNU GPL v3
// Josef Průša <iam@josefprusa.cz> and contributors
// http://www.reprap.org/wiki/Prusa_Mendel
// http://prusamendel.org
bearing_diameter = 15;
module horizontal_bearing_base(bearings=1){
translate(v=[0,0,6]) cube(size = [24,8+bearings*25,12], center = true);
}
module horizontal_bearing_holes(bearings=1){
cutter_lenght = 10+bearings*25;
one_holder_lenght = 8+25;
holder_lenght = 8+bearings*25;
// Main bearing cut
difference(){
translate(v=[0,0,12]) rotate(a=[90,0,0]) translate(v=[0,0,-cutter_lenght/2]) cylinder(h = cutter_lenght, r=bearing_diameter/2, $fn=50);
// Bearing retainers
translate(v=[0,1-holder_lenght/2,3]) cube(size = [24,6,8], center = true);
translate(v=[0,-1+holder_lenght/2,3]) cube(size = [24,6,8], center = true);
}
// Ziptie cutouts
ziptie_cut_ofset = 0;
for ( i = [0 : bearings-1] ){
// For easier positioning I move them by half of one
// bearing holder then add each bearign lenght and then center again
translate(v=[0,-holder_lenght/2,0]) translate(v=[0,one_holder_lenght/2+i*25,0]) difference(){
union(){
translate(v=[0,2-6,12]) rotate(a=[90,0,0]) translate(v=[0,0,0]) cylinder(h = 4, r=12.5, $fn=50);
translate(v=[0,2+6,12]) rotate(a=[90,0,0]) translate(v=[0,0,0]) cylinder(h = 4, r=12.5, $fn=50);
}
translate(v=[0,10,12]) rotate(a=[90,0,0]) translate(v=[0,0,0]) cylinder(h = 24, r=10, $fn=50);
}
}
}
module horizontal_bearing_test(){
difference(){
horizontal_bearing_base(1);
horizontal_bearing_holes(1);
}
translate(v=[30,0,0]) difference(){
horizontal_bearing_base(2);
horizontal_bearing_holes(2);
}
translate(v=[60,0,0]) difference(){
horizontal_bearing_base(3);
horizontal_bearing_holes(3);
}
}
thinwall = 2;
bearing_size = bearing_diameter + 2 * thinwall;
module vertical_bearing_base(){
translate(v=[-2-bearing_size/4,0,30]) cube(size = [4+bearing_size/2,bearing_size,60], center = true);
cylinder(h = 60, r=bearing_size/2, $fn = 60);
}
module vertical_bearing_holes(){
translate(v=[0,0,-1]) cylinder(h = 62, r=bearing_diameter/2, $fn = 60);
rotate(a=[0,0,-60]) translate(v=[10,0,31]) cube(size = [10,1,62], center = true);
}
difference(){
vertical_bearing_base();
vertical_bearing_holes();
}
View
@@ -0,0 +1,29 @@
// PRUSA iteration3
// 624 bearing belt guide
// GNU GPL v3
// Josef Průša <iam@josefprusa.cz> and contributors
// http://www.reprap.org/wiki/Prusa_Mendel
// http://prusamendel.org
wall= 1.2;
clearence= 0.1;
module belt_guide_base(){
cylinder(r=6.5+wall+clearence, h=4.5, $fn=50);
cylinder(r=6.5+wall+clearence+2*wall, h=0.4, $fn=50);
}
module belt_guide_holes(){
translate([0,0,1.5]) cylinder(r=6.5+clearence, h=10, $fn=50);
translate([0,0,-1]) cylinder(r=6.5+wall+clearence-2*wall, h=10, $fn=50);
}
// Final part
module belt_guide(){
difference(){
belt_guide_base();
belt_guide_holes();
}
}
belt_guide();
View

This file was deleted.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit e6b2166

Please sign in to comment.