How to analyze STL files?

Hi,
I want to know how to analyze STL files,

For example, I have one STL file. I can see that it is a tube. I want to know how to convert it into combination of Geom_CylindricalSurface and Geom_SurfaceOfRevolution,what should I do?Is there a solution to this kind of problem in OCC? Or some algorithms and other materials for learning.

Thanks a lot!