Function earclip

  • An earcut polygon generator with tesselation support

    Parameters

    • polygon: number[][][] | Point[][] | Point3D[][]

      Polygon to tesselate

    • modulo: number = Infinity

      Modulo for tesselation

    • offset: number = 0

      Offset for results

    Returns EarclipResult

    Tesselated polygon