make sure thin walls are always visible

This commit is contained in:
Laura Klünder 2017-10-16 17:10:32 +02:00
parent 38a63c5a6a
commit 0dd94d7459
2 changed files with 9 additions and 3 deletions

View file

@ -31,8 +31,11 @@ def render_svg(level, miny, minx, maxy, maxx, scale=1):
spaces_geom = bbox.intersection(unary_union([s.geometry for s in level.spaces.all()]))
doors_geom = bbox.intersection(unary_union([d.geometry for d in level.doors.all()]))
doors_geom = doors_geom.difference(spaces_geom)
svg.add_geometry(spaces_geom, fill_color='#ffffff')
walls_geom = buildings_geom.difference(spaces_geom).difference(doors_geom)
svg.add_geometry(walls_geom, fill_color='#aaaaaa', stroke_px=0.5, stroke_color='#aaaaaa')
return svg.get_xml()