Polygon.to_mesh

Polygon.to_mesh(earclip=False)[source]

Returns a mesh representation of the polygon.

Parameters:
earclipbool, optional

Earclip the polygon before converting to a mesh.

Returns:
compas.datastructures.Mesh

A mesh object.