Salome HOME
SIP: HYDROData_ObstacleAltitude is included.
[modules/hydro.git] / src / HYDROData / HYDROData_Channel.cxx
index f8e30fbbf434480905e1af09f467dad51c5a7a19..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,6 +118,11 @@ void HYDROData_Channel::Update()
   SetShape3D( aChannelConstructor.Get3dPresentation() );
   SetTopShape( aChannelConstructor.Get2dPresentation() );
 
+  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();
   TopoDS_Wire aRightBank = aChannelConstructor.GetRightBank();