From: asl Date: Wed, 4 Dec 2013 10:15:04 +0000 (+0000) Subject: correct passing of parametric representation X-Git-Tag: BR_hydro_v_0_4~56 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=375528a93a880218ddb86dd990ac9e12a42c6282;p=modules%2Fhydro.git correct passing of parametric representation --- diff --git a/src/HYDROGUI/HYDROGUI_ProfileOp.cxx b/src/HYDROGUI/HYDROGUI_ProfileOp.cxx index de662852..db4cd7ba 100644 --- a/src/HYDROGUI/HYDROGUI_ProfileOp.cxx +++ b/src/HYDROGUI/HYDROGUI_ProfileOp.cxx @@ -94,14 +94,14 @@ void HYDROGUI_ProfileOp::startOperation() CurveCreator::Coordinates aCurveCoords; CurveCreator::SectionsMap aSectionsMap; - HYDROData_Profile::ProfilePoints aSectPointsList = myEditedObject->GetProfilePoints(); + HYDROData_ProfileUZ::PointsList aSectPointsList = myEditedObject->GetParametricPoints(); CurveCreator::PosPointsList aPoints; for ( int k = 1, aNbPoints = aSectPointsList.Size(); k <= aNbPoints; ++k ) { - const HYDROData_Profile::ProfilePoint& aSectPoint = aSectPointsList.Value( k ); + const HYDROData_ProfileUZ::Point& aSectPoint = aSectPointsList.Value( k ); aCurveCoords.clear(); aCurveCoords.push_back( aSectPoint.X() ); - aCurveCoords.push_back( aSectPoint.Z() ); + aCurveCoords.push_back( aSectPoint.Y() ); CurveCreator_PosPoint* aPosPoint = new CurveCreator_PosPoint( k, aCurveCoords ); aPoints.push_back( aPosPoint );