get_polygon_bounding_box

EdbLayout.get_polygon_bounding_box(polygon)[source]

Retrieve a polygon bounding box.

Parameters
polygon

Name of the polygon.

Returns
list

List of bounding box coordinates in the format [-x, -y, +x, +y].

Examples

>>> poly = edb_core.core_primitives.get_polygons_by_layer("GND")
>>> bounding = edb_core.core_primitives.get_polygon_bounding_box(poly[0])