diff --git a/hub/exports/formats/cesiumjs_tileset.py b/hub/exports/formats/cesiumjs_tileset.py index 99c04d3a..2f23c99d 100644 --- a/hub/exports/formats/cesiumjs_tileset.py +++ b/hub/exports/formats/cesiumjs_tileset.py @@ -29,8 +29,6 @@ class CesiumjsTileset: self._city.upper_corner[2] - self._city.lower_corner[2] ] city_lower_corner = [0, 0, 0] - - print('root') self._tile_set = { 'asset': { 'version': '1.1', @@ -80,7 +78,7 @@ class CesiumjsTileset: } } }, - 'geometricError': 240, + 'geometricError': 500, 'root': { 'boundingVolume': { 'box': CesiumjsTileset._box_values(city_upper_corner, city_lower_corner) @@ -130,7 +128,7 @@ class CesiumjsTileset: 'boundingVolume': { 'box': CesiumjsTileset._box_values(upper_corner, lower_corner) }, - 'geometricError': 70, + 'geometricError': 250, 'metadata': { 'class': 'building', 'properties': { diff --git a/hub/exports/formats/glb.py b/hub/exports/formats/glb.py index 08776ccc..67b5a960 100644 --- a/hub/exports/formats/glb.py +++ b/hub/exports/formats/glb.py @@ -33,10 +33,11 @@ class Glb: def _export(self): try: for building in self._city.buildings: - city = City(building.lower_corner, building.upper_corner, self._city.srs_name) + print(self._city.lower_corner, self._city.upper_corner) + city = City(self._city.lower_corner, self._city.upper_corner, self._city.srs_name) city.name = building.name city.add_city_object(building) - Obj( city, self._path) + Obj(city, self._path) glb = f'{self._path}/{building.name}.glb' subprocess.run([ self._obj2gtl,