get_polygon_bounding_box#

Modeler.get_polygon_bounding_box(polygon)#

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