Previous Up Next

14.16.5  Polyhedra: polyhedron

The polyhedron command takes as argument a sequence of points.

polyhedron returns and draws the convex polygon whose vertices are from the list of points such that the remaining points are inside or on the surface of the polyhedron.
Input:

polyhedron([0,0,0],[-2,0,0],[2,0,0],[0,2,0],[0,0,2])

Output:


Previous Up Next