• Parameters

    • graph: FOLD

      a FOLD object, modified in place

    • face: number

      index of face to split

    • line: VecLine2

      with a "vector" and an "origin" component

    • Optional epsilon: number

      an optional epsilon

    Returns any

    a summary of changes to the FOLD object, or undefined if no change (no intersection).

    Description

    divide a convex face into two polygons with a straight line cut. if the line ends exactly along existing vertices, they will be used, otherwise, new vertices will be added (splitting edges).