earclip - v1.2.0
    Preparing search index...

    Function earcut

    • Parameters

      • data: number[]

        an array of polygon vertices flattened

      • holeIndices: number[] = []

        starting index positions of the holes

      • dim: number = 2

        number of coordinates per vertex

      Returns number[]

      • the triangulation