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):