mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0025266: Debug statements in the source are getting flushed on to the console
Output to cout activated previously in Debug mode by #ifdef DEB is suppressed by using macro <PACKAGE>_DEB instead of DEB
This commit is contained in:
@@ -377,10 +377,6 @@ void BRepLib_FuseEdges::BuildListEdges()
|
||||
//Standard_Boolean tFE = TopOpeBRepBuild_GettraceFE();
|
||||
//#endif
|
||||
|
||||
//#ifdef DEB
|
||||
//if (tFE) cout<<endl<<"FuseEdges : BuildListEdges "<<endl;
|
||||
//#endif
|
||||
|
||||
//--------------------------------------------------------
|
||||
// Step One : Build the map ancestors
|
||||
//--------------------------------------------------------
|
||||
@@ -431,10 +427,6 @@ void BRepLib_FuseEdges::BuildListResultEdges()
|
||||
//Standard_Boolean tFE = TopOpeBRepBuild_GettraceFE();
|
||||
//#endif
|
||||
|
||||
//#ifdef DEB
|
||||
//if (tFE) cout<<endl<<"FuseEdges : BuildListResultEdges "<<endl;
|
||||
//#endif
|
||||
|
||||
// if we have edges to fuse
|
||||
if (myMapLstEdg.Extent() > 0) {
|
||||
TopTools_DataMapIteratorOfDataMapOfIntegerListOfShape itLstEdg;
|
||||
@@ -493,10 +485,6 @@ void BRepLib_FuseEdges::BuildListResultEdges()
|
||||
}
|
||||
|
||||
|
||||
//#ifdef DEB
|
||||
//if (tFE) cout<<endl<<"FuseEdges : Creating New Edge "<<endl;
|
||||
//#endif
|
||||
|
||||
BRepLib_MakeEdge ME;
|
||||
|
||||
Standard_Boolean isBSpline = C->DynamicType() == STANDARD_TYPE(Geom_BSplineCurve);
|
||||
@@ -530,9 +518,6 @@ void BRepLib_FuseEdges::BuildListResultEdges()
|
||||
// the curve which is not infinite and limited to old vertices
|
||||
// we try to use ExtendCurveToPoint, then rebuild the NewEdge
|
||||
|
||||
//#ifdef DEB
|
||||
//if (tFE) cout<<endl<<"FuseEdges : MakeEdge failed. Trying to Extend Curve "<<endl;
|
||||
//#endif
|
||||
Handle(Geom_BoundedCurve) ExtC = Handle(Geom_BoundedCurve)::DownCast(C->Copy());
|
||||
if (!ExtC.IsNull()) {
|
||||
gp_Pnt PF = BRep_Tool::Pnt(VF);
|
||||
@@ -550,9 +535,6 @@ void BRepLib_FuseEdges::BuildListResultEdges()
|
||||
|
||||
NewEdge = ME.Edge();
|
||||
|
||||
//#ifdef DEB
|
||||
//if (tFE) cout<<endl<<"FuseEdges : Updating pcurve "<<endl;
|
||||
//#endif
|
||||
if (UpdatePCurve(OldEdge,NewEdge,LmapEdg))
|
||||
myMapEdg.Bind(iLst,NewEdge);
|
||||
}
|
||||
@@ -578,10 +560,6 @@ void BRepLib_FuseEdges::Perform()
|
||||
BuildListResultEdges();
|
||||
}
|
||||
|
||||
//#ifdef DEB
|
||||
//if (tFE) cout<<endl<<"FuseEdges : Perform "<<endl;
|
||||
//#endif
|
||||
|
||||
// if we have fused edges
|
||||
if (myMapEdg.Extent() > 0) {
|
||||
TopTools_DataMapIteratorOfDataMapOfIntegerListOfShape itLstEdg;
|
||||
@@ -613,10 +591,6 @@ void BRepLib_FuseEdges::Perform()
|
||||
}
|
||||
}
|
||||
|
||||
//#ifdef DEB
|
||||
//if (tFE) cout<<endl<<"FuseEdges : Building New Shape "<<endl;
|
||||
//#endif
|
||||
|
||||
// perform the effective substitution
|
||||
Bsub.Build(myShape);
|
||||
|
||||
@@ -634,11 +608,6 @@ void BRepLib_FuseEdges::Perform()
|
||||
myShape=(Bsub.Copy(myShape)).First();
|
||||
}
|
||||
|
||||
//#ifdef DEB
|
||||
//if (tFE) cout<<endl<<"FuseEdges : "<< NbVertices() <<" vertices removed"<<endl;
|
||||
//#endif
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -841,7 +810,7 @@ Standard_Boolean BRepLib_FuseEdges::SameSupport(const TopoDS_Edge& E1,
|
||||
typC1 != STANDARD_TYPE(Geom_Ellipse) &&
|
||||
typC1 != STANDARD_TYPE(Geom_BSplineCurve) &&
|
||||
typC1 != STANDARD_TYPE(Geom_BezierCurve)) {
|
||||
#ifdef DEB
|
||||
#ifdef BREPLIB_DEB
|
||||
cout << " TopOpeBRepTool_FuseEdge : Type de Support non traite" << endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
|
Reference in New Issue
Block a user