<div dir="ltr">Hi David,<br><br>I think it should be solved by calling SetScaleModeToScaleByVector() on vtkGlyph3D.<br><br>Jothy<br><br><div class="gmail_quote">On Wed, Oct 6, 2010 at 6:23 PM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</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 class="im">On Tue, Oct 5, 2010 at 12:03 PM, Jothy <<a href="mailto:jothybasu@gmail.com">jothybasu@gmail.com</a>> wrote:<br>
> You can easily test this with paraview. Save your image as vtkImageData and<br>
> import into paraview.<br>
><br>
> After importing click Glyph toolbar button on top right, then you can play<br>
> around with different settings in the lower left window.<br>
><br>
> This will give you some idea.<br>
><br>
> Jothy<br>
<br>
</div>Yes, in ParaView it is easy. I select "ImageScalars" from the<br>
"Vectors" drop down box in the glyph filter. But how do you do this in<br>
VTK? In this example I have oriented the vectors based on the normals:<br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/OrientedGlyphs" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/OrientedGlyphs</a><br>
<br>
but it is done through a glyph3D->SetVectorModeToUseNormal() call,<br>
which isn't what I need in this case. I don't see any function like<br>
SetOrientationArray(char*) that I could pass "ImageScalars".<br>
<br>
I have attached the demo file - any thoughts?<br>
<br>
Thanks,<br>
<font color="#888888"><br>
David<br>
</font></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Research Scholar<br>Dept. of Medical Physics<br>Clatterbridge Centre for Oncology<br>UK<br></div><br>
</div>