<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->SetInput(myPolyData);<BR>curve->SetCurvatureTypeToMaximum();<BR> <BR>vtkPolyData *newPolyData = vtkPolyData::New();<BR>newPolyData = curve->GetOutput();</EM></DIV>
<DIV> </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->GetPoints());</EM></DIV>
<DIV> </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->GetNumberOfTuples();<BR>for (vtkIdType i=0; i<nPoints; i++)<BR>curveValue = myArray->GetValue(i);</EM></DIV>
<DIV> </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> </DIV>
<DIV>Thank you </DIV>
<DIV> </DIV></td></tr></table><br>