mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0025418: Debug output to be limited to OCC development environment
Macros ending on "DEB" are replaced by OCCT_DEBUG across OCCT code; new macros described in documentation. Macros starting with DEB are changed to start with "OCCT_DEBUG_". Some code cleaned.
This commit is contained in:
@@ -38,14 +38,14 @@ IFGraph_SCRoots::IFGraph_SCRoots
|
||||
complist.GetFromIter(Loaded());
|
||||
// Interface_Graph G(Model());
|
||||
Interface_Graph G(thegraph);
|
||||
#ifdef PRINTDEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<" SCRoots:"<<endl;
|
||||
#endif
|
||||
G.ResetStatus();
|
||||
for (complist.Start(); complist.More(); complist.Next()) {
|
||||
Handle(Standard_Transient) ent = complist.FirstEntity();
|
||||
Standard_Integer num = G.EntityNumber(ent);
|
||||
#ifdef PRINTDEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<" Iteration,num="<<num<<(G.IsPresent(num) ? " Pris" : " A prendre")<<endl;
|
||||
#endif
|
||||
if (!G.IsPresent(num)) { // enregistrer pour suivants
|
||||
|
@@ -36,18 +36,18 @@ IFGraph_StrongComponants::IFGraph_StrongComponants
|
||||
GetFromEntity (G.Entity(i),Standard_False);
|
||||
}
|
||||
#else
|
||||
#ifdef PRINTDEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"StrongComponants :"<<endl;
|
||||
#endif
|
||||
for (IFGraph_SortedStrongs res(G); res.More(); res.Next()) {
|
||||
Standard_Integer nb = res.NbVertices();
|
||||
#ifdef PRINTDEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<" Iteration, Vertices:"<<nb<<" :";
|
||||
#endif
|
||||
if (nb == 0) continue;
|
||||
AddPart();
|
||||
for (Standard_Integer i = 1; i <= nb; i ++)
|
||||
#ifdef PRINTDEB
|
||||
#ifdef OCCT_DEBUG
|
||||
{
|
||||
Handle(Standard_Transient) oneres = res.Value(i);
|
||||
cout<<" "<<G.EntityNumber(oneres);
|
||||
|
Reference in New Issue
Block a user