I'm trying to build a 20 sided die in Actionscript 3, like one in the picture. I figure the best way would be to make it out of 20 equilateral triangles rotated in 3D space. The vertices of the icosahedron's dual dodecahedron would be the centroids of each triangle. But the hard part is figuring out the x,y, and z coordinates for each triangle's centroid and the triangle's 3D rotation about that centroid. If I wanted the center to be 0,0,0 how could I figure out all those coordinates and rotations for triangles with an edge length of s?

(±1, ±1, ±1) (0, ±1/φ, ±φ) (±1/φ, ±φ, 0) (±φ, 0, ±1/φ)
Now I need to figure out how to rotate each triangle about its centroid so that it is perpendicular to its position vector.
– BladePoint Dec 20 '13 at 16:35