On Tue, Aug 18, 2009 at 03:47:54PM -0400, Jerzy Jalocha N wrote:
> Hello everyone!
> I am trying to get some data into Maya VI 2, but without success, so far.

> I have some kind of "image" data, ie, an x,y grid, with one value for
> each point. 

Hi,

For me, the easiest way to do this, is not to create a VTK file, but
simply to talk directly to Mayavi. First, what is your version of Mayavi?

Second, what do you want to do with this data? In a recent-enough version
of Mayavi, if you have the data as a 2D numpy array (say data), in
Python, you can insert it in Mayavi by doing the following:

from enthought.mayavi import mlab
src = mlab.pipeline.array2d_source(data)
mlab.show()

Then, just click on the 'Mayavi' icon in the scene that has been created,
and you have a full-blown Mayavi environment to get some work done.

Does that help you?

Cheers,

Gaƫl

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
MayaVi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mayavi-users

Reply via email to