[vtkusers] New filter class: vtkPolyDataToUnstructuredGridFilter

Oliver Rudolph oliver.rudolph at iisb.fraunhofer.de
Mon Mar 22 06:47:35 EDT 2010


Hi Jerome,

Well, the vtkusers post I found on this topic was from Oct 9, 2008
(Dominik Szczerba, convert polydata to unstructured grid)

But there had been some hits in other forums...

I'll have a look at the vtkThreshold hint of yours!

(It seems my solution only works on a certain class of input, i.e.
convex surfaces. Any more complex structures won't be delaunized
correctly... (or at least I did not succeed in pushing the right switches)).

Yours,
Oliver


Jérôme 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
> 
> 2010/3/19 Oliver Rudolph <oliver.rudolph at iisb.fraunhofer.de
> <mailto:oliver.rudolph at iisb.fraunhofer.de>>
> 
>     Hi folks!
> 
>     There had been several postings on conversion from vtkPolyData to
>     vtkUnstructuredGrid in the past with no really accessible solutions
>     except the global statement "write a filter on your own".
> 
>     Now, I was confronted with doing quite the same conversion and found a
>     rather quick solution doing some 3D delaunization. Although this is not
>     yet stable in all situations there are, "normal" input as I had been
>     confronted with up to know, worked well.
> 
>     Maybe you have suggestions for improvement or other approaches to this
>     problem. So far, please find attached the source files, maybe you'll
>     want to add them to the vtk codebase (which would make me a little
>     proud :)
> 
> 
>     Best regards,
>     Oliver
> 
>     _______________________________________________
>     Powered by www.kitware.com <http://www.kitware.com>
> 
>     Visit other Kitware open-source projects at
>     http://www.kitware.com/opensource/opensource.html
> 
>     Please keep messages on-topic and check the VTK FAQ at:
>     http://www.vtk.org/Wiki/VTK_FAQ
> 
>     Follow this link to subscribe/unsubscribe:
>     http://www.vtk.org/mailman/listinfo/vtkusers
> 
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: oliver_rudolph.vcf
Type: text/x-vcard
Size: 365 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100322/629e06bb/attachment.vcf>


More information about the vtkusers mailing list