On Wed, Mar 31, 2010 at 09:55:14PM -0400, Tom Foutz wrote:
> In mayavi, Gael taught me how to change the radius of a cylinder by
> storing a scalar value, and varying the radius by that scalar.� However,
> the coloring is likewise based on the scalars.� I was wondering if there
> were any way that I could vary the color by another value, such as my
> "data" array in this example script:�
Hi Tom,
It is possible. It does require a little bit more work. I am just back
from a week offline, struggling to catch up with other mail, so I'll just
give you a pointer, and hopefully you'll be able to adapt the example to
your problem.
The main idea is to add the 2 scalar values to your data source, use one
to apply the tube filter, and use the second one to apply the surface
module, thereby giving it the color. This idea of using multiple scalars
is explained on the atomic_orbital example, with a different set of
filters and modules:
http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/auto/example_atomic_orbital.html
Hopefuly, this will sort you out.
Cheers,
Ga�l
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
MayaVi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mayavi-users