vtkRECTILINEARGRID Procedure

Passes data describing a Rectilinear Grid to VTK.

Usage

vtkRECTILINEARGRID, Dimensions

Input Parameters

Dimensions—3-element vector of integers describing dimensions in x, y, and z. Use 1 for the third dimension if only a two-dimensional array is described.

Keywords

Restore—An associative array containing all of the data and attributes for a polydata dataset, usually created using the Save keyword. If this parameter is passed, then only the keywords Name and Filename can be used.

Name—Specifies a name to be used to create this data source. This name can be used in calls to vtkCOMMAND.

Filename—File to store data using standard VTK ASCII format.

Save—Returns the data in the specified variable stored in an associative array. Data is not sent to VTK if this parameter is specified.

X_coordinates—A vector of floating point numbers of the same length as the first dimension in Dimensions describing monotonically increasing coordinate values. Increasing integers starting with 0 are used as a default.

Y_coordinates—A vector of floating point numbers of the same length as the second dimension in Dimensions describing monotonically increasing coordinate values. Increasing integers starting with 0 are used as a default.

Z_coordinates—A vector of floating point numbers of the same length as the third dimension in Dimensions describing monotonically increasing coordinate values. Increasing integers starting with 0 are used as a default.

Attributes—A list created using vtkADDATTRIBUTE containing one or more attributes associated with the points in the dataset.

Discussion

This procedure creates a dataset with a regular topology and semiregular geometry aligned along the x, y, and z axes. See the VTK documentation, which can be downloaded from http://public.kitware.com, for more details on the data and attributes for the RectiliniarGrid dataset format.