We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7638101 commit e7fe77aCopy full SHA for e7fe77a
src/compas_rhino/conversions/curve.py
@@ -53,6 +53,18 @@ def geometry(self, geometry):
53
raise ConversionError('The geometry cannot be converted to a curve.')
54
self._geometry = geometry
55
56
+ def to_compas(self):
57
+ """Convert the curve to a COMPAS curve.
58
+
59
+ Returns
60
+ -------
61
+ :class:`compas_rhino.geometry.RhinoNurbsCurve`
62
+ """
63
+ from compas.geometry import NurbsCurve
64
+ curve = NurbsCurve()
65
+ curve.rhino_curve = self.geometry
66
+ return curve
67
68
def to_compas_circle(self):
69
"""Convert the curve to a COMPAS circle.
70
0 commit comments