From 3c56abf0477a796bef6acb6d47cc01a673136b3c Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Sun, 17 Apr 2016 18:08:09 +0200 Subject: [PATCH] traylayout: Use straight edges on walls with no floor underneeth Still need to move it over to use E in stead of e --- boxes/generators/traylayout.py | 21 +++++++++++++++++++-- documentation/src/TODO.rst | 3 ++- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/boxes/generators/traylayout.py b/boxes/generators/traylayout.py index 8e9e837..2dbbecc 100755 --- a/boxes/generators/traylayout.py +++ b/boxes/generators/traylayout.py @@ -88,6 +88,16 @@ class Layout(Boxes): result += 1 return result + def vFloor(self, x, y): + "Is there floor under vertical wall" + return ((x>0 and self.floors[y][x-1]) or + (x0 and self.floors[y-1][x]) or + (y