From: Paul RASCLE Date: Mon, 10 Aug 2015 15:11:46 +0000 (+0200) Subject: add name to brep X-Git-Tag: BR_quadtree_20150925~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=12cdd3d90ca0e48293e318a72d15128827def1e0;p=modules%2Fhydro.git add name to brep --- diff --git a/src/HYDROData/HYDROData_Channel.cxx b/src/HYDROData/HYDROData_Channel.cxx index 77e27791..04b316c9 100644 --- a/src/HYDROData/HYDROData_Channel.cxx +++ b/src/HYDROData/HYDROData_Channel.cxx @@ -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