#16226: Tachyon plot produces invalid file
------------------------+-----------------------------------
Reporter: niles | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.2
Component: graphics | Keywords: tachyon, plot3d
Merged in: | Authors:
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
------------------------+-----------------------------------
`Tachyon.plot` does not produce valid syntax for `tachyon_rt`. The basic
problem is that triangles are not printed correctly: they show as tuples
instead. This means that the
[http://www.sagemath.org/doc/reference/plot3d/sage/plot/plot3d/tachyon.html#sage.plot.plot3d.tachyon.Tachyon.plot
examples in the reference manual] are broken.
Here is a minimal example:
{{{
sage: m = lambda u,v: u^2 - v^3
sage: Q = Tachyon(camera_center=(5,0,4))
sage: Q.texture('t')
sage: Q.light((-20,-20,40), 0.2, (1,1,1))
sage: Q.plot(m,(0,1),(0,1),'t',max_depth=1,initial_depth=1)
}}}
The string tachyon tries to render is this:
{{{
sage: print(Q.str())
begin_scene
...
light center -20.0 -20.0 40.0
rad 0.2
color 1.0 1.0 1.0
(1/2, 0, 1/4) (1/2, 1/2, 1/8) (1/4, 1/4, 3/64) t(1/2, 0, 1/4) (1/2, 1/2,
1/8) (3/4, 1/4, 35/64) t
...
end_scene
}}}
Instead of 3-tuples, we should see something like this:
{{{
...
TRI V0 0.5 0.0 0.25 V1 0.5 0.5 0.125 V2 0.25 0.25 0.046875
t
TRI V0 0.5 0.0 0.25 V1 0.5 0.5 0.125 V2 0.75 0.25 0.546875
t
...
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/16226>
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.