Take the PShape above. Clearly it must know that the vertices of the inner region are not to be joined with the other vertices of the edge and represent a region that is “cut-out” from the shape. Processing calls such regions contours.
Is there a way to get this info from a PShape? i.e. which contour group each vertex belongs to?
Now there’s a method
getVertexCodes() which looked promising but the array it returns has less length than the number of vertices a shape has, so I wonder whether this refers to what I want and whether it’s possible to get this info from it.