Closed njwilson23 closed 11 years ago
The following test gives incorrect results.
interx1 and interx2 should be identical, and the plots show that 3/4 of the identified intersections are false positives.
interx1
interx2
L = Line(((0,0), (1,2.5), (2,4), (3, 1))) L2 = Line(((0.25,3), (0.1, 1.5), (1.5, 1.7), (2.2, 1.0))) interx1 = L.intersections(L2) interx2 = L2.intersections(L) plot(*L.get_coordinate_lists()[:2]) plot(*L2.get_coordinate_lists()[:2]) for _x,_y in interx1: plot(_x,_y, 'ob') for _x,_y in interx2: plot(_x,_y, 'or')
Problem was due to an indexing typo in the calling python function. Fixed by 42cbcfb50f08500af09390b4104db51234ba23d2
The following test gives incorrect results.
interx1
andinterx2
should be identical, and the plots show that 3/4 of the identified intersections are false positives.