Cell.from_polygons

classmethod Cell.from_polygons(polygons, precision=None)

Construct a mesh from a series of polygons.

Parameters
  • polygons (list[list[float]]) – A list of polygons, with each polygon defined as an ordered list of XYZ coordinates of its corners.

  • precision (str, optional) – The precision of the geometric map that is used to connect the lines. Defaults to compas.PRECISION.

Returns

compas.datastructures.Mesh – A mesh object.