<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    i used vtkSmoothPolyDataFilter like this and it works.<br>
    <br>
    &nbsp;&nbsp;&nbsp; // Lissage de la surface<br>
    &nbsp;&nbsp; vtkSmartPointer&lt; vtkSmoothPolyDataFilter&gt; smoothFilter =
    vtkSmartPointer&lt;vtkSmoothPolyDataFilter&gt;::New();<br>
    &nbsp;&nbsp;&nbsp; smoothFilter-&gt;SetInput(isor-&gt;GetOutput());<br>
    &nbsp;&nbsp;&nbsp; smoothFilter-&gt;SetNumberOfIterations(nbIteration);<br>
    &nbsp;&nbsp;&nbsp; smoothFilter-&gt;SetRelaxationFactor(relFactor);<br>
    &nbsp;&nbsp;&nbsp; smoothFilter-&gt;SetConvergence(convergence);<br>
    &nbsp;&nbsp;&nbsp; smoothFilter-&gt;BoundarySmoothingOff ();<br>
    &nbsp;&nbsp;&nbsp; smoothFilter-&gt;Update();<br>
    <br>
    <br>
    Le 06/04/2012 23:34, Darshan Pai a &eacute;crit&nbsp;:
    <blockquote
cite="mid:CAD6XMXME5hMW3dns5SWRCfxghzEAR2T5_ijyXAkxfApahEYn6g@mail.gmail.com"
      type="cite">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 moz-do-not-send="true"
            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 moz-do-not-send="true" 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>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; renderThreshold-&gt;ThresholdBetween(0, 0);<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; renderThreshold-&gt;SetInValue(0);<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; renderThreshold-&gt;SetOutValue(1);<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; renderThreshold-&gt;SetInput(ribbonsurface);<br>
          <br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; vtkSmartPointer&lt;vtkImageIslandRemoval2D&gt;
          renderIslandRemoval2D1 =
          vtkSmartPointer&lt;vtkImageIslandRemoval2D&gt;::New();<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
renderIslandRemoval2D1-&gt;SetInputConnection(renderThreshold-&gt;GetOutputPort());<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; renderIslandRemoval2D1-&gt;SetAreaThreshold(100);<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; renderIslandRemoval2D1-&gt;SetIslandValue(1);<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; renderIslandRemoval2D1-&gt;SetReplaceValue(0);<br>
          &nbsp;&nbsp;&nbsp; <br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; vtkSmartPointer&lt;vtkImageIslandRemoval2D&gt;
          renderIslandRemoval2D2 =
          vtkSmartPointer&lt;vtkImageIslandRemoval2D&gt;::New();<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
renderIslandRemoval2D2-&gt;SetInputConnection(renderIslandRemoval2D1-&gt;GetOutputPort());<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; renderIslandRemoval2D2-&gt;SetAreaThreshold(100);<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; renderIslandRemoval2D2-&gt;SetIslandValue(0);<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; renderIslandRemoval2D2-&gt;SetReplaceValue(1);<br>
          <br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; vtkSmartPointer&lt;vtkImageContinuousErode3D&gt;
          renderContinuousErode3D =
          vtkSmartPointer&lt;vtkImageContinuousErode3D&gt;::New();<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
renderContinuousErode3D-&gt;SetInputConnection(renderIslandRemoval2D2-&gt;GetOutputPort());<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; renderContinuousErode3D-&gt;SetKernelSize(3, 3, 3);<br>
          <br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; vtkSmartPointer&lt;vtkImageContinuousDilate3D&gt;
          renderContinuousDilate3D =
          vtkSmartPointer&lt;vtkImageContinuousDilate3D&gt;::New();<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
renderContinuousDilate3D-&gt;SetInputConnection(renderContinuousErode3D-&gt;GetOutputPort());<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; renderContinuousDilate3D-&gt;SetKernelSize(4, 4, 4);<br>
          <br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; vtkSmartPointer&lt;vtkContourFilter&gt;
          renderContourFilter =
          vtkSmartPointer&lt;vtkContourFilter&gt;::New();<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
renderContourFilter-&gt;SetInputConnection(renderContinuousDilate3D-&gt;GetOutputPort());<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; renderContourFilter-&gt;SetValue(0,1);<br>
          <br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; vtkSmartPointer&lt;vtkSmoothPolyDataFilter&gt;
          renderSmoothPolyDataFilter =
          vtkSmartPointer&lt;vtkSmoothPolyDataFilter&gt;::New();<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
renderSmoothPolyDataFilter-&gt;SetInputConnection(renderContourFilter-&gt;GetOutputPort());<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
          renderSmoothPolyDataFilter-&gt;SetNumberOfIterations(20);<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
          renderSmoothPolyDataFilter-&gt;SetRelaxationFactor(0.15);<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; renderSmoothPolyDataFilter-&gt;SetFeatureAngle(40);<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
          renderSmoothPolyDataFilter-&gt;FeatureEdgeSmoothingOff();<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; renderSmoothPolyDataFilter-&gt;BoundarySmoothingOff();<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; renderSmoothPolyDataFilter-&gt;SetConvergence(0);<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; renderSmoothPolyDataFilter-&gt;Update();<br>
          <br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; vtkSmartPointer&lt;vtkPolyDataMapper&gt;
          ribbonpolydata =
          vtkSmartPointer&lt;vtkPolyDataMapper&gt;::New();<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
ribbonpolydata-&gt;SetInputConnection(renderSmoothPolyDataFilter-&gt;GetOutputPort());<br>
          <br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ribbonactor = vtkSmartPointer&lt;vtkActor&gt;::New();<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the VTK FAQ at: <a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>

Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>