In PLAXIS 2D, you may want to know all the coordinates of a polygon in order to use it in your Python/scripting environment. When looking at the items in the Selection Explorer in the PLAXIS 2D User Interface when selecting such a polygon, we nicely see all the corner points with their coordinates. However, the internal structure of the polygon object stores these polygon-points as a combination of a base insertion point and a list of so-called HelperPoints (e.g. Polygon_1.Points). These HelperPoints are relative to this insertion point.
Attached here is a small snippet for extracting this as a list of (x, y)-tuples and returning this list to be used in your Python script.
Note: this only works for Polygons in Structures mode, not for soil polygons created by a borehole.