From 182003341ec5f12dc8ac0772ff36418cf46dc968 Mon Sep 17 00:00:00 2001 From: dmiller Date: Thu, 24 Oct 2024 10:27:24 -0600 Subject: [PATCH] FIX: Fix arc_data length and circle polygon_data prop --- src/ansys/edb/core/geometry/polygon_data.py | 2 +- src/ansys/edb/core/primitive/primitive.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ansys/edb/core/geometry/polygon_data.py b/src/ansys/edb/core/geometry/polygon_data.py index 95200239ae..45b5d0bbf8 100644 --- a/src/ansys/edb/core/geometry/polygon_data.py +++ b/src/ansys/edb/core/geometry/polygon_data.py @@ -109,7 +109,7 @@ def arc_data(self): h, incr = 0, 1 p1, p2 = self.points[i], self.points[(i + incr) % n] if p2.is_arc: - h, incr = p2.arc_height, 2 + h, incr = p2.arc_height.double, 2 p2 = self.points[(i + incr) % n] segments.append(ArcData(p1, p2, height=h)) i += incr diff --git a/src/ansys/edb/core/primitive/primitive.py b/src/ansys/edb/core/primitive/primitive.py index 009c2a1b7d..69cc029e33 100644 --- a/src/ansys/edb/core/primitive/primitive.py +++ b/src/ansys/edb/core/primitive/primitive.py @@ -618,7 +618,8 @@ def set_parameters(self, center_x, center_y, radius): ) ) - def get_polygon_data(self): + @property + def polygon_data(self): """:class:`.PolygonData`: \ Polygon data object of the circle.""" return Circle.render(*self.get_parameters(), self.is_void)