[vtkusers] vtkTecplotReader fails to read coordinates

kenichiro yoshimi rccm.kyoshimi at gmail.com
Fri Jul 6 06:54:33 EDT 2012


Hi all,

In vtk-5.10.0, I test loading Tecplot data with the following labels
indicating X-Coordinate:

(1) Variables="X"
(2) Variables="X[m]"
(3) Variables="X (m)"

At the results, that (1) and (2) are successful, but (3) is failed.
And I find the mistake in "vtkTecplotReader.cxx":

(l.444)
---------
    // do match: "x[m]" or "x (m)", etc. don't match: "x velocity"
    if (  (  !isspace( theToken[1] ) && !isalnum( theToken[1] )  ) ||
          (   isspace( theToken[1]   && !isalnum( theToken[2] )  )   )
       )
      {
      guessVal = GetCoord(  theToken.substr( 0, 1 )  );
      }
---------

    // do match: "x[m]" or "x (m)", etc. don't match: "x velocity"
    if (  (  !isspace( theToken[1] ) && !isalnum( theToken[1] )  ) ||
          (   isspace( theToken[1] ) && !isalnum( theToken[2] )  )
  <---- modified
       )
      {
      guessVal = GetCoord(  theToken.substr( 0, 1 )  );
      }

Can someone confirm whether this modification is correct?

Thanks,
yoshimi



More information about the vtkusers mailing list