[vtkusers] Unstructured grid to structured grid?

Chris Marsh chris.marsh at usask.ca
Mon Sep 15 18:23:13 EDT 2014


Thanks David, this looks perfect.


On Mon, Sep 15, 2014 at 4:10 PM, David Gobbi <david.gobbi at gmail.com> wrote:

> Hi Chris,
>
> This sounds like a job for vtkProbeFilter.  The probe filter takes two
> inputs,
> the "input" and the "source".  The idea is that it resamples the scalars
> from
> the "source" onto the geometry of the "input".  So, in this case, the
> "source"
> is your unstructured grid, and the "input" is any vtkImageData that has the
> origin, spacing, and extent that you want to use for the regridding.  The
> output of vtkProbeFilter will be an image that has the same geometry as
> the input, but that has pixel values that have been interpolated from your
> unstructured grid.  You should be able to find several examples on the
> wiki.
>
>  - David
>
>
> On Mon, Sep 15, 2014 at 3:59 PM, chrism <chris.marsh at usask.ca> wrote:
> > Is it possible to (easily) convert an unstructured grid to a structured
> grid
> > (Image data)?
> >
> > Is unstructured -> polydata -> image data  the only way? If so, how
> example
> > (http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/DataSetSurfaceFilter
> ??)
> >
> > Ultimately, the unstructured grid represents a topography, and I am
> looking
> > to 'rasterize' it for use in a GIS.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140915/7e433b1f/attachment.html>


More information about the vtkusers mailing list