Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- r=165;
- s=50;
- module elem(){
- cube([20,20,20], true);
- }
- jmax=2;
- difference(){
- union(){
- rotate([0,0,360*$t]){
- for(j=[0:2:jmax-1]){
- for(i=[0+j:jmax:110])
- translate([s*cos(i*r)*sin(i),s*sin(i*r)*sin(i),s*cos(i)])
- support()
- scale(0.3+i/80)
- rotate([0,i*-8,i*r])
- elem();
- for(i=[1+j:jmax:110])
- translate([s*cos(i*r)*sin(i),s*sin(i*r)*sin(i),s*cos(i)])
- support()
- scale(0.3+i/80)
- rotate([0,i*8,i*r])
- elem();
- }
- sphere(s);
- }
- }
- translate([0,0,-25]) cube([150,150,50], true);
- }
- //This shape describes a good subtraction object that you can
- //use to save on plastic.
- /*!union(){
- hull(){
- scale([1,1,0.8])sphere(47);
- translate([0,0,35]) sphere(16);
- }
- }*/
- //Inverse for other operations.
- /*!difference(){*/
- /*sphere(2*s);*/
- /*translate([0,0,-110]) cube([200,200,200], true);*/
- /*union(){*/
- /*hull(){*/
- /*scale([1,1,0.8])sphere(47);*/
- /*translate([0,0,35]) sphere(16);*/
- /*}*/
- /*}*/
- /*}*/
- //Anti overhang
- module support(){
- hull(){
- children();
- translate([0,0,-20]) scale(0.2) children();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement