Function buildTriangulatedMesh

  • Triangulate vertices using triangulate and create a new Mesh from the result.

    Parameters

    • vertices: Vertex[]

      Unique vertices of the polygon

    • islandMarkers: number[] = []

      Optional, indices into vertices to mark which sections are islands

    Returns Mesh

    Mesh of the triangulated polygon