#3547: create a polygon3d function
-------------------------+--------------------------------------------------
Reporter: mhansen | Owner: was
Type: enhancement | Status: new
Priority: minor | Milestone: sage-3.4
Component: graphics | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Comment (by robertwb):
Also, the polygon function should defer to this when the input is 3d
points
{{{
On Dec 16, 2008, at 8:28 AM, philt wrote:
Hello,
I got some trouble trying to draw polygons in JMol because the
function looks not available easily.
Sage is featuring the following:
point() -> try point2d else point3d
line() -> try line2d else line3d
polygon() -> only 2d
but many fancy volumes are available in 3D...
I think it'd be more natural to have polygon working in a similar
flexible way.
Something like:
try:
return polygon2d(points, **kwds)
except ValueError:
from sage.plot.plot3d.platonic import IndexFaceSet as
polygon3d
return polygon3d(points, **kwds)
with polygon2d being the current code of polygon()
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/3547#comment:3>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---