[vtkusers] vtkXMLPolyDataReader
Brad King
brad.king at kitware.com
Thu Jun 17 08:08:36 EDT 2004
Immo Trinks wrote:
> Hi vtk users and developpers
>
> I am trying to read a .vtp file with vtkXMLPolyDataReader.
> I was able to successfully read the file fohe.vtp , which can be found under
> http://fresh.t-systems-sfr.com/linux/src/.warix/PVLinux.tar.gz.html
> with ParaView. However, if I try
>
> vtkXMLPolyDataReader reader
> reader SetFileName "fohe.vtp"
> reader Update
>
> all I get is
> ERROR: In /home/trinks/VTK/VTK/IO/vtkXMLDataElement.cxx, line 649
> vtkXMLDataElement (0x998e1a8): Unknown data type "float". Supported types
> are:
> Int8, Int16, Int32, Int64,
> UInt8, UInt16, UInt32, UInt64,
> Float32, Float64
>
> How is it possible that ParaView apparently is able to read the file while
> vtkXMLPolyDataReader isn't?
What version of ParaView are you using? An early incarnation of
vtkXMLPolyDataReader (and the corresponding writer) used the type name
"float". This version was never in a release of VTK so it was changed
without backward compatibility. If you edit the file and change it to
"Float32" that error should go away.
-Brad
More information about the vtkusers
mailing list