Script that convert a polygon to  bezier curves