Mesh.from_polygons

classmethod Mesh.from_polygons(polygons, precision=None)[source]

Construct a mesh from a series of polygons.

Parameters:
polygonslist[list[float]]

A list of polygons, with each polygon defined as an ordered list of XYZ coordinates of its corners.

precisionint, optional

Precision for converting numbers to strings. Default is TOL.precision.

Returns:
compas.datastructures.Mesh

A mesh object.