[vtkusers] AddArray vs SetVectors?

Bryn Lloyd blloyd at vision.ee.ethz.ch
Wed Apr 22 10:02:59 EDT 2009


No,


AddArray adds any dataarray

SetVectors adds vector data (in a dataarray), e.g. displacements from a 
deformation, flow vectors etc.

The second is more specific, less generic.

It has nothing to with the data type (float, char, int etc).



David Doria wrote:
> What is the difference between
> 
> polydata->GetPointData()->SetVectors(...);
>    
> polydata->GetPointData()->AddArray(...);
> 
> It seems like I have to use SetVectors for vtkUnsignedCharArray and 
> AddArray for vtkFloatArray??
> 
> Thanks,
> 
> David
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers


-- 
-------------------------------------------------
Bryn Lloyd
Computer Vision Laboratory
ETH Zürich, Sternwartstrasse 7
CH - 8092 Zürich, Switzerland
Tel: +41 44 63 26668
Fax: +41 44 63 21199
-------------------------------------------------



More information about the vtkusers mailing list