[vtkusers] Re: Finding Max and Min of Curvature Values?

Goodwin Lawlor goodwin.lawlor at ucd.ie
Tue Mar 28 11:38:44 EST 2006


B.J.Prosser at cs.cardiff.ac.uk wrote:
> Firstly im new to vtk so excuse me if this seems a simple question. I am trying
> to get the max and min values (ie the highest and lowest gaussian curvature
> values for the whole mesh, not for each point) as worked out using
> vtkCurvatures but i dont know how to get to the actual raw data. Something do
> with GetOutput ?
> 
> Thanks
> 
> Bryan

Hi Bryan,

In tcl (but its the same idea in c++, python etc)

vtkCurvatures curvatures
	curvatures SetInputConnection [lastFilter GetOutputPort]
	curvatures Update

set data [curvatures GetOutput]
set scalars [[$data GetPointData] GetScalars]

#to get a curvature value for point 0:
set val [$scalars GetTuple1 0]

hth


Goodwin




More information about the vtkusers mailing list