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

Commit

Permalink
Rebased on version 7.6.beta6
Browse files Browse the repository at this point in the history
  • Loading branch information
jplab committed Mar 7, 2017
2 parents fd5f71a + b13f595 commit e6812ba
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/doc/en/reference/references/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1645,9 +1645,12 @@ REFERENCES:
constrained optimization. ACM Transactions on
Mathematical Software, Vol 23, Num. 4, pp.550--560, 1997.
.. [Zie1998] G. Ziegler. *Shelling polyhedral 3-balls and
.. [Zie1998] G. M. Ziegler. *Shelling polyhedral 3-balls and
4-polytopes*. Discrete Comput. Geom. 19 (1998), 159-174.
.. [Zie2007] G. M. Ziegler. *Lectures on polytopes*, Volume
152 of Graduate Texts in Mathematics, 7th printing of 1st edition, Springer, 2007.
.. [Zor2008] \A. Zorich "Explicit Jenkins-Strebel representatives of
all strata of Abelian and quadratic differentials",
Journal of Modern Dynamics, vol. 2, no 1, 139-185 (2008)
Expand Down
42 changes: 42 additions & 0 deletions src/sage/geometry/polyhedron/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2268,6 +2268,48 @@ def gale_transform(self):
A_ker = A.right_kernel()
return A_ker.basis_matrix().transpose().rows()

@cached_method
def normal_fan(self):
r"""
Return the normal fan of a compact full-dimensional rational polyhedron.
OUTPUT:
A complete fan of the ambient space as a
:class:`~sage.geometry.fan.RationalPolyhedralFan`.
.. SEEALSO::
:meth:`~sage.geometry.polyhedron.base.face_fan`.
REFERENCES:
For more information, see Chapter 7 of [Zie2007]_.
"""

return NormalFan(self)

@cached_method
def face_fan(self):
r"""
Return the face fan of a compact full-dimensional rational polyhedron.
OUTPUT:
A complete fan of the ambient space as a
:class:`~sage.geometry.fan.RationalPolyhedralFan`.
.. SEEALSO::
:meth:`~sage.geometry.polyhedron.base.normal_fan`.
REFERENCES:
For more information, see Chapter 7 of [Zie2007]_.
"""

return FaceFan(self)

def triangulate(self, engine='auto', connected=True, fine=False, regular=None, star=None):
r"""
Returns a triangulation of the polytope.
Expand Down

0 comments on commit e6812ba

Please sign in to comment.