Hi, I'm a new MayaVi2 user, and I can't figure out how to get my data into mayavi2 without writing vtk data files.
My simulation data consists of various 3D and 4D-fields stored in a single netcdf file. I use pynio and tvtk to read my data and convert it to tvtkStructuredGrid. My question is, how can I pass the data to mv2? I tried the following sg = tvtk.StructuredGrid(dimensions=(nx,ny,nz)) sg.point_data.scalars = u sg.points = pts src = VTKDataSource() src.vtk_data = sg but this does not work. I guess sg is not of type VTKDataSource. How can I convert it? A second question: Is it normal that mayavi2 often just freezes and does not report errors when there is an error in the script (e.g. when missing required import statemens, or when assigning the wrong data type to ArraySource). Is there a way to change this behaviour? I downloaded mv2 a few days ago from https://svn.enthought.com/svn/enthought/trunk. And a final question: I appreciate that mv2 is still under active development. Is there a summary of which modules and filters are already implemented and which not? Any help would be appretiated. Thanks, Juerg ------------------------------------------------------------------------- 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
