Previous Up Next

12.17.4  Dodecahedra: dodecahedron

The dodecahedron command takes as arguments three points, A, B and C.

dodecahedron returns and draws the dodecahedron centered at A with a vertex at B and with an axis of symmetry in the plane ABC. (Note that each face is a pentagon, but will be drawn with one of its diagonals and so will show up as a trapezoid and a triangle.
Input:

dodecahedron([0,0,0],[0,0,5],[0,1,0])

Output:

Input:

dodecahedron([0,0,0],[0,2,sqrt(5)/2 + 3/2], [0,0,1])

Output:


Previous Up Next