Skip to content

Commit

Permalink
D301: Add Path.polygon_data
Browse files Browse the repository at this point in the history
  • Loading branch information
hiro727 committed Nov 9, 2023
1 parent 80e799b commit 3dbb62e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions protos/ansys/api/edb/v1/path.proto
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ service PathService {

// Render Path
rpc Render (PathRenderMessage) returns (PolygonDataMessage) {}

// Get Polygon Data
rpc GetPolygonData (EDBObjMessage) returns (PolygonDataMessage) {}

// Get Center Line
rpc GetCenterLine (EDBObjMessage) returns (PolygonDataMessage) {}
Expand Down
6 changes: 6 additions & 0 deletions src/ansys/edb/primitive/primitive.py
Original file line number Diff line number Diff line change
Expand Up @@ -935,6 +935,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 3dbb62e

Please sign in to comment.