<div class="gmail_quote">On Sat, Jul 4, 2009 at 3:01 PM, Luis Ibanez <span dir="ltr"><<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi David,<br>
<br>
<br>
You may want to take a look at<br>
<br>
Insight/Code/Review<br>
itkVTKPolyDataReader.h<br>
itkVTKPolyDataReader.txx<br>
itkVTKPolyDataWriter.h<br>
itkVTKPolyDataWriter.txx<br>
<br>
<br>
They will Write and Read VTK legacy files.<br>
<br>
They have been used mostly with itk::Mesh<br>
but they should work fine with itk::PointSet.<br>
<br>
<br>
Please let us know if you find any problem,<br>
<br>
<br>
Thanks<br>
<br>
<br>
Luis<br>
</blockquote><div><br>Three things:<br><br>1) If these are legacy readers, what replaced them?<br><br>2) I found a good example in Insight/Testing/Code/Review, but I found this directory empty: Insight/Examples/Review - maybe the test should also be copied to the example directory? Or at least a text file with a pointer to the Testing directory?<br>
<br>3) I tried the example (itkVTKPolyDataReaderTest.cxx) with a simple vtp file (attached, 3 points) and I get this error:<br><br>terminate called after throwing an instance of 'std::out_of_range'<br> what(): basic_string::basic_string<br>
Aborted<br><br>It was made with vtkXMLPolyDataWriter, is that the problem?<br><br>I've been doing all of my work using VTK and then making a vtp file and viewing the results in Paraview. However, it seems like ITK has much more functionality for what I'm doing (point cloud/ mesh manipulation) so I'm trying to convert my code. That is why I am wondering what the "recommended" file type is for this kind of data.<br>
<br clear="all">Thanks for the help so far!<br><br>David <br></div></div>