• Parameters

    • graph: FOLD

      a FOLD object

    • Optional axis: number = 0

      which axis to sweep along

    • Optional epsilon: number = EPSILON

      an optional epsilon

    Returns {
        t: number;
        vertices: number[];
    }[]

    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

    Description

    Perform a line sweep through the vertices of a graph, the default direction is to sweep along the +X axis. This method will sort the vertices along the sweep direction and group those which have a similar value within an epsilon. This is not interchangeable with getVerticesClusters, this only clusters vertices along one axis, it does not make vertices clusters.