<div class="gmail_quote">On Sun, Mar 21, 2010 at 6:47 AM, Jérôme <span dir="ltr">&lt;<a href="mailto:jerome.velut@gmail.com">jerome.velut@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
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></blockquote><div><br></div><div>It is always annoying when you have to use a filter for a non-intended use. Maybe we should wrap this vtkThreshold method of converting polydata to unstructuredgrid in a filter for this purpose like Oliver suggested? </div>
<br clear="all">Thanks,<br><br><div>David</div></div>