#12212: Colormap for implicit_plot3d and parametric_plot3d
------------------------+---------------------------------------------------
Reporter: niles | Owner: jason, was
Type: defect | Status: new
Priority: major | Milestone: sage-4.8
Component: graphics | Keywords: colormap, plot
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
------------------------+---------------------------------------------------
Comment(by jvkersch):
I've noticed that the functionality for dealing with a color map can be
found in the `plot3d_adaptive` method in `sage.plot.plot3d.plot3d` (notice
the `adaptive=True` keyword in the above). This code only supposes that
the graphical object is an instance of `IndexFaceSet`, and so it's not too
hard to take out the code and apply it to parametric plots and implicit
plots as well.
In fact, building upon the original idea one can apply color maps that
vary not just in the z-direction, but according to the level sets of some
arbitrary function. This is nice, for instance, if you want to paint a
surface according to its curvature. And the original idea can also be
adapted to gradually vary other texture attributes (for instance opacity)
according to some scalar function.
I've put this functionality into a class tentatively called
`GradualTextureTransform`, but since I'm not entirely happy with the class
layout, I wanted to ask for your input before turning this into a full-
fledged patch. I've put all of my code into a
[http://www.sagenb.org/home/pub/3910 sagenb worksheet] and I've also
uploaded some sample images.
One issue with the worksheet is that the JMOL applet crashes (at least in
my browser) after rendering a bunch of colormapped images. This could be
because the colormap algorithm basically splits each surface into 10s or
100s of parts and colors those pieces individually, so having too many of
these processed images around may be too much for the applet...
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12212#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 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.