Adding in support for convex polygons.