[vtkusers] Convert Unstructured Grid to Structured Points
David Doria
daviddoria+vtk at gmail.com
Tue Apr 13 09:32:42 EDT 2010
2010/4/13 Álvaro González Lorente <sapito_verbenero at hotmail.com>:
> Hello,
>
> I am new to VTK, and I was hoping someone could help me out with my problem.
>
> I am trying to convert an unstructured grid into an structured points vtk
> format, so I was wondering which option would be the wisest. I have read
> about the vtkGenericProbeFilter and vtkImageDataGeometryFilter, but I still
> dont know how to make them work.
>
> What I have so far is my unstructured grid:
>
> reader = vtk.vtkUnstructuredGridReader()
> reader.SetFileName("file")
> reader.Update()
>
> unsgrid = reader.GetOutput()
>
> How should I proceed now?
>
> Thanks in advance!
Here is an example of how to use the vtkProbeFilter:
http://www.vtk.org/Wiki/VTK/Examples/InterpolateTerrain
Thanks,
David
More information about the vtkusers
mailing list