create#

classmethod Polygon.create(layout, layer, net, polygon_data)#

Create a polygon.

Parameters:
layoutLayout

Layout to create the polygon in.

layerstr or Layer

Layer to place the polygon on.

netstr or Net or None

Net of the polygon.

polygon_dataPolygonData

Outer contour of the polygon.

Returns:
Polygon

Polygon created.