''
fixed mesh mapping before plot. Now sorting in Z first and THETA later. Improved performance.
added algorithm for best fitting cylinder. !NEEDS IMPROVEMENT! since it is very slow. A much smaller sample can be used to fit the cylinder.