• Parameters

    • graph: FOLD

      a FOLD object

    • Optional epsilon: number = EPSILON

      an optional epsilon

    Returns {
        changes: {
            edges: {
                map: number[][];
            };
            vertices: {
                map: number[];
            };
        };
        result: FOLD;
    }

    a new FOLD object, with an info object which describes all changes to the graph.

    • changes: {
          edges: {
              map: number[][];
          };
          vertices: {
              map: number[];
          };
      }
      • edges: {
            map: number[][];
        }
        • map: number[][]
      • vertices: {
            map: number[];
        }
        • map: number[]
    • result: FOLD

    Description

    Make one step to planarize a graph into the 2D XY plane by fixing all instances of two collinear edges overlapping. This does not resolve edges crossing edges, or multiple vertices overlapping at the same coordinate. Call "planarize" instead for the complete method.