• Parameters

    • graph: FOLDExtended

      a FOLD object

    • Optional rootFaces: number[]

      the index of the face that will remain in place

    Returns [number, number, number][]

    a new set of vertices_coords with the new positions.

    Description

    Fold a graph along its edges and return the position of the folded vertices. This method works in both 2D and 3D unassigned edges are treated as flat fold (mountain/valley 180deg) as a way of (assuming the user is giving a flat folded origami), help solve things about an origami that is currently being figured out.