forked from s_ranjbar/city_retrofit
fixed bug when merging
This commit is contained in:
parent
ff701e7f77
commit
48ed0ace4b
|
@ -24,8 +24,8 @@ class Building(CityObject):
|
||||||
"""
|
"""
|
||||||
Building(CityObject) class
|
Building(CityObject) class
|
||||||
"""
|
"""
|
||||||
def __init__(self, name, lod, surfaces, terrains, year_of_construction, function,
|
def __init__(self, name, lod, surfaces, year_of_construction, function,
|
||||||
city_lower_corner, zones_surfaces_ids=[]):
|
city_lower_corner, terrains=None, zones_surfaces_ids=[]):
|
||||||
super().__init__(lod, surfaces, name, city_lower_corner)
|
super().__init__(lod, surfaces, name, city_lower_corner)
|
||||||
self._basement_heated = None
|
self._basement_heated = None
|
||||||
self._attic_heated = None
|
self._attic_heated = None
|
||||||
|
|
|
@ -70,6 +70,6 @@ class Obj:
|
||||||
perimeter_polygon = solid_polygon
|
perimeter_polygon = solid_polygon
|
||||||
surface = Surface(solid_polygon, perimeter_polygon)
|
surface = Surface(solid_polygon, perimeter_polygon)
|
||||||
surfaces.append(surface)
|
surfaces.append(surface)
|
||||||
self._city.add_city_object(Building(name, lod, surfaces, year_of_construction, function,
|
building = Building(name, lod, surfaces, year_of_construction, function, self._lower_corner)
|
||||||
self._lower_corner))
|
self._city.add_city_object(building)
|
||||||
return self._city
|
return self._city
|
||||||
|
|
Loading…
Reference in New Issue
Block a user