]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Convert the altitude for bathymetry to negative number during it reading from the...
authoradv <adv@opencascade.com>
Thu, 28 Nov 2013 06:20:45 +0000 (06:20 +0000)
committeradv <adv@opencascade.com>
Thu, 28 Nov 2013 06:20:45 +0000 (06:20 +0000)
src/HYDROData/HYDROData_Bathymetry.cxx

index 95c0affdc188d0ca97b917e6d41ead08819fb8fd..0b61749c101532ab1327b73e0be26402562651ad 100644 (file)
@@ -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;