Thank you for the response..<br><br>I am reading this : <a href="http://www.vtk.org/doc/release/5.6/html/a02007.html">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;background-color:rgb(255,255,255)"> 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 class="el" 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);text-decoration:none;font-weight:bold;font-family:Geneva,Arial,Helvetica,sans-serif;background-color:rgb(255,255,255)">vtkTransformPolyDataFilter</a><span style="font-family:Geneva,Arial,Helvetica,sans-serif;background-color:rgb(255,255,255)"> actually modifies point coordinates in the visualization pipeline&quot;</span></font></blockquote>

<div><br></div><div>A piece of my code to make it clear :<br><br></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">

mitk::DataNode::Pointer resNode = mynode;<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"> // Create a cylinder<br>vtkSmartPointer&lt;vtkCylinderSource&gt; cylinderSource = vtkSmartPointer&lt;vtkCylinderSource&gt;::New();<br>

cylinderSource-&gt;SetCenter(cen[0], cen[1], cen[2]);<br>cylinderSource-&gt;SetRadius(5.0);<br>cylinderSource-&gt;SetHeight(200.0);<br>cylinderSource-&gt;SetResolution(100);<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">

<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">//Rotation of the cylinder here , I need a polydata as an output</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">// i.e the cylinder rotated </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">mitk::Surface::Pointer surface = mitk::Surface::New();<br>

surface-&gt;SetVtkPolyData(cylinder);<br>resNode-&gt;SetData(surface);<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">mitk::DataStorage::Pointer dsp = myDataStorage;<br>

dsp-&gt;Add(resNode);</blockquote><div><br></div><div>Am I right?</div><div><br></div><div><br></div><div>Thank you!</div><div><br></div><div><br></div><br><div class="gmail_quote">2012/7/17 Bill Lorensen <span dir="ltr">&lt;<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You must apply TransformPolyData.<br><br>See:  <a href="http://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/TransformPipeline" target="_blank">http://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/TransformPipeline</a><br>

<br><div class="gmail_quote"><div><div class="h5">On Tue, Jul 17, 2012 at 3:11 PM, Gonzalo Amadio <span dir="ltr">&lt;<a href="mailto:gonzaloamadio@gmail.com" target="_blank">gonzaloamadio@gmail.com</a>&gt;</span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div>Can I give a cylinder a specific direction?</div><div><br></div><div><a href="http://www.vtk.org/doc/nightly/html/classvtkCylinderSource.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkCylinderSource.html</a></div>





<div><br></div><div>I looked in there, but I can sete radius, height, center, but not direction.<br><br>Thank you!<span><font color="#888888"><br><div><div><br></div>-- <br>--------<br>Gonzalo Amadio<br><br>

</div></font></span></div>
<br></div></div>_______________________________________________<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><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br>Unpaid intern in BillsBasement at noware dot com<br><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>--------<br>Gonzalo Amadio<br><br>
</div>