[vtkusers] Fwd: Choose the second component in vtkDataArray without copy

mirko heuegger mheuegger at gmail.com
Wed May 29 04:29:54 EDT 2013


Hello!

A Other Question, how are you trying to read the vectorData?

And what is the return from reader->GetNumberOfVectorsInFile() (the
reader-object should be something like a vtkDataSetReader)?


regards

mirko



On Tue, May 28, 2013 at 3:58 PM, 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?
>
>  I have tried GetVectors but it crashed. the data just load single Scalars.
>
> Does vtkDataArray have something like get Component Array? or something?
>
> 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/20130529/efcab596/attachment.htm>


More information about the vtkusers mailing list