I tried to put together a simple example of itkVTKPolyDataReader (which I&#39;d recommend adding to the Examples/Review folder).  However, it seems to have some problems:<br><br><a href="http://www.rpi.edu/~doriad/ITK_List/itkVTKPolyDataReader/">http://www.rpi.edu/~doriad/ITK_List/itkVTKPolyDataReader/</a><br>
<br>These vtk files were all created using Paraview using the &quot;Save Data -&gt; Legacy VTK&quot; from a vtp file loaded in paraview.<br><br>When run on BunnyMesh.vtk it hangs on &quot;Trying to read...&quot;.  <br><br>
After a bit of debugging it seems to never find the POLYGONS line (lines 117 - 120 in itkVTKPolyDataReader.txx)<br>  while( !inputFile.eof() &amp;&amp; line.find(&quot;POLYGONS&quot;) == std::string::npos )<br>    {<br>    std::getline( inputFile, line );<br>
    }<br><br>When run on BunnyPoints.vtk (points only, no connectivity), it does the same thing.<br><br>When run on BunnyPointsASCII.vtk, it says:<br><br>terminate called after throwing an instance of &#39;std::out_of_range&#39;<br>
  what():  basic_string::basic_string<br>Aborted<br><br>It says the same thing when called on BunnyPoints.vtp file - but I know it is not designed to read vtp, so I&#39;m assuming it is just also not designed to read ascii vtk.<br>
<br>I think we need to look into making this reader compatible with binary (and maybe ascii, too?) files exported as vtk from paraview.<br clear="all"><br>Thanks,<br><br>David<br>