master
Vitaliy Filippov 2014-06-05 16:03:44 +00:00
parent 8356c42ef4
commit 30a44d4eb3
1 changed files with 30 additions and 8 deletions

View File

@ -11,17 +11,39 @@ W=50; // tire width
N_L=4; // number of lateral protectors
N_A=10; // number of angular protectors
translate([0, 0, B_P-2-0.2]) color([0.5, 0.5, 1]) {
union() {
cylinder(r=R_I-0.2, h=W-2*(B_P-2-0.2));
cylinder(r=R_I+B-0.5, h=2);
translate([0, 0, W-2*(B_P-2-0.2)-2]) cylinder(r=R_I+B-0.5, h=2);
translate([0, 0, B_P]) cylinder(r=R_I+B+2, h=2);
translate([0, 0, W-2*(B_P-2-0.2)-6]) cylinder(r=R_I+B+2, h=2);
rim();
tire();
module rim() {
translate([0, 0, B_P-2-0.2]) color([0.5, 0.5, 1]) {
difference() {
union() {
cylinder(r=R_I-0.2, h=W-2*(B_P-2-0.2));
cylinder(r=R_I+B-0.5, h=2);
translate([0, 0, W-2*(B_P-2-0.2)-2]) cylinder(r=R_I+B-0.5, h=2);
translate([0, 0, B_P]) cylinder(r=R_I+B+2, h=2);
translate([0, 0, W-2*(B_P-2-0.2)-6]) cylinder(r=R_I+B+2, h=2);
}
for (i = [1 : 8]) rotate([0, 0, i*45]) rim_cut();
translate([0, 0, -0.5]) cylinder(r=2.5, h=W+1);
}
}
}
tire();
module rim_cut() {
translate([5, 0, -0.5]) linear_extrude(height=W+1) {
hull() {
circle(r=1);
rotate([0, 0, 15]) translate([R_I-2-5-3, 0, 0]) circle(r=3);
rotate([0, 0, -15]) translate([R_I-2-5-3, 0, 0]) circle(r=3);
}
difference() {
circle(r=R_I-2-5);
rotate([0, 0, 15]) translate([-50, 0]) square(size=[100, 30]);
rotate([0, 0, -15]) translate([-50, -30]) square(size=[100, 30]);
}
}
}
module tire() {
difference() {