<P> I have an polydata surface </P>
<P> How can I compute the curvature for each point (triangle vertex) from<BR> the polydata ?<BR> Curvature means min and max curvature and /or gaussian curvature.<BR> </P>
<P> the problem is:</P>
<P> I started by using this,</P>
<P> this is a pseudo code :</P>
<DIV>vtkCleanPolyData *cleaner=vtkCleanPolyData::New();</DIV>
<DIV>vtkCurvatures *curve1=vtkCurvatures::New();<BR> curve1->SetInput(cleaner->GetOutput());<BR> curve1->SetCurvatureTypeToGaussian();</DIV>
<DIV>vtkCurvatures *curve2=vtkCurvatures::New();<BR> curve2->SetInput(cleaner->GetOutput());<BR> curve2->SetCurvatureTypeToMean();</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>How can I save each point in the polydata and its values of curvatures ( curve1 and curve2 ) in any file ( eg. *.txt)</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Thanks,<BR><BR><BR><BR><BR></DIV>
<P>> I have an polydata surface </P>
<P>> How can I compute the curvature for each point (triangle vertex) from<BR>> the polydata ?<BR>> Curvature means min and max curvature and /or gaussian curvature.<BR>> </P>
<P>> the problem is:</P>
<P>> I started by using this,</P>
<P>> this is a pseudo code :</P>
<DIV>vtkCleanPolyData *cleaner=vtkCleanPolyData::New();</DIV>
<DIV>vtkCurvatures *curve1=vtkCurvatures::New();<BR>> curve1->SetInput(cleaner->GetOutput());<BR>> curve1->SetCurvatureTypeToGaussian();</DIV>
<DIV>vtkCurvatures *curve2=vtkCurvatures::New();<BR>> curve2->SetInput(cleaner->GetOutput());<BR>> curve2->SetCurvatureTypeToMean();</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>How can I save each point in the polydata and its values of curvatures ( curve1 and curve2 ) in any file ( eg. *.txt)</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Thanks,<BR>> </DIV><BR>> ------------------------------------------<BR>> <BR>> Faites un voeu et puis Voila ! www.voila.fr <BR>> <BR>>
<BLOCKQUOTE></BLOCKQUOTE><BR>------------------------------------------<BR><BR>Faites un voeu et puis Voila ! www.voila.fr <BR><BR>