From 12cdd3d90ca0e48293e318a72d15128827def1e0 Mon Sep 17 00:00:00 2001 From: Paul RASCLE Date: Mon, 10 Aug 2015 17:11:46 +0200 Subject: [PATCH] add name to brep --- src/HYDROData/HYDROData_Channel.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 -- 2.39.2