Skip to content

Commit 527edc4

Browse files
committed
fixed ellipse edge conversion
1 parent fb36991 commit 527edc4

File tree

1 file changed

+2
-1
lines changed
  • src/compas_rhino/geometry/brep

1 file changed

+2
-1
lines changed

src/compas_rhino/geometry/brep/edge.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from compas.geometry import Line
33
from compas.geometry import Point
44
from compas.geometry import Circle
5+
from compas.geometry import Ellipse
56
from compas_rhino.geometry import RhinoNurbsCurve
67
from compas_rhino.conversions import curve_to_compas_line
78
from compas_rhino.conversions import curve_to_compas_circle
@@ -85,7 +86,7 @@ def data(self, value):
8586
elif curve_type == "circle":
8687
self._curve = circle_to_rhino_curve(Circle.from_data(value["value"])) # this returns a Nurbs Curve, why?
8788
elif curve_type == "ellipse":
88-
self._curve = ellipse_to_rhino_curve(value["value"])
89+
self._curve = ellipse_to_rhino_curve(Ellipse.from_data(value["value"]))
8990
else:
9091
self._curve = RhinoNurbsCurve.from_data(value["value"]).rhino_curve
9192

0 commit comments

Comments
 (0)