• Parameters

    • graph: FOLD

      a FOLD object, with vertices_coords, faces_vertices

    • Optional epsilon: number

      an optional epsilon

    Returns ([number, number] | [number, number, number])[][]

    an array of array of points, where each point is an array of 2 or 3 numbers

    Description

    map vertices_coords onto each face's set of vertices, turning each face into an array of points, with an additional step: ensure that each polygon has 0 collinear vertices. this can result in a polygon with fewer vertices than is contained in that polygon's faces_vertices array.