Diagram.to_polygons

Diagram.to_polygons()

Convert the mesh to a collection of polygons.

Returns:
list[list[list[float]]]

A list of polygons defined each as a list of points.