modify the structure of the project

1.fix the generate polygons in laddershape
2.modify the stucture of the project
3.add the main window to contain all ui