From: adv Date: Thu, 28 Nov 2013 06:20:45 +0000 (+0000) Subject: Convert the altitude for bathymetry to negative number during it reading from the... X-Git-Tag: issue_132_11_28~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e75504ed446bb0bd2f5bf5649c787fe61adc9710;p=modules%2Fhydro.git Convert the altitude for bathymetry to negative number during it reading from the file (Bug #130). --- diff --git a/src/HYDROData/HYDROData_Bathymetry.cxx b/src/HYDROData/HYDROData_Bathymetry.cxx index 95c0affd..0b61749c 100644 --- a/src/HYDROData/HYDROData_Bathymetry.cxx +++ b/src/HYDROData/HYDROData_Bathymetry.cxx @@ -370,9 +370,10 @@ bool HYDROData_Bathymetry::importFromXYZFile( QFile& theFile, bool isXOk = false, isYOk = false, isZOk = false; + // We automaticaly convert the z value to a negative number aPoint.SetX( anX.toDouble( &isXOk ) ); aPoint.SetY( anY.toDouble( &isYOk ) ); - aPoint.SetZ( aZ.toDouble( &isZOk ) ); + aPoint.SetZ( -aZ.toDouble( &isZOk ) ); if ( !isXOk || !isYOk || !isZOk ) return false;