From 09ee868a7322627e476fef5dd5d767bfe35a69b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Thu, 8 Dec 2016 22:24:04 +0100 Subject: [PATCH] =?UTF-8?q?buildgraph:=20dont=20connect=20everything=20wit?= =?UTF-8?q?hin=20narrow=20areas=E2=80=A6=20we=20do=20that=20later=20anyway?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/c3nav/routing/room.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/c3nav/routing/room.py b/src/c3nav/routing/room.py index 541fe7eb..8e5dc3a4 100644 --- a/src/c3nav/routing/room.py +++ b/src/c3nav/routing/room.py @@ -1,4 +1,4 @@ -from itertools import combinations, permutations +from itertools import combinations import numpy as np from matplotlib.path import Path @@ -73,9 +73,6 @@ class GraphRoom(): for interior in polygon.interiors: points += self._add_ring(interior, want_left=True) - for from_point, to_point in permutations(points, 2): - from_point.connect_to(to_point) - # points around steps stairs_areas = self.level.level.geometries.stairs stairs_areas = stairs_areas.buffer(0.3, join_style=JOIN_STYLE.mitre, cap_style=CAP_STYLE.flat)