From: asl Date: Tue, 15 Nov 2016 05:16:10 +0000 (+0300) Subject: patch for Z shift of the result DTM X-Git-Tag: v1.6~46 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=334398a7f6f7746996b1ea9b6e182e9a9eeeb102;p=modules%2Fhydro.git patch for Z shift of the result DTM --- diff --git a/src/HYDROData/HYDROData_DTM.cxx b/src/HYDROData/HYDROData_DTM.cxx index 5134765d..70428488 100644 --- a/src/HYDROData/HYDROData_DTM.cxx +++ b/src/HYDROData/HYDROData_DTM.cxx @@ -534,6 +534,7 @@ std::vector HYDROData_DTM::ProfileToParametric( double zmin, zmax; GetProperties( theProfile, aLowest, theDir, false, zmin, zmax ); + aLowest.SetZ( 0 ); gp_Ax3 aStd3d( gp_Pnt( 0, 0, 0 ), gp_Dir( 0, 0, 1 ), gp_Dir( 1, 0, 0 ) ); gp_Ax3 aLocal( aLowest, gp_Dir( 0, 0, 1 ), gp_Dir( theDir.X(), theDir.Y(), 0 ) );