Skip to content

Commit 7dadf60

Browse files
committed
re add these to support compas_ifc
1 parent 2766a99 commit 7dadf60

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

src/compas_occ/brep/brepedge.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
from compas_occ.conversions import point_to_occ
3333
from compas_occ.geometry import OCCCurve
3434
from compas_occ.geometry import OCCCurve2d
35+
from compas_occ.geometry import OCCNurbsCurve
3536
from compas_occ.geometry import OCCSurface
3637

3738

@@ -200,13 +201,13 @@ def orientation(self) -> TopAbs.TopAbs_Orientation:
200201
# self._curve = OCCCurve(occ_curve) # type: ignore
201202
# return self._curve
202203

203-
# # remove this if possible
204-
# @property
205-
# def nurbscurve(self) -> OCCNurbsCurve:
206-
# if not self._nurbscurve:
207-
# occ_curve = self.occ_adaptor.BSpline()
208-
# self._nurbscurve = OCCNurbsCurve(occ_curve) # type: ignore
209-
# return self._nurbscurve # type: ignore (don't understand why this is necessary)
204+
# remove this if possible
205+
@property
206+
def nurbscurve(self) -> OCCNurbsCurve:
207+
if not self._nurbscurve:
208+
occ_curve = self.occ_adaptor.BSpline()
209+
self._nurbscurve = OCCNurbsCurve(occ_curve) # type: ignore
210+
return self._nurbscurve # type: ignore (don't understand why this is necessary)
210211

211212
@property
212213
def curve(self):

src/compas_occ/brep/brepface.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -184,13 +184,13 @@ def orientation(self) -> TopAbs.TopAbs_Orientation:
184184
# self._surface = OCCSurface(occ_surface)
185185
# return self._surface
186186

187-
# # remove this if possible
188-
# @property
189-
# def nurbssurface(self) -> OCCNurbsSurface:
190-
# if not self._nurbssurface:
191-
# occ_surface = self.occ_adaptor.BSpline()
192-
# self._nurbssurface = OCCNurbsSurface(occ_surface)
193-
# return self._nurbssurface
187+
# remove this if possible
188+
@property
189+
def nurbssurface(self) -> OCCNurbsSurface:
190+
if not self._nurbssurface:
191+
occ_surface = self.occ_adaptor.BSpline()
192+
self._nurbssurface = OCCNurbsSurface(occ_surface)
193+
return self._nurbssurface
194194

195195
@property
196196
def surface(self):

0 commit comments

Comments
 (0)