<div>Don&#39;t take care about this message. I was mistaken somewhere else....<br><br></div>
<div class="gmail_quote">Le 24 février 2011 17:39, Aurélien Marsan <span dir="ltr">&lt;<a href="mailto:aur.marsan@gmail.com">aur.marsan@gmail.com</a>&gt;</span> a écrit :<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>Hi all, </div>
<div> </div>
<div>I perform several calculations using the vtkArrayCalculator, with PYTHON. </div>
<div>And I noticed that most of the time is spent when I want to add the resulting array to the initial data set.</div>
<div> </div>
<div>I mean : when calling </div>
<blockquote style="MARGIN-RIGHT: 0px" dir="ltr">
<div>InitialDataSet.AddArray( arrayCalculator.GetOutput().GetPointData().GetArray( resultArray ))</div></blockquote>
<div dir="ltr">method of vtkFieldData, the entire resultArray is duplicated... And then it takes around 15 seconds more... </div>
<div dir="ltr"> </div>
<div dir="ltr"> </div>
<div dir="ltr">Is there a way to add an array to an existing field data, without duplicating ? </div>
<div dir="ltr"> </div>
<div dir="ltr">Thanks for help, </div>
<div dir="ltr"> </div>
<div dir="ltr"> </div>
<div dir="ltr"> </div>
<div dir="ltr">A.Marsan</div></blockquote></div><br>