Skip to content

Commit 6f8bd17

Browse files
committed
occ_curve setter
1 parent 8baebd9 commit 6f8bd17

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

src/compas_occ/geometry/curves/nurbs.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class OCCNurbsCurve(NurbsCurve):
9595

9696
def __init__(self, name=None):
9797
super(OCCNurbsCurve, self).__init__(name=name)
98-
self._occ_curve = None
98+
self.occ_curve = None
9999

100100
def __eq__(self, other: 'OCCNurbsCurve'):
101101
return self.occ_curve.IsEqual(other.occ_curve)
@@ -397,11 +397,6 @@ def to_polyline(self):
397397
# OCC
398398
# ==============================================================================
399399

400-
@property
401-
def occ_curve(self):
402-
"""Geom_BSplineCurve - The underlying OCC curve."""
403-
return self._occ_curve
404-
405400
@property
406401
def occ_shape(self):
407402
"""TopoDS_Shape - The underlying OCC curve embedded in an edge and converted to a shape."""

src/compas_occ/geometry/curves/nurbs.pyi

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,6 @@ class OCCNurbsCurve(NurbsCurve):
110110
# OCC
111111
# ==============================================================================
112112

113-
@property
114-
def occ_curve(self) -> Geom_BSplineCurve: ...
115-
116113
@property
117114
def occ_shape(self) -> TopoDS_Shape: ...
118115

0 commit comments

Comments
 (0)