fixed bug when merging

This commit is contained in:
Pilar 2021-04-07 14:31:16 -04:00
parent ff701e7f77
commit 48ed0ace4b
2 changed files with 4 additions and 4 deletions

View File

@ -24,8 +24,8 @@ class Building(CityObject):
"""
Building(CityObject) class
"""
def __init__(self, name, lod, surfaces, terrains, year_of_construction, function,
city_lower_corner, zones_surfaces_ids=[]):
def __init__(self, name, lod, surfaces, year_of_construction, function,
city_lower_corner, terrains=None, zones_surfaces_ids=[]):
super().__init__(lod, surfaces, name, city_lower_corner)
self._basement_heated = None
self._attic_heated = None

View File

@ -70,6 +70,6 @@ class Obj:
perimeter_polygon = solid_polygon
surface = Surface(solid_polygon, perimeter_polygon)
surfaces.append(surface)
self._city.add_city_object(Building(name, lod, surfaces, year_of_construction, function,
self._lower_corner))
building = Building(name, lod, surfaces, year_of_construction, function, self._lower_corner)
self._city.add_city_object(building)
return self._city