I have a bunch of points that lay on a surface on a cylinder/tube. How can I calculate the properties of this tube (radius and direction)?
The only way I can come up with is to assume find the direction vector using a least square fit, but I cant come up with the correct minimizing function. Maybe there is a better way than least square fit?
It is ok to assume that the points are evently spaced/spread out around the tube.