<div>Thank you both.</div>
<div>I&#39;ll try out your suggestions.</div>
<div>By far, i tried the following pipeline:</div>
<div>1) UnstructuredGrid</div>
<div>2) vtkShrinkFilter (so i can see the hexahedrons)</div>
<div><font size="3"><font size="2">3) vtkDataSetSurfaceFilter (!)</font></font></div>
<div><font size="3"><font size="2">4) vtkSmoothPolyDataFilter</font></font></div>
<div> </div>
<div>I get what i want. I&#39;m not really sure if ALL hexahedrons are smoothed (and not only the outer ones).</div>
<div>What do you think?</div>
<div> </div>
<div>Thanks,</div>
<div>Bill</div>
<div><font size="3"><font size="2"><font size="3"></font></font></font> </div>
<div><font size="3"><font size="2"><font size="3"> </font></font></font></div>
<div><br><br></div>
<div class="gmail_quote">2009/12/11 David Gobbi <span dir="ltr">&lt;<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>&gt;</span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hmm... if GeometryFilter keeps all the points, then it&#39;s possible that<br>you could generate a new vtkDataSet that combines the points from the<br>
smoothed polydata with the cells of your grid.  Something like this:<br><br>smoothFilter-&gt;Update();<br>gridProducer-&gt;Update();<br>vtkDataSet *newdata = vtkDataSet::New();<br>newdata-&gt;DeepCopy(gridProducer-&gt;GetOutput());<br>
newdata-&gt;SetPoints(smoothFilter-&gt;GetOutput()-&gt;GetPoints());<br><br>Note that code like this can crash if the assumptions aren&#39;t correct.<br>Also, only the outer layer of points will be smoothed, so the<br>resulting data object might contain invalid cells.  But still, this<br>
should give you ideas about how to find a proper solution.<br><font color="#888888"><br>   David<br></font>
<div>
<div></div>
<div class="h5"><br><br>On Fri, Dec 11, 2009 at 8:40 AM, Bill Chivas &lt;<a href="mailto:noo134@googlemail.com">noo134@googlemail.com</a>&gt; wrote:<br>&gt; vtkGeometryFilter works fine. I wonder if i could get back to<br>
&gt; unstructuredGrid and hexahedrons by using the points.<br>&gt; I noticed that the number of points are the same in unstructuredGrid and<br>&gt; vtkGeometryFilter (vtkPolyData).<br>&gt; Could i &quot;reproduce&quot; the original hexahedron topology?<br>
&gt;<br>&gt; Thanks,<br>&gt; Bill<br>&gt;<br>&gt; 2009/12/11 David Gobbi &lt;<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>&gt;<br>&gt;&gt;<br>&gt;&gt; On Fri, Dec 11, 2009 at 7:11 AM, Bill Chivas &lt;<a href="mailto:noo134@googlemail.com">noo134@googlemail.com</a>&gt;<br>
&gt;&gt; wrote:<br>&gt;&gt; &gt; Hello all,<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; I would like to use vtkSmoothPolyDataFilter  on an unstructuredGrid, but<br>&gt;&gt; &gt; i<br>&gt;&gt; &gt; read the particular filter applies only to vtkPolyData.<br>
&gt;&gt; &gt; My unstructuredGrid consists of hexahedrons.<br>&gt;&gt; &gt; How could i use the filter?<br>&gt;&gt; &gt; One idea i thought is to extract the surface iterately and apply to<br>&gt;&gt; &gt; these<br>&gt;&gt; &gt; surfaces, but i don&#39;t know if it&#39;s ok.<br>
&gt;&gt;<br>&gt;&gt; I&#39;ve seen some people create a &quot;skin&quot; polydata with vtkGeometryFilter,<br>&gt;&gt; apply the smoothing to the &quot;skin&quot; and then use a custom filter to<br>&gt;&gt; propagate the smoothing throughout the interior of their mesh.  The<br>
&gt;&gt; vtkGeometryFilter is a basic anything-to-polydata filter, so it is<br>&gt;&gt; easy to use.  The final step of using the smoothed polydata to create<br>&gt;&gt; a smoothed mesh is nontrivial, though.<br>&gt;&gt;<br>
&gt;&gt;    David<br>&gt;<br>&gt;<br></div></div></blockquote></div><br>