Skip to content

Commit

Permalink
FIX: Add Path.polygon_data and fix Component transform (#389)
Browse files Browse the repository at this point in the history
Co-authored-by: svandenb-dev <[email protected]>
  • Loading branch information
hiro727 and svandenb-dev authored Apr 17, 2024
1 parent a1ae88a commit fe21074
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/ansys/edb/core/hierarchy/hierarchy_obj.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class HierarchyObj(conn_obj.ConnObj):
def transform(self):
""":class:`Transform <ansys.edb.core.utility.Transform>`: Transformation information of the hierarchy object."""
transform_msg = self.__stub.GetTransform(self.msg)
return Transform(
return Transform.create(
transform_msg.scale,
transform_msg.angle,
transform_msg.mirror,
Expand Down
6 changes: 6 additions & 0 deletions src/ansys/edb/core/primitive/primitive.py
Original file line number Diff line number Diff line change
Expand Up @@ -885,6 +885,12 @@ def render(cls, width, end_cap1, end_cap2, corner_style, path):
)
)

@property
@parser.to_polygon_data
def polygon_data(self):
""":class:`PolygonData <ansys.edb.geometry.PolygonData>`: Polygon data of this Path."""
return self.__stub.GetPolygonData(self.msg)

@property
@parser.to_polygon_data
def center_line(self):
Expand Down

0 comments on commit fe21074

Please sign in to comment.