Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module object()
- {
- import("/Users/petarivcec/Desktop/art/king of sun/1.stl");
- }
- z_min = 0;
- z_max = 100;
- x_max = 50;
- y_max = 55;
- slice = 1;
- n = floor(sqrt((z_max - z_min)/slice)+1);
- for(z = [-z_max:slice:z_min]) {
- i = (z + z_max) / slice;
- x = x_max * (i % n);
- y = Y_max * floor(i / n);
- translate([x,y,0]) {
- projection(cut=true)
- translate([0,0,z]) object();
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement