Hello, <div><br></div><div>Is there a good way of deleting scalars from a polydata?</div><div><br></div><div><br></div><div>My problem is that I am iterating over the cells of a polydata, and in each iteration I want to use a different set of scalars.</div>

<div>So, in each iterarion I do :</div><div><br></div><div><div>   surface-&gt;GetCellData()-&gt;SetScalars(myScalarArray);</div><div><br></div><div>But I think I have to delete the scalars of the previous iteration, so I have only the last array of scalars.</div>

<div><br></div><div><br></div><div><br></div><div>Another point of view of the question would be :</div><div>doing</div><div><br></div><div>   surface-&gt;GetCellData()-&gt;SetScalars(array1);</div><div>   surface-&gt;GetCellData()-&gt;SetScalars(array2);</div>

<div><br></div><div>is the same as only</div><div><br></div><div>   surface-&gt;GetCellData()-&gt;SetScalars(array2); ?</div><div><br></div><div>or the result of the first case would lead to have the scalars in &quot;array1&quot; plus the scalars in &quot;array2&quot; and not only the scalars in &quot;array2&quot;.</div>

<div><br></div><div>Thank you.!</div><div><br></div>-- <br>--------<br>Gonzalo Amadio<br><br>
</div>