Skip to content

Commit

Permalink
fix(face): Avoid IndexErrors in is_geometrically_equivalent
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswmackey committed Oct 8, 2024
1 parent 6bedfb0 commit 4225055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ladybug_geometry/geometry3d/face.py
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ def is_geometrically_equivalent(self, face, tolerance):
match_i = None
for i, pt in enumerate(self.vertices):
if pt.is_equivalent(face[0], tolerance):
match_i = i
match_i = i if i != len(self.vertices) - 1 else -1
break

# check equivalency of each vertex
Expand Down

0 comments on commit 4225055

Please sign in to comment.