Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Smoothing poly data in VTK

Tags:

vtk

I have a poly data that looks like this:

enter image description here

What I want to obtain is something that would be smoother, something like this (edited in paint for demonstration purpose):

enter image description here

So far I've tried the following filters:

  • vtkWindowedSincPolyDataFilter
  • vtkSmoothPolyDataFilter

However, the closest I got was with the first one, with a result like this:

enter image description here

Is there any filter or strategy in VTK that would allow me to reach something really close to the second picture?

Thanks in advance.

like image 667
MrPedru22 Avatar asked Oct 26 '25 09:10

MrPedru22


1 Answers

I suggest you play with the convergence and iterations parameter of vtkSmoothPolyDataFilter to achieve the optimal result for a single application of that filter. If this is not satisfying, why don't you go ahead and apply it multiple times, one after the other? This is what I would do if I had this problem at my hands.

like image 128
jhoepken Avatar answered Oct 29 '25 05:10

jhoepken



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!