Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. r=165;
  2. s=50;
  3.  
  4. module elem(){
  5. cube([20,20,20], true);
  6. }
  7.  
  8. jmax=2;
  9. difference(){
  10. union(){
  11. rotate([0,0,360*$t]){
  12. for(j=[0:2:jmax-1]){
  13. for(i=[0+j:jmax:110])
  14. translate([s*cos(i*r)*sin(i),s*sin(i*r)*sin(i),s*cos(i)])
  15. support()
  16. scale(0.3+i/80)
  17. rotate([0,i*-8,i*r])
  18. elem();
  19.  
  20. for(i=[1+j:jmax:110])
  21. translate([s*cos(i*r)*sin(i),s*sin(i*r)*sin(i),s*cos(i)])
  22. support()
  23. scale(0.3+i/80)
  24. rotate([0,i*8,i*r])
  25. elem();
  26. }
  27.  
  28. sphere(s);
  29. }
  30. }
  31. translate([0,0,-25]) cube([150,150,50], true);
  32. }
  33.  
  34. //This shape describes a good subtraction object that you can
  35. //use to save on plastic.
  36. /*!union(){
  37. hull(){
  38. scale([1,1,0.8])sphere(47);
  39. translate([0,0,35]) sphere(16);
  40. }
  41. }*/
  42. //Inverse for other operations.
  43. /*!difference(){*/
  44. /*sphere(2*s);*/
  45.  
  46. /*translate([0,0,-110]) cube([200,200,200], true);*/
  47. /*union(){*/
  48. /*hull(){*/
  49. /*scale([1,1,0.8])sphere(47);*/
  50. /*translate([0,0,35]) sphere(16);*/
  51. /*}*/
  52. /*}*/
  53. /*}*/
  54.  
  55. //Anti overhang
  56. module support(){
  57. hull(){
  58. children();
  59. translate([0,0,-20]) scale(0.2) children();
  60. }
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement