]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
bug #208: 2d presentation of channel by projection
authorasl <asl@opencascade.com>
Tue, 17 Dec 2013 11:50:40 +0000 (11:50 +0000)
committerasl <asl@opencascade.com>
Tue, 17 Dec 2013 11:50:40 +0000 (11:50 +0000)
src/HYDROData/HYDROData_Channel.cxx

index bb60ed1236e49e67d6cee3f57ea38c22d34608a6..8f31b30bcf76496b84ac2b0cfe85e95063926d5a 100644 (file)
@@ -5,6 +5,7 @@
 #include "HYDROData_Polyline3D.h"
 #include "HYDROData_Profile.h"
 #include "HYDROData_PolylineXY.h"
+#include "HYDROData_Projection.h"
 
 #include <TopoDS.hxx>
 #include <TopoDS_Wire.hxx>
@@ -12,6 +13,7 @@
 #include <BRepOffsetAPI_MakePipe.hxx>
 #include <BRepCheck_Analyzer.hxx>
 #include <TopoDS_Vertex.hxx>
+#include <TopoDS_Face.hxx>
 #include <TopExp.hxx>
 //#define DEB_CHANNEL 1
 #ifdef DEB_CHANNEL
@@ -121,6 +123,10 @@ void HYDROData_Channel::Update()
   }
 
   // build 2d shape -- temporary solution!!
+  TopoDS_Face aProj = HYDROData_Projection::MakeProjection( GetShape3D() );
+  SetTopShape( aProj );
+
+  /*
   //aMkSweep.Generated() - it seems doesn't work
   //TopoDS_Vertex aV1,aV2;
   //TopExp::Vertices (aProfileWire, aV1, aV2);
@@ -157,7 +163,7 @@ void HYDROData_Channel::Update()
          BRepTools::Write(aChannel2d, "Chan2dNV.brep");  
        }
 #endif
-  }
+  }*/
 }
 
 QColor HYDROData_Channel::DefaultFillingColor()