<div class="gmail_quote">On Mon, Jun 4, 2012 at 4:09 AM, Tuan Ha Tran <span dir="ltr"><<a href="mailto:tuan-ha.tran@insa-lyon.fr" target="_blank">tuan-ha.tran@insa-lyon.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Hi everybody,<br> I have a problem in opening a .vtp file.<br> When I opened from ParaView GUI, I managed to open it by choosing "Legacy VTK Files" (but this file is not marked as "vtkImageData" to be used with my filter)<br>
But when I used Python Shell and JavaScript Terminal then my .vtp file is marked "File not readable. No reader found for '..../myfile.vtp'.<br> I wondered if anybody have any idea what happened?<br> Thank you in advance<br>
</div></blockquote><div><br></div>Sounds like the contents of the file are not actually in vtp format (i.e. written with vtkXMLPolyDataWriter). Maybe you used vtkPolyDataWriter to write a .vtp instead of .vtk? Or if you are storing vtkImageData, you should have probably used vtkXMLImageDataWriter to write a .vti.<br clear="all">
<br><div>David </div></div>