<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7653.38">
<TITLE>RE: [vtkusers] Smoothing isosurfaces</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<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>
Henrik<BR>
<BR>
-----Original Message-----<BR>
From: vtkusers-bounces@vtk.org on behalf of Alessandro Artusi<BR>
Sent: Thu 11/12/2009 4:01 PM<BR>
To: blloyd@vision.ee.ethz.ch<BR>
Cc: vtkusers@vtk.org<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;blloyd@vision.ee.ethz.ch&gt;wrote:<BR>
<BR>
&gt; Alessandro Artusi wrote:<BR>
&gt;<BR>
&gt;&gt; Der All,<BR>
&gt;&gt;&nbsp; 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">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;&nbsp; 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">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;&nbsp;&nbsp; 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 www.kitware.com<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">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">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">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>
</FONT>
</P>

</BODY>
</HTML>