• Parameters

    • graph: FOLD

      FOLD format graph with edges_vertices defining connections between indices in the "values" array.

    • values: number[]

      an array of scalars constructed from the vertices_coords array where for each coord, only the relevant value is taken

    • Optional epsilon: number = EPSILON

      an optional epsilon

    Returns SweepEvent[]

    an array of sweep line events, indicating at every event a list of values which start, end, or are currently overlapping.

    Description

    This is the sweep method used by sweepEdges and sweepFaces. note: sweepFaces constructs new edges that span the entire face, so this has no relation to the graph's original edges_vertices.