Hi Mayavi-World.
Guys first of all I would like to know if this list is still alive for the
current Myavi version.
Mine :
Mayavi version 4.3.0 - VTK version 5.10.1
Python 2.7.5
wxPython 2.8.12.0
There is so few activity here and it's in sourceforge while the current
code is in GitHub that I am wondering if there is another list.
Well no more questions about the list, I have a problem with volume
visualization.
I'm struggling to use mlab.pipeline.volume() as an animation. So far I saw
all the test_[].py examples search for hours over google and stackexchange
not sucess.
So here I come, *I want to see a pressure field 3D progressing over time.*
I have tried the following and many variants with
mlab.pipeline.image_plane_widget no sucess.
I would like to do something like this:
from mayavi import mlab
import numpy
fig = mlab.gcf()
u = numpy.random.rand(30,30,30)
sscalar = mlab.pipeline.scalar_field(u)
min = u.min(); max = u.max()
min = min+0.65*(max-min); max = min+0.9*(max-min)
svolume = mlab.pipeline.volume(sscalar, vmin=min, vmax=max)
for i in range(20):
u = numpy.random.rand(30,30,30)
min = u.min(); max = u.max()
min = min+0.65*(max-min); max = min+0.9*(max-min)
svolume.mlab_source.set(scalar = u, vmin=min, vmax=max)
Is the code above right? The code above just freezes my Mayavi interface
(run script) or python or ipython. I can just see the first plot nothing
after that coz it gets
stucked.
Thanks a lot for any advice,
Cheers,
André
--
Bem, faça sua escolha. As torturas ocorrem. Se elas são desnecessária,
então não há nenhum Deus, tampouco um Deus mau. Se há um Deus bom, então
torturas são necessárias. Pois nenhum Ser que fosse bom, mesmo de maneira
comedida provavelmente não seria capaz de as infringir ou de as permitir
caso elas não fossem necessárias. C. S. Lewis - A Grief Observed
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
MayaVi-users mailing list
MayaVi-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mayavi-users