• Parameters

    • graph: FOLD

      a FOLD object

    • Optional axis: number = 0

      which axis to sweep along

    • Optional epsilon: number = EPSILON

      an optional epsilon

    Returns SweepEvent[]

    an array of event objects, each event contains:

    • t: the position along the axis
    • vertices: the vertices (one or more) at this event along the axis
    • start: the edges which begin at this event in the sweep
    • end: the edges which end at this event in the sweep

    Description

    Perform a line sweep through the edges of a graph, This method will create an array of events, each event will either "start" edges or "end" edges, and for those edges which are orthogonal to the sweep axis within an epsilon, they will only exist inside one event and be present in both the "start" and the "end" arrays.