<div class="gmail_quote">On Sat, Jul 4, 2009 at 4:41 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>
<br>
Hi David,<br>
<br>
<br>
1) They are "legacy" readers in VTK.<br>
They are now replaced (in VTK) with<br>
an XML-based file format that supports<br>
compression of binary data.<br>
<br>
That said, the legacy reader in VTK<br>
is still available:<br>
<br>
vtkPolyDataReader<br>
vtkPolyDataWriter<br>
<br>
<br>
2) Good point, we should have Examples,<br>
for all the classes we put into review.<br>
<br>
Tests are not always good examples...<br>
<br>
<br>
<br>
3) The VTP file format is indeed the<br>
XML-based compressed file format<br>
mentioned in (1).<br>
(that is, VTP is not the legacy format).<br>
<br>
You will have to convert your VTP file<br>
into a VTK file in order to pass it<br>
as input to the ITK reader.<br>
<br>
From your VTK code, use the vtkPolyDataWriter<br>
and save your mesh in a file with extension<br>
".vtk". That file should be readable with<br>
the ITK poly data reader.<br>
<br>
<br>
<br>
Regards,<br>
<br>
<br>
Luis<br></blockquote><div><br><div><br>Luis, <br></div><br>Does it make sense for me to put
together a class for ITK that uses vtkXMLPolyDataReader to construct an
itkMesh/itkPointSet? It should be pretty easy - just copy most of
itkVTKPolyDataReader but change the usage of vtkPolyDataReader to
vtkXMLPolyDataReader? Or is there some reason for ITK code to continue
using the legacy vtk format? I'm not addicted to this XML vtp format,
but I already have a lot of code that uses it, and I haven't heard
suggestions for "better" formats :)<br>
<br clear="all">Thanks,<br><br>David <br></div></div>