<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"><<a href="mailto:henrik.westerberg@crg.es">henrik.westerberg@crg.es</a>></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'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 <<a href="mailto:blloyd@vision.ee.ethz.ch" target="_blank">blloyd@vision.ee.ethz.ch</a>>wrote:<br>
<br>> Alessandro Artusi wrote:<br>><br>>> Der All,<br>>> i would like to have more smooth isosurfaces respect what i get with<br>>> vtkContourFilter. I have increased the number of Iteration but it seems that<br>
>> does not do anything (or anything visible). Is there any other way to do it?<br>>><br>><br>> vtkContourFilter does not have iterations. Are you using<br>> vtkSmoothPolyDataFilter? Tests (Tcl) using this filter can be found here:<br>
><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?<br>><br>><br>><br>> Also i would like to reduce the number of vertex in the output<br>
>> isosurfaces. Is there any way?<br>>><br>><br>> Try vtkQuadricDecimation or vtkDecimatePro. See the examples/tests to see<br>> 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>> 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<br>>> <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:<br>>> <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>>><br>><br>><br>> --<br>> -------------------------------------------------<br>
> 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>
><br><br></div></div></font>
<p></p></p></div></blockquote></div><br>