public List <Polygon> AllPolygons() { var polygons = Polygons.ToList(); if (Front != null) { polygons.AddRange(Front.AllPolygons()); } if (Back != null) { polygons.AddRange(Back.AllPolygons()); } return(polygons); }