refactor graph code
This commit is contained in:
parent
e6978c6e61
commit
57ed2ec368
4 changed files with 65 additions and 51 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue