Results 1 to 10 of 18
Thread: Printing Spheres
Threaded View
-
06-03-2015, 05:55 AM #13
I see what you mean the neck shouldn't be that hard to fit to the hole.
Right try this:
$fn=100;
sd=132.48; //sphere diameter
wt=2; // thickness of sphere wall
hs=25; // hole size
ln=25; // length of neck
//Sphere
%difference() {
sphere(d=sd); //create sphere with diameter set by sd
sphere(d=sd-(2*wt)); //remove sphere from centre of original sphere - size defined by wt
translate([0,0,-sd/2])cylinder(d=hs,h=wt*2); // remove hole from bottom of sphere - diameter defined by hs
}
//Neck
difference() {
translate([0,0,-ln-(sd/2)+wt])cylinder(d=hs+wt,h=ln);
translate([0,0,-ln-(sd/2)+wt])cylinder(d=hs,h=ln);
}
But you must remove the '%' before f6 rendering, otherwise it ignores everything with % in front of it.
so final renderable script:
$fn=100;
sd=132.48; //sphere diameter
wt=2; // thickness of sphere wall
hs=25; // hole size
ln=29; // length of neck
//Sphere
difference() {
sphere(d=sd); //create sphere with diameter set by sd
sphere(d=sd-(2*wt)); //remove sphere from centre of original sphere - size defined by wt
translate([0,0,-sd/2])cylinder(d=hs,h=wt*2); // remove hole from bottom of sphere - diameter defined by hs
}
//Neck
difference() {
translate([0,0,-ln-(sd/2)+wt])cylinder(d=hs+wt,h=ln);
translate([0,0,-ln-(sd/2)+wt])cylinder(d=hs,h=ln);
}
Looks like a classic anarchist's bomb All we need is a plug, some black powder and a fuse :-)
Also looks like the gourd Asterix carries his magic potion in :-)
Please explain to me how to...
05-17-2024, 12:15 PM in 3D Printer Parts, Filament & Materials