Results 1 to 10 of 72
Thread: OpenScad Help Centre
Threaded View
-
11-30-2014, 12:31 PM #11
rocket and HULL tips part the second
Finished code:
$fn=100;
difference() { //removes cylinder from entire ducttaped model
union() {
cylinder (d=20,h=40);
translate([0,0,40]) cylinder(d1=20, d2=1, h=20);
hull() {
translate([-1,0,0]) cube([2,25,0.1]);
translate([-5,0,40]) cube([1.5,0.1,0.1]);
}
//second fin
rotate([0,0,120]) {
hull() {
translate([-1,0,0]) cube([2,25,0.1]);
translate([-5,0,40]) cube([1.5,0.1,0.1]);
}
} //end of rotate
//third fin
rotate([0,0,240]) {
hull() {
translate([-1,0,0]) cube([2,25,0.1]);
translate([-5,0,40]) cube([1.5,0.1,0.1]);
}
} //end of rotate
} //end of union to stitch the whole model together
cylinder (d=16,h=38); //removes hole for rocket motor
} //end of difference to remove hole for motor
But that's not necessary if we just want one rocket once :-)
You'll notice I add comments to the } brackets so that I have some idea what the bloody things are for.
Good habit to get into.
The hull command can be used to make pretty much any shape you like. Have a play :-)
Qidi X Plus 3 Paper thin first...
05-27-2024, 01:15 AM in General 3D Printing Discussion