Skip to content

Commit

Permalink
qgsterraingenerator: Use Qgs3DUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitjano authored and troopa81 committed Mar 20, 2023
1 parent 0ee7b4c commit 50f3420
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/3d/terrain/qgsterraingenerator.cpp
Expand Up @@ -26,8 +26,7 @@ QgsAABB QgsTerrainGenerator::rootChunkBbox( const Qgs3DMapSettings &map ) const

float hMin, hMax;
rootChunkHeightRange( hMin, hMax );
return QgsAABB( te.xMinimum() - map.origin().x(), hMin * map.terrainVerticalScale(), -te.yMaximum() + map.origin().y(),
te.xMaximum() - map.origin().x(), hMax * map.terrainVerticalScale(), -te.yMinimum() + map.origin().y() );
return Qgs3DUtils::mapToWorldExtent( te, hMin * map.terrainVerticalScale(), hMax * map.terrainVerticalScale(), map.origin() );
}

float QgsTerrainGenerator::rootChunkError( const Qgs3DMapSettings &map ) const
Expand Down

0 comments on commit 50f3420

Please sign in to comment.