[vtkusers] Help about the AddArray method of FieldData

Aurélien Marsan aur.marsan at gmail.com
Thu Feb 24 11:39:29 EST 2011


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/d3e70a79/attachment.htm>


More information about the vtkusers mailing list