[vtkusers] vtkCylinderSource x First, End point

David Doria daviddoria at gmail.com
Fri Aug 31 16:03:17 EDT 2012


On Fri, Aug 31, 2012 at 3:59 PM, Thiago Macedo <tmacedo29 at gmail.com> wrote:

> Hi All,
>
> I'm trying to represent a cylinder using vtk, and I just have
> information of first and end point of it.
> What's the best way to do it? I was trying to use vtkCylinderSource,
> but I had no sucess.
>
> Thank you in Advance
> Regards


You can use a vtkLineSource and then a vtkTubeFilter:

http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/TubeFilter
http://www.vtk.org/doc/nightly/html/classvtkTubeFilter.html

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120831/30e4aeb6/attachment.htm>


More information about the vtkusers mailing list