diff --git a/src/compas_occ/brep/brepedge.py b/src/compas_occ/brep/brepedge.py index a847f5b4..2275f447 100644 --- a/src/compas_occ/brep/brepedge.py +++ b/src/compas_occ/brep/brepedge.py @@ -32,6 +32,7 @@ from compas_occ.conversions import point_to_occ from compas_occ.geometry import OCCCurve from compas_occ.geometry import OCCCurve2d +from compas_occ.geometry import OCCNurbsCurve from compas_occ.geometry import OCCSurface @@ -200,13 +201,13 @@ def orientation(self) -> TopAbs.TopAbs_Orientation: # self._curve = OCCCurve(occ_curve) # type: ignore # return self._curve - # # remove this if possible - # @property - # def nurbscurve(self) -> OCCNurbsCurve: - # if not self._nurbscurve: - # occ_curve = self.occ_adaptor.BSpline() - # self._nurbscurve = OCCNurbsCurve(occ_curve) # type: ignore - # return self._nurbscurve # type: ignore (don't understand why this is necessary) + # remove this if possible + @property + def nurbscurve(self) -> OCCNurbsCurve: + if not self._nurbscurve: + occ_curve = self.occ_adaptor.BSpline() + self._nurbscurve = OCCNurbsCurve(occ_curve) # type: ignore + return self._nurbscurve # type: ignore (don't understand why this is necessary) @property def curve(self): diff --git a/src/compas_occ/brep/brepface.py b/src/compas_occ/brep/brepface.py index f59591f3..9d19b4e9 100644 --- a/src/compas_occ/brep/brepface.py +++ b/src/compas_occ/brep/brepface.py @@ -184,13 +184,13 @@ def orientation(self) -> TopAbs.TopAbs_Orientation: # self._surface = OCCSurface(occ_surface) # return self._surface - # # remove this if possible - # @property - # def nurbssurface(self) -> OCCNurbsSurface: - # if not self._nurbssurface: - # occ_surface = self.occ_adaptor.BSpline() - # self._nurbssurface = OCCNurbsSurface(occ_surface) - # return self._nurbssurface + # remove this if possible + @property + def nurbssurface(self) -> OCCNurbsSurface: + if not self._nurbssurface: + occ_surface = self.occ_adaptor.BSpline() + self._nurbssurface = OCCNurbsSurface(occ_surface) + return self._nurbssurface @property def surface(self):