[vtkusers] How to add lines/polygons to a DATASET STRUCTURED_POINTS dataset

Yosi Keller yosi.keller at yale.edu
Sun Feb 15 18:01:00 EST 2004


We use VTK to visualize 3D data computed by an external program. The
data is saved in  a VTK file which is viewed with MayaVi or ParaView.
How can we add lines/polygons to a DATASET STRUCTURED_POINTS dataset?

For example how to add the X axis to the file:

vtk DataFile Version 2.0
Structured points example.
ASCII
DATASET STRUCTURED_POINTS
DIMENSIONS 2 2 1
ORIGIN 0.0 0.0 0.0
SPACING 1.0 1.0 1.0

POINT_DATA 4
SCALARS Temperature float
LOOKUP_TABLE default
100 200
300 400




More information about the vtkusers mailing list