[vtkusers] SetScalars of vtkDataSetAttribute in vtk4.0
Marcel Prastawa
prastawa at cs.unc.edu
Sat Dec 1 22:18:25 EST 2001
Try:
points->GetPointData()->SetScalars(s->GetData());
Marcel
zhangzhijun wrote:
> 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
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list