title: Exporting a 3D numpy to a VTK file for viewing in Paraview/Mayavi
body: <p>For those that want to export a simple 3D numpy array (along with axes) to a .vtk (or .vtr) file for post-processing and display in Paraview or Mayavi there's a little module called <a href="https://bitbucket.org/pauloh/pyevtk" rel="noreferrer">PyEVTK</a> that does exactly that. The module supports structured and unstructured data etc..
  Unfortunately, even though the code works fine in unix-based systems I couldn't make it work (keeps crashing) on any windows installation which simply makes things complicated. Ive contacted the developer but his suggestions did not work</p>
  
  <p>Therefore my question is:
  How can one use the <code>from vtk.util import numpy_support</code> function to export a 3D array (the function itself doesn't support 3D arrays) to a .vtk file? Is there a simple way to do it without creating vtkDatasets etc etc?</p>
  
  <p>Thanks a lot!</p>