Skip to content

Commit

Permalink
FIX: Fix arc_data length and circle polygon_data prop
Browse files Browse the repository at this point in the history
  • Loading branch information
drewm102 committed Oct 24, 2024
1 parent 228d289 commit 1820033
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ansys/edb/core/geometry/polygon_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/ansys/edb/core/primitive/primitive.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1820033

Please sign in to comment.