[vtk-developers] vtkPolyDataReader

Mathieu Malaterre mathieu.malaterre at gmail.com
Tue Nov 13 12:11:48 EST 2007


On Nov 12, 2007 10:26 AM, hagbard23 <philipp.huebner at freenet.de> wrote:
>
> Is there a way to check weather a file is valid before its opened and a vtk
> error message is thrown.....Openvtk always rreturns a 1 as long as the file
> is named .vtk?thx

Old VTK IO are deprecated AFAIK. Switch to the XML ones, they provide
a vtkXMLReader::CanRead API.

HTH

-- 
Mathieu



More information about the vtk-developers mailing list