For the velocity array you'll need to set the number of components. You probably want to set the number of components to 3 for both 2D and 3D so that ParaView can manipulate the vector quantities (for 2D just set the last component to 0).<br>
<br>Using the glyph filter will give you arrows for showing the velocity magnitude and direction.<br><br><div class="gmail_quote">On Tue, Oct 12, 2010 at 12:08 PM, R M <span dir="ltr"><<a href="mailto:mlokida@yahoo.fr">mlokida@yahoo.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>Hi,<br>
<br>Like the title say, I would to like to add some attributes to a vtkPointSet (vtkPolyData and vtkUnstructuredGrid).<br>The attributes are vector(2D, 3D,...) field or scalar field. <br><br>For a scalar Field, If I want to add an attribute to the cells , I do: output->GetCellData()->AddArray( data) and output->GetPointData()->AddArray(donnees); for the points<br>
For the moment it is ok, because I can select them in Paraview.<br><br>But now, I have a 2D (or 3D) vector field (velocity) and I would to add the velocity field for the points or the cells. How can I do that ?<br>Moreover, if I want to show somme arrow (to show the direction of the vectors) should I use the glyph filter ?<br>
<br>Thank you.<br><br></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 ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br>