Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- faces = First@Normal@PolyhedronData["Dodecahedron", "Faces"];
- colors = Table[ColorData[97, i], {i, 12}];
- Graphics3D@Riffle[colors, faces]
- myVertices = N@PolyhedronData["Dodecahedron", "Vertices"];
- myFaceIndices = PolyhedronData["Dodecahedron", "Faces"];
- mycolors = {Red, Orange, Yellow, Green, Blue, Orange, Black, White,
- Purple, Green, Red, Yellow};
- Graphics3D@
- Transpose[{mycolors, (Polygon[myVertices[[#]]] & /@ myFaceIndices)}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement