[vtkusers] vtkCurvatures

Andrew J. P. Maclean a.maclean at cas.edu.au
Thu Jul 15 23:32:44 EDT 2004


The curvatures are found in scalar arrays called: "Mean_Curvature" and
"Gauss_ Curvature" contained in the vtkPolyData structure.

So you need to do something like:

mesh->GetPointData()->SetActiveScalars("Mean_Curvature");

 

Assuming that mesh is the name of your vtkPolyData structure.

 

Regards

   Andrew

 

___________________________________________


 

Andrew J. P. Maclean


 

Centre for Autonomous Systems
The Rose Street Building J04
The University of Sydney  2006  NSW
AUSTRALIA


 

Ph: +61 2 9351 3283

Fax: +61 2 9351 7474


 

URL: http://www.cas.edu.au/

___________________________________________

 

  _____  

From: Caecilia Charbonnier [mailto:charbonnier at miralab.unige.ch] 
Sent: Friday, 16 July 2004 05:36
To: vtkusers at vtk.org
Subject: [vtkusers] vtkCurvatures 

 

Hello vtk_killers!!

 

I used vtkCurvatures to compute curvatures at each point of my PolyData
(input) but now I would like to make a loop and use these curvatures to
select the 50-100 maximum coefficients and get the point coordinate
associated. Somebody knows how to do so?

 

The output of the curvatures is a data array or something like that? When I
use curve->GetOutput(), the method get a PolyData back... So it is
impossible to read the coefficients!

 

Please help!!!

 

Cae

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040716/c86bb81c/attachment.htm>


More information about the vtkusers mailing list