Function isFoldedForm

  • Parameters

    • graph: FOLD

      a FOLD object

    • Optional epsilon: number = EPSILON

      an optional epsilon

    Returns boolean

    true if the graph is in a folded state

    Description

    Infer if a FOLD object is in its folded state (as opposed to crease pattern state). A graph will be considered "folded" if the "foldedForm" key can be found in the metadata, or if the vertices_coords are in 3D and a Z number is not 0, or, if vertices are in 2D and any edges are overlapping.