From 9f698cdd88cd581fc5d897df1b4d200a9fb59d4a Mon Sep 17 00:00:00 2001 From: asl Date: Tue, 17 Dec 2013 11:50:40 +0000 Subject: [PATCH] bug #208: 2d presentation of channel by projection --- src/HYDROData/HYDROData_Channel.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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() -- 2.39.2