Previous Up Next

27.14.7  Faces

The faces command takes as argument a polyhedron.

faces returns a list of the faces of the polyhedron. For example:

faces(polyhedron([1,-1,0],[1,1,0],[0,0,2],[0,0,-2],[-1,1,0],[-1,-1,0]))
     
 [[[1,−1,0],[1,1,0],[0,0,2]],[[1,−1,0],[1,1,0],[0,0,−2]],         
 [[1,−1,0],[0,0,2],[−1,−1,0]],[[1,−1,0],[0,0,−2],[−1,−1,0]],         
 [[1,1,0],[0,0,2],[−1,1,0]],[[1,1,0],[0,0,−2],[−1,1,0]],         
 [[0,0,2],[−1,1,0],[−1,−1,0]],[[0,0,−2],[−1,1,0],[−1,−1,0]]]          

Previous Up Next