Added support for simple convex polygons