From: adv Date: Tue, 3 Dec 2013 06:37:13 +0000 (+0000) Subject: Profile points creation corrected. X-Git-Tag: BR_hydro_v_0_4~95 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3dcf1e98a13cb0bdcfc9d0800983a42ed7fb2e45;p=modules%2Fhydro.git Profile points creation corrected. --- diff --git a/src/HYDROGUI/HYDROGUI_ProfileOp.cxx b/src/HYDROGUI/HYDROGUI_ProfileOp.cxx index 8b11b289..8f951900 100644 --- a/src/HYDROGUI/HYDROGUI_ProfileOp.cxx +++ b/src/HYDROGUI/HYDROGUI_ProfileOp.cxx @@ -169,21 +169,20 @@ bool HYDROGUI_ProfileOp::processApply( int& theUpdateFlags, QString aProfileName = aPanel->getProfileName(); aProfileObj->SetName(aProfileName); - HYDROData_Profile::ProfilePoints aProfilePoints; + HYDROData_ProfileUZ::PointsList aProfileParamPoints; CurveCreator::Coordinates aCurveCoords = myProfile->getPoints( 0 ); for ( int k = 0 ; k + 1 < aCurveCoords.size() ; k++ ) { - HYDROData_Profile::ProfilePoint aProfilePoint; + HYDROData_ProfileUZ::Point aProfileParamPoint; - aProfilePoint.SetX( aCurveCoords.at( k ) ); + aProfileParamPoint.SetX( aCurveCoords.at( k ) ); k++; - aProfilePoint.SetY( 0 ); - aProfilePoint.SetZ( aCurveCoords.at( k ) ); + aProfileParamPoint.SetY( aCurveCoords.at( k ) ); - aProfilePoints.Append( aProfilePoint ); + aProfileParamPoints.Append( aProfileParamPoint ); } - aProfileObj->SetProfilePoints( aProfilePoints ); + aProfileObj->SetParametricPoints( aProfileParamPoints ); if( !myIsEdit ) module()->setObjectVisible( HYDROGUI_Tool::GetActiveOCCViewId( module() ), aProfileObj, true );