<div>On Fri, Aug 31, 2012 at 3:59 PM, Thiago Macedo <span dir="ltr"><<a href="mailto:tmacedo29@gmail.com" target="_blank">tmacedo29@gmail.com</a>></span> wrote:</div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi All,<br>
<br>
I'm trying to represent a cylinder using vtk, and I just have<br>
information of first and end point of it.<br>
What's the best way to do it? I was trying to use vtkCylinderSource,<br>
but I had no sucess.<br>
<br>
Thank you in Advance<br>
Regards</blockquote><div><br></div>You can use a vtkLineSource and then a vtkTubeFilter:</div><div class="gmail_quote"><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/TubeFilter"><font color="#000000"><br class="Apple-interchange-newline">
</font>http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/TubeFilter</a><br clear="all"><a href="http://www.vtk.org/doc/nightly/html/classvtkTubeFilter.html">http://www.vtk.org/doc/nightly/html/classvtkTubeFilter.html</a><div>
<br></div><div>David</div></div></div>