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< daviddoria+vtk@gmail.com ><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>> I was going through the documentation of vtkGlyph3D here<br>><br>> <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>><br>> I came across:<br>><br>> "You can set what arrays to use for the scalars, vectors, normals, and color<br>> scalars by using the SetInputArrayToProcess methods in vtkAlgorithm. The<br>> first array is scalars, the next vectors, the next normals and finally color<br>> scalars."<br>><br>> Set
InputArrayToProces(...)<br>><br>> Sorry to ask such stupid question, but can any one explain me with example<br>> how to use this method..?? In my case, I have two different arrays.. one<br>> scalar array and another color scalars.. So how do i do this..??<br>><br>> Thanks in advance<br>><br>> Rakesh Patil<br>><br>><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->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->SetInputArrayToProcess(0, 0, 0,<br>vtkDataObject::FIELD_ASSOCIATION_CELLS,<br>vtkDataSetAttributes::SCALARS);<br><br>glyph->SetInputArrayToProcess(0, 0, 0,<br>vtkDataObject::FIELD_ASSOCIATION_CELLS, "index");<br><br>glyph->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>