Last active
August 29, 2015 14:13
-
-
Save makevoid/73858e034adf4172d363 to your computer and use it in GitHub Desktop.
Zoetrope STL (comments in ita) - STL: http://makevoid.s3.amazonaws.com/stl/zoetrope2.stl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 137.5 gradi | |
j = 150; | |
z = 170; | |
z_scale = 35; | |
union() { // unisci tutto | |
for ( i = [0 : j] ) // ciclo | |
{ | |
if (i < 100) { // parte sopra | |
rotate(i * 137.5, [1, 1, 1]) // ruota secondo l'angolo maggico | |
translate([0, 10+i*i/30, 0]) // trasla sempre di piu | |
scale(1+i/5*i/100) // scala la dimensione, sempre piu grande | |
cube([10, 10, 10]); // forma base, puoi sostituirla con un sphere(r=1), una piramide o quello che ti pare | |
} else { // parte sotto | |
translate([z, z, z]) // sposta un po sopra | |
// stessa storia di sopra ma usando (j-i) al posto di i | |
rotate((j-i) * 137.5, [1, 1, 1]) | |
translate([0, 0-(j-i)*(j-i)/10, 0]) | |
scale(z_scale-i/10*i/100) | |
cube([10, 10, 10]); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment