]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Fix for the bug #130: bathymetry sign is wrong.
authorrkv <rkv@opencascade.com>
Thu, 28 Nov 2013 11:05:28 +0000 (11:05 +0000)
committerrkv <rkv@opencascade.com>
Thu, 28 Nov 2013 11:05:28 +0000 (11:05 +0000)
src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.cxx

index f1337a1746c3afe1e686cfdf3413fec3bc753c17..ed6a9fb41f05bba420eb759c8e9b90c684781817 100644 (file)
@@ -95,11 +95,7 @@ void HYDROGUI_VTKPrsBathymetry::compute()
         aZ = anAltPnt.Z();
         if ( ValuesLessEquals( aZ, anInvalidZ ) )
         {
-          aZ = Z_MAX;
-        }
-        else
-        {
-          aZ = -aZ;
+          aZ = Z_MAX; // If Z value is invalid then use Z_MAX
         }
         aPoints->InsertPoint( i, anAltPnt.X(), anAltPnt.Y(), aZ );
         aVertex->GetPointIds()->SetId( 0, i );