#5249: [with patch, needs work] implicit_plot3d functionality (isosurfaces, 3d
contour plots, etc.)
-------------------------+--------------------------------------------------
Reporter: jason | Owner: was
Type: enhancement | Status: new
Priority: major | Milestone: sage-3.4.1
Component: graphics | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Comment (by cwitty):
> Carl, would it be fair to say the code is inspired by Jmol's code for
> generating and displaying isosurfaces?
Definitely. Plus, some of the non-code chunks (some nice ASCII art, and
the triangle-generation table) are directly copied from the Jmol source.
(All such instances are nicely commented, and the file copyright explains
the situation.)
Let me get one more item into the permanent record here:
There is support that is mostly implemented, but doesn't quite work, for
producing colored plots (where the color at each point comes from a
separate function, producing either scalar or RGB values). This is
documented as working, but it doesn't.
As I mentioned above, one possibility would be to just remove the bits
about color from the documentation. But another would be to actually fix
the color support.
For Jmol, I think this just involves feeding colors into the
JVXLRunLenthEncoder in self.colors (using the same
self.fraction_as_character() call as for the edge data), then changing
some text in the JVXL header and appending the text from self.colors
after the edge data. (The JVXLRunLengthEncoder has never been tested;
alternatively, you can just replace it with a StringIO, and that
should work -- the run length encoding is optional.)
For tachyon, at first I thought that it wouldn't be possible to get
nice colors -- the documentation doesn't mention any triangle
primitive that lets you do smooth-shaded colors. But I found the
undocumented VCSTRI in the tachyon source, that looks like exactly
what you would want.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5249#comment:5>
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
-~----------~----~----~----~------~----~------~--~---