refactor graph code

This commit is contained in:
Laura Klünder 2016-12-10 12:07:52 +01:00
parent e6978c6e61
commit 57ed2ec368
4 changed files with 65 additions and 51 deletions

View file

@ -21,6 +21,7 @@ class GraphRoom():
self.points = []
# Building the Graph
def prepare_build(self):
self.clear_geometry = self.geometry.buffer(-0.3, join_style=JOIN_STYLE.mitre)
@ -157,6 +158,7 @@ class GraphRoom():
point2.connect_to(point1)
i += 1
# Routing
def build_router(self):
self.router = Router()
self.router.build(self.points)