[vtkusers] Compute vorticity from imagedata

David Gobbi david.gobbi at gmail.com
Wed Jun 10 18:42:26 EDT 2015

Hi Stephen,

You can also associate your array with a particular data set attribute like




These can be used instead of the AddArray() method.

 - David

On Wed, Jun 10, 2015 at 4:24 PM, Stephen Hamilton <
stephenshamilton at gmail.com> wrote:

> I just figured out the missing line to make the vorticity work.  In order
> for the arrays to appear on the filter, you have to define the input array
> on the imagedata filter as a vector set, which makes sense.
> I guess Murphy was waiting for me to send the previous message to the list
> to reveal that solution...
> Adding this line to the code made everything work:
> image.GetPointData().SetActiveVectors("Data")
> Stephen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150610/10e81bb0/attachment.html>

More information about the vtkusers mailing list