Previous Up Next

14.16.6  Vertices: vertices

The vertices command takes as argument a polyhedron.

vertices returns and draws a list of the vertices of the polyhedron.
Input:

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

then:

coordinates(V)

Output:

[[0,0,0],[-2,0,0],[2,0,0],[0,2,0],[0,0,2]]

Previous Up Next