On Wednesday, July 31, 2013 4:09:45 PM UTC-7, Oscar Lazo wrote:
>
> Hello dear sage users!
>
> I would like to view a 3d plot from a specific viewpoint using tachyon.
>
It requires a bit of surgery. Presently, viewpoint and direction are not
part of the configurable scenery parameters (and they clearly should be).
The just get hard-wired into the input to tachyon. You can intercept the
scenery string, however, and edit it to your liking before sending it to
the raytracer:
var('s')
spiral=parametric_plot3d((cos(s),sin(s),s/8),
(s,-16*pi,16*pi),aspect_ratio=1,plot_points=200)
S=spiral.tachyon()
S=S.replace('center 2.3 2.4 2.0','center 0.0 0.0 0.0')
S=S.replace('viewdir -2.3 -2.4 -2.0','viewdir 0.0 1.0 1.0')
tachyon_rt(S)
in the notebook, this now just displays. From the command line, you'd have
to view the just produced `sage.png`.
Be careful. for non-standard viewing directions, you may have to add some
backdrop planes to avoid looking into a big black abyss.
--
You received this message because you are subscribed to the Google Groups
"sage-support" 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-support.
For more options, visit https://groups.google.com/groups/opt_out.