<div dir="ltr">Hello!<div><br></div><div style>A Other Question, how are you trying to read the vectorData?</div><div style><br></div><div style>And what is the return from <span style="font-size:13px;font-family:arial,sans-serif">reader-></span>GetNumberOfVectorsInFile() (the reader-object should be something like a vtkDataSetReader)?<br>
</div><div style><br></div><div style><br></div><div style><span style="font-family:arial,sans-serif;font-size:13px">regards</span><br></div><div style><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div>
<div style><span style="font-family:arial,sans-serif;font-size:13px">mirko</span></div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 28, 2013 at 3:58 PM, Manh Nguyen <span dir="ltr"><<a href="mailto:nevermind145@gmail.com" target="_blank">nevermind145@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_quote"><div dir="ltr"><div><div class="h5">Dear vtk developers,<div><br></div><div>
I have created this code:</div><div><br></div><div>vtkDataArray *DataArray = reader->GetOutput()->GetPointData()->GetArray("qflow velocities");</div>
<div><br></div></div></div><div><div><div class="h5"><div><br></div><div>The DataArray is an array with 3 components (x,y,z), but by default it read only the x component? </div><div><br></div><div><br></div><div>Is there a way to select only the components without using CopyComponent or any other copy functions?</div>
<div><br></div></div></div><div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px"> I have tried GetVectors but it crashed. the data just load single Scalars.</span><br></div><div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">Does vtkDataArray have something like get Component Array? or something?</span></div>
<div><br></div><div>Sincerely,</div><div><br></div><div>Tat Manh Nguyen</div></div></div>
</div><br></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Real programmers don't document; if it was<br>hard to write, it should be hard to understand.
</div>