Hi Bryn,<br><br>sorry you are right the vtkContourFilter has not Number of iteration I was using vtkSmoothPOlyDataFilter as you have suggeste. So teh code is here:<br><br>smoother = vtk.vtkSmoothPolyDataFilter()<br>smoother.SetInputConnection(sr.GetOutputPort())<br>
smoother.SetNumberOfIterations(50)<br><br>with this number of Iteration I do not see any improvements.<br>I guess I have to do something else right?<br><br>Cheers,<br>Alessandro.<br><br><div class="gmail_quote">On Thu, Nov 12, 2009 at 11:20 AM, Bryn Lloyd <span dir="ltr"><<a href="mailto:blloyd@vision.ee.ethz.ch">blloyd@vision.ee.ethz.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">Alessandro Artusi wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Der All,<br>
i would like to have more smooth isosurfaces respect what i get with vtkContourFilter. I have increased the number of Iteration but it seems that does not do anything (or anything visible). Is there any other way to do it?<br>
</blockquote>
<br></div>
vtkContourFilter does not have iterations. Are you using vtkSmoothPolyDataFilter? Tests (Tcl) using this filter can be found here:<br>
<br>
<a href="http://www.vtk.org/doc/nightly/html/c2_vtk_t_16.html#c2_vtk_t_vtkSmoothPolyDataFilter" target="_blank">http://www.vtk.org/doc/nightly/html/c2_vtk_t_16.html#c2_vtk_t_vtkSmoothPolyDataFilter</a><br>
<br>
Can you send a piece of code illustrating what you are doing?<br>
<br>
What is the input to vtkContourFilter?<div class="im"><br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Also i would like to reduce the number of vertex in the output isosurfaces. Is there any way?<br>
</blockquote>
<br></div>
Try vtkQuadricDecimation or vtkDecimatePro. See the examples/tests to see how these can be used:<br>
<br>
e.g.<br>
<a href="http://www.vtk.org/doc/nightly/html/c2_vtk_t_4.html#c2_vtk_t_vtkDecimatePro" target="_blank">http://www.vtk.org/doc/nightly/html/c2_vtk_t_4.html#c2_vtk_t_vtkDecimatePro</a><br>
<br>
<br>
<br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks,<br>
Alessandro.<br>
<br>
<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<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>
</blockquote>
<br>
<br>
-- <br>
-------------------------------------------------<br><font color="#888888">
Bryn Lloyd<br>
Computer Vision Laboratory<br>
ETH Zürich, Sternwartstrasse 7, ETF C110<br>
CH - 8092 Zürich, Switzerland<br>
Tel: +41 44 63 26668<br>
Fax: +41 44 63 21199<br>
-------------------------------------------------<br>
</font></blockquote></div><br>