<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hi everyone,</DIV>
<DIV>Please, i need help.</DIV>
<DIV>I have a polydata, i used vtkCurvatures to compute the maximum curavtures. I did this:</DIV>
<DIV><EM>vtkCurvatures *curve = vtkCurvatures::New();<BR>curve-&gt;SetInput(myPolyData);<BR>curve-&gt;SetCurvatureTypeToMaximum();<BR>&nbsp;<BR>vtkPolyData *newPolyData = vtkPolyData::New();<BR>newPolyData&nbsp;= curve-&gt;GetOutput();</EM></DIV>
<DIV>&nbsp;</DIV>
<DIV>Then, i used a double aray to store the values of the curvatures and i did this:</DIV>
<DIV><EM>vtkDoubleArray *myArray = vtkDoubleArray::SafeDownCast(objetRes-&gt;GetPoints());</EM></DIV>
<DIV>&nbsp;</DIV>
<DIV>To access to the curves values stored in the array, i used this:</DIV>
<DIV><EM>double curveValue;</EM></DIV>
<DIV><EM>vtkIdType nPoints = myArray-&gt;GetNumberOfTuples();<BR>for (vtkIdType i=0; i&lt;nPoints; i++)<BR>curveValue = myArray-&gt;GetValue(i);</EM></DIV>
<DIV>&nbsp;</DIV>
<DIV>Can you tell me if what i did is right?</DIV>
<DIV>- 'newPolyData' is it 'myPolyData' with maximum curvatures?</DIV>
<DIV>- What the array 'myArray' really contanis?</DIV>
<DIV>- To access to the curev values, is is right to use the finction 'GetValue(i)'?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thank you </DIV>
<DIV>&nbsp;</DIV></td></tr></table><br>