Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
face to face_generator
Browse files Browse the repository at this point in the history
  • Loading branch information
jplab committed Feb 7, 2020
1 parent 3190699 commit 7c35b0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/geometry/polyhedron/face.py
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ def normal_cone(self, direction='outer'):
EXAMPLES::
sage: p = Polyhedron(vertices = [[1,2],[2,1],[-2,2],[-2,-2],[2,-2]])
sage: for v in p.faces(0):
sage: for v in p.face_generator(0):
....: vect = v.vertices()[0].vector()
....: nc = v.normal_cone().rays_list()
....: print("{} has outer normal cone spanned by {}".format(vect,nc))
Expand All @@ -707,7 +707,7 @@ def normal_cone(self, direction='outer'):
(-2, -2) has outer normal cone spanned by [[-1, 0], [0, -1]]
(-2, 2) has outer normal cone spanned by [[-1, 0], [0, 1]]
sage: for v in p.faces(0):
sage: for v in p.face_generator(0):
....: vect = v.vertices()[0].vector()
....: nc = v.normal_cone(direction='inner').rays_list()
....: print("{} has inner normal cone spanned by {}".format(vect,nc))
Expand Down

0 comments on commit 7c35b0e

Please sign in to comment.