From cfd6f51978420eb99855081402ab757718139d16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Fri, 9 Dec 2016 02:50:02 +0100 Subject: [PATCH] improve graph building for complicated stair situations --- src/c3nav/routing/room.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/c3nav/routing/room.py b/src/c3nav/routing/room.py index 8e5dc3a4..396fc600 100644 --- a/src/c3nav/routing/room.py +++ b/src/c3nav/routing/room.py @@ -85,7 +85,7 @@ class GraphRoom(): for segment in zip(coords[:-1], coords[1:]): path = Path(segment) length = abs(np.linalg.norm(path.vertices[0] - path.vertices[1])) - for coord in tuple(path.interpolated(max(int(length / 1.0), 1)).vertices)[start:-1]: + for coord in tuple(path.interpolated(max(int(length / 1.0), 2)).vertices)[start:-1]: self.add_point(coord) start = 0