RosettaCodeData/Task/Death-Star/Openscad/death-star.scad
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

19 lines
378 B
OpenSCAD

// We are performing geometric subtraction
difference() {
// Create the primary sphere of radius 60 centred at the origin
translate(v = [0,0,0]) {
sphere(60);
}
/*Subtract an overlapping sphere with a radius of 40
The resultant hole will be smaller than this, because we only
only catch the edge
*/
translate(v = [0,90,0]) {
sphere(40);
}
}