Here is an example of how to use Maple to graph three-dimensional polyhedra
Load in some plotting commands:
> | with(plots); |
Define the points by giving their coordinates:
> | p1:=[0,0,0]; p2:=[1,0,0]; p3:=[0,1,0]; p4:=[0,0,1]; p5:=[1,0,1]; p6:=[0,1,1]; |
Plot the polyhedron by specifying the polygons comprising it, listing the vertices in sequence around each polygon:
> | polygonplot3d([[p1,p2,p3],[p4,p5,p6],[p1,p2,p5,p4],[p1,p4,p6,p3],[p2,p5,p6,p3]],scaling=constrained); |
> |