[vtkusers] converting vtkImageData to vtkUnstructuredGrid

David E DeMarle dave.demarle at kitware.com
Tue Feb 8 19:05:30 EST 2011


One way is to apply the threshold filter and set the threshold so that
it includes the entire scalar range.

David E DeMarle
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109



On Tue, Feb 8, 2011 at 7:02 PM, Liam Kurmos <quantum.leaf at gmail.com> wrote:
> I have a scalar field stored as vtkImageData.
>
> I want to use the new vtkReebGraph object, but to build a reeb graph
> we need a vtkUnstructuredGrid and a vtkDataArray.
> I assume I get the vtkDataArray as the scalars used by my
> vtkImageData, but how do I create a vtkUnstructuredGrid that
> represents my volume?
>
> I imagine this is straightforward to a vtk expert but is not obvious to me.
>
> Liam
> _______________________________________________
> Powered by 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
>



More information about the vtkusers mailing list