Oh thanks,<br><br>But why the first three parameters are zero..?? and what do each parameter stand for...??<br><br>Thanks<br><br><blockquote><br>---------- Original message ----------<br>From:David Doria&lt; daviddoria+vtk@gmail.com &gt;<br>Date: 17 Feb 10 18:37:04<br>Subject:  Re: [vtkusers] SetInputArrayToProces(...) ..??<br>To: rakeshthp@in.com<br><br>On Wed, Feb 17, 2010 at 3:32 AM, Rakesh Patil <rakeshthp@in.com> wrote:<br>&gt; I was going through the documentation of vtkGlyph3D here<br>&gt;<br>&gt; <a target=\"_blank\" href="http://www.vtk.org/doc/release/5.4/html/a00651.html" target="_blank">http://www.vtk.org/doc/release/5.4/html/a00651.html</a><br>&gt;<br>&gt; I came across:<br>&gt;<br>&gt; "You can set what arrays to use for the scalars, vectors, normals, and color<br>&gt; scalars by using the SetInputArrayToProcess methods in vtkAlgorithm. The<br>&gt; first array is scalars, the next vectors, the next normals and finally color<br>&gt; scalars."<br>&gt;<br>&gt; Set
 InputArrayToProces(...)<br>&gt;<br>&gt; Sorry to ask such stupid question, but can any one explain me with example<br>&gt; how to use this method..?? In my case, I have two different arrays.. one<br>&gt; scalar array and another color scalars.. So how do i do this..??<br>&gt;<br>&gt; Thanks in advance<br>&gt;<br>&gt; Rakesh Patil<br>&gt;<br>&gt;<br><br>vtkGlyph3D is derived from vktAlgorithm, so you can call<br>SetInputArrayToProcess directly on the glyph filter:<br><br>vtkGlyph3D* glyph = vtkGlyph3D::New();<br>glyph-&gt;SetInputArrayToProcess(...)<br><br>The trick, then, is knowing what to pass it :) It is extremely<br>confusing - here are a couple of use cases I've seen, maybe you can<br>use this as a starting point:<br><br>glyph-&gt;SetInputArrayToProcess(0, 0, 0,<br>vtkDataObject::FIELD_ASSOCIATION_CELLS,<br>vtkDataSetAttributes::SCALARS);<br><br>glyph-&gt;SetInputArrayToProcess(0, 0, 0,<br>vtkDataObject::FIELD_ASSOCIATION_CELLS, "index");<br><br>glyph-&gt;SetInputArrayT
 oProcess(0, 0, 0,<br>                                   vtkDataObject::FIELD_ASSOCIATION_CELLS,<br>                                   vtkDataSetAttributes::SCALARS);<br><br>I think you'd want to change the first 0 to a 1, 2 or 3 depending on<br>if you want to set scalars, vectors, normals or color scalars.<br><br>Play around with those and let us know if you get anywhere.<br><br>Thanks,<br><br>David<br>_______________________________________________<br>Powered by <a target=\"_blank\" href="http://www.kitware.com" target="_blank">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a target=\"_blank\" 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 target=\"_blank\" 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>http://
 www.vtk.org/mailman/listinfo/vtkusers<br></rakeshthp@in.com></blockquote>