]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
saving of profile and guideline before presentation construction
authorasl <asl@opencascade.com>
Mon, 30 Dec 2013 08:58:41 +0000 (08:58 +0000)
committerasl <asl@opencascade.com>
Mon, 30 Dec 2013 08:58:41 +0000 (08:58 +0000)
src/HYDROData/HYDROData_Channel.cxx

index 2c76702a014bce72c82f20a710dc047d5ed97b96..50a27326a9ab5fd4a4e4d3d897d2d9397d07dd36 100644 (file)
@@ -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" );