[vtkusers] Error opening vtp file

Chiranjib Sur sur.chiranjib at gmail.com
Sun Feb 12 13:10:47 EST 2017


Please share your sample vtk/vtp file. I am assuming that your variable
"mesh" is of type vtkSmartPointer<vtkPolydata>.

On Thu, Feb 9, 2017 at 1:12 AM, Isaac Castro Mateos <isaac.casm at gmail.com>
wrote:

> Hi,
>
> I am trying to read a vtp file with the  following code:
>
> vtkSmartPointer< vtkXMLPolyDataReader > readerXML = vtkSmartPointer<
> vtkXMLPolyDataReader >::New();
> readerXML->SetFileName(paths.c_str());
> readerXML->Update();
> mesh = readerXML->GetOutput();
>
> However, it is given me the following error:
>
> ERROR: In /staff/icm16/My_repository/Thirdparties/VTK-6.3.0/IO/XML/vtkXMLReader.cxx,
> line 234
> vtkXMLPolyDataReader (0x68f310): Error opening file
> /staff/icm16/TestSamples/SegmentationVertebrae/SegmentationsNew/V1/
> meshWithSimilarityReg2.vtp
>
>
> ERROR: In /staff/icm16/My_repository/Thirdparties/VTK-6.3.0/Common/
> ExecutionModel/vtkExecutive.cxx, line 784
> vtkCompositeDataPipeline (0x68fe90): Algorithm
> vtkXMLPolyDataReader(0x68f310) returned failure for request: vtkInformation
> (0x691600)
>   Debug: Off
>   Modified Time: 76
>   Reference Count: 1
>   Registered Events: (none)
>   Request: REQUEST_INFORMATION
>   ALGORITHM_AFTER_FORWARD: 1
>   FORWARD_DIRECTION: 0
>
>
> There is no problem at all when opening the file with paraview. I am using
> an Ubuntu machine with VTK-6.3.0.
>
> Any idea what the problem could be?
>
> Thanks a lot.
> Isaac.
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170212/981d8dfe/attachment.html>


More information about the vtkusers mailing list