Skip to content
Snippets Groups Projects
Commit 58fbce39 authored by Boman Romain's avatar Boman Romain
Browse files

minor fix for Francesco

parent 576d8c1a
Branches devel/bb2024
No related tags found
No related merge requests found
Pipeline #48237 failed
......@@ -831,8 +831,12 @@ def build_clean_path(pts, sorted_v):
p2 = fpath[i+1]
d1 = (p1-p0)
d2 = (p2-p1)
d1u = d1.normalized()
d2u = d2.normalized()
try:
d1u = d1.normalized()
d2u = d2.normalized()
except: # if d1 or d2 has 0 length
to_remove = i
break
# print(f'd1u.cross(d2u)={abs(d1u.cross(d2u))}')
if(abs(d1u.cross(d2u)) < 1.e-2): # colinear
to_remove = i
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment