• Parameters

    • graph: FOLD

      a FOLD object with folded vertices in 2D

    • Optional epsilon: number

      an optional epsilon

    Returns {
        compile: ((...this, ...pattern) => any);
        compileAll: ((...this) => {
            [key: string]: number;
        }[][]);
        count: ((...this) => any);
        faceOrders: ((...this, ...pattern) => any);
        gather: ((...this, ...pattern) => any);
        gatherAll: ((...this) => {
            [key: string]: number;
        }[][]);
        leaves: ((...this) => any);
        structure: ((...this) => any);
    }

    a layer solution object

    • compile: ((...this, ...pattern) => any)
        • (...this, ...pattern): any
        • Parameters

          • Rest ...this: any
          • Rest ...pattern: number[]

          Returns any

    • compileAll: ((...this) => {
          [key: string]: number;
      }[][])
        • (...this): {
              [key: string]: number;
          }[][]
        • Parameters

          • Rest ...this: any

          Returns {
              [key: string]: number;
          }[][]

    • count: ((...this) => any)
        • (...this): any
        • Parameters

          • Rest ...this: any

          Returns any

    • faceOrders: ((...this, ...pattern) => any)
        • (...this, ...pattern): any
        • Parameters

          • Rest ...this: any
          • Rest ...pattern: number[]

          Returns any

    • gather: ((...this, ...pattern) => any)
        • (...this, ...pattern): any
        • Parameters

          • Rest ...this: any
          • Rest ...pattern: number[]

          Returns any

    • gatherAll: ((...this) => {
          [key: string]: number;
      }[][])
        • (...this): {
              [key: string]: number;
          }[][]
        • Parameters

          • Rest ...this: any

          Returns {
              [key: string]: number;
          }[][]

    • leaves: ((...this) => any)
        • (...this): any
        • Parameters

          • Rest ...this: any

          Returns any

    • structure: ((...this) => any)
        • (...this): any
        • Parameters

          • Rest ...this: any

          Returns any

    Description

    Find all possible layer orderings of the faces in a flat-foldable origami model. The result contains all possible solutions, use the prototype methods available on this return object to choose one solution, among other available options.