Salome HOME
Variables naming.
[modules/hydro.git] / src / HYDROData / HYDROData_Channel.cxx
index b9424614e234a427eb9d92acf77bcc4cbebe9f74..bd757fbd7b4bc1ba8c1f34edcdf8344f4b641aef 100644 (file)
@@ -13,7 +13,6 @@
 #include <BRepOffsetAPI_MakePipeShell.hxx>
 #include <BRepOffsetAPI_MakePipe.hxx>
 #include <BRepCheck_Analyzer.hxx>
-#include <BRepTools.hxx>
 
 #include <TopExp.hxx>
 
@@ -109,13 +108,18 @@ void HYDROData_Channel::Update()
 #endif
 
   HYDROData_Canal3dAnd2d aChannelConstructor( aProfileWire, aPathWire );
+  if( aChannelConstructor.GetStatus() != 0 )
+    return;
+
   aChannelConstructor.Create3dPresentation();
   aChannelConstructor.Create2dPresentation();
   SetShape3D( aChannelConstructor.Get3dPresentation() );
   SetTopShape( aChannelConstructor.Get2dPresentation() );
 
+#ifdef DEB_CHANNEL
   BRepTools::Write( aChannelConstructor.Get2dPresentation(), "channel2d.brep" );
   BRepTools::Write( aChannelConstructor.Get3dPresentation(), "channel3d.brep" );
+#endif
 
   TopAbs_ShapeEnum aType = GetTopShape().ShapeType();