EdbPolygon#
- class pyedb.dotnet.database.edb_data.primitives_data.EdbPolygon(raw_primitive, core_app)#
Bases:
pyedb.dotnet.database.cell.primitive.primitive.PrimitiveManages EDB functionalities for a primitives. It inherits EDB Object properties.
Examples
>>> from pyedb import Edb >>> edb = Edb(myedb, edbversion="2021.2") >>> edb_prim = edb.modeler.primitives[0] >>> edb_prim.is_void # Class Property >>> edb_prim.IsVoid() # EDB Object Property
Overview#
Clone a primitive object with keeping same definition and location. |
|
Remove self intersections if they exists. |
|
Duplicate across layer a primitive object. |
|
Move polygon along a vector. |
|
Rotate polygon around a center point by an angle. |
|
Move polygon to given layer. |
|
Check if padstack Instance is in given polygon data. |
|
Expand the polygon shape by an absolute value in all direction. |
Check if Polygon has self intersections. |
|
|
Import detail#
from pyedb.dotnet.database.edb_data.primitives_data import EdbPolygon
Property detail#
- property EdbPolygon.polygon_data#
pyedb.dotnet.database.dotnet.database.PolygonDataDotNet: Outer contour of the Polygon object.
Method detail#
- EdbPolygon.clone()#
Clone a primitive object with keeping same definition and location.
- Returns:
- bool
Truewhen successful,Falsewhen failed.
- EdbPolygon.fix_self_intersections()#
Remove self intersections if they exists.
- Returns:
listAll new polygons created from the removal operation.
- EdbPolygon.duplicate_across_layers(layers)#
Duplicate across layer a primitive object.
Parameters:
- layers: list
list of str, with layer names
- Returns:
- bool
Truewhen successful,Falsewhen failed.
- EdbPolygon.move(vector)#
Move polygon along a vector.
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.move(vector=["2mm", "100um"])
- EdbPolygon.rotate(angle, center=None)#
Rotate polygon around a center point by an angle.
- Parameters:
- Returns:
- bool
Truewhen successful,Falsewhen 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)
- EdbPolygon.move_layer(layer)#
Move polygon to given layer.
- EdbPolygon.in_polygon(point_data, include_partial=True)#
Check if padstack Instance is in given polygon data.
- EdbPolygon.expand(offset=0.001, tolerance=1e-12, round_corners=True, maximum_corner_extension=0.001)#
Expand the polygon shape by an absolute value in all direction. Offset can be negative for negative expansion.
- Parameters:
- offset
float,optional Offset value in meters.
- tolerance
float,optional Tolerance in meters.
- round_cornersbool,
optional Whether to round corners or not. If True, use rounded corners in the expansion otherwise use straight edges (can be degenerate).
- maximum_corner_extension
float,optional The maximum corner extension (when round corners are not used) at which point the corner is clipped.
- offset