Skip to content

Commit

Permalink
update to latest occ
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvanmele committed Apr 22, 2024
1 parent 50a1718 commit 3d4925b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/compas_occ/brep/brepedge.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def is_other(self) -> bool:

@property
def is_valid(self) -> bool:
return BRepAlgo.brepalgo_IsValid(self.occ_edge)
return BRepAlgo.brepalgo.IsValid(self.occ_edge)

@property
def vertices(self) -> List[OCCBrepVertex]:
Expand All @@ -287,16 +287,16 @@ def vertices(self) -> List[OCCBrepVertex]:

@property
def first_vertex(self) -> OCCBrepVertex:
return OCCBrepVertex(TopExp.topexp_FirstVertex(self.occ_edge))
return OCCBrepVertex(TopExp.topexp.FirstVertex(self.occ_edge))

@property
def last_vertex(self) -> OCCBrepVertex:
return OCCBrepVertex(TopExp.topexp_LastVertex(self.occ_edge))
return OCCBrepVertex(TopExp.topexp.LastVertex(self.occ_edge))

@property
def length(self) -> float:
props = GProp.GProp_GProps()
BRepGProp.brepgprop_LinearProperties(self.occ_edge, props)
BRepGProp.brepgprop.LinearProperties(self.occ_edge, props)
return props.Mass()

@property
Expand Down
4 changes: 2 additions & 2 deletions src/compas_occ/brep/brepface.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def loops(self) -> List[OCCBrepLoop]:

@property
def outerloop(self) -> OCCBrepLoop:
wire = BRepTools.breptools_OuterWire(self.occ_face)
wire = BRepTools.breptools.OuterWire(self.occ_face)
return OCCBrepLoop(wire)

@property
Expand Down Expand Up @@ -697,7 +697,7 @@ def is_valid(self) -> bool:
bool
"""
return BRepAlgo.brepalgo_IsValid(self.occ_face)
return BRepAlgo.brepalgo.IsValid(self.occ_face)

def fix(self) -> None:
"""
Expand Down

0 comments on commit 3d4925b

Please sign in to comment.