]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Dump of profile is implemented.
authorrkv <rkv@opencascade.com>
Thu, 16 Jan 2014 08:03:35 +0000 (08:03 +0000)
committerrkv <rkv@opencascade.com>
Thu, 16 Jan 2014 08:03:35 +0000 (08:03 +0000)
src/HYDROData/HYDROData_Profile.cxx

index ec1b9d7f809294e56d78206c00419527da3ed493..8efcf23b572df25eff7cbe6a045aff05ba840350 100755 (executable)
@@ -95,6 +95,19 @@ QStringList HYDROData_Profile::DumpToPython( MapOfTreatedObjects& theTreatedObje
     aResList << QString( "];" );
     aResList << QString( "%1.SetParametricPoints( points )" ).arg( aName );
   }
+
+  // Set a polyline type if it is not default
+  Handle(HYDROData_ProfileUZ) aPrf = GetProfileUZ( false );
+  if ( !aPrf.IsNull() )
+  {
+    HYDROData_IPolyline::SectionType aSecType = aPrf->GetSectionType( 0 );
+    if ( aSecType != HYDROData_IPolyline::SECTION_POLYLINE )
+    {
+      aResList << QString( "%1.GetProfileUZ().SetSectionType( 0, %2 );" ).arg( aName )
+        .arg( "HYDROData_IPolyline.SECTION_SPLINE" );
+    }
+  }
+
   aResList << QString( "" );
   aResList << QString( "%1.Update();" ).arg( aName );
   aResList << QString( "" );