Hi,<br>I feel surprised about the conversion from PolyData to UnstructuredGrid<br>posts: I didn&#39;t see them!<br><br>I have a quite fast solution, I don&#39;t know it is suitable for you:<br>just pass your polydata in a vtkThreshold, with thresholds being set<br>
to actual min and max values of any of your data array. If you don&#39;t<br>have any array, just add a vtkGenerateIndexArray before the threshold<br><br>note: you can easily check this pipeline with paraview:<br>
Sphere Source -&gt; Generate Point Ids -&gt; Threshold<br><br>HTH<br>Jerome<br><br><div class="gmail_quote">2010/3/19 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 folks!<br>
<br>
There had been several postings on conversion from vtkPolyData to<br>
vtkUnstructuredGrid in the past with no really accessible solutions<br>
except the global statement &quot;write a filter on your own&quot;.<br>
<br>
Now, I was confronted with doing quite the same conversion and found a<br>
rather quick solution doing some 3D delaunization. Although this is not<br>
yet stable in all situations there are, &quot;normal&quot; input as I had been<br>
confronted with up to know, worked well.<br>
<br>
Maybe you have suggestions for improvement or other approaches to this<br>
problem. So far, please find attached the source files, maybe you&#39;ll<br>
want to add them to the vtk codebase (which would make me a little proud :)<br>
<br>
<br>
Best regards,<br>
<font color="#888888">Oliver<br>
</font><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>