#5465: [with patch, positive review] render3d for groebner fans is totally 
broken
----------------------------+--------------------------
       Reporter:  was       |        Owner:  mhampton
           Type:  defect    |       Status:  closed
       Priority:  major     |    Milestone:  sage-3.4.1
      Component:  geometry  |   Resolution:  fixed
       Keywords:            |    Merged in:
        Authors:            |    Reviewers:
Report Upstream:  N/A       |  Work issues:
         Branch:            |       Commit:
   Dependencies:            |     Stopgaps:
----------------------------+--------------------------
Changes (by chapoton):

 * upstream:   => N/A


Old description:

> {{{
> teragon:~ wstein$ sage
> ----------------------------------------------------------------------
> | Sage Version 3.4.alpha0, Release Date: 2009-02-24                  |
> | Type notebook() for the GUI, and license() for information.        |
> ----------------------------------------------------------------------
> sage: P.<a,b,c> = PolynomialRing(QQ,3, order='lex')
> sage: sage.rings.ideal.Katsura(P,3).groebner_fan().render3d()
> ---------------------------------------------------------------------------
> UnboundLocalError                         Traceback (most recent call
> last)
>
> /Users/wstein/.sage/temp/teragon.local/68617/_Users_wstein__sage_init_sage_0.py
> in <module>()
>
> /Users/wstein/build/sage-3.4.alpha0/local/lib/python2.5/site-
> packages/sage/rings/polynomial/groebner_fan.pyc in render3d(self,
> verbose)
>    1067         g_cones_ieqs = [self._cone_to_ieq(q) for q in
> g_cones_facets]
>    1068         # Now the cones are intersected with a plane:
> -> 1069         cone_info = [ieq_to_vert(q,linearities=[[1,-1,-1,-1,-1]])
> for q in g_cones_ieqs]
>    1070         if verbose:
>    1071             for x in cone_info:
>
> /Users/wstein/build/sage-3.4.alpha0/local/lib/python2.5/site-
> packages/sage/geometry/polyhedra.pyc in ieq_to_vert(in_list, linearities,
> cdd_type, verbose)
>    1268             adj_index = index
>    1269     # read the vertices and rays:
> -> 1270     for index in range(vert_index,len(ans_lines)):
>    1271         a_line = ans_lines[index]
>    1272         if a_line.find('end') != -1: break
>
> UnboundLocalError: local variable 'vert_index' referenced before
> assignment
> }}}

New description:

 {{{
 teragon:~ wstein$ sage
 ----------------------------------------------------------------------
 | Sage Version 3.4.alpha0, Release Date: 2009-02-24                  |
 | Type notebook() for the GUI, and license() for information.        |
 ----------------------------------------------------------------------
 sage: P.<a,b,c> = PolynomialRing(QQ,3, order='lex')
 sage: sage.rings.ideal.Katsura(P,3).groebner_fan().render3d()
 ---------------------------------------------------------------------------
 UnboundLocalError                         Traceback (most recent call
 last)

 /Users/wstein/.sage/temp/teragon.local/68617/_Users_wstein__sage_init_sage_0.py
 in <module>()

 /Users/wstein/build/sage-3.4.alpha0/local/lib/python2.5/site-
 packages/sage/rings/polynomial/groebner_fan.pyc in render3d(self, verbose)
    1067         g_cones_ieqs = [self._cone_to_ieq(q) for q in
 g_cones_facets]
    1068         # Now the cones are intersected with a plane:
 -> 1069         cone_info = [ieq_to_vert(q,linearities=[[1,-1,-1,-1,-1]])
 for q in g_cones_ieqs]
    1070         if verbose:
    1071             for x in cone_info:

 /Users/wstein/build/sage-3.4.alpha0/local/lib/python2.5/site-
 packages/sage/geometry/polyhedra.pyc in ieq_to_vert(in_list, linearities,
 cdd_type, verbose)
    1268             adj_index = index
    1269     # read the vertices and rays:
 -> 1270     for index in range(vert_index,len(ans_lines)):
    1271         a_line = ans_lines[index]
    1272         if a_line.find('end') != -1: break

 UnboundLocalError: local variable 'vert_index' referenced before
 assignment
 }}}

--

--
Ticket URL: <http://trac.sagemath.org/ticket/5465#comment:8>
Sage <http://www.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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to