<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hey Claude,<div><br></div><div>Your vtkPointData should be part of some other element, like vtkPolyData (that you have read from a file, or created manually, or generated from a source). Create your polydata, then create your three-component vtkFloatArray that holds your vector coordinates, then do something like polydata-&gt;GetPointData()-&gt;SetVectors(floatarrayname).</div><div><br></div><div>As you said, the arrow source will be your source: glyph-&gt;SetSourceConnection(arrowsource-&gt;GetOutputPort())</div><div><br></div><div>If your polydata is going through some other filter before the glyph filter, then you use glyph-&gt;SetInputConnection(polyfilter-&gt;GetOutputPort()), but if it's going in directly, you should be able to use glyph-&gt;SetInput(polydata).</div><div><br></div><div>-Eric</div><div><br></div><div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre-wrap;"><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="white-space: normal;"><br></span></font></span></font></div><div><span class="Apple-style-span" style="font-family: Times; "><div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre-wrap;"><br></span></font></div></span><div><div>On Aug 10, 2009, at 5:16 AM, ClaudeG wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br>hi ,<br>i have created pointdata with the coordonnates of vectors and know i want to<br>use glyph to represente these vectors. As source i use vtkarrow but how can<br>i get my pointdata into the glyph?<br><br>thanks for any help<br><br>-- <br>View this message in context: <a href="http://www.nabble.com/pointdata-and-glyph-tp24896627p24896627.html">http://www.nabble.com/pointdata-and-glyph-tp24896627p24896627.html</a><br>Sent from the VTK - Users mailing list archive at Nabble.com.<br><br>_______________________________________________<br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">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">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">http://www.vtk.org/mailman/listinfo/vtkusers</a><br></div></blockquote></div><br></div></body></html>