precomputing lines data in Polygon initializer, along with hack to make it possible