Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions src/osut/osut.py
Original file line number Diff line number Diff line change
Expand Up @@ -3470,14 +3470,6 @@ def lineIntersection(s1=[], s2=[]):
xa1b1 = a.cross(a1b1)
xa1b2 = a.cross(a1b2)

# if xa1b1.length() < CN.TOL2:
# if isPointAlongSegment(a1, [a2, b1]): return None
# if isPointAlongSegment(a2, [a1, b1]): return None
#
# if xa1b2.length() < CN.TOL2:
# if isPointAlongSegment(a1, [a2, b2]): return None
# if isPointAlongSegment(a2, [a1, b2]): return None

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now redundant checks.

# Both segment endpoints can't be 'behind' point.
if a.dot(a1b1) < 0 and a.dot(a1b2) < 0: return None

Expand Down