PolygonParts
Tells the separate parts of a shape of several rings (see DrawnPolygon) from each other: which rings are a part's outline and which are holes in it. There is nothing in the rings that says so, it follows from where they lie under the even-odd rule: a ring inside an odd number of other rings is a hole, inside an even number (none, or a hole) an outline, and a hole belongs to the innermost ring around it.
A ring is judged by one of its vertices, so rings are expected not to cross each other or share points, as the model asks for.
Functions
The parts of the shape the rings enclose, in the order of their outlines: each part is a list with its outline first and its holes after it. An island in a lake in a country is a part of its own. Rings of fewer than 3 points are left out.