def get_area_queue(self):
        queue = collections.deque()
        list = []
        queue.append(self)

        while len(queue) > 0:
            item = queue.pop()
            list.append(item)
            if item.node1 is not None:
                queue.appendleft(item.node1)
            if item.node2 is not None:
                queue.appendleft(item.node2)

        list.reverse()

        return list
Gets list of BSPSections, starting from leaves and moving towards root
dataset/ETHPy150Open tuturto/pyherc/src/pyherc/generators/utils.py/BSPSection.get_area_queue