[vtk-developers] vtkContourFilter with vtkUnstructuredGrid

David Cole david.cole at kitware.com
Thu Oct 30 10:41:08 EDT 2008


The vtkContourFilter requires point data as input rather than cell data. You
can run the grid through a vtkCellDataToPointData filter before using the
vtkContourFilter if you have point data attached to your grid.

HTH,
David

On Wed, Oct 29, 2008 at 5:14 PM, Okoba Salada <c674332 at web.de> wrote:

> Hello,
>
> I have got a file containing a vtkUnstructuredGrid with many cubes and want
> to put a surface over all of them, making them seem to create one large
> object.
> I found vtkContourFilter and vtkMarchingCubes seeming perfectly suitable
> for this matter. But I did not manage to apply either so far.
> Since both seem to be fine let me stick to vtkContourFilter. Whenever I use
> it on my unstructured grid the output was empty. I'm not really sure how to
> chose the isovalue, why is there only one value for three dimensions? Still
> I believe this is not the only obstacle, since I tried many isovalues. Does
> it work with unstructured grids or do I have to convert it to poly or image
> data? It made no difference when I converted it to poly data using the
> vtkDataSetSurfaceFilter.
>
> Would be thankful for any advice.
>
> Okoba
> _________________________________________________________________________
> In 5 Schritten zur eigenen Homepage. Jetzt Domain sichern und gestalten!
> Nur 3,99 EUR/Monat! http://www.maildomain.web.de/?mc=021114
>
> _______________________________________________
> vtk-developers mailing list
> vtk-developers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20081030/7210132e/attachment.html>


More information about the vtk-developers mailing list