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

Manh Nguyen nevermind145 at gmail.com
Tue May 28 09:58:37 EDT 2013


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130528/b7114b79/attachment.htm>


More information about the vtkusers mailing list