[vtkusers] New filter class: vtkPolyDataToUnstructuredGridFilter

David Doria daviddoria+vtk at gmail.com
Sun Mar 21 08:18:36 EDT 2010


On Sun, Mar 21, 2010 at 6:47 AM, Jérôme <jerome.velut at gmail.com> wrote:

> Hi,
> I feel surprised about the conversion from PolyData to UnstructuredGrid
> posts: I didn't see them!
>
> I have a quite fast solution, I don't know it is suitable for you:
> just pass your polydata in a vtkThreshold, with thresholds being set
> to actual min and max values of any of your data array. If you don't
> have any array, just add a vtkGenerateIndexArray before the threshold
>
> note: you can easily check this pipeline with paraview:
> Sphere Source -> Generate Point Ids -> Threshold
>
> HTH
> Jerome
>
>
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?

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100321/c6bc57cf/attachment.htm>


More information about the vtkusers mailing list