<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hi everyone.</DIV>
<DIV>I have a polydata. I computed its maximum curvatures and stored the values in an array.</DIV>
<DIV>Now, i want to do this: </DIV>
<DIV>for each value in the array, if it's <0 set its color to 'red', else to 'black'</DIV>
<DIV>I did this:</DIV>
<DIV>vtkIdType nPoints = myArray->GetNumberOfComponents();<BR>double curveValue;<BR>for (vtkIdType i=1; i<=nPoints; i++)<BR>{</DIV>
<DIV> curveValue = myArray->GetValue(i);<BR> if (curveValue<0) <BR> //Set the color to 'red'<BR> else </DIV>
<DIV> //Set the color to 'blue'<BR> }</DIV>
<DIV> </DIV>
<DIV>Can someone help me to fichish the missing code?</DIV>
<DIV>Thank you for your help</DIV></td></tr></table><br>