<div>Hi, </div>
<div>&nbsp;</div>
<div>I am kinda new to VTK. Could anybody give me a hint how to smooth a vtkPolyData object (3D). I searched around and found that vtkSmoothPolyDataFilter might be able to do the trick. But I am not sure how to use it. What I am having is a vtkPolyData object which is too spiky and I want to smooth it. It could be very simple to do it but I do need help.&nbsp; I have the following code:
</div>
<div><br>&nbsp;vtkSmoothPolyDataFilter* smooth = vtkSmoothPolyDataFilter::New();<br>&nbsp;smooth-&gt;SetInput(&nbsp; ?????&nbsp; -&gt;GetOutput());&nbsp; // what to&nbsp;replace with ?????&nbsp; is it my vtkPolyData object?<br>&nbsp;smooth-&gt;SetNumberOfIterations(10);
<br>&nbsp;smooth-&gt;SetRelaxationFactor(0.5);<br>&nbsp;smooth-&gt;Update();</div>
<div><br>&nbsp;vtkPolyData* smoothedPoly = smooth-&gt;GetOutput();<br>&nbsp;......</div>
<div>&nbsp;</div>
<div>TIA,</div><span class="sg">
<div>Ming</div></span>