Hi,<br><br>You need to use an image reader to read and input the image to vtkTexture, which will then be applied on to an actor.<br><br>attached images image1.jpg and image2.jpg files show the pipeline and its output.<br><br>
Hope this helps.<br><br>/ Prashanth<br><br><div class="gmail_quote">On Fri, Feb 27, 2009 at 12:04 PM, vinay l. <span dir="ltr"><<a href="mailto:vinay.l@iiitb.ac.in">vinay.l@iiitb.ac.in</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<p><font size="2">Dear all,<br>
<br>
I am trying to map the texture of an image onto a cylinder for which I am using vtkTextureMapToCylinder.<br>
I am constructing a cylinder and 'painting' the image on to the cylinder. I have a doubt regarding this.<br>
<br>
What exactly are the parameters to SetHeight and SetRadius in vtkCylinderSource? It being of double datatype,<br>
can it be considered as mm or cm or m? Since i need to map the image precisely i need the exact dimension of the cylinder<br>
to be created.<br>
<br>
Thanks in advance,<br>
<br>
Vinay L<br>
<br>
<br>
<br>
</font>
</p>
</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 VTK FAQ at: <a 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>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Thanks and Warm Regards,<br>Prashanth N Udupa<br><br><a href="mailto:prashanth.udupa@gmail.com">prashanth.udupa@gmail.com</a><br><a href="http://www.prashanthudupa.com">http://www.prashanthudupa.com</a><br>
<a href="http://prashanthudupa.livejournal.com/">http://prashanthudupa.livejournal.com/</a><br><br>