Identifying the type/shape of polygons