From 3dbb62e3b85122b41083b57b72fb6bbf8ebe8d58 Mon Sep 17 00:00:00 2001 From: Hiroki Takezawa Date: Wed, 8 Nov 2023 17:04:04 -0700 Subject: [PATCH] D301: Add Path.polygon_data --- protos/ansys/api/edb/v1/path.proto | 3 +++ src/ansys/edb/primitive/primitive.py | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/protos/ansys/api/edb/v1/path.proto b/protos/ansys/api/edb/v1/path.proto index 45147bd809..9be7b8fa46 100644 --- a/protos/ansys/api/edb/v1/path.proto +++ b/protos/ansys/api/edb/v1/path.proto @@ -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) {} diff --git a/src/ansys/edb/primitive/primitive.py b/src/ansys/edb/primitive/primitive.py index 0e4463e376..6abd39720d 100644 --- a/src/ansys/edb/primitive/primitive.py +++ b/src/ansys/edb/primitive/primitive.py @@ -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 `: Polygon data of this Path.""" + return self.__stub.GetPolygonData(self.msg) + @property @parser.to_polygon_data def center_line(self):