#6915: Getting rays from a polytope fails.
-------------------------+--------------------------------------------------
Reporter: sbarthelemy | Owner: mhampton
Type: defect | Status: new
Priority: major | Milestone:
Component: geometry | Keywords: polyhedra
Reviewer: | Author:
Merged: |
-------------------------+--------------------------------------------------
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
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6915>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---