#6915 closed defect (fixed)
Getting rays from a polytope fails.
Reported by: | sbarthelemy | Owned by: | mhampton |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | geometry | Keywords: | polyhedra |
Cc: | Merged in: | ||
Authors: | Reviewers: | ||
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description
See this example:
sage: p=Polyhedron([[0,0],[0,1],[1,0]]) sage: p.rays() --------------------------------------------------------------------------- IndexError Traceback (most recent call last) /home/seb/.sage/temp/thinbox/5080/_home_seb__sage_init_sage_0.py in <module>() /home/seb/.local/sage-4.1/local/lib/python2.6/site-packages/sage/geometry/polyhedra.pyc in rays(self) 607 return self._rays 608 except AttributeError: --> 609 dummy_verts = self.vertices(force_from_ieqs = True) 610 self._checked_rays = True 611 return self._rays /home/seb/.local/sage-4.1/local/lib/python2.6/site-packages/sage/geometry/polyhedra.pyc in vertices(self, force_from_ieqs) 397 """ 398 if (self._vertices == [] and self._ieqs != []) or force_from_ieqs: --> 399 temp_poly_object = ieq_to_vert(self._ieqs, linearities = self._linearities, verbose = self._verbose) 400 self._vertices = temp_poly_object._vertices 401 self._vertex_incidences = temp_poly_object._vertex_incidences /home/seb/.local/sage-4.1/local/lib/python2.6/site-packages/sage/geometry/polyhedra.pyc in ieq_to_vert(in_list, linearities, cdd_type, verbose) 1426 """ 1427 # first we create the input for cddlib: -> 1428 in_length = len(in_list[0]) 1429 in_str = 'H-representation\n' 1430 if linearities != []: IndexError: list index out of range
Change History (3)
comment:1 Changed 11 years ago by
comment:2 follow-up: ↓ 3 Changed 11 years ago by
- Report Upstream set to N/A
- Resolution set to fixed
- Status changed from new to closed
fixed in 4.3.2.alpha0
comment:3 in reply to: ↑ 2 Changed 11 years ago by
Replying to vbraun:
fixed in 4.3.2.alpha0
Make sure you understand the procedure for closing tickets. See http://www.sagemath.org/doc/developer/trac.html#closing-tickets
Note: See
TracTickets for help on using
tickets.
This will be fixed by #7109.