Facebook
From Sexy Porcupine, 1 Year ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 94
  1.  z_min = 0;
  2.  z_max = 100;
  3.  x_max = 50;
  4.  y_max = 105;
  5.  slice = 1;
  6.  
  7.  n = floor(sqrt((z_max - z_min)/slice)+1);
  8.  for(z = [-z_max:slice:z_min]) {
  9.    i = (z + z_max) / slice;
  10.    x = x_max * (i % n);
  11.    y = y_max * floor(i / n);
  12.    translate([x,y,0]) {
  13.        projection(cut=true)
  14.            translate([0,0,z]) import("/Users/petarivcec/Desktop/art/king of sun/2 and 3 repaired.stl");
  15.    };
  16.  };