scially / Cesium3DTilesConverter

Convert OSGB,Shp,GDAL To Cesium 3DTiles
GNU Lesser General Public License v2.1
369 stars 85 forks source link

咨询geometricError计算方法 #1

Closed cici19850 closed 2 years ago

cici19850 commented 2 years ago

你好,请问有geometricError的计算方法吗?感觉这个里面的计算方法与cesuimlab有些不一样

scially commented 2 years ago
  1. 不太了解CesiumLab的计算方法。
  2. 对于Tiles的包围盒,我默认都是用Region,然后计算出子节点,父节点就是子节点的2倍,依次类推,根节点搞成1000。
    double geometricError() const {
            double maxErr = std::max({north - south, maxHeight - minHeight, east - west});
            return maxErr / 20.0;
        }
cici19850 commented 2 years ago
  1. 不太了解CesiumLab的计算方法。
  2. 对于Tiles的包围盒,我默认都是用Region,然后计算出子节点,父节点就是子节点的2倍,依次类推,根节点搞成1000。
  double geometricError() const {
            double maxErr = std::max({north - south, maxHeight - minHeight, east - west});
            return maxErr / 20.0;
        }