Polygon.to_vertices_and_faces
- Polygon.to_vertices_and_faces(earclip=False)[source]
Returns a list of vertices and faces.
- Parameters:
- earclipbool, optional
Earclip the polygon before returning the vertices and faces.
- Returns:
- list[list[float]], list[list[int]]
A list of vertex locations, and a list of faces, with each face defined as a list of indices into the list of vertices.