[vtkusers] SetScalars of vtkDataSetAttribute in vtk4.0
zhangzhijun
zjzhang at ee.cuhk.edu.hk
Mon Dec 31 08:25:40 EST 2001
I have a program using the following code
vtkstructuredpoints *points=vtkStructuredPoints::New();
vtkScalars *s =vtkScalars::New();
points->GetPointData()->SetScalars(s);
this works well in vtk3.2 but in vtk4.0 the setscalars method of the
vtkDataSetAttribute
is redefined and the parameter of this function must be vtkDataArray, so the
former code will
not right compiled. How to change this?
regards,
zhang zhijun
More information about the vtkusers
mailing list