Skip to content

Commit

Permalink
re add these to support compas_ifc
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvanmele committed Apr 23, 2024
1 parent 2766a99 commit 7dadf60
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
15 changes: 8 additions & 7 deletions src/compas_occ/brep/brepedge.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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):
Expand Down
14 changes: 7 additions & 7 deletions src/compas_occ/brep/brepface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 7dadf60

Please sign in to comment.