From 3dcf1e98a13cb0bdcfc9d0800983a42ed7fb2e45 Mon Sep 17 00:00:00 2001 From: adv Date: Tue, 3 Dec 2013 06:37:13 +0000 Subject: [PATCH] Profile points creation corrected. --- src/HYDROGUI/HYDROGUI_ProfileOp.cxx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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 ); -- 2.39.2