Skip to content

Commit eb4504c

Browse files
committed
fix old conversion styles
1 parent 74192a0 commit eb4504c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/compas_occ/geometry/curves/curve.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,13 @@ def domain(self):
114114
def start(self):
115115
if self.occ_curve:
116116
pnt = self.occ_curve.StartPoint()
117-
return Point.from_occ(pnt)
117+
return compas_point_from_occ_point(pnt)
118118

119119
@property
120120
def end(self):
121121
if self.occ_curve:
122122
pnt = self.occ_curve.EndPoint()
123-
return Point.from_occ(pnt)
123+
return compas_point_from_occ_point(pnt)
124124

125125
@property
126126
def is_closed(self):
@@ -379,7 +379,7 @@ def aabb(self, precision=0.0):
379379
box = Bnd_Box()
380380
BndLib_Add3dCurve_Add(GeomAdaptor_Curve(self.occ_curve), precision, box)
381381
return Box.from_diagonal(
382-
(Point.from_occ(box.CornerMin()), Point.from_occ(box.CornerMax()))
382+
(compas_point_from_occ_point(box.CornerMin()), compas_point_from_occ_point(box.CornerMax()))
383383
)
384384

385385
def length(self, precision=1e-3):

0 commit comments

Comments
 (0)