Hi Oliver,<br><br>when I use vtkThreshold on an vtkImageData, I get a fulfilled unstructured grid,<br>I mean, 3D grid. You can easily check this by cutting your object along a plane:<br>if the result is a 1D curve, then your object is 2D, ie a surface. In my case,<br>
when I cut a thresholded binary sphere along a plane, I get a fulfilled ellipse. It means<br>that my thresholded binary sphere is 3D (well, quickly speaking).<br><br>However, I don&#39;t know if the retained cells are only the hulls of polyhedra or the<br>
polyhedra themselves. It could be your question, but I don&#39;t have the answer !<br><br>Best regards,<br>Jerome<br><br><br><div class="gmail_quote">2010/3/22 Oliver Rudolph <span dir="ltr">&lt;<a href="mailto:oliver.rudolph@iisb.fraunhofer.de">oliver.rudolph@iisb.fraunhofer.de</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Jérôme,<br>
<br>
okay, from what I&#39;ve read about vtkThreshold (did not try it yet), this<br>
would give me an unstructured grid but with the surface cells only, right?<br>
<br>
But what I would really need (as posted a couple of minutes earlier) is<br>
the surface filled with tetrahedra...<br>
<br>
Yours,<br>
Oliver<br>
<div class="im"><br>
<br>
<br>
Jérôme wrote:<br>
&gt; Hi,<br>
&gt; I feel surprised about the conversion from PolyData to UnstructuredGrid<br>
&gt; posts: I didn&#39;t see them!<br>
&gt;<br>
&gt; I have a quite fast solution, I don&#39;t know it is suitable for you:<br>
&gt; just pass your polydata in a vtkThreshold, with thresholds being set<br>
&gt; to actual min and max values of any of your data array. If you don&#39;t<br>
&gt; have any array, just add a vtkGenerateIndexArray before the threshold<br>
&gt;<br>
&gt; note: you can easily check this pipeline with paraview:<br>
&gt; Sphere Source -&gt; Generate Point Ids -&gt; Threshold<br>
&gt;<br>
&gt; HTH<br>
&gt; Jerome<br>
&gt;<br>
&gt; 2010/3/19 Oliver Rudolph &lt;<a href="mailto:oliver.rudolph@iisb.fraunhofer.de">oliver.rudolph@iisb.fraunhofer.de</a><br>
</div>&gt; &lt;mailto:<a href="mailto:oliver.rudolph@iisb.fraunhofer.de">oliver.rudolph@iisb.fraunhofer.de</a>&gt;&gt;<br>
<div class="im">&gt;<br>
&gt;     Hi folks!<br>
&gt;<br>
&gt;     There had been several postings on conversion from vtkPolyData to<br>
&gt;     vtkUnstructuredGrid in the past with no really accessible solutions<br>
&gt;     except the global statement &quot;write a filter on your own&quot;.<br>
&gt;<br>
&gt;     Now, I was confronted with doing quite the same conversion and found a<br>
&gt;     rather quick solution doing some 3D delaunization. Although this is not<br>
&gt;     yet stable in all situations there are, &quot;normal&quot; input as I had been<br>
&gt;     confronted with up to know, worked well.<br>
&gt;<br>
&gt;     Maybe you have suggestions for improvement or other approaches to this<br>
&gt;     problem. So far, please find attached the source files, maybe you&#39;ll<br>
&gt;     want to add them to the vtk codebase (which would make me a little<br>
&gt;     proud :)<br>
&gt;<br>
&gt;<br>
&gt;     Best regards,<br>
&gt;     Oliver<br>
&gt;<br>
&gt;     _______________________________________________<br>
</div>&gt;     Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a> &lt;<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>&gt;<br>
<div><div></div><div class="h5">&gt;<br>
&gt;     Visit other Kitware open-source projects at<br>
&gt;     <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt;     Please keep messages on-topic and check the VTK FAQ at:<br>
&gt;     <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;<br>
&gt;     Follow this link to subscribe/unsubscribe:<br>
&gt;     <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br>