From: asl Date: Mon, 30 Dec 2013 08:58:41 +0000 (+0000) Subject: saving of profile and guideline before presentation construction X-Git-Tag: BR_hydro_v_0_7~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8625a3b3a9a58fd133000ab1eab5e6032d0d5261;p=modules%2Fhydro.git saving of profile and guideline before presentation construction --- 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" );