[vtkusers] Smoothing isosurfaces

Alessandro Artusi artusialessandro4 at googlemail.com
Tue Nov 24 14:55:34 EST 2009


Hi Henrik,


I just did not try the other suggestions because I am doing something else
now; but another possibel solution is very much appreciated.

I will try out it.
Best Regards,
Alessandro.
On Tue, Nov 24, 2009 at 2:13 PM, Henrik Westerberg <henrik.westerberg at crg.es
> wrote:

>
> Hi Folks,
>
> (Sorry don't know if you need still need a hand with this, i go through my
> vtk e-mail
> once every couple weeks)
>
> I use the vtkSmoothPolyDataFilter in one of my pipelines and I found
> its a good idea to vary the relaxation factor as well with
> SetRelaxtionFactor.
>
> Try varying both say in ranges of 5-25 for the number of iterations and
> 0.1 to 0.9 for the relaxtion factor and see if you still get no changes
> in your polydata.
>
> hth,
> Henrik
>
>
> -----Original Message-----
> From: vtkusers-bounces at vtk.org on behalf of Alessandro Artusi
> Sent: Thu 11/12/2009 4:01 PM
> To: blloyd at vision.ee.ethz.ch
> Cc: vtkusers at vtk.org
> Subject: Re: [vtkusers] Smoothing isosurfaces
>
> Hi Bryn,
>
> sorry you are right the vtkContourFilter has not Number of iteration I was
> using vtkSmoothPOlyDataFilter as you have suggeste. So teh code is here:
>
> smoother = vtk.vtkSmoothPolyDataFilter()
> smoother.SetInputConnection(sr.GetOutputPort())
> smoother.SetNumberOfIterations(50)
>
> with this number of Iteration I do not see any improvements.
> I guess I have to do something else right?
>
> Cheers,
> Alessandro.
>
> On Thu, Nov 12, 2009 at 11:20 AM, Bryn Lloyd <blloyd at vision.ee.ethz.ch
> >wrote:
>
> > Alessandro Artusi wrote:
> >
> >> Der All,
> >>  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?
> >>
> >
> > vtkContourFilter does not have iterations. Are you using
> > vtkSmoothPolyDataFilter? Tests (Tcl) using this filter can be found here:
> >
> >
> >
> http://www.vtk.org/doc/nightly/html/c2_vtk_t_16.html#c2_vtk_t_vtkSmoothPolyDataFilter
> >
> > Can you send a piece of code illustrating what you are doing?
> >
> > What is the input to vtkContourFilter?
> >
> >
> >
> >  Also i would like to reduce the number of vertex in the output
> >> isosurfaces. Is there any way?
> >>
> >
> > Try vtkQuadricDecimation or vtkDecimatePro. See the examples/tests to see
> > how these can be used:
> >
> > e.g.
> >
> http://www.vtk.org/doc/nightly/html/c2_vtk_t_4.html#c2_vtk_t_vtkDecimatePro
> >
> >
> >
> >
> >
> >   Thanks,
> >> Alessandro.
> >>
> >>
> >> ------------------------------------------------------------------------
> >>
> >> _______________________________________________
> >> Powered by www.kitware.com
> >>
> >> Visit other Kitware open-source projects at
> >> http://www.kitware.com/opensource/opensource.html
> >>
> >> Please keep messages on-topic and check the VTK FAQ at:
> >> http://www.vtk.org/Wiki/VTK_FAQ
> >>
> >> Follow this link to subscribe/unsubscribe:
> >> http://www.vtk.org/mailman/listinfo/vtkusers
> >>
> >
> >
> > --
> > -------------------------------------------------
> > Bryn Lloyd
> > Computer Vision Laboratory
> > ETH Zürich, Sternwartstrasse 7, ETF C110
> > CH - 8092 Zürich, Switzerland
> > Tel: +41 44 63 26668
> > Fax: +41 44 63 21199
> > -------------------------------------------------
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091124/f35f18ce/attachment.htm>


More information about the vtkusers mailing list