first stuff for graph building – collecting points

This commit is contained in:
Laura Klünder 2016-12-02 23:32:19 +01:00
parent ffd5c3fa70
commit 211ef767db
7 changed files with 164 additions and 0 deletions

View file

@ -90,6 +90,10 @@ class LevelGeometries():
def holes(self):
return cascaded_union([holes.geometry for holes in self.level.holes.all()]).intersection(self.areas)
@cached_property
def accessible(self):
return self.areas.difference(self.holes).difference(self.obstacles)
@cached_property
def buildings_with_holes(self):
return self.buildings.difference(self.holes)