[vtkusers] length of a curve

David J. Netherway david.netherway at adelaide.edu.au
Wed Feb 23 00:31:35 EST 2005


Hi,

I have been unable to find a procedure that returns the length of a 
curve. The data is the output of a vtkPolyDataConnectivity filter which 
selects the largest contour from vtkContourFilter.

Do I need to set up a loop to get the points and calculate the sum of 
line lengths or is there a procedure that will provide this?

I am working in tcl so I am not keen to set up loops like this.

I thought that vtkCurvatures might make the curve length available, or 
perhaps vtkSplineFilter but this is not the case.

Thanks, David







More information about the vtkusers mailing list