[vtkusers] Choose the second component in vtkDataArray without copy

mirko heuegger mheuegger at gmail.com
Fri May 24 02:28:16 EDT 2013


Hello!

Have you tried to access this array over:
..GetPointData()->GetVectors(...) ?


hth

mirko


On Thu, May 23, 2013 at 10:38 AM, Manh Nguyen <nevermind145 at gmail.com>wrote:

> Dear vtk developers,
>
> I have created this code:
>
> vtkDataArray *DataArray =
> reader->GetOutput()->GetPointData()->GetArray("qflow velocities");
>
>
> The DataArray is an array with 3 components (x,y,z), but by default it
> read only the x component?
>
>
> Is there a way to select only the components without using CopyComponent
> or any other copy functions?
>
> Sincerely,
>
> Tat Manh Nguyen
>
> _______________________________________________
> 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
>
>


-- 
Real programmers don't document; if it was
hard to write, it should be hard to understand.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130524/532d7fad/attachment.htm>


More information about the vtkusers mailing list