• Parameters

    • graph: FOLD

      a FOLD object

    • Optional epsilon: number = EPSILON

      an optional epsilon

    Returns FOLD

    a planar graph containing vertices, edges, and faces except holes.

    Description

    Planarize a graph into the 2D XY plane forming a valid planar graph. This will neatly resolve any overlapping collinear edges, resolve all crossing edges, rebuild faces, and remove holes.