Salome HOME
17.12.2013. Added Partition algorithm (draft version).
[modules/hydro.git] / src / HYDROData / HYDROData_Polyline3D.cxx
index 0507b2e8bcba9ce1396bdbbdb563a0561e1da307..2bdd60a5d09f751a3bc74d85c00fe6853abe6e55 100644 (file)
@@ -318,6 +318,8 @@ HYDROData_IPolyline::PointsList generateProfileUZPoints(
 
     double aPointDistance = thePolyline->GetDistance( 0, i - 1 );
     double aPointDepth = theBathymetry->GetAltitudeForPoint( aSectPoint );
+    if( aPointDepth==theBathymetry->GetInvalidAltitude() )
+      aPointDepth = 0.0;
 
     HYDROData_IPolyline::Point anAltitudePoint( aPointDistance, aPointDepth );
     aPointsList.Append( anAltitudePoint );