Block.from_polygons

classmethod Block.from_polygons(polygons, precision=None)

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.