<div>Hi Henrik,</div>
<div> </div>
<div><br>I just did not try the other suggestions because I am doing something else now; but another possibel solution is very much appreciated.</div>
<div> </div>
<div>I will try out it.</div>
<div>Best Regards,</div>
<div>Alessandro.<br></div>
<div class="gmail_quote">On Tue, Nov 24, 2009 at 2:13 PM, Henrik Westerberg <span dir="ltr">&lt;<a href="mailto:henrik.westerberg@crg.es">henrik.westerberg@crg.es</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div><br>
<p><font size="2">Hi Folks,<br><br>(Sorry don&#39;t know if you need still need a hand with this, i go through my vtk e-mail<br>once every couple weeks)<br><br>I use the vtkSmoothPolyDataFilter in one of my pipelines and I found<br>
its a good idea to vary the relaxation factor as well with SetRelaxtionFactor.<br><br>Try varying both say in ranges of 5-25 for the number of iterations and<br>0.1 to 0.9 for the relaxtion factor and see if you still get no changes<br>
in your polydata.<br><br>hth,<br><font color="#888888">Henrik</font> 
<div>
<div></div>
<div class="h5"><br><br>-----Original Message-----<br>From: <a href="mailto:vtkusers-bounces@vtk.org" target="_blank">vtkusers-bounces@vtk.org</a> on behalf of Alessandro Artusi<br>Sent: Thu 11/12/2009 4:01 PM<br>To: <a href="mailto:blloyd@vision.ee.ethz.ch" target="_blank">blloyd@vision.ee.ethz.ch</a><br>
Cc: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>Subject: Re: [vtkusers] Smoothing isosurfaces<br><br>Hi Bryn,<br><br>sorry you are right the vtkContourFilter has not Number of iteration I was<br>
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>On Thu, Nov 12, 2009 at 11:20 AM, Bryn Lloyd &lt;<a href="mailto:blloyd@vision.ee.ethz.ch" target="_blank">blloyd@vision.ee.ethz.ch</a>&gt;wrote:<br>
<br>&gt; Alessandro Artusi wrote:<br>&gt;<br>&gt;&gt; Der All,<br>&gt;&gt;  i would like to have more smooth isosurfaces respect what i get with<br>&gt;&gt; vtkContourFilter. I have increased the number of Iteration but it seems that<br>
&gt;&gt; does not do anything (or anything visible). Is there any other way to do it?<br>&gt;&gt;<br>&gt;<br>&gt; vtkContourFilter does not have iterations. Are you using<br>&gt; vtkSmoothPolyDataFilter? Tests (Tcl) using this filter can be found here:<br>
&gt;<br>&gt;<br>&gt; <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>
&gt;<br>&gt; Can you send a piece of code illustrating what you are doing?<br>&gt;<br>&gt; What is the input to vtkContourFilter?<br>&gt;<br>&gt;<br>&gt;<br>&gt;  Also i would like to reduce the number of vertex in the output<br>
&gt;&gt; isosurfaces. Is there any way?<br>&gt;&gt;<br>&gt;<br>&gt; Try vtkQuadricDecimation or vtkDecimatePro. See the examples/tests to see<br>&gt; how these can be used:<br>&gt;<br>&gt; e.g.<br>&gt; <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>
&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;   Thanks,<br>&gt;&gt; Alessandro.<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; ------------------------------------------------------------------------<br>&gt;&gt;<br>&gt;&gt; _______________________________________________<br>
&gt;&gt; Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>&gt;&gt;<br>&gt;&gt; Visit other Kitware open-source projects at<br>&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;<br>&gt;&gt; Please keep messages on-topic and check the VTK FAQ at:<br>&gt;&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>&gt;&gt;<br>&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>&gt;&gt;<br>&gt;<br>&gt;<br>&gt; --<br>&gt; -------------------------------------------------<br>
&gt; Bryn Lloyd<br>&gt; Computer Vision Laboratory<br>&gt; ETH Zürich, Sternwartstrasse 7, ETF C110<br>&gt; CH - 8092 Zürich, Switzerland<br>&gt; Tel: +41 44 63 26668<br>&gt; Fax: +41 44 63 21199<br>&gt; -------------------------------------------------<br>
&gt;<br><br></div></div></font>
<p></p></p></div></blockquote></div><br>