Implement polygon.clear.