• Parameters

    • graph: FOLD

      a FOLD object

    • foldedEdge: number
    • flatEdge: number
    • vertices_coordsFolded: any = undefined
    • epsilon: number = EPSILON

    Returns any

    a summary of changes to the graph

    Description

    To perform a squash fold we need a vertex and two adjacent edges. One edge must currently be folded and will become flat, and one edge is currently flat and will become folded. The vertex is the point of rotation, out of which new fold rays will be cast. The vertex can be inferred to be the vertex at the point of intersection between the two edges