type is specified as the
dataset type (see Figure 1), then a general VTK data object is defined. Use the format described in the next section
to define a field. Also see “Working With Field Data” on page 158 and the fourth example in this chapter “Exam-
ples” on page 7.
Dataset Attribute Format. The Visualization Toolkit supports the following dataset attributes: scalars (one to four com-
ponents), vectors, normals, texture coordinates (1D, 2D, and 3D),
tensors, and field data. In addition, a lookup table
using the RGBA color specification, associated with the scalar data, can be defined as well. Dataset attributes are sup-
ported for both points and cells.
Each type of attribute data has a dataName associated with it. This is a character string (without embedded
whitespace) used to identify a particular data. The dataName is used by the VTK readers to extract data. As a result, more
than one attribute data of the same type can be included in a file. For example, two different scalar fields defined on the
dataset points, pressure and temperature, can be contained in the same file. (If the appropriate dataName is not specified in
the VTK reader, then the first data of that type is extracted from the file.)
• Scalars
Scalar definition includes specification of a lookup table. The definition of a lookup table is optional. If not speci-
fied, the default VTK table will be used (and tableName should be “