no doors outside of buildings

This commit is contained in:
Laura Klünder 2018-12-16 19:26:47 +01:00
parent 6e63899d85
commit c3d8a39b05

View file

@ -91,6 +91,7 @@ class LevelGeometries:
spaces_geom = unary_union([s.geometry for s in level.spaces.all()])
doors_geom = unary_union([d.geometry for d in level.doors.all()])
doors_geom = doors_geom.intersection(buildings_geom)
walkable_spaces_geom = unary_union([s.walkable_geom for s in level.spaces.all()])
geoms.doors = doors_geom.difference(walkable_spaces_geom)
if level.on_top_of_id is None: