[vtkusers] Re: curvature

Goodwin Lawlor goodwin.lawlor at ucd.ie
Thu Jun 17 17:02:45 EDT 2004


Just using a vtk writer will write the curvatures (pointdata) to disk. So

vtkXMLPolyDataWriter *writer = vtkXMLPolyDataWriter::New();
    writer->SetInput(curve1->GetOutput());
    writer->SetFileName(fname);
    writer->Write();

hth

Goodwin


<bourouis.sami at voila.fr> wrote in message
news:28627669.1087498035040.JavaMail.www at wwinf4004...
 I have an polydata surface
 How can I compute the curvature for each point (triangle vertex) from
 the polydata ?
 Curvature means min and max curvature and /or gaussian curvature.

 the problem is:
 I started by using this,
 this is a pseudo code :
vtkCleanPolyData *cleaner=vtkCleanPolyData::New();
vtkCurvatures *curve1=vtkCurvatures::New();
     curve1->SetInput(cleaner->GetOutput());
     curve1->SetCurvatureTypeToGaussian();
vtkCurvatures *curve2=vtkCurvatures::New();
     curve2->SetInput(cleaner->GetOutput());
     curve2->SetCurvatureTypeToMean();


How can I save each point in the polydata and its values of curvatures (
curve1 and curve2 ) in any file ( eg. *.txt)



Thanks,





> I have an polydata surface
> How can I compute the curvature for each point (triangle vertex) from
> the polydata ?
> Curvature means min and max curvature and /or gaussian curvature.
>
> the problem is:
> I started by using this,
> this is a pseudo code :
vtkCleanPolyData *cleaner=vtkCleanPolyData::New();
vtkCurvatures *curve1=vtkCurvatures::New();
>     curve1->SetInput(cleaner->GetOutput());
>     curve1->SetCurvatureTypeToGaussian();
vtkCurvatures *curve2=vtkCurvatures::New();
>     curve2->SetInput(cleaner->GetOutput());
>     curve2->SetCurvatureTypeToMean();


How can I save each point in the polydata and its values of curvatures (
curve1 and curve2 ) in any file ( eg. *.txt)



Thanks,
>

> ------------------------------------------
>
> Faites un voeu et puis Voila ! www.voila.fr
>
>

------------------------------------------

Faites un voeu et puis Voila ! www.voila.fr





_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers






More information about the vtkusers mailing list