[vtkusers] Change point scalars

Elizabeth Nitao enitao at craft-tech.com
Sat Aug 26 19:19:38 EDT 2006


Matteo,
Try using SetScalars to reset the scalars. For a vtkUnstructuredGrid I use:

[grid GetPointData] SetScalars scalars

where scalars is a vtkFloatArray and grid is an unstructured grid.
This may work for any polydata.

Elizabeth

campanam at libero.it wrote:
> Dear all,
> I have to change point scalars in a polydata. Is there anybody who knows how can I do?
>
> Thanks in advance.
>
> Matteo
>
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>   





More information about the vtkusers mailing list