Previous Up Next

12.17.3  Octahedra: octahedron

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

octahedron returns and draws the octahedron centered at A which has a vertex at B and with four vertices in the plane ABC.
Input:

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

or:

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

or:

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

Output:


Previous Up Next