From ba36ec10c79afde0a35bcc88c76b1e6e828811b7 Mon Sep 17 00:00:00 2001 From: adv Date: Tue, 21 Jan 2014 11:54:56 +0000 Subject: [PATCH] Debugging code encapsulated. --- src/HYDROData/HYDROData_Channel.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 ); -- 2.39.2