Skeletonization of poligon figure