<div class="gmail_quote">On Thu, Oct 18, 2012 at 4:18 PM, Thiago Macedo <span dir="ltr"><<a href="mailto:tmacedo29@gmail.com" target="_blank">tmacedo29@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
David,<br>
<br>
your last answer was about tubes, or circular sections. Is there a way<br>
to use some filter to create a rectangular section?<br>
<div class="HOEnZb"><div class="h5"><br>
Thank you in Advance<br>
Regards<br>
</div></div></blockquote></div><div><br></div>How about:<div><br><div>virtual void vtkTubeFilter::SetNumberOfSides(<a class="el" href="http://www.vtk.org/doc/nightly/html/vtkVectorOperators_8h.html#a61569f2965b7a369eb10b6d75d410d11" style="color:rgb(70,101,162);font-weight:bold;text-decoration:none">int</a> )<br clear="all">
<br>tubeFilter->SetNumberOfSides(4);</div><div><br></div><div>should produce a square cross section I think.</div><div><br>If you need a non-uniform cross section (like a non-square rectangle), I think this can do it:</div>
<div><a href="http://www.vtk.org/doc/nightly/html/classvtkLinearExtrusionFilter.html">http://www.vtk.org/doc/nightly/html/classvtkLinearExtrusionFilter.html</a></div><div><br></div><div>If you try it, it would be great if you could add an example of that class to the wiki.</div>
<div><br></div><div>David<br></div></div>