Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/c/h/chirp-1.2.2/chirp/gui/wxgeom.py   chirp(Download)
    ringstarts = nonzero(path.codes == Path.MOVETO)[0][1:]
    if len(ringstarts) == 0:
        return geom.Polygon(path.vertices)
    else:
        rings = split(path.vertices, ringstarts, axis=0)
        return geom.Polygon(rings[0], rings[1:])
        elif isinstance(patch, Polygon):
            q = [(x, y) for x, y in trans.transform(v)]
            elist.append(geom.Polygon(q))
        elif isinstance(patch, PathPatch):
            elist.append(path_to_poly(patch))