buildgraph: dont connect everything within narrow areas… we do that later anyway
This commit is contained in:
parent
0f81d1e49a
commit
09ee868a73
1 changed files with 1 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
from itertools import combinations, permutations
|
from itertools import combinations
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from matplotlib.path import Path
|
from matplotlib.path import Path
|
||||||
|
@ -73,9 +73,6 @@ class GraphRoom():
|
||||||
for interior in polygon.interiors:
|
for interior in polygon.interiors:
|
||||||
points += self._add_ring(interior, want_left=True)
|
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
|
# points around steps
|
||||||
stairs_areas = self.level.level.geometries.stairs
|
stairs_areas = self.level.level.geometries.stairs
|
||||||
stairs_areas = stairs_areas.buffer(0.3, join_style=JOIN_STYLE.mitre, cap_style=CAP_STYLE.flat)
|
stairs_areas = stairs_areas.buffer(0.3, join_style=JOIN_STYLE.mitre, cap_style=CAP_STYLE.flat)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue