Ticket #11302 (closed enhancement: fixed)
Make it easier to construct a fan from a triangulation
| Reported by: | vbraun | Owned by: | mhampton |
|---|---|---|---|
| Priority: | major | Milestone: | sage-4.7.1 |
| Component: | geometry | Keywords: | |
| Cc: | novoselt | Work issues: | |
| Report Upstream: | N/A | Reviewers: | Andrey Novoseltsev |
| Authors: | Volker Braun | Merged in: | sage-4.7.1.alpha1 |
| Dependencies: | Stopgaps: |
Description (last modified by vbraun) (diff)
A common step in toric geometry is to construct the fan from some triangulation. This patch adds a fan() method to the triangulation class, so you can write:
sage: pc = PointConfiguration([(0,0), (1,0), (0,1), (-1,-1)], star=0, fine=True) sage: triangulation = pc.triangulate() sage: fan = triangulation.fan(); fan Rational polyhedral fan in 2-d lattice N sage: fan.is_equivalent( toric_varieties.P2().fan() ) True
Apply:
Attachments
Change History
Changed 2 years ago by vbraun
-
attachment
trac_11302_fan_of_a_triangulation.patch
added
comment:3 Changed 2 years ago by novoselt
There were some doctest errors, I have fixed them and made fan construction more straightforward. As a pleasant side effect, fan rays should now repeat the order of points ;-)
If everything is OK, please switch to positive review!
Note: See
TracTickets for help on using
tickets.

Initial patch