>>>>> "Juerg" == Juerg Schmidli <[EMAIL PROTECTED]> writes:
Juerg> Hi, I'm a new MayaVi2 user, and I can't figure out how to
Juerg> get my data into mayavi2 without writing vtk data files.
[...]
Juerg> I tried the following sg =
Juerg> sg = tvtk.StructuredGrid(dimensions=(nx,ny,nz))
[...]
Juerg> src = VTKDataSource()
Juerg> src.vtk_data = sg
This is incorrect, please try this instead:
src.data = sg
and see if this works OK.
If you look at the VTKDataSource class you will see that it has a
'data' trait specified at the top which is the VTK data set you are
supposed to use. mayavi/tests/test_vtk_data_source.py also
illustrates the use of this class.
Juerg> A second question: Is it normal that mayavi2 often just
Juerg> freezes and does not report errors when there is an error
Juerg> in the script (e.g. when missing required import statemens,
Juerg> or when assigning the wrong data type to ArraySource). Is
Juerg> there a way to change this behaviour? I downloaded mv2 a
Juerg> few days ago from
Juerg> https://svn.enthought.com/svn/enthought/trunk.
Hmm, envisage does swallow error messages from the console. It does
however log these error messages in the ~/envisage.log file. The
error messages should also be displayed in the "Logger" tab on the
mayavi2 view. If the view is not seen go to the View menu and enable
the logger plugin. This should display all errors.
Juerg> And a final question: I appreciate that mv2 is still under
Juerg> active development. Is there a summary of which modules and
Juerg> filters are already implemented and which not?
AFAIK, apart from the TensorGlyphs module, CustomGridPlane and Labels
module mayavi2 supports all the mayavi1 modules. There are a few
filters missing, like StructuredPointsProbe, CutPlane etc. There are
also some sources missing like Ensight and PLOT3D.
These are not hard to add. I am just unable to find enough time for
them currently. That said, the existing modules in MV2 already
support much more functionality than the equivalent ones in MV1.
regards,
prabhu
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
MayaVi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mayavi-users