[Paraview] vtk internals: vtkUnstructuredGrid versus vtkPolyData and vtkImageData

Dan Lussier dtlussier at gmail.com
Sun Nov 28 16:54:48 EST 2010


Ok - thanks. I'll give that a try.

If anybody can shed light on how XDMF topology types map onto VTK data types
within Paraview that would be great too.

Dan

On Sun, Nov 28, 2010 at 3:08 PM, David Doria <daviddoria at gmail.com> wrote:

> On Sun, Nov 28, 2010 at 3:51 PM, Dan Lussier <dtlussier at gmail.com> wrote:
> > I had a question about the nature of the underlying VTK data.
> > In my work I am often visualizing particle data, which I currently have
> in
> > XMDF files with Polyvertex topology.  When I load the files into PV, the
> > data ends up being represented by a vtkUnstructuredGrid.  What is the
> > difference between vtkUnstructuredGrid versus vtkPolyData?  I know that
> both
> > inherit from abstract vtkPointSet so they are generally fairly
> > interchangeable as most filters appear to require only a vtkPointSet.
>  Are
> > there any filters that would take one but not the other?
>
> vtkUnstructuredGrid allows you to have 3D (volumetric) cells, where
> vtkPolyData only allow a maximum of 2D (polygonal) cells.
>
> http://www.vtk.org/Wiki/VTK/Tutorials/3DDataTypes
>
> > Some filters I am looking to use want a vtkPointSet input, but I have
> > vtkImageData (via XMDF 3DCoRectMesh topology).  What would be the best
> way
> > to make the conversion in Paraview?
> > Many thanks.
> > Dan Lussier
>
> vtkImageDataGeometryFilter does this, but I don't see an interface for it
> in PV.
>
> Here is an example of how to use it:
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/ImageData/ImageDataGeometryFilter
>
> and here is how to make an existing VTK filter accessible in ParaView:
> http://www.vtk.org/Wiki/Plugin_HowTo#Enabling_an_existing_VTK_filter
>
> Good luck,
>
> David
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20101128/e73f39ee/attachment-0001.htm>


More information about the ParaView mailing list