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 b2d386c commit 1bf6859Copy full SHA for 1bf6859
src/compas_occ/geometry/curves/nurbs.py
@@ -1,4 +1,5 @@
1
from math import sqrt
2
+from copy import deepcopy
3
4
from compas.geometry import Point
5
from compas.geometry import Vector
@@ -437,6 +438,17 @@ def from_line(cls, line):
437
438
# Methods
439
# ==============================================================================
440
441
+ def copy(self):
442
+ """Make an independent copy of the current curve.
443
+
444
+ Returns
445
+ -------
446
+ :class:`compas_occ.geometry.OCCCurve`
447
448
+ """
449
+ cls = type(self)
450
+ return cls.from_data(deepcopy(self.data))
451
452
def segment(self, u, v, precision=1e-3):
453
"""Modifies this curve by segmenting it between the parameters u and v.
454
0 commit comments