Skip to content

Commit

Permalink
fix colinearity detection
Browse files Browse the repository at this point in the history
  • Loading branch information
rpopovici committed Feb 7, 2019
1 parent f51cdba commit 52fd0dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mesh_select_overlapping.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
bl_info = {
"name": "Select Overlapping Mesh",
"author": "rpopovici",
"version": (0, 2),
"version": (0, 3),
"blender": (2, 80, 0),
"location": "(Edit Mode) Select > Select All by Trait",
"description": "Select overlapping vertices/edges/faces",
Expand All @@ -27,7 +27,7 @@ def measure (first, second):
return distance

def collinear(vec1, vec2, epsilon):
return ((vec1.angle(vec2) < epsilon) or abs((vec1.angle(vec2) - radians(180)) < epsilon))
return ((vec1.angle(vec2) < epsilon) or (abs(radians(180) - vec1.angle(vec2)) < epsilon))

def adjacent(face, another_face):
adjacent_faces = []
Expand Down

0 comments on commit 52fd0dc

Please sign in to comment.