From: adv Date: Tue, 21 Jan 2014 11:54:56 +0000 (+0000) Subject: Debugging code encapsulated. X-Git-Tag: BR_hydro_v_1_0~58 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ba36ec10c79afde0a35bcc88c76b1e6e828811b7;p=modules%2Fhydro.git Debugging code encapsulated. --- diff --git a/src/HYDROData/HYDROData_Channel.cxx b/src/HYDROData/HYDROData_Channel.cxx index 2159ce7f..b9424614 100644 --- a/src/HYDROData/HYDROData_Channel.cxx +++ b/src/HYDROData/HYDROData_Channel.cxx @@ -103,8 +103,10 @@ void HYDROData_Channel::Update() if(aProfileWire.IsNull()) return; +#ifdef DEB_CHANNEL BRepTools::Write( aPathWire, "guideline.brep" ); BRepTools::Write( aProfileWire, "profile.brep" ); +#endif HYDROData_Canal3dAnd2d aChannelConstructor( aProfileWire, aPathWire ); aChannelConstructor.Create3dPresentation(); @@ -123,6 +125,14 @@ void HYDROData_Channel::Update() TopoDS_Wire anInlet = aChannelConstructor.GetInlet(); TopoDS_Wire anOutlet = aChannelConstructor.GetOutlet(); +#ifdef DEB_CHANNEL + HYDROData_ShapesTool::DumpShapeSubShapes( std::cout, "Top shape edges:", GetTopShape(), TopAbs_EDGE ); + HYDROData_ShapesTool::DumpShapeSubShapes( std::cout, "Left bank edges:", aLeftBank, TopAbs_EDGE ); + HYDROData_ShapesTool::DumpShapeSubShapes( std::cout, "Right bank edges:", aRightBank, TopAbs_EDGE ); + HYDROData_ShapesTool::DumpShapeSubShapes( std::cout, "Inlet edges:", anInlet, TopAbs_EDGE ); + HYDROData_ShapesTool::DumpShapeSubShapes( std::cout, "Outlet edges:", anOutlet, TopAbs_EDGE ); +#endif + TopTools_SequenceOfShape aLeftBankEdges; HYDROData_ShapesTool::ExploreShapeToShapes( aLeftBank, TopAbs_EDGE, aLeftBankEdges );