Previous Up Next

14.16.4  Prisms: prism

The prism command takes two arguments, a list of coplanar points [A,B,…] and an additional point A1.

prism returns and draws the prism whose base is the polygon determined by the points A, B, …, and with edges parallel to AA1.
Input:

prism([[0,0,0],[5,0,0],[0,5,0],[-5,5,0]],[0,0,5])

Output:


Previous Up Next