code: def allPolygons(self):
          
          polygons = self.polygons[:]
          if self.front: 
              polygons.extend(self.front.allPolygons())
          if self.back: 
              polygons.extend(self.back.allPolygons())
          return polygons
docs: Return a list of all polygons in this BSP tree.