• Parameters

    • graph: FOLD

      a FOLD object with vertices in crease pattern form

    • line: VecLine2
    • Optional vertices_coordsFolded: [number, number][] = undefined

      flat vertices only.

    • Optional epsilon: number = EPSILON

      an optional epsilon

    Returns [number[][], number[][]]

    left and right sides, each side contains a list of lists of faces, groups of connected sets of faces (flaps).

    Description

    Get a list of separatable flaps in a folded origami model by specifying a dividing line. The return value is two sets, one for either side of the line, each set contains a list of connected sets of faces, inside each inner array are all faces in a separatable flap.