<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"Préformaté HTML Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Texte de bulles Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.PrformatHTMLCar
        {mso-style-name:"Préformaté HTML Car";
        mso-style-priority:99;
        mso-style-link:"Préformaté HTML";
        font-family:Consolas;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.TextedebullesCar
        {mso-style-name:"Texte de bulles Car";
        mso-style-priority:99;
        mso-style-link:"Texte de bulles";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FR" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Hi, I have the same problem,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">I want to smooth isolines extracted from vtkMarchingContourFilter (with the help of vtkImageReslice before) but vtkSmoothPolyDataFilter don&#8217;t work&#8230; (or I missuse
 it).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">The goal is to avoid this display effect&nbsp;:
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><img width="671" height="383" id="Image_x0020_1" src="cid:image001.png@01CD22C7.E4329950"></span><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Anyone has an idea of how to use a smooth filter on an isoline&nbsp;?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:navy">Vincent LEFORT</span></b><b><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:navy"><o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">De&nbsp;:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> vtkusers-bounces@vtk.org [mailto:vtkusers-bounces@vtk.org]
<b>De la part de</b> Darshan Pai<br>
<b>Envoyé&nbsp;:</b> mardi 10 avril 2012 21:18<br>
<b>À&nbsp;:</b> pj gouttenoire<br>
<b>Cc&nbsp;:</b> vtkusers@vtk.org<br>
<b>Objet&nbsp;:</b> Re: [vtkusers] Fwd: Problem with vtksmoothPolyDataFilter<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Even with your setup it does not work .&nbsp;<o:p></o:p></p>
<div>
<p class="MsoNormal">On Tue, Apr 10, 2012 at 4:27 AM, pj gouttenoire &lt;<a href="mailto:goutteno@esrf.fr">goutteno@esrf.fr</a>&gt; wrote:<o:p></o:p></p>
<div>
<p class="MsoNormal">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 écrit&nbsp;: <o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I still could not find debug this problem , pushing it up once again .
<o:p></o:p></p>
<div>
<p class="MsoNormal">---------- Forwarded message ----------<br>
From: <b>Darshan Pai</b> &lt;<a href="mailto:darshanpai@gmail.com" target="_blank">darshanpai@gmail.com</a>&gt;<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; <o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">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 style="color:#888888"><br>
Darshan<br>
<br>
</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
<br>
<o:p></o:p></p>
</div>
</div>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>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><o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>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><o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>Follow this link to subscribe/unsubscribe:<o:p></o:p></pre>
<pre><a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><o:p></o:p></pre>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><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><o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>