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->GetCellData()->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->GetCellData()->SetScalars(array1);</div><div> surface->GetCellData()->SetScalars(array2);</div>
<div><br></div><div>is the same as only</div><div><br></div><div> surface->GetCellData()->SetScalars(array2); ?</div><div><br></div><div>or the result of the first case would lead to have the scalars in "array1" plus the scalars in "array2" and not only the scalars in "array2".</div>
<div><br></div><div>Thank you.!</div><div><br></div>-- <br>--------<br>Gonzalo Amadio<br><br>
</div>