I have a large binary file that contains all the information I want to plot. The data is ordered in such a way that its easiest to read into a 3D numpy array, this worked fine when I was using Mayavi to plot it using the contour3d() function. Now I’m using Paraview and I can’t find any examples of how I could accomplish the same thing. It seems like the only way to get data in is to read it directly from a file in one of many formats and not a numpy array.
Any ideas?
I have a large binary file that contains all the information I want to
Share
As far as I understand,
mayaviis build ontvtk, a wrapper ofvtkdesigned forTraitssupport and an easier handling of NumPy.ParaViewon the other hand is based on purevtk, which makes it a tad less straightforward to manipulatendarraysdirectly. However, some support functions are readily available:More reading:
vtkwiki are always a good start.