ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 08 Jul 2016 00:18:01 +0200polygon3d() doesn't workhttps://ask.sagemath.org/question/34054/polygon3d-doesnt-work/The polygon class plot well in 2d, but if I type in the command as the example on tutorial:
EXAMPLES:
A simple triangle:
sage: polygon3d([[0,0,0], [1,2,3], [3,0,0]])
Graphics3d Object
I think it should shows a triangle, but my linux jmol grapher doesn't plot anything. However, the axes still changes as I change the coordinates. I really want to plot a triangle in 3d, can anyone help? Great thanks!
Fri, 08 Jul 2016 00:09:09 +0200https://ask.sagemath.org/question/34054/polygon3d-doesnt-work/Comment by kcrisman for <p>The polygon class plot well in 2d, but if I type in the command as the example on tutorial:</p>
<p>EXAMPLES:
A simple triangle:
sage: polygon3d([[0,0,0], [1,2,3], [3,0,0]])
Graphics3d Object</p>
<p>I think it should shows a triangle, but my linux jmol grapher doesn't plot anything. However, the axes still changes as I change the coordinates. I really want to plot a triangle in 3d, can anyone help? Great thanks!</p>
https://ask.sagemath.org/question/34054/polygon3d-doesnt-work/?comment=34056#post-id-34056You could potentially use `line` or `line3d`, just as a possible workaround.Fri, 08 Jul 2016 00:18:01 +0200https://ask.sagemath.org/question/34054/polygon3d-doesnt-work/?comment=34056#post-id-34056Answer by kcrisman for <p>The polygon class plot well in 2d, but if I type in the command as the example on tutorial:</p>
<p>EXAMPLES:
A simple triangle:
sage: polygon3d([[0,0,0], [1,2,3], [3,0,0]])
Graphics3d Object</p>
<p>I think it should shows a triangle, but my linux jmol grapher doesn't plot anything. However, the axes still changes as I change the coordinates. I really want to plot a triangle in 3d, can anyone help? Great thanks!</p>
https://ask.sagemath.org/question/34054/polygon3d-doesnt-work/?answer=34055#post-id-34055I can confirm this on the Sage cell server. This is now [Trac 20978](https://trac.sagemath.org/ticket/20978).Fri, 08 Jul 2016 00:17:35 +0200https://ask.sagemath.org/question/34054/polygon3d-doesnt-work/?answer=34055#post-id-34055