File tree Expand file tree Collapse file tree 2 files changed +15
-14
lines changed Expand file tree Collapse file tree 2 files changed +15
-14
lines changed Original file line number Diff line number Diff line change 3232from compas_occ .conversions import point_to_occ
3333from compas_occ .geometry import OCCCurve
3434from compas_occ .geometry import OCCCurve2d
35+ from compas_occ .geometry import OCCNurbsCurve
3536from 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 ):
Original file line number Diff line number Diff 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 ):
You can’t perform that action at this time.
0 commit comments