]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Profile points creation corrected.
authoradv <adv@opencascade.com>
Tue, 3 Dec 2013 06:37:13 +0000 (06:37 +0000)
committeradv <adv@opencascade.com>
Tue, 3 Dec 2013 06:37:13 +0000 (06:37 +0000)
src/HYDROGUI/HYDROGUI_ProfileOp.cxx

index 8b11b28916738cfb9faffa666fd5bffdb303c077..8f9519006ede54a7c9ceaf398bd9369b4a63e14f 100644 (file)
@@ -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 );