]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
add name to brep
authorPaul RASCLE <paul.rascle@edf.fr>
Mon, 10 Aug 2015 15:11:46 +0000 (17:11 +0200)
committerPaul RASCLE <paul.rascle@edf.fr>
Mon, 10 Aug 2015 15:11:46 +0000 (17:11 +0200)
src/HYDROData/HYDROData_Channel.cxx

index 77e27791f228814c84a78f646a24dd58b026149f..04b316c93f23420f26f1c900abcd83b3f29e7dfc 100644 (file)
@@ -142,8 +142,14 @@ bool HYDROData_Channel::CreatePresentations( const Handle(HYDROData_Polyline3D)&
   }
 
 #ifdef DEB_CHANNEL
-  BRepTools::Write( aPathWire, "guideline.brep" );
-  BRepTools::Write( aProfileWire, "profile.brep" );
+  std::string brepName = "guideline_";
+  brepName += theGuideLine->GetName().toStdString();
+  brepName += ".brep";
+  BRepTools::Write( aPathWire, brepName.c_str() );
+  brepName = "profile_";
+  brepName += theGuideLine->GetName().toStdString();
+  brepName += ".brep";
+  BRepTools::Write( aProfileWire, brepName.c_str() );
 #endif
 
   // Pre-processing