#20978: polygon3d view broken
----------------------------+------------------------
Reporter: kcrisman | Owner:
Type: defect | Status: new
Priority: critical | Milestone: sage-7.3
Component: graphics | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
----------------------------+------------------------
Comment (by tscrim):
When I add an `arrow3d` (for example), then it displays properly:
{{{
sage: polygon3d([[0,0,1],[0,1,0],[1,0,0]]) + arrow3d([0,0,0],[1,1,1])
sage: p2.plot() + arrow3d([0,0,0],[1,1,1])
It seems like it is just ignoring the polygon3d when it is the only
object:
sage: p = polygon3d([[0,0,1],[0,1,0],[1,0,0]]) + arrow3d([0,0,0],[1,1,1])
sage: rp = p.default_render_params()
sage: rp.output_archive = None
sage: p.jmol_repr(rp)
['pmesh obj_1 "/home/travis/.sage/temp/apricot/5573/tmp_pU6Ppq-
obj_1.pmesh"\ncolor pmesh [0,0,255]']
<type 'sage.plot.plot3d.index_face_set.IndexFaceSet'>
sage: p = polygon3d([[0,0,1],[0,1,0],[1,0,0]]) + arrow3d([0,0,0],[1,1,1])
sage: p.jmol_repr(rp)
[['pmesh obj_2 "/home/travis/.sage/temp/apricot/5573/tmp_pU6Ppq-
obj_2.pmesh"\ncolor pmesh [0,0,255]'],
[[['\ndraw line_3 width 0.02 {0.0 0.0 0.0} {0.896076951546 0.896076951546
0.896076951546}\ncolor $line_3 [102,102,255]\n'],
[['pmesh obj_4 "/home/travis/.sage/temp/apricot/5573/tmp_pU6Ppq-
obj_4.pmesh"\ncolor pmesh [102,102,255]']]]]]
sage: type(p)
<class 'sage.plot.plot3d.base.Graphics3dGroup'>
sage: p = arrow3d([0,0,0],[1,1,1])
sage: p.plot() # This works fine
Launched jmol viewer for Graphics3d Object
sage: p.jmol_repr(rp)
[[['\ndraw line_5 width 0.02 {0.0 0.0 0.0} {0.896076951546 0.896076951546
0.896076951546}\ncolor $line_5 [102,102,255]\n'],
[['pmesh obj_6 "/home/travis/.sage/temp/apricot/5573/tmp_pU6Ppq-
obj_6.pmesh"\ncolor pmesh [102,102,255]']]]]
sage: type(p)
<class 'sage.plot.plot3d.base.TransformGroup'>
}}}
A somewhat strange thing is that the graphics group `jmol_repr` calls the
`jmol_repr` of the polygon. Perhaps someone has an idea about this (and
knows how to read the jmol input).
--
Ticket URL: <https://trac.sagemath.org/ticket/20978#comment:2>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.