vtkPOLYDATA Procedure
Passes vertex/polygon lists, lines, points, and triangles to VTK.
Usage
vtkPOLYDATA, points
Input Parameters
points—A two-dimensional array of floating point numbers of size (3, n) describing x, y, and z points.
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.
Polygons—A vector of integers describing polygons, organized as vertex count followed by indices into
points, repeated for all polygons. This is the same format as a polygon list used in
POLYSHADE.
Vertices—A vector of integers describing vertices, organized as vertex count followed by indices into points, repeated for all vertices.
Lines—A vector of integers describing polylines, organized as vertex count followed by indices into points, repeated for all polylines.
Triangle_Strips—A vector of integers describing triangle strips, organized as vertex count followed by indices into points, repeated for all triangle strips.
Attributes—A list created using vtkADDATTRIBUTE containing one or more attributes associated with the points in the dataset.
Discussion
Contains points and polygons (like the polygon vertex list in PV-WAVE) as well as vertices, lines, and triangle strips. See the VTK documentation, which can be downloaded from
http://public.kitware.com, for more details on the data and attributes for the PolyData dataset format.