[vtkusers] Smoothing isosurfaces

Alessandro Artusi artusialessandro4 at googlemail.com
Thu Nov 12 10:01:59 EST 2009


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/20091112/e907fbf0/attachment.htm>


More information about the vtkusers mailing list