iTowns / itowns

A Three.js-based framework written in Javascript/WebGL for visualizing 3D geospatial data
http://www.itowns-project.org
Other
1.07k stars 290 forks source link

[Bug] TileMesh min and max elevation with multiple elevation layers #2282

Open jailln opened 4 months ago

jailln commented 4 months ago

Min and max elevation values of a TileMesh node are wrong when there multiple elevation layers are added to the view

Context

TileMesh has an OBB which z min and max values are reset each time a new ElevationLayer is added to the view with the new ElevationLayer values (while it should consider all the elevation layers min and max values). Also, when removing one ElevationLayer from the view, the bbox min and max z values are set to 0,0 while they should be computed from the remaining ElevationLayers.

Possible Cause/Fix/Solution

We need to: