From: asl Date: Tue, 17 Dec 2013 11:50:40 +0000 (+0000) Subject: bug #208: 2d presentation of channel by projection X-Git-Tag: BR_hydro_v_0_6~61 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9f698cdd88cd581fc5d897df1b4d200a9fb59d4a;p=modules%2Fhydro.git bug #208: 2d presentation of channel by projection --- diff --git a/src/HYDROData/HYDROData_Channel.cxx b/src/HYDROData/HYDROData_Channel.cxx index bb60ed12..8f31b30b 100644 --- a/src/HYDROData/HYDROData_Channel.cxx +++ b/src/HYDROData/HYDROData_Channel.cxx @@ -5,6 +5,7 @@ #include "HYDROData_Polyline3D.h" #include "HYDROData_Profile.h" #include "HYDROData_PolylineXY.h" +#include "HYDROData_Projection.h" #include #include @@ -12,6 +13,7 @@ #include #include #include +#include #include //#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()