iTowns / itowns

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

3dtilesProcessing: distance computation seems wrong when using boundingVolume.region #796

Closed peppsac closed 6 years ago

peppsac commented 6 years ago

A region in 3dtiles defines a portion of the globe. See the boundingVolume schema.

If we declare a region with min/max height = 0, and we move the camera above the center of this region at altitude X, then the distance from the camera to the region should be X.

Currently the returned values don't match the expectation.

See the ignored tests added by PR https://github.com/iTowns/itowns/pull/788

gchoqueux commented 6 years ago

finaly fixed in #788