<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 &lt;0 set its color&nbsp;to 'red', else&nbsp;to 'black'</DIV>
<DIV>I did this:</DIV>
<DIV>vtkIdType nPoints = myArray-&gt;GetNumberOfComponents();<BR>double curveValue;<BR>for (vtkIdType i=1; i&lt;=nPoints; i++)<BR>{</DIV>
<DIV>&nbsp;&nbsp;curveValue = myArray-&gt;GetValue(i);<BR>&nbsp;&nbsp;if (curveValue&lt;0)&nbsp;<BR>&nbsp;&nbsp;&nbsp;//Set the color to 'red'<BR>&nbsp;&nbsp;else&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;//Set the color to 'blue'<BR>&nbsp;}</DIV>
<DIV>&nbsp;</DIV>
<DIV>Can someone help me to fichish the missing code?</DIV>
<DIV>Thank you for your help</DIV></td></tr></table><br>