Skip to content

Instantly share code, notes, and snippets.

@KitWallace
Created January 15, 2013 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KitWallace/4538952 to your computer and use it in GitHub Desktop.
Save KitWallace/4538952 to your computer and use it in GitHub Desktop.
animation of dedecahedron construction
module box() {
cube([2,2,1], center = true);
}
module hedron(dihedral,n) {
intersection(){
box();
intersection_for(i=[1:n]) {
rotate([dihedral, 0, 360 / n * i]) box();
}
}
}
a=$t*360;
echo(a);
scale(20) hedron(a,5);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment