Commit 4c9265a3 authored by Michael Büsch's avatar Michael Büsch

gui/fup_grid: Return set from collision check

Signed-off-by: Michael Büsch's avatarMichael Buesch <>
parent 51427375
......@@ -221,9 +221,9 @@ class FupGrid(object):
with another wire line.
excludeWires => Iterable if FupWire()s to exclude from the check.
lineSeg => The LineSeg2D() that should be drawn.
Returns a list of colliding self.Line() instances.
Returns a set of colliding self.Line() instances.
collisions = []
collisions = set()
for line in self.__lines:
if line.wire in excludeWires:
......@@ -234,7 +234,7 @@ class FupGrid(object):
# Make a shallow copy of Line and add the Inter2D.
line = line.dup()
line.inter = inter
return collisions
def drawWireLine(self, painter, wire, lineSeg):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment