#10442: 3d Cone plot with tachyon fails
------------------------+---------------------------------------------------
Reporter: vbraun | Owner: mhampton
Type: defect | Status: new
Priority: major | Milestone:
Component: geometry | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------+---------------------------------------------------
I get the following error when trying to plot 3d cones with the taychon
raytracer (which is the default for 3d plots in SageTeX):
{{{
sage: c = Cone(identity_matrix(3).columns())
sage: c.rays()
(N(0, 0, 1), N(0, 1, 0), N(1, 0, 0))
sage: c.plot(viewer='tachyon')
---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
/home/vbraun/opt/sage-4.6/<ipython console> in <module>()
/home/vbraun/Sage/sage/local/lib/python2.6/site-
packages/IPython/Prompts.pyc in __call__(self, arg)
549
550 # and now call a possibly user-defined print mechanism
--> 551 manipulated_val = self.display(arg)
552
553 # user display hooks can change the variable to be
stored in
/home/vbraun/Sage/sage/local/lib/python2.6/site-
packages/IPython/Prompts.pyc in _display(self, arg)
575 return IPython.generics.result_display(arg)
576 except TryNext:
--> 577 return self.shell.hooks.result_display(arg)
578
579 # Assign the default display method:
/home/vbraun/Sage/sage/local/lib/python2.6/site-packages/IPython/hooks.pyc
in __call__(self, *args, **kw)
139 #print "prio",prio,"cmd",cmd #dbg
140 try:
--> 141 ret = cmd(*args, **kw)
142 return ret
143 except ipapi.TryNext, exc:
/home/vbraun/Sage/sage/local/lib/python2.6/site-
packages/sage/misc/displayhook.pyc in result_display(ip_self, obj)
148 # IPython's default result_display() uses the
IPython.genutils.Term.cout stream.
149 # See also local/lib/python2.6/site-packages/IPython/hooks.py.
--> 150 print_obj(IPython.genutils.Term.cout, obj)
151
152 def displayhook(obj):
/home/vbraun/Sage/sage/local/lib/python2.6/site-
packages/sage/misc/displayhook.pyc in print_obj(out_stream, obj)
140 if _check_tall_list_and_print(out_stream, obj):
141 return
--> 142 print >>out_stream, `obj`
143
144 def result_display(ip_self, obj):
/home/vbraun/Sage/sage/local/lib/python2.6/site-
packages/sage/plot/plot3d/base.so in
sage.plot.plot3d.base.Graphics3d.__repr__ (sage/plot/plot3d/base.c:2451)()
/home/vbraun/Sage/sage/local/lib/python2.6/site-
packages/sage/plot/plot3d/base.so in sage.plot.plot3d.base.Graphics3d.show
(sage/plot/plot3d/base.c:9832)()
/home/vbraun/Sage/sage/local/lib/python2.6/site-
packages/sage/plot/plot3d/base.so in
sage.plot.plot3d.base.Graphics3d.tachyon (sage/plot/plot3d/base.c:4741)()
/home/vbraun/Sage/sage/local/lib/python2.6/site-
packages/sage/plot/plot3d/base.so in
sage.plot.plot3d.base.Graphics3dGroup.texture_set
(sage/plot/plot3d/base.c:13136)()
/home/vbraun/Sage/sage/local/lib/python2.6/site-
packages/sage/plot/plot3d/base.so in
sage.plot.plot3d.base.Graphics3dGroup.texture_set
(sage/plot/plot3d/base.c:13136)()
/home/vbraun/Sage/sage/local/lib/python2.6/site-
packages/sage/plot/plot3d/base.so in
sage.plot.plot3d.base.Graphics3dGroup.texture_set
(sage/plot/plot3d/base.c:13136)()
/home/vbraun/Sage/sage/local/lib/python2.6/site-
packages/sage/plot/plot3d/base.so in
sage.plot.plot3d.base.Graphics3dGroup.texture_set
(sage/plot/plot3d/base.c:13152)()
TypeError: reduce() of empty sequence with no initial value
}}}
Somewhat puzzling, the following work fine:
{{{
sage: c.plot(viewer='jmol')
sage: Fan([c]).plot(viewer='jmol')
sage: Fan([c]).plot(viewer='tachyon')
}}}
so its the combination of a `Cone` (not a `Fan`) with tachyon that causes
this.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10442>
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 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.