[vtkusers] vtkCylinderSource x First, End point

David Doria daviddoria at gmail.com
Thu Oct 18 16:28:31 EDT 2012


On Thu, Oct 18, 2012 at 4:18 PM, Thiago Macedo <tmacedo29 at gmail.com> wrote:

> David,
>
> your last answer was about tubes, or circular sections. Is there a way
> to use some filter to create a rectangular section?
>
> Thank you in Advance
> Regards
>

How about:

virtual void vtkTubeFilter::SetNumberOfSides(int<http://www.vtk.org/doc/nightly/html/vtkVectorOperators_8h.html#a61569f2965b7a369eb10b6d75d410d11>
 )

tubeFilter->SetNumberOfSides(4);

should produce a square cross section I think.

If you need a non-uniform cross section (like a non-square rectangle), I
think this can do it:
http://www.vtk.org/doc/nightly/html/classvtkLinearExtrusionFilter.html

If you try it, it would be great if you could add an example of that class
to the wiki.

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


More information about the vtkusers mailing list