[vtkusers] Parameters for SetHeight and SetRadius in vtkCylinderSource
Prashanth Udupa
prashanth.udupa at gmail.com
Fri Feb 27 02:15:27 EST 2009
Hi,
You need to use an image reader to read and input the image to vtkTexture,
which will then be applied on to an actor.
attached images image1.jpg and image2.jpg files show the pipeline and its
output.
Hope this helps.
/ Prashanth
On Fri, Feb 27, 2009 at 12:04 PM, vinay l. <vinay.l at iiitb.ac.in> wrote:
> Dear all,
>
> I am trying to map the texture of an image onto a cylinder for which I am
> using vtkTextureMapToCylinder.
> I am constructing a cylinder and 'painting' the image on to the cylinder. I
> have a doubt regarding this.
>
> What exactly are the parameters to SetHeight and SetRadius in
> vtkCylinderSource? It being of double datatype,
> 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
> to be created.
>
> Thanks in advance,
>
> Vinay L
>
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
--
Thanks and Warm Regards,
Prashanth N Udupa
prashanth.udupa at gmail.com
http://www.prashanthudupa.com
http://prashanthudupa.livejournal.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090227/de9bc344/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image1.jpg
Type: image/jpeg
Size: 39104 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090227/de9bc344/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image2.jpg
Type: image/jpeg
Size: 17673 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090227/de9bc344/attachment-0001.jpg>
More information about the vtkusers
mailing list