From 8625a3b3a9a58fd133000ab1eab5e6032d0d5261 Mon Sep 17 00:00:00 2001 From: asl Date: Mon, 30 Dec 2013 08:58:41 +0000 Subject: [PATCH] saving of profile and guideline before presentation construction --- src/HYDROData/HYDROData_Channel.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HYDROData/HYDROData_Channel.cxx b/src/HYDROData/HYDROData_Channel.cxx index 2c76702a..50a27326 100644 --- a/src/HYDROData/HYDROData_Channel.cxx +++ b/src/HYDROData/HYDROData_Channel.cxx @@ -109,6 +109,8 @@ void HYDROData_Channel::Update() if(aProfileWire.IsNull()) return; + BRepTools::Write( aPathWire, "guideline.brep" ); + BRepTools::Write( aProfileWire, "profile.brep" ); HYDROData_Canal3dAnd2d aChannelConstructor( aProfileWire, aPathWire ); aChannelConstructor.Create3dPresentation(); @@ -116,8 +118,6 @@ void HYDROData_Channel::Update() SetShape3D( aChannelConstructor.Get3dPresentation() ); SetTopShape( aChannelConstructor.Get2dPresentation() ); - BRepTools::Write( aPathWire, "guideline.brep" ); - BRepTools::Write( aProfileWire, "profile.brep" ); BRepTools::Write( aChannelConstructor.Get2dPresentation(), "channel2d.brep" ); BRepTools::Write( aChannelConstructor.Get3dPresentation(), "channel3d.brep" ); -- 2.39.2