[vtkusers] Visualizing a vector field from a vtkImageData

David Doria daviddoria at gmail.com
Mon Sep 12 09:28:43 EDT 2011


On Mon, Sep 12, 2011 at 9:17 AM, Eric E. Monson <emonson at cs.duke.edu> wrote:
> Hey David,
>
> I just sent you a more detailed email off-list, but the problem is that you're adding 2-component Scalars to the ImageData, but then you're telling the glyph filter to use the ImageData's Vectors (which haven't been assigned). You need to add a third component to the scalars and then make a call to image->GetPointData()->SetActiveVectors("ImageScalars"); and I think it all works.
>
> -Eric

Beautiful - so easy! I'll correct the wiki example.

Thanks Eric,

David



More information about the vtkusers mailing list