Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Add Path.polygon_data and fix Component transform #389

Merged
merged 2 commits into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading