Trouble with a hollow sphere September 04, 2014 07:13PM |
Registered: 10 years ago Posts: 24 |
union () { difference () { sphere(12.7,$fn=100,center=true); cylinder(55,.75,.75,$fn=100,center=true); } difference () { cylinder(25.4,1,1,$fn=100,center=true); cylinder(55,0.75,0.75,$fn=100,center=true); } }
Re: Trouble with a hollow sphere September 04, 2014 11:54PM |
Registered: 11 years ago Posts: 1,320 |
difference() { sphere(r=10, center=true); sphere(r=9, center=true); }
union() { difference() { sphere(r=10, center=true); sphere(r=9, center=true); cylinder(r=1, h=21, center=true); } difference() { cylinder(r=2, h=20, center=true); cylinder(r=1, h=21, center=true); } }I made the subtracted cylinders height 21 just so there was no issue with coincident faces at the top and bottom. This will give you a hollow sphere with a tube down the center. All walls will be 1mm.
Re: Trouble with a hollow sphere September 05, 2014 03:03PM |
Registered: 10 years ago Posts: 24 |
Re: Trouble with a hollow sphere September 17, 2014 11:10AM |
Registered: 10 years ago Posts: 2,472 |
Re: Trouble with a hollow sphere September 17, 2014 12:25PM |
Registered: 14 years ago Posts: 3,742 |
// This creates the basic hollow sphere module HollowSphere() { difference() { sphere(r=10,center=true); sphere(r=9,center=true); } } module TopSphere() { difference() { HollowSphere(); translate([0,0,-50]) cube([100,100,100], true); } } TopSphere(); rotate([180,0,0]) TopSphere();
Re: Trouble with a hollow sphere September 18, 2014 11:21AM |
Registered: 10 years ago Posts: 2,472 |
Re: Trouble with a hollow sphere September 18, 2014 02:29PM |
Registered: 14 years ago Posts: 3,742 |
Re: Trouble with a hollow sphere September 22, 2014 08:36PM |
Registered: 10 years ago Posts: 24 |
Re: Trouble with a hollow sphere September 23, 2014 04:36AM |
Registered: 14 years ago Posts: 3,742 |