X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_ProfileUZ.cxx;h=5dccf20cc35c1d2178b1ec76f9b6cbb6124806e8;hb=f86cf7ecf17dbae2a1d84e0ebbab07c732208c2f;hp=49fa3899596e151e8b3e7ec993ebc9765598062f;hpb=5af3b9f9b6d4827b1ba04b7618539bbcd2a704c8;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_ProfileUZ.cxx b/src/HYDROData/HYDROData_ProfileUZ.cxx old mode 100755 new mode 100644 index 49fa3899..5dccf20c --- a/src/HYDROData/HYDROData_ProfileUZ.cxx +++ b/src/HYDROData/HYDROData_ProfileUZ.cxx @@ -36,7 +36,6 @@ #include -IMPLEMENT_STANDARD_HANDLE(HYDROData_ProfileUZ, HYDROData_IPolyline) IMPLEMENT_STANDARD_RTTIEXT(HYDROData_ProfileUZ, HYDROData_IPolyline) HYDROData_ProfileUZ::HYDROData_ProfileUZ() @@ -82,6 +81,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; } @@ -278,7 +278,7 @@ HYDROData_ProfileUZ::PointsList HYDROData_ProfileUZ::GetPoints( const int /*theS return aResList; } -void HYDROData_ProfileUZ::CalculateAndAddPoints(const NCollection_Sequence& theXYZPoints, Handle_HYDROData_PolylineXY& thePolylineXY) +void HYDROData_ProfileUZ::CalculateAndAddPoints(const NCollection_Sequence& theXYZPoints, Handle(HYDROData_PolylineXY)& thePolylineXY) { // Fill 2D polyline for ( int i = 1; i <= theXYZPoints.Size(); i++ ) {