Salome HOME
SIP: HYDROData_ObstacleAltitude is included.
[modules/hydro.git] / src / HYDROData / HYDROData_Channel.cxx
index e011807bd2c1ba9adfb5481e88c61f3a8c2d70a1..50a27326a9ab5fd4a4e4d3d897d2d9397d07dd36 100644 (file)
@@ -109,8 +109,8 @@ void HYDROData_Channel::Update()
   if(aProfileWire.IsNull())
     return;
 
-  //BRepTools::Write( aPathWire, "guideline.brep" );
-  //BRepTools::Write( aProfileWire, "profile.brep" );
+  BRepTools::Write( aPathWire, "guideline.brep" );
+  BRepTools::Write( aProfileWire, "profile.brep" );
 
   HYDROData_Canal3dAnd2d aChannelConstructor( aProfileWire, aPathWire );
   aChannelConstructor.Create3dPresentation();
@@ -118,10 +118,10 @@ 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" );
+  BRepTools::Write( aChannelConstructor.Get2dPresentation(), "channel2d.brep" );
+  BRepTools::Write( aChannelConstructor.Get3dPresentation(), "channel3d.brep" );
+
+  TopAbs_ShapeEnum aType = GetTopShape().ShapeType();
 
   // Create groups for channel
   TopoDS_Wire aLeftBank = aChannelConstructor.GetLeftBank();