Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. faces = First@Normal@PolyhedronData["Dodecahedron", "Faces"];
  2. colors = Table[ColorData[97, i], {i, 12}];
  3. Graphics3D@Riffle[colors, faces]
  4.  
  5. myVertices = N@PolyhedronData["Dodecahedron", "Vertices"];
  6. myFaceIndices = PolyhedronData["Dodecahedron", "Faces"];
  7. mycolors = {Red, Orange, Yellow, Green, Blue, Orange, Black, White,
  8. Purple, Green, Red, Yellow};
  9. Graphics3D@
  10. Transpose[{mycolors, (Polygon[myVertices[[#]]] & /@ myFaceIndices)}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement