rotate#
- EdbPolygon.rotate(angle, center=None)[source]#
Rotate polygon around a center point by an angle.
- Parameters:
- Returns:
- bool
True
when successful,False
when failed.
Examples
>>> edbapp = ansys.aedt.core.Edb("myproject.aedb") >>> top_layer_polygon = [poly for poly in edbapp.modeler.polygons if poly.layer_name == "Top Layer"] >>> for polygon in top_layer_polygon: >>> polygon.rotate(angle=45)