Faster method for GetPoint

Thanks for your reply. In my case I’m iterating over the points of single polygons. How to handle this? At the top there is the foo function. Is this a fallback? You don’t use it in the code below.