Even with your setup it does not work . <br><br><div class="gmail_quote">On Tue, Apr 10, 2012 at 4:27 AM, pj gouttenoire <span dir="ltr">&lt;<a href="mailto:goutteno@esrf.fr">goutteno@esrf.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    i used vtkSmoothPolyDataFilter like this and it works.<br>
    <br>
        // Lissage de la surface<br>
       vtkSmartPointer&lt; vtkSmoothPolyDataFilter&gt; smoothFilter =
    vtkSmartPointer&lt;vtkSmoothPolyDataFilter&gt;::New();<br>
        smoothFilter-&gt;SetInput(isor-&gt;GetOutput());<br>
        smoothFilter-&gt;SetNumberOfIterations(nbIteration);<br>
        smoothFilter-&gt;SetRelaxationFactor(relFactor);<br>
        smoothFilter-&gt;SetConvergence(convergence);<br>
        smoothFilter-&gt;BoundarySmoothingOff ();<br>
        smoothFilter-&gt;Update();<br>
    <br>
    <br>
    Le 06/04/2012 23:34, Darshan Pai a écrit :
    <blockquote type="cite"><div><div class="h5">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" target="_blank">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" target="_blank">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><font color="#888888"><br>
              Darshan<br>
              <br>
              <br>
            </font></span></div>
      </div>
      <br>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a>

Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a>

Follow this link to subscribe/unsubscribe:
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a>
</pre>
    </blockquote>
    <br>
  </div>

<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>