[vtkusers] vtkImageData to vtkDataArray

John Biddiscombe jbiddiscombe at skippingmouse.co.uk
Mon May 20 13:05:29 EDT 2002


 
> I have written an IO class that reads some file format and outputs a
> vtkStructuredPoints objects. This I need to pass as as scalar field to a
> 2nd vtkStructuredPoints as an additional data array for its point data.

vtkDataArray *arr1 = IoReader->GetOutput()->GetPointData()->GetScalars();

otherstructuredpoints->GetPointData()->AddArray(arr1);

in vtk4 you can have many point (or Cell) data arrays 

JB





More information about the vtkusers mailing list