Correct the positions for the boxes
This commit is contained in:
parent
7cb4600c15
commit
fe76d2fe3d
|
@ -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': {
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user