On Tue, Aug 18, 2009 at 5:34 PM, Gael
Varoquaux<[email protected]> wrote:
> 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()

Excellent! That works perfectly here, with standard nested Python
lists and Mayavi 3.1.0.
I can also save to VTI from within Maya VI, now, although, it's an
encoded format, so I can't compare it with my version.

From a workflow point of view, I'd still prefer to create output to an
intermediate (portable) file before going to Maya VI, but since I'm
just starting to explore the software, it's OK for now.

Maybe it's a bug in Maya VI? Now it complains about a missing
'WholeExtent' attribute in the 'ImageData' element, even if it's
obviously there. The whole VTK import seems to be rather flaky, as it
didn't complain at all when inadvertently I fed it crap.

Thank you very much, Gaƫl, for the quick answer!
I'll keep playing with Maya VI, now, and I'll come back if I have any
further questions.

Cheers,
Jerzy

------------------------------------------------------------------------------
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