]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
workaround to improve: allow to read enbankement altitude given by a flat line BR_quadtree_20150925
authorPaul RASCLE <paul.rascle@edf.fr>
Mon, 21 Sep 2015 09:51:39 +0000 (11:51 +0200)
committerPaul RASCLE <paul.rascle@edf.fr>
Mon, 21 Sep 2015 09:51:39 +0000 (11:51 +0200)
src/HYDROData/HYDROData_ProfileUZ.cxx

index 49fa3899596e151e8b3e7ec993ebc9765598062f..bfe75e3b55092840f3f6701cdf2f9e74bb27cc5b 100755 (executable)
@@ -82,6 +82,7 @@ double HYDROData_ProfileUZ::GetDepthFromDistance( const PointsList& thePoints,
       aResDepth = ( aPrevPoint.Y() + aRatio * aCurPoint.Y() ) / ( 1 + aRatio );
       break;
     }
+    else aResDepth = aCurPoint.Y();  // TODO: workaround for normalized flat altitudes
 
     aPrevPoint = aCurPoint;
   }