I still could not find debug this problem , pushing it up once again . <br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Darshan Pai</b> <span dir="ltr">&lt;<a href="mailto:darshanpai@gmail.com">darshanpai@gmail.com</a>&gt;</span><br>
Date: Fri, Mar 2, 2012 at 2:03 AM<br>Subject: Problem with vtksmoothPolyDataFilter<br>To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br><br><br>Hello All,<br><br>I have been moving some of my old projects which are on VTK4.4 onto the new VTK nightly build . <br>
Following is the code I am using <br><br>vtkSmartPointer&lt;<div>vtkImageThreshold&gt; renderThreshold = vtkSmartPointer&lt;vtkImageThreshold&gt;::New();<br>

        renderThreshold-&gt;ThresholdBetween(0, 0);<br>        renderThreshold-&gt;SetInValue(0);<br>        renderThreshold-&gt;SetOutValue(1);<br>        renderThreshold-&gt;SetInput(ribbonsurface);<br><br>        vtkSmartPointer&lt;vtkImageIslandRemoval2D&gt; renderIslandRemoval2D1 = vtkSmartPointer&lt;vtkImageIslandRemoval2D&gt;::New();<br>


        renderIslandRemoval2D1-&gt;SetInputConnection(renderThreshold-&gt;GetOutputPort());<br>        renderIslandRemoval2D1-&gt;SetAreaThreshold(100);<br>        renderIslandRemoval2D1-&gt;SetIslandValue(1);<br>        renderIslandRemoval2D1-&gt;SetReplaceValue(0);<br>


    <br>        vtkSmartPointer&lt;vtkImageIslandRemoval2D&gt; renderIslandRemoval2D2 = vtkSmartPointer&lt;vtkImageIslandRemoval2D&gt;::New();<br>        renderIslandRemoval2D2-&gt;SetInputConnection(renderIslandRemoval2D1-&gt;GetOutputPort());<br>


        renderIslandRemoval2D2-&gt;SetAreaThreshold(100);<br>        renderIslandRemoval2D2-&gt;SetIslandValue(0);<br>        renderIslandRemoval2D2-&gt;SetReplaceValue(1);<br><br>        vtkSmartPointer&lt;vtkImageContinuousErode3D&gt; renderContinuousErode3D = vtkSmartPointer&lt;vtkImageContinuousErode3D&gt;::New();<br>


        renderContinuousErode3D-&gt;SetInputConnection(renderIslandRemoval2D2-&gt;GetOutputPort());<br>        renderContinuousErode3D-&gt;SetKernelSize(3, 3, 3);<br><br>        vtkSmartPointer&lt;vtkImageContinuousDilate3D&gt; renderContinuousDilate3D = vtkSmartPointer&lt;vtkImageContinuousDilate3D&gt;::New();<br>


        renderContinuousDilate3D-&gt;SetInputConnection(renderContinuousErode3D-&gt;GetOutputPort());<br>        renderContinuousDilate3D-&gt;SetKernelSize(4, 4, 4);<br><br>        vtkSmartPointer&lt;vtkContourFilter&gt; renderContourFilter = vtkSmartPointer&lt;vtkContourFilter&gt;::New();<br>


        renderContourFilter-&gt;SetInputConnection(renderContinuousDilate3D-&gt;GetOutputPort());<br>        renderContourFilter-&gt;SetValue(0,1);<br><br>        vtkSmartPointer&lt;vtkSmoothPolyDataFilter&gt; renderSmoothPolyDataFilter = vtkSmartPointer&lt;vtkSmoothPolyDataFilter&gt;::New();<br>


        renderSmoothPolyDataFilter-&gt;SetInputConnection(renderContourFilter-&gt;GetOutputPort());<br>        renderSmoothPolyDataFilter-&gt;SetNumberOfIterations(20);<br>        renderSmoothPolyDataFilter-&gt;SetRelaxationFactor(0.15);<br>


        renderSmoothPolyDataFilter-&gt;SetFeatureAngle(40);<br>        renderSmoothPolyDataFilter-&gt;FeatureEdgeSmoothingOff();<br>        renderSmoothPolyDataFilter-&gt;BoundarySmoothingOff();<br>        renderSmoothPolyDataFilter-&gt;SetConvergence(0);<br>


        renderSmoothPolyDataFilter-&gt;Update();<br><br>        vtkSmartPointer&lt;vtkPolyDataMapper&gt; ribbonpolydata = vtkSmartPointer&lt;vtkPolyDataMapper&gt;::New();<br>        ribbonpolydata-&gt;SetInputConnection(renderSmoothPolyDataFilter-&gt;GetOutputPort());<br>


<br>        ribbonactor = vtkSmartPointer&lt;vtkActor&gt;::New();<br>        ribbonactor-&gt;SetMapper(ribbonpolydata);<br><br>I have attached the output . It looks as if everything up until the rendercontourFilter generates the exact same output in VTK 4.4 and the current VTK<br>

<br>But when I introduce the vtkSmoothPolyDataFilter , the output does not change . There is no smoothing on the polydata . <br><br>I cannot seem to pinpoint the problem . Hope someone can help<br><br>Regards<span class="HOEnZb"><font color="#888888"><br>
Darshan<br>
<br><br></font></span></div>
</div><br>