• Finds the best ear in the polygon and returns it along with the remaining vertices.

    Parameters

    • pointArray: Point[]

      The list of polygon vertices.

    • isConvex: boolean

      Indicates whether the polygon is convex.

    • optimize: boolean

      Indicates whether to optimize the ear finding.

    Returns Point[][]

    A tuple containing the optimal ear and the remaining vertices.

    Not Exported