weasel API - v0.8.0
    Preparing search index...

    Function splitPathByLine

    • Split path along the finite segment a->b into closed pieces (Knife).

      Returns null unless the segment enters AND exits the path boundary (>=2 proper crossings) and both half-planes yield non-empty area. Otherwise returns one PolygonPath per side of the line. Beziers are flattened (see pathIntersect). The infinite line is used within a gated shape, so a concave shape only partly crossed may be cut at far-side crossings - accepted (see spec non-goals).

      Parameters

      Returns Path[] | null