Previous Up Next

27.14.6  Vertices

The vertices command takes as argument a polyhedron.

vertices returns and draws a list of the vertices of the polyhedron. For example:

V:=vertices(polyhedron([0,0,0],[-2,0,0],[2,0,0],[0,2,0],[0,0,2]))

then:

coordinates(V)
     
[[0,0,0],[−2,0,0],[2,0,0],[0,2,0],[0,0,2]]           

Previous Up Next