Function makeTortillaTortillaFacesCrossing

  • Parameters

    • edges_faces: number[][]

      the array from the FOLD graph

    • edgesFacesSide: number[][]

      for each edge's pair of faces, which side of the edge does this face lie? (+1 or -1)

    • edgesFacesOverlap: number[][]

      for every edge, a list of faces which overlap this edge.

    Returns TortillaTortillaConstraint[]

    array of tortilla-tortilla conditions

    Description

    Tortilla-tortillas can be generated in two ways:

    1. two tortillas (4 faces) where the two dividing edges are collinear
    2. two tortillas (4 faces) where the dividing edges lie on top of each other, crossing each other, but are not collinear. This method generates all tortillas from the second set.