#11759: octahedron() and dodecahedron() produce "non-enclosed" polyhedra
------------------------+---------------------------------------------------
Reporter: kini | Owner: jason, was
Type: defect | Status: new
Priority: major | Milestone: sage-4.7.2
Component: graphics | Keywords: platonic octahedron icosahedron
enclosed edges
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
------------------------+---------------------------------------------------
{{{
sage: tetrahedron().edges()
<sage.plot.plot3d.index_face_set.EdgeIter object at 0x6187af0>
sage: cube().edges()
<sage.plot.plot3d.index_face_set.EdgeIter object at 0x618c4b0>
sage: octahedron().edges()
---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
/home/fs/<ipython console> in <module>()
/opt/sage/local/lib/python2.6/site-
packages/sage/plot/plot3d/index_face_set.so in
sage.plot.plot3d.index_face_set.IndexFaceSet.edges
(sage/plot/plot3d/index_face_set.c:5359)()
/opt/sage/local/lib/python2.6/site-
packages/sage/plot/plot3d/index_face_set.so in
sage.plot.plot3d.index_face_set.EdgeIter.__init__
(sage/plot/plot3d/index_face_set.c:9605)()
TypeError: Must be closed to use the simple iterator.
sage: dodecahedron().edges()
<sage.plot.plot3d.index_face_set.EdgeIter object at 0x6178370>
sage: icosahedron().edges()
---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
/home/fs/<ipython console> in <module>()
/opt/sage/local/lib/python2.6/site-
packages/sage/plot/plot3d/index_face_set.so in
sage.plot.plot3d.index_face_set.IndexFaceSet.edges
(sage/plot/plot3d/index_face_set.c:5359)()
/opt/sage/local/lib/python2.6/site-
packages/sage/plot/plot3d/index_face_set.so in
sage.plot.plot3d.index_face_set.EdgeIter.__init__
(sage/plot/plot3d/index_face_set.c:9605)()
TypeError: Must be closed to use the simple iterator.
}}}
The octahedron and the icosahedron are of course (closed) polyhedra. The
problem is, I guess, that the `dual()` function which creates them is not
checking enclosedness and passing it on when generating the dual object.
Marking this ticket as "graphics" since it involves stuff in
`$SAGE_ROOT/devel/sage/sage/plot/plot3d/`.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11759>
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.