pathToShapeContours
Converts a PShape of type PATH into a ShapeContour.
This function processes the vertices and vertex codes of the PShape to construct a corresponding ShapeContour. The function supports vertex types including VERTEX, BEZIER_VERTEX, and QUADRATIC_VERTEX. Other vertex codes will result in an error. The contour will reflect whether the PShape is closed or open.
Return
A ShapeContour that represents the geometry of the given PShape.PATH.
Throws
if the PShape is not of type PATH.
for unsupported vertex codes.