Skip to content

another line intersection bug in FLines #36

@highfellow

Description

@highfellow

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:

[]
[]
[]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions