[vtkusers] vtkXMLPolyDataReader

Immo Trinks trinks at esc.cam.ac.uk
Thu Jun 17 08:41:33 EDT 2004


Ok, this explains. I am using ParaView version 0.6 release 1, available from 
http://fresh.t-systems-sfr.com/linux/src/.warix/PVLinux.tar.gz.html
Thanks,
Immo


On Thursday 17 Jun 2004 13:08, Brad King wrote:
> 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