[vtkusers] using multiple vectors

Kevin Wright krw at viz-solutions.com
Mon Jun 17 17:44:34 EDT 2002


At 03:45 PM 6/17/2002 -0600, you wrote:
>Hi, does anyone know if there is a way to set multiple sets of vectors for
>vtkPointData?  I am trying to represent vector data as glyphs as well as
>using a separate set of displacement vectors along with the vtkWarpVector,
>but right now I'm only able to use one or the other, due to the limited
>vtkPointData->SetVectors() function.  Does anyone know a way around this?

vtkPointData *pd = data->GetPointData();
vtkDataArray *otherVector;
pd->AddArray(otherVector);

Kevin.






More information about the vtkusers mailing list