]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
correct passing of parametric representation
authorasl <asl@opencascade.com>
Wed, 4 Dec 2013 10:15:04 +0000 (10:15 +0000)
committerasl <asl@opencascade.com>
Wed, 4 Dec 2013 10:15:04 +0000 (10:15 +0000)
src/HYDROGUI/HYDROGUI_ProfileOp.cxx

index de66285269f83ba04f9ae2a35b6525673498fd6c..db4cd7baf4601d6a4ae1d38dc83809cfefb3949a 100644 (file)
@@ -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 );