Question: Plot a 3D Pyramid in Maple

The pyramid is the standard simplex in 3D with vertices (0,0,0),(1,0,0),(0,1,0) and (0,0,1). Ie it's the convex hull of these 4 points. Because Maple does not have "convexhull" plot command for 3D objects, so instead one has to plot a pyramid.

 

My commands:

                            with(plots);

                            > v1:=[0,0,0];

                            > v2:=[1,0,0];

                            > v3:=[0,1,0];

                            > v4:=[0,0,1];

                            > f1:=[v0,v1,v2];

                            > f2:=[v0,v1,v3];

                            > f3:=[v0,v2,v3];

                            > f4:=[v1,v2,v3];

                            > p:=[f1,f2,f3,f4];

                            > polygonplot3d(p);

 

It returned an error message "Error,(inplots:-polygonplot3d) incorrect specification of points data"

I could not figure out where I did wrong...

Please Wait...