Fixed #11. Support for polygons built from a number of curves is added