Skip to content

Commit

Permalink
Fixed invalid references post file split
Browse files Browse the repository at this point in the history
  • Loading branch information
gumyr committed Dec 31, 2024
1 parent b77ed1a commit 678b715
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/build123d/topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -2393,7 +2393,9 @@ def filter_by(
def axis_parallel_predicate(axis: Axis, tolerance: float):
def pred(shape: Shape):
if shape.is_planar_face:
assert shape.wrapped is not None and isinstance(shape, Face)
assert shape.wrapped is not None and isinstance(
shape.wrapped, TopoDS_Face
)
gp_pnt = gp_Pnt()
surface_normal = gp_Vec()
u_val, _, v_val, _ = BRepTools.UVBounds_s(shape.wrapped)
Expand Down Expand Up @@ -2428,7 +2430,9 @@ def plane_parallel_predicate(plane: Plane, tolerance: float):

def pred(shape: Shape):
if shape.is_planar_face:
assert shape.wrapped is not None and isinstance(shape, Face)
assert shape.wrapped is not None and isinstance(
shape.wrapped, TopoDS_Face
)
gp_pnt: gp_Pnt = gp_Pnt()
surface_normal: gp_Vec = gp_Vec()
u_val, _, v_val, _ = BRepTools.UVBounds_s(shape.wrapped)
Expand Down

0 comments on commit 678b715

Please sign in to comment.