get_polygon_bounding_box#
- Modeler.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.modeler.get_polygons_by_layer("GND") >>> bounding = edb_core.modeler.get_polygon_bounding_box(poly[0])