Skip to content

Commit 3d4925b

Browse files
committed
update to latest occ
1 parent 50a1718 commit 3d4925b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/compas_occ/brep/brepedge.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def is_other(self) -> bool:
273273

274274
@property
275275
def is_valid(self) -> bool:
276-
return BRepAlgo.brepalgo_IsValid(self.occ_edge)
276+
return BRepAlgo.brepalgo.IsValid(self.occ_edge)
277277

278278
@property
279279
def vertices(self) -> List[OCCBrepVertex]:
@@ -287,16 +287,16 @@ def vertices(self) -> List[OCCBrepVertex]:
287287

288288
@property
289289
def first_vertex(self) -> OCCBrepVertex:
290-
return OCCBrepVertex(TopExp.topexp_FirstVertex(self.occ_edge))
290+
return OCCBrepVertex(TopExp.topexp.FirstVertex(self.occ_edge))
291291

292292
@property
293293
def last_vertex(self) -> OCCBrepVertex:
294-
return OCCBrepVertex(TopExp.topexp_LastVertex(self.occ_edge))
294+
return OCCBrepVertex(TopExp.topexp.LastVertex(self.occ_edge))
295295

296296
@property
297297
def length(self) -> float:
298298
props = GProp.GProp_GProps()
299-
BRepGProp.brepgprop_LinearProperties(self.occ_edge, props)
299+
BRepGProp.brepgprop.LinearProperties(self.occ_edge, props)
300300
return props.Mass()
301301

302302
@property

src/compas_occ/brep/brepface.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def loops(self) -> List[OCCBrepLoop]:
278278

279279
@property
280280
def outerloop(self) -> OCCBrepLoop:
281-
wire = BRepTools.breptools_OuterWire(self.occ_face)
281+
wire = BRepTools.breptools.OuterWire(self.occ_face)
282282
return OCCBrepLoop(wire)
283283

284284
@property
@@ -697,7 +697,7 @@ def is_valid(self) -> bool:
697697
bool
698698
699699
"""
700-
return BRepAlgo.brepalgo_IsValid(self.occ_face)
700+
return BRepAlgo.brepalgo.IsValid(self.occ_face)
701701

702702
def fix(self) -> None:
703703
"""

0 commit comments

Comments
 (0)