I forgot to put the code, I only add this to the previous one<div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

vtkSmartPointer&lt;vtkTransform&gt; transform = vtkSmartPointer&lt;vtkTransform&gt;::New();<br>transform-&gt;RotateY(90);<br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

 </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">vtkSmartPointer&lt;vtkTransformPolyDataFilter&gt; transF = vtkSmartPointer&lt;vtkTransformPolyDataFilter&gt;::New();<br>

transF-&gt;SetInput(cylinderSource-&gt;GetOutput());<br>transF-&gt;SetTransform(transform);<br>transF-&gt;Update();<br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

 </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">vtkSmartPointer&lt;vtkPolyData&gt; cylinder = transF-&gt;GetOutput();</blockquote>

<br><div class="gmail_quote">2012/7/18 Gonzalo Amadio <span dir="ltr">&lt;<a href="mailto:gonzaloamadio@gmail.com" target="_blank">gonzaloamadio@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

That seems to work. But I have another problem now.<br><br>When I rotate the cylinder, the center don&#39;t remain in the original position where it is set. <div><br></div><div>Trying to being more clear, imagine my original cylinder is a clock hand pointing to number three. so the center is between the center of the clock and number three. When I rotate it for example 90, the hand is pointing to number twelve, so the center is not more between the center of the clock and number 3, instead is between center and number 12.</div>


<div><br></div><div>Thank you for helping!<div><div class="h5"><br><br><div class="gmail_quote">2012/7/18 David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div>On Wed, Jul 18, 2012 at 7:14 AM, Gonzalo Amadio <span dir="ltr">&lt;<a href="mailto:gonzaloamadio@gmail.com" target="_blank">gonzaloamadio@gmail.com</a>&gt;</span> wrote:</div></div><div class="gmail_quote">
<div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thank you for the response..<br><br>I am reading this : <a href="http://www.vtk.org/doc/release/5.6/html/a02007.html" target="_blank">http://www.vtk.org/doc/release/5.6/html/a02007.html</a> that I think is what I need. Because I don&#39;t have all the mapper and actor part and as it is said there, if I am not understanding wrong, vtkTransfrom work on the actor and rendering part, and vtkTransformPolyDataFilter directly on the rotation of the figure itself :<div>





<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><font size="1">&quot;<span style="font-family:Geneva,Arial,Helvetica,sans-serif"> The difference between the two methods is that vtkActor&#39;s transformation simply effects where objects are rendered (via the graphics pipeline), whereas</span><a href="http://www.vtk.org/doc/release/5.6/html/a02007.html" title="transform points and associated normals and vectors for polygonal dataset" style="color:rgb(42,55,152);font-family:Geneva,Arial,Helvetica,sans-serif;text-decoration:none;font-weight:bold" target="_blank">vtkTransformPolyDataFilter</a><span style="font-family:Geneva,Arial,Helvetica,sans-serif"> actually modifies point coordinates in the visualization pipeline&quot;</span></font></blockquote>



</div></blockquote><div><br></div></div><div>That is correct:</div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filters/TransformPolyData" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filters/TransformPolyData</a><span><font color="#888888"><br clear="all">



<br>David </font></span></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br>--------<br>Gonzalo Amadio<br><br>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>--------<br>Gonzalo Amadio<br><br>
</div>