[vtkusers] About Reading unstructured PLOT3D file

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Sat Oct 6 23:53:37 EDT 2001


hi,

>>>>> "WL" == Wonjun Lee <wlee at ecn.purdue.edu> writes:

    WL> Hi guru, My name is wonjun who is looking for the method to
    WL> read in some odd files.  Those files are fflow which is
    WL> solution file, and fgrid file which is a unstructured
    WL> tetrahedral file.  When I use 'vtkPLOT3DReader', it can read
    WL> but it never works. I think this is because 'vtkPLOT3DReader'
    WL> can read only 'structured' file.  I read in like this.

Yes, unfortunately, currently the PLOT3DReader can only deal with
structured grids.

    WL> And if I read my grid file by using
    WL> 'vtkUnstructuredGridReader', it does not recognize my fgrid
    WL> file.  I read like this.

The vtkUnstructuedGrid format is not the same as the PLOT3D format.
You will have to manually (or by means of a program) convert your
PLOT3D files to the VTK format.  The VTK file format is documented
here:

	http://public.kitware.com/FileFormats.pdf

So the solution is to, read the document carefully and convert your
PLOT3D file to a vtk file and then use vtkUnstructuredGridReader to
read in the file.

Hope this helps,
prabhu



More information about the vtkusers mailing list