add report of intersection count

pull/191/head
Andrew Port 2023-02-03 21:00:57 -05:00
parent 31b6f3dd90
commit 3eb21161cf
1 changed files with 3 additions and 2 deletions

View File

@ -1536,8 +1536,9 @@ class Test_intersect(unittest.TestCase):
path1 = random_path()
path2 = random_path()
t = time.time()
path1.intersect(path2)
print(f"\nIntersection calculation took {time.time() - t} seconds.\n")
intersections = path1.intersect(path2)
print("\nFound {} intersections in {} seconds.\n"
"".format(len(intersections), time.time() - t))
def test_line_line_0(self):
l0 = Line(start=(25.389999999999997+99.989999999999995j),