Uniquify overlap points during segment overlap computation.

This commit is contained in:
mrg 2022-05-17 13:31:23 -07:00
parent 9b592ab432
commit 8217a84165
1 changed files with 1 additions and 1 deletions

View File

@ -511,7 +511,7 @@ class pin_layout:
elif other.contains(self):
return math.inf
else:
intersections = self.compute_overlap_segment(other)
intersections = set(self.compute_overlap_segment(other))
# This is the common case where two pairs of edges overlap
# at two points, so just find the distance between those two points
if len(intersections) == 2: