[vtkusers] Help about the AddArray method of FieldData

Aurélien Marsan aur.marsan at gmail.com
Thu Feb 24 12:37:36 EST 2011


Don't take care about this message. I was mistaken somewhere else....

Le 24 février 2011 17:39, Aurélien Marsan <aur.marsan at gmail.com> a écrit :

> Hi all,
>
> I perform several calculations using the vtkArrayCalculator, with PYTHON.
> And I noticed that most of the time is spent when I want to add the
> resulting array to the initial data set.
>
> I mean : when calling
>
> InitialDataSet.AddArray(
> arrayCalculator.GetOutput().GetPointData().GetArray( resultArray ))
>
> method of vtkFieldData, the entire resultArray is duplicated... And then it
> takes around 15 seconds more...
>
>
> Is there a way to add an array to an existing field data, without
> duplicating ?
>
> Thanks for help,
>
>
>
> A.Marsan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110224/1529bfc0/attachment.htm>


More information about the vtkusers mailing list