Generate a triangle fan from a polygon.