Re: [MayaVi-users] Newbie
Status: Beta
Brought to you by:
prabhu_r
|
From: Prabhu R. <pr...@ae...> - 2003-02-13 06:22:41
|
Hi,
>>>>> "HJ" == H Jansen <h.j...@fe...> writes:
HJ> More a data producer than a data visualizer I have not grasped
HJ> the visualization concepts yet. My question is simple. I have
HJ> 3 time series (in Python) of the the trajectories
HJ> (parameterized by time) of tree objects moving through 3D
HJ> Euclidean space. I would like to visualize this, and if
HJ> possible, stepping the time parameter so that the evolution
HJ> can be visualized as well. How can this be done from Python
HJ> scripts?
A few points:
1. Are you looking to do this via MayaVi or directly via VTK?
a. If its under MayaVi you need to check and see if one of your
datasets can be visualized using it. If so then we can get to the
next step on how to visualize your data.
b. If you cannot visualize your data from within MayaVi and want to
do it from VTK then you'd have to have a decent understanding of
how VTK works and how to use it. If you are new and would like to
learn this then I'd recommend getting the VTK books (they are out
of print but should be re-published soon). The VTK site has more
information on this.
2. Regarding your data. What is a "tree object"? Is the data a
polygonal dataset or does it have a grid structure? If you are new
to VTK's datasets consider reading the docs that are available here:
http://mayavi.sourceforge.net/docs.html
Specifically this one:
http://mayavi.sourceforge.net/docs/mayavi_talk.pdf
There is a brief section on VTK data sets. If a dataset does not
work for you, you would need to see if you can do it another way
directly using VTK. This would necessarily take more thought and
information.
3. Depending on the nature of the data you will need to create a data
object directly from VTK. This is fairly easy to do. Once you have
this you need to visualize it from MayaVi/VTK. To animate this you
simply change the data in your Python script and the rest should be
taken care of if you have the rest of the visualization done.
Hope this helps,
prabhu
|