Allow Plot3D function files to be imported with user defined names
This issue is a feature request coming from the ParaView mailing list. Currently when importing Plot3D function files into ParaView, the variables are automatically named Function0, Function1, etc. It would be useful to be able to point the vtkPlot3DMetaReader to a text file that defines the names of the variables contained. This is similar to how the Plot3D function file readers for Ensight and Tecplot work. For example, if my function file contains the variables density, velocity-x, velocity-y, velocity-z, and pressure the accompanying text file may look something like this:
5 1
0 density
1 velocity-x
2 velocity-y
3 velocity-z
4 pressure
1 2 3 velocity
In the above format, the first line contains the number of scalar variables (5) and vector variables (1). The next five lines list a variable ID number followed by a variable name. The last line indicates that a vector should be created from variable IDs 1, 2, & 3, and it should be named velocity.