Hi,
I've found another bug / feature in the FLine intersection functions. If one line crosses another exactly on one of its own nodes, or the other line's nodes, no points of intersection are returned.
E.g. if you run this code:
line1 = FLine().moveTo(0,300).lineTo(100,200)
line2 = FLine().moveTo(0,200).lineTo(50,250).lineTo(100,300)
_self.lines.clear()
_self.lines.add(line1.append(line2))
print line1.pointsOfIntersection2(line2)
print line2.pointsOfIntersection2(line1)
print line2.doIntersection2(line1)
it returns 3 empty lists:
Hi,
I've found another bug / feature in the FLine intersection functions. If one line crosses another exactly on one of its own nodes, or the other line's nodes, no points of intersection are returned.
E.g. if you run this code:
it returns 3 empty lists: