1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0030895: Coding Rules - specify std namespace explicitly for std::cout and streams

"endl" manipulator for Message_Messenger is renamed to "Message_EndLine".

The following entities from std namespace are now used
with std:: explicitly specified (from Standard_Stream.hxx):
std::istream,std::ostream,std::ofstream,std::ifstream,std::fstream,
std::filebuf,std::streambuf,std::streampos,std::ios,std::cout,std::cerr,
std::cin,std::endl,std::ends,std::flush,std::setw,std::setprecision,
std::hex,std::dec.
This commit is contained in:
tiv
2019-08-02 10:32:16 +03:00
committed by bugmaster
parent 3977d18aca
commit 0423218095
972 changed files with 8554 additions and 8550 deletions

View File

@@ -43,10 +43,10 @@ void TopOpeBRepBuild_Area1dBuilder::DumpList(const TopOpeBRepBuild_ListOfLoop& L
Standard_Integer iLOL;
TopOpeBRepBuild_ListIteratorOfListOfLoop itLOL;
for (iLOL = 0, itLOL.Initialize(LOL); itLOL.More(); iLOL++, itLOL.Next()) {
if (iLOL) cout<<" ";
else cout<<"DUMP_AREA : ";
if (iLOL) std::cout<<" ";
else std::cout<<"DUMP_AREA : ";
const Handle(TopOpeBRepBuild_Loop)& L = itLOL.Value();
L->Dump();cout<<endl;
L->Dump();std::cout<<std::endl;
}
#else
void TopOpeBRepBuild_Area1dBuilder::DumpList(const TopOpeBRepBuild_ListOfLoop&)
@@ -105,9 +105,9 @@ void TopOpeBRepBuild_Area1dBuilder::InitAreaBuilder
#ifdef OCCT_DEBUG
if (TopOpeBRepBuild_GettraceAREA()) {
cout<<"++++ new loop : "; L->Dump();
if (boundaryL) cout<<" is bound"; else cout<<" is not bound";
cout<<endl;
std::cout<<"++++ new loop : "; L->Dump();
if (boundaryL) std::cout<<" is bound"; else std::cout<<" is not bound";
std::cout<<std::endl;
}
#endif
@@ -244,10 +244,10 @@ void TopOpeBRepBuild_Area1dBuilder::InitAreaBuilder
#ifdef OCCT_DEBUG
if (TopOpeBRepBuild_GettraceAREA()) {
if ( ! myArea.IsEmpty() ) {
cout<<"------- Areas -------"<<endl;
std::cout<<"------- Areas -------"<<std::endl;
for (AreaIter.Initialize(myArea);AreaIter.More();AreaIter.Next())
DumpList(AreaIter.Value());
cout<<"---------------------"<<endl;
std::cout<<"---------------------"<<std::endl;
}
}
#endif
@@ -273,11 +273,11 @@ void TopOpeBRepBuild_Area1dBuilder::ADD_Loop_TO_LISTOFLoop
#ifdef OCCT_DEBUG
if (TopOpeBRepBuild_GettraceAREA()) {
cout<<"--------------------- add area loop to area : ";
L->Dump(); cout<<endl;
if (ss != NULL) cout<<(char*)ss<<endl;
std::cout<<"--------------------- add area loop to area : ";
L->Dump(); std::cout<<std::endl;
if (ss != NULL) std::cout<<(char*)ss<<std::endl;
DumpList(LOL);
cout<<"---------------------"<<endl;
std::cout<<"---------------------"<<std::endl;
}
#endif
}
@@ -302,9 +302,9 @@ const Standard_Address) const
#ifdef OCCT_DEBUG
if (TopOpeBRepBuild_GettraceAREA()) {
if (ITA.More()) {
cout<<"--------------------- remove area loop from area : ";
ITA.Value()->Dump(); cout<<endl;
if (s != NULL) cout<<s<<endl;
std::cout<<"--------------------- remove area loop from area : ";
ITA.Value()->Dump(); std::cout<<std::endl;
if (s != NULL) std::cout<<s<<std::endl;
}
}
#endif
@@ -314,7 +314,7 @@ const Standard_Address) const
#ifdef OCCT_DEBUG
if (TopOpeBRepBuild_GettraceAREA()) {
DumpList(A);
cout<<"---------------------"<<endl;
std::cout<<"---------------------"<<std::endl;
}
#endif
}
@@ -343,9 +343,9 @@ void TopOpeBRepBuild_Area1dBuilder::ADD_LISTOFLoop_TO_LISTOFLoop
char* s2 = (char*)ss2;
if (TopOpeBRepBuild_GettraceAREA()) {
cout<<"--------------------- add area 1 to area 2 : ";
if (s != NULL) cout<<s; cout<<endl;
cout<<"1 : "; if (s1 != NULL) cout<<s1; cout<<endl;
std::cout<<"--------------------- add area 1 to area 2 : ";
if (s != NULL) std::cout<<s; std::cout<<std::endl;
std::cout<<"1 : "; if (s1 != NULL) std::cout<<s1; std::cout<<std::endl;
DumpList(A1);
}
#endif
@@ -354,9 +354,9 @@ void TopOpeBRepBuild_Area1dBuilder::ADD_LISTOFLoop_TO_LISTOFLoop
#ifdef OCCT_DEBUG
if (TopOpeBRepBuild_GettraceAREA()) {
cout<<"2 : "; if (s2 != NULL) cout<<s2; cout<<endl;
std::cout<<"2 : "; if (s2 != NULL) std::cout<<s2; std::cout<<std::endl;
DumpList(A2);
cout<<"---------------------"<<endl;
std::cout<<"---------------------"<<std::endl;
}
#endif
}

View File

@@ -208,7 +208,7 @@ void TopOpeBRepBuild_Area2dBuilder::InitAreaBuilder
if ( myArea.IsEmpty() ) {
#ifdef OCCT_DEBUG
if (TopOpeBRepBuild_GettraceAREA())
cout<<"---"<<endl<<"--- purge"<<endl<<"---"<<endl;
std::cout<<"---"<<std::endl<<"--- purge"<<std::endl<<"---"<<std::endl;
#endif
TopOpeBRepBuild_ListOfLoop newArea3;
newArea3.Append(boundaryloops);

View File

@@ -55,7 +55,7 @@ extern Standard_Boolean TopOpeBRepBuild_GettraceCU();
void TopOpeBRepBuild_Builder::BuildEdges(const Standard_Integer iC,const Handle(TopOpeBRepDS_HDataStructure)& HDS)
{
#ifdef OCCT_DEBUG
if (TopOpeBRepBuild_GettraceCU()) cout<<"\nBuildEdges on C "<<iC<<endl;
if (TopOpeBRepBuild_GettraceCU()) std::cout<<"\nBuildEdges on C "<<iC<<std::endl;
#endif
const TopOpeBRepDS_Curve& C = HDS->Curve(iC);
const Handle(Geom_Curve)& C3D = C.Curve();

View File

@@ -82,7 +82,7 @@ void TopOpeBRepBuild_Builder::BuildFaces(const Standard_Integer iS,
Standard_Integer iC = SCurves.Current();
const TopOpeBRepDS_Curve& CDS = HDS->Curve(iC);
#ifdef OCCT_DEBUG
if (tSE) cout<<endl<<"BuildFaces : C "<<iC<<" on S "<<iS<<endl;
if (tSE) std::cout<<std::endl<<"BuildFaces : C "<<iC<<" on S "<<iS<<std::endl;
#endif
TopoDS_Shape anEdge;
TopTools_ListIteratorOfListOfShape Iti(NewEdges(iC));

View File

@@ -68,9 +68,9 @@ extern Standard_Boolean TopOpeBRepBuild_GettraceCUV();
extern Standard_Boolean TopOpeBRepBuild_GettraceSPF();
extern Standard_Boolean TopOpeBRepBuild_GettraceSPS();
extern Standard_Boolean TopOpeBRepBuild_GetcontextSF2();
Standard_EXPORT void debmarksplit(const Standard_Integer i) {cout<<"++ debmarksplit "<<i<<endl;}
Standard_EXPORT void debchangesplit(const Standard_Integer i) {cout<<"++ debchangesplit "<<i<<endl;}
Standard_EXPORT void debspf(const Standard_Integer i) {cout<<"++ debspf"<<i<<endl;}
Standard_EXPORT void debmarksplit(const Standard_Integer i) {std::cout<<"++ debmarksplit "<<i<<std::endl;}
Standard_EXPORT void debchangesplit(const Standard_Integer i) {std::cout<<"++ debchangesplit "<<i<<std::endl;}
Standard_EXPORT void debspf(const Standard_Integer i) {std::cout<<"++ debspf"<<i<<std::endl;}
#endif
static Standard_Integer STATIC_SOLIDINDEX = 0;
@@ -318,8 +318,8 @@ Standard_Boolean TopOpeBRepBuild_Builder::ToSplit(const TopoDS_Shape& S,const To
#ifdef OCCT_DEBUG
Standard_Integer iS; Standard_Boolean tSPS = GtraceSPS(S,iS);
if (tSPS) {
cout<<"tosplit "<<tosplit<<" : !issplit "<<(!issplit);
cout<<" && (hasgeom || hassame) ("<<hasgeom<<" || "<<hassame<<")"<<endl;
std::cout<<"tosplit "<<tosplit<<" : !issplit "<<(!issplit);
std::cout<<" && (hasgeom || hassame) ("<<hasgeom<<" || "<<hassame<<")"<<std::endl;
}
#endif
@@ -347,7 +347,7 @@ void TopOpeBRepBuild_Builder::MarkSplit(const TopoDS_Shape& S,const TopAbs_State
Standard_Integer iS; Standard_Boolean tSPS = GtraceSPS(S,iS);
if(tSPS){
GdumpSHA(S, (char *) "MarkSplit ");
cout<<" ";TopAbs::Print(ToBuild,cout);cout<<" "<<Bval<<endl;
std::cout<<" ";TopAbs::Print(ToBuild,std::cout);std::cout<<" "<<Bval<<std::endl;
debmarksplit(iS);
}
#endif
@@ -407,7 +407,7 @@ TopTools_ListOfShape& TopOpeBRepBuild_Builder::ChangeSplit(const TopoDS_Shape& S
Standard_Integer iS; Standard_Boolean tSPS = GtraceSPS(S,iS);
if(tSPS){
GdumpSHA(S, (char *) "ChangeSplit ");
cout<<" ";TopAbs::Print(ToBuild,cout);cout<<endl;
std::cout<<" ";TopAbs::Print(ToBuild,std::cout);std::cout<<std::endl;
debchangesplit(iS);
}
#endif
@@ -793,9 +793,9 @@ void TopOpeBRepBuild_Builder::SplitEdge1(const TopoDS_Shape& Eoriented,
#ifdef OCCT_DEBUG
Standard_Integer iEdge; Standard_Boolean tSPS = GtraceSPS(Eoriented,iEdge);
if(tSPS){
cout<<endl;
std::cout<<std::endl;
GdumpSHASTA(Eoriented,ToBuild1,"--- SplitEdge ");
cout<<endl;
std::cout<<std::endl;
}
#endif
@@ -814,9 +814,9 @@ void TopOpeBRepBuild_Builder::SplitEdge1(const TopoDS_Shape& Eoriented,
#ifdef OCCT_DEBUG
if(tSPS){GdumpSAMDOM(LE1, (char *) "1 : ");}
if(tSPS){GdumpSAMDOM(LE2, (char *) "2 : ");}
if(tSPS){cout<<endl;}
if(tSPS){cout<<"V of edge ";TopAbs::Print(Eforward.Orientation(),cout);}
if(tSPS){cout<<endl;}
if(tSPS){std::cout<<std::endl;}
if(tSPS){std::cout<<"V of edge ";TopAbs::Print(Eforward.Orientation(),std::cout);}
if(tSPS){std::cout<<std::endl;}
if(tSPS){GdumpEDG(Eforward);}
#endif
@@ -844,7 +844,7 @@ void TopOpeBRepBuild_Builder::SplitEdge1(const TopoDS_Shape& Eoriented,
if ( !PVS.MoreLoop() ) {
#ifdef OCCT_DEBUG
if(tSPS) {
cout<<"NO VERTEX split "; TopAbs::Print(ToBuild1,cout);cout<<endl;
std::cout<<"NO VERTEX split "; TopAbs::Print(ToBuild1,std::cout);std::cout<<std::endl;
}
#endif
return;
@@ -898,7 +898,7 @@ void TopOpeBRepBuild_Builder::SplitEdge2(const TopoDS_Shape& Eoriented,
#ifdef OCCT_DEBUG
Standard_Integer iEdge; Standard_Boolean tSPS = GtraceSPS(Eoriented,iEdge);
if(tSPS){cout<<endl;}
if(tSPS){std::cout<<std::endl;}
if(tSPS){GdumpSHASTA(Eoriented,ToBuild1,"--- SplitEdge2 ");}
#endif
@@ -922,7 +922,7 @@ void TopOpeBRepBuild_Builder::SplitEdge2(const TopoDS_Shape& Eoriented,
PVS.InitLoop();
if ( !PVS.MoreLoop() ) {
#ifdef OCCT_DEBUG
if(tSPS) {cout<<"NO VERTEX split ";TopAbs::Print(ToBuild1,cout);cout<<endl;}
if(tSPS) {std::cout<<"NO VERTEX split ";TopAbs::Print(ToBuild1,std::cout);std::cout<<std::endl;}
#endif
return;
}
@@ -1003,7 +1003,7 @@ void TopOpeBRepBuild_Builder::SplitFace1(const TopoDS_Shape& Foriented,
#ifdef OCCT_DEBUG
Standard_Boolean tSPF=TopOpeBRepBuild_GettraceSPF();
Standard_Integer iFace=myDataStructure->Shape(Foriented);
if(tSPF){cout<<endl;GdumpSHASTA(Foriented,ToBuild1,"=== SplitFace ");}
if(tSPF){std::cout<<std::endl;GdumpSHASTA(Foriented,ToBuild1,"=== SplitFace ");}
if(tSPF){GdumpSAMDOM(LF1, (char *) "1 : ");GdumpSAMDOM(LF2, (char *) "2 : ");}
if(tSPF) debspf(iFace);
#endif
@@ -1101,7 +1101,7 @@ void TopOpeBRepBuild_Builder::SplitFace2(const TopoDS_Shape& Foriented,
Standard_Boolean tSPF = TopOpeBRepBuild_GettraceSPF();
// Standard_Integer iFace = myDataStructure->Shape(Foriented);
if (tSPF) {
cout<<endl;
std::cout<<std::endl;
GdumpSHASTA(Foriented,ToBuild1,"=== SplitFace ");
GdumpSAMDOM(LF1, (char *) "samedomain 1 : ");
GdumpSAMDOM(LF2, (char *) "samedomain 2 : ");
@@ -1321,7 +1321,7 @@ void TopOpeBRepBuild_Builder::SplitSolid(const TopoDS_Shape& S1oriented,
Standard_Boolean tSPS = TopOpeBRepBuild_GettraceSPS();
// Standard_Integer iSolid = myDataStructure->Shape(S1oriented);
if (tSPS) {
cout<<endl;
std::cout<<std::endl;
GdumpSHASTA(S1oriented,ToBuild1,"___ SplitSolid ");
GdumpSAMDOM(LS1, (char *) "1 : ");
GdumpSAMDOM(LS2, (char *) "2 : ");
@@ -1360,8 +1360,8 @@ void TopOpeBRepBuild_Builder::SplitSolid(const TopoDS_Shape& S1oriented,
TCollection_AsciiString ss("--- SplitSolid ");
ss = ss + SFS.DEBNumber() + " AddElement SFS+ face ";
GdumpSHA(aFace,(Standard_Address)ss.ToCString());
cout<<" ";TopAbs::Print(ToBuild1,cout)<<" : 1 face ";
TopAbs::Print(ori,cout); cout<<endl;
std::cout<<" ";TopAbs::Print(ToBuild1,std::cout)<<" : 1 face ";
TopAbs::Print(ori,std::cout); std::cout<<std::endl;
}
#endif
SFS.AddElement(aFace);
@@ -1570,9 +1570,9 @@ void TopOpeBRepBuild_Builder::FillShape(const TopoDS_Shape& S1,
RevOri = ! RevOri;
#ifdef OCCT_DEBUG
// Standard_Integer iFace = myDataStructure->Shape(S1);
// cout<<endl<<"********** ";
// cout<<"retournement d'orientation de ";TopAbs::Print(t,cout);
// cout<<" "<<iFace<<endl;
// std::cout<<std::endl<<"********** ";
// std::cout<<"retournement d'orientation de ";TopAbs::Print(t,std::cout);
// std::cout<<" "<<iFace<<std::endl;
#endif
}
}
@@ -1621,7 +1621,7 @@ void TopOpeBRepBuild_Builder::FillFace(const TopoDS_Shape& F1,
#ifdef OCCT_DEBUG
Standard_Boolean tSPF = TopOpeBRepBuild_GettraceSPF();
// Standard_Integer iFace = myDataStructure->Shape(F1);
if(tSPF){cout<<endl;}
if(tSPF){std::cout<<std::endl;}
if(tSPF){GdumpSHASTA(F1,ToBuild1,"=-= FillFace ");}
#endif
myListOfFace = LF2;
@@ -1694,10 +1694,10 @@ void TopOpeBRepBuild_Builder::FillVertexSetOnValue
const TopoDS_Edge& EDEB = PVS.Edge();
Standard_Integer iE; Standard_Boolean tSPS = GtraceSPS(EDEB,iE);
if (tSPS) {
if (keep) cout<<"+"; else cout<<"-";
if (ispoint) cout<<" PDS "; else cout<<" VDS ";
cout<<ind<<" : "; GdumpORIPARPNT(ori,par,BRep_Tool::Pnt(TopoDS::Vertex(V)));
cout<<endl;
if (keep) std::cout<<"+"; else std::cout<<"-";
if (ispoint) std::cout<<" PDS "; else std::cout<<" VDS ";
std::cout<<ind<<" : "; GdumpORIPARPNT(ori,par,BRep_Tool::Pnt(TopoDS::Vertex(V)));
std::cout<<std::endl;
}
#endif
}

View File

@@ -39,23 +39,23 @@ Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextEINTERNAL();
Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextEEXTERNAL();
Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextNOSG();
Standard_EXPORT void debON(const Standard_Integer iF)
{cout<<"++ debON "<<iF<<" "<<endl;}
{std::cout<<"++ debON "<<iF<<" "<<std::endl;}
Standard_EXPORT void debON(const Standard_Integer iF, const TopAbs_State TB1,const TopAbs_State TB2)
{cout<<"++ debON "<<iF<<" :TB1=";TopAbs::Print(TB1,cout);cout<<",TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
{std::cout<<"++ debON "<<iF<<" :TB1=";TopAbs::Print(TB1,std::cout);std::cout<<",TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
Standard_EXPORT void debfillonf(const Standard_Integer iF)
{cout<<"++ debfillonf "<<iF<<" "<<endl;}
{std::cout<<"++ debfillonf "<<iF<<" "<<std::endl;}
Standard_EXPORT void debfillone(const Standard_Integer iE)
{cout<<"++ debfillone "<<iE<<" "<<endl;}
{std::cout<<"++ debfillone "<<iE<<" "<<std::endl;}
Standard_EXPORT void debfillonfe(){}
Standard_EXPORT void debfillonfemess(const Standard_Integer f,const Standard_Integer e)
{cout<<"++ debfillonfe f"<<f<<" e"<<e<<endl;debfillonfe();}
{std::cout<<"++ debfillonfe f"<<f<<" e"<<e<<std::endl;debfillonfe();}
Standard_EXPORT void debfillonfe3d(){}
Standard_EXPORT void debfillonfemess3d(const Standard_Integer f,const Standard_Integer e)
{cout<<"++ debfillonfe3d f"<<f<<" e"<<e<<endl;debfillonfe3d();}
{std::cout<<"++ debfillonfe3d f"<<f<<" e"<<e<<std::endl;debfillonfe3d();}
Standard_EXPORT void debfillonfemess(const Standard_Integer iFOR,const Standard_Integer iEG,const TopOpeBRepBuild_PBuilder& PB,const TopOpeBRepBuild_PWireEdgeSet& PWES,const TCollection_AsciiString& str)
{PB->GdumpSHASTA(iEG,TopAbs_ON,*PWES,str); debfillonfemess(iFOR,iEG); }
Standard_EXPORT void debaddpwes(const Standard_Integer iFOR,const TopAbs_State TB1,const Standard_Integer iEG,const TopAbs_Orientation neworiE,const TopOpeBRepBuild_PBuilder& PB,const TopOpeBRepBuild_PWireEdgeSet& PWES,const TCollection_AsciiString& str1,const TCollection_AsciiString& str2)
{PB->GdumpSHASTA(iFOR,TB1,*PWES,str1,str2);cout<<iEG<<" : 1 edge ";TopAbs::Print(neworiE,cout);cout<<endl; }
{PB->GdumpSHASTA(iFOR,TB1,*PWES,str1,str2);std::cout<<iEG<<" : 1 edge ";TopAbs::Print(neworiE,std::cout);std::cout<<std::endl; }
Standard_EXPORT Standard_Boolean DEBTEFOR(const TopOpeBRepBuild_Builder& B,const Standard_Integer iFOR,const Standard_Integer GI)
{return B.GtraceSPS(iFOR,GI); }
#endif
@@ -66,10 +66,10 @@ Standard_EXPORT void FUN_RaiseON()
static void FUN_cout(const TopoDS_Shape& eON)
{
TopAbs_Orientation oE = eON.Orientation();
if (oE == TopAbs_FORWARD) cout<<"-> + eONF"<<endl;
if (oE == TopAbs_REVERSED) cout<<"-> + eONR"<<endl;
if (oE == TopAbs_INTERNAL) cout<<"-> + eONI"<<endl;
if (oE == TopAbs_EXTERNAL) cout<<"-> + eONE"<<endl;
if (oE == TopAbs_FORWARD) std::cout<<"-> + eONF"<<std::endl;
if (oE == TopAbs_REVERSED) std::cout<<"-> + eONR"<<std::endl;
if (oE == TopAbs_INTERNAL) std::cout<<"-> + eONI"<<std::endl;
if (oE == TopAbs_EXTERNAL) std::cout<<"-> + eONE"<<std::endl;
}
#endif
@@ -213,7 +213,7 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES1(const Handle(TopOpeBRepDS_Inter
#ifdef OCCT_DEBUG
Standard_EXPORT void FUN_coutmess(const TCollection_AsciiString& m)
{
cout<<m;
std::cout<<m;
}
#else
Standard_EXPORT void FUN_coutmess(const TCollection_AsciiString&)
@@ -295,10 +295,10 @@ Standard_Boolean FUN_keepEON(const TopOpeBRepBuild_Builder&,
#ifdef OCCT_DEBUG
if (tFFEG || tFSEG) {
if ( keep1 != keep2 || keep1 != keep3 || keep2 != keep3 ) {
cout<<"\nkeepEON : EGB "<<EGBoundFOR<<" EG "<<iEG<<" FOR "<<iFF<<" FS "<<iFS;
cout<<" keep1 "<<keep1<<" keep2 "<<keep2<<" keep3 "<<keep3;
cout<<" !=!=!=!=!=!=!=!=!=!=!=!=!=!=!=";
cout<<endl;
std::cout<<"\nkeepEON : EGB "<<EGBoundFOR<<" EG "<<iEG<<" FOR "<<iFF<<" FS "<<iFS;
std::cout<<" keep1 "<<keep1<<" keep2 "<<keep2<<" keep3 "<<keep3;
std::cout<<" !=!=!=!=!=!=!=!=!=!=!=!=!=!=!=";
std::cout<<std::endl;
}
}
#endif
@@ -581,8 +581,8 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
if ( yap00 ) {
#ifdef OCCT_DEBUG
if (tEFOR) debfillonfemess(iFOR,iEG,myPB,myPWES,"yap0 GFillON");
if (tE) {cout<<"yap00(FOR"<<iFOR<<" FS"<<iFS<<" EG"<<GI<<") ";
cout<<"TB1=";TopAbs::Print(TB1,cout);cout<<" TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
if (tE) {std::cout<<"yap00(FOR"<<iFOR<<" FS"<<iFS<<" EG"<<GI<<") ";
std::cout<<"TB1=";TopAbs::Print(TB1,std::cout);std::cout<<" TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
#endif
TopAbs_Orientation oeff;
@@ -621,8 +621,8 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
if ( yap0 ) {
#ifdef OCCT_DEBUG
if (tEFOR) debfillonfemess(iFOR,iEG,myPB,myPWES,"yap0 GFillON");
if (tE) {cout<<"yap0(FOR"<<iFOR<<" FS"<<iFS<<" EG"<<GI<<") ";
cout<<"TB1=";TopAbs::Print(TB1,cout);cout<<" TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
if (tE) {std::cout<<"yap0(FOR"<<iFOR<<" FS"<<iFS<<" EG"<<GI<<") ";
std::cout<<"TB1=";TopAbs::Print(TB1,std::cout);std::cout<<" TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
#endif
TopAbs_Orientation oeff;
@@ -792,8 +792,8 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
if ( yapc1 ) {
#ifdef OCCT_DEBUG
if (tEFOR) debfillonfemess(iFOR,iEG,myPB,myPWES,"yapc1 GFillON");
if (tE) {cout<<"yapc1(FOR"<<iFOR<<" FS"<<iFS<<" EG"<<GI<<") ";
cout<<"TB1=";TopAbs::Print(TB1,cout);cout<<" TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
if (tE) {std::cout<<"yapc1(FOR"<<iFOR<<" FS"<<iFS<<" EG"<<GI<<") ";
std::cout<<"TB1=";TopAbs::Print(TB1,std::cout);std::cout<<" TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
#endif
const TopoDS_Edge& e3d = TopoDS::Edge(BDS.Shape(ie3d));
@@ -822,7 +822,7 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
else if (oe3dk == TopAbs_EXTERNAL) keep3d = Standard_False;
#ifdef OCCT_DEBUG
// if(tEFOR) {cout<<endl<<"yapc1 keep3d : "<<keep3d<<endl;debfillonfemess3d(iFOR,iEG);}
// if(tEFOR) {std::cout<<std::endl<<"yapc1 keep3d : "<<keep3d<<std::endl;debfillonfemess3d(iFOR,iEG);}
#endif
if (keep3d) {
@@ -845,8 +845,8 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
if ( yapc2 ) {
#ifdef OCCT_DEBUG
if (tEFOR) debfillonfemess(iFOR,iEG,myPB,myPWES,"yapc2 GFillON");
if (tE) {cout<<"yapc2(FOR"<<iFOR<<" FS"<<iFS<<" EG"<<GI<<") ";
cout<<"TB1=";TopAbs::Print(TB1,cout);cout<<" TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
if (tE) {std::cout<<"yapc2(FOR"<<iFOR<<" FS"<<iFS<<" EG"<<GI<<") ";
std::cout<<"TB1=";TopAbs::Print(TB1,std::cout);std::cout<<" TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
#endif
Standard_Boolean keep = Standard_False;
@@ -911,8 +911,8 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
if ( yapc3 ) {
#ifdef OCCT_DEBUG
if (tEFOR) debfillonfemess(iFOR,iEG,myPB,myPWES,"yapc3 GFillON");
if (tE) {cout<<"yapc3(FOR"<<iFOR<<" FS"<<iFS<<" EG"<<GI<<") ";
cout<<"TB1=";TopAbs::Print(TB1,cout);cout<<" TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
if (tE) {std::cout<<"yapc3(FOR"<<iFOR<<" FS"<<iFS<<" EG"<<GI<<") ";
std::cout<<"TB1=";TopAbs::Print(TB1,std::cout);std::cout<<" TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
#endif
Standard_Boolean keep = Standard_False;
@@ -1148,8 +1148,8 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
TopAbs_State staFS = (rankFS == rankFOR) ? TB1 : TB2;
#ifdef OCCT_DEBUG
// if(tEFOR) cout<<endl<<"yap1 yap2 yap3 yap4 = ";
// if(tEFOR) cout<<yap1<<" "<<yap2<<" "<<yap3<<" "<<yap4<<endl<<endl;
// if(tEFOR) std::cout<<std::endl<<"yap1 yap2 yap3 yap4 = ";
// if(tEFOR) std::cout<<yap1<<" "<<yap2<<" "<<yap3<<" "<<yap4<<std::endl<<std::endl;
// if(tEFOR) debfillonfemess(iFOR,iEG);
#endif
@@ -1157,8 +1157,8 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
if ( yap1 ) {
#ifdef OCCT_DEBUG
if (tEFOR) debfillonfemess(iFOR,iEG,myPB,myPWES,"yap1 GFillON");
if (tE) {cout<<"yap1(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
cout<<"TB1=";TopAbs::Print(TB1,cout);cout<<" TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
if (tE) {std::cout<<"yap1(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
std::cout<<"TB1=";TopAbs::Print(TB1,std::cout);std::cout<<" TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
#endif
@@ -1305,8 +1305,8 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
if ( yap2 ) {
#ifdef OCCT_DEBUG
if (tEFOR) debfillonfemess(iFOR,iEG,myPB,myPWES,"yap2 GFillON");
if (tE) {cout<<"yap2(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
cout<<"TB1=";TopAbs::Print(TB1,cout);cout<<" TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
if (tE) {std::cout<<"yap2(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
std::cout<<"TB1=";TopAbs::Print(TB1,std::cout);std::cout<<" TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
#endif
// FF est samedomain avec FCX
@@ -1345,7 +1345,7 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
else FUN_coutmess("DEBUG GFillONPartsWES2_4 orientation != F,R\n");
}
//#ifdef OCCT_DEBUG
// if(tEFOR) {cout<<endl<<"yap2 : b3d,b2d "<<b3d<<","<<b2d<<endl;debfillonfemess(iFOR,iEG);}
// if(tEFOR) {std::cout<<std::endl<<"yap2 : b3d,b2d "<<b3d<<","<<b2d<<std::endl;debfillonfemess(iFOR,iEG);}
//#endif
// bcl1;bcl2; c12;tsp(f9),tspON(e7)
@@ -1428,7 +1428,7 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
}
}
//#ifdef OCCT_DEBUG
// if(tEFOR) {cout<<endl<<"yap2 : keep "<<keep<<endl;debfillonfemess(iFOR,iEG);}
// if(tEFOR) {std::cout<<std::endl<<"yap2 : keep "<<keep<<std::endl;debfillonfemess(iFOR,iEG);}
//#endif
if (!keep) return;
} // !isfafa
@@ -1510,8 +1510,8 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
if ( yap6 ) {
#ifdef OCCT_DEBUG
if (tEFOR) debfillonfemess(iFOR,iEG,myPB,myPWES,"yap6 GFillON");
if (tE) {cout<<"yap6(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
cout<<"TB1=";TopAbs::Print(TB1,cout);cout<<" TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
if (tE) {std::cout<<"yap6(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
std::cout<<"TB1=";TopAbs::Print(TB1,std::cout);std::cout<<" TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
#endif
TopAbs_Orientation neworiE;
// FF est samedomain avec FCX
@@ -1729,8 +1729,8 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
if ( yap3 ) {
#ifdef OCCT_DEBUG
if (tEFOR) debfillonfemess(iFOR,iEG,myPB,myPWES,"yap3 GFillON");
if (tE) {cout<<"yap3(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
cout<<"TB1=";TopAbs::Print(TB1,cout);cout<<" TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
if (tE) {std::cout<<"yap3(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
std::cout<<"TB1=";TopAbs::Print(TB1,std::cout);std::cout<<" TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
#endif
ie3d = ::FUN_findeSD(BDS,eON,EG,FOR,oe3d,3);
@@ -1762,7 +1762,7 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
else if (oe3dk == TopAbs_EXTERNAL) keep3d = Standard_False;
#ifdef OCCT_DEBUG
if(tEFOR) {cout<<endl<<"yap3 keep3d : "<<keep3d<<endl;debfillonfemess3d(iFOR,iEG);}
if(tEFOR) {std::cout<<std::endl<<"yap3 keep3d : "<<keep3d<<std::endl;debfillonfemess3d(iFOR,iEG);}
#endif
if (keep3d) {
@@ -1785,8 +1785,8 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
if ( yap5 ) {
#ifdef OCCT_DEBUG
if (tEFOR) debfillonfemess(iFOR,iEG,myPB,myPWES,"yap5 GFillON");
if (tE) {cout<<"yap5(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
cout<<"TB1=";TopAbs::Print(TB1,cout);cout<<" TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
if (tE) {std::cout<<"yap5(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
std::cout<<"TB1=";TopAbs::Print(TB1,std::cout);std::cout<<" TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
#endif
ie2d = ::FUN_findeSD(BDS,eON,EG,FOR,oe2d,2);
if (ie2d == 0) return;
@@ -1835,8 +1835,8 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
if ( yap4 ) {
#ifdef OCCT_DEBUG
if (tEFOR) debfillonfemess(iFOR,iEG,myPB,myPWES,"yap4 GFillON");
if (tE) {cout<<"yap4(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
cout<<"TB1=";TopAbs::Print(TB1,cout);cout<<" TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
if (tE) {std::cout<<"yap4(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
std::cout<<"TB1=";TopAbs::Print(TB1,std::cout);std::cout<<" TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
#endif
TopAbs_Orientation oTFE = TFE.Orientation(TB1);
@@ -1858,8 +1858,8 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
// xpu290598 : CTS20212
#ifdef OCCT_DEBUG
if (tEFOR) debfillonfemess(iFOR,iEG,myPB,myPWES,"yap7 GFillON");
if (tE) {cout<<"yap7(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
cout<<"TB1=";TopAbs::Print(TB1,cout);cout<<" TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
if (tE) {std::cout<<"yap7(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
std::cout<<"TB1=";TopAbs::Print(TB1,std::cout);std::cout<<" TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
#endif
Standard_Boolean isbound = Standard_False;
for (TopTools_ListIteratorOfListOfShape it(BDS.ShapeSameDomain(iFOR)); it.More(); it.Next()){

View File

@@ -41,7 +41,7 @@ Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextEINTERNAL();
Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextEEXTERNAL();
Standard_EXPORT void debfillonf(const Standard_Integer iF);
Standard_EXPORT void debON2d(const Standard_Integer iF)
{cout<<"++ debON2d "<<iF<<" "<<endl;}
{std::cout<<"++ debON2d "<<iF<<" "<<std::endl;}
#endif
Standard_EXPORT TopAbs_State FUN_build_TB(const TopOpeBRepBuild_PBuilder& PB,const Standard_Integer rank); // xpu290698
@@ -75,7 +75,7 @@ void TopOpeBRepBuild_BuilderON::Perform2d
#ifdef OCCT_DEBUG
Standard_Integer iFOR;Standard_Boolean tFOR=myPB->GtraceSPS(FOR,iFOR);
if (tFOR) debfillonf(iFOR);
if (tFOR) cout<<endl<<"LI on F"<<iFOR<<endl;
if (tFOR) std::cout<<std::endl<<"LI on F"<<iFOR<<std::endl;
#endif
for (TopOpeBRepDS_ListIteratorOfListOfInterference itI(lFEI); itI.More(); itI.Next()){
@@ -187,7 +187,7 @@ void TopOpeBRepBuild_BuilderON::GFillONParts2dWES2(const Handle(TopOpeBRepDS_Int
//=========================================
if ( yap6) {
#ifdef OCCT_DEBUG
if (tFOR) cout<<"* yap6 = 1"<<endl;
if (tFOR) std::cout<<"* yap6 = 1"<<std::endl;
#endif
TopAbs_Orientation neworiE = TopAbs_FORWARD;
// FF est samedomain avec FCX
@@ -213,7 +213,7 @@ void TopOpeBRepBuild_BuilderON::GFillONParts2dWES2(const Handle(TopOpeBRepDS_Int
ok = FUN_ds_shareG(myPB->DataStructure(),iFCX,iFOR,GI,TopoDS::Edge(EspON),shareG);
if (!ok) return; // nyiFUNRAISE
#ifdef OCCT_DEBUG
if (tFOR) cout<<" shareG="<<shareG<<endl;
if (tFOR) std::cout<<" shareG="<<shareG<<std::endl;
#endif
if (SO) {
@@ -247,7 +247,7 @@ void TopOpeBRepBuild_BuilderON::GFillONParts2dWES2(const Handle(TopOpeBRepDS_Int
newE.Orientation(neworiE);
myPWES->AddStartElement(newE);
#ifdef OCCT_DEBUG
if (tFOR) cout<<" add spON e"<<GI<<endl;
if (tFOR) std::cout<<" add spON e"<<GI<<std::endl;
#endif
return;
} // yap6

View File

@@ -36,7 +36,7 @@
//{
// TCollection_AsciiString aname_1("cc_1"), aname_2("cc_2");
// Standard_CString name_1 = aname_1.ToCString(), name_2 = aname_2.ToCString();
// cout<<"compositeclassifier : "<<name_1<<","<<name_2<<endl;
// std::cout<<"compositeclassifier : "<<name_1<<","<<name_2<<std::endl;
// BRepTools::Write(S1,name_1); BRepTools::Write(S2,name_2);
//}
#endif

View File

@@ -263,8 +263,8 @@ void TopOpeBRepBuild_Builder::End()
Standard_Real d = P1.Distance(P2);
if (d > newtol) {
#ifdef OCCT_DEBUG
cout<<"\npoint P"<<iv<<" "<<Pv.X()<<" "<<Pv.Y()<<" "<<Pv.Z()<<endl;
cout<<"TopOpeBRepBuild_Builder::End BOX newtol "<<newtol<<" -> "<<d<<endl;
std::cout<<"\npoint P"<<iv<<" "<<Pv.X()<<" "<<Pv.Y()<<" "<<Pv.Z()<<std::endl;
std::cout<<"TopOpeBRepBuild_Builder::End BOX newtol "<<newtol<<" -> "<<d<<std::endl;
#endif
newtol = d;
B.UpdateVertex(V,newtol);

View File

@@ -245,7 +245,7 @@ void TopOpeBRepBuild_Builder::RegularizeFace
}
#ifdef OCCT_DEBUG
if (tSPSFF) { cout<<"RegularizeFace "<<iF<<endl; debregufa(iF); }
if (tSPSFF) { std::cout<<"RegularizeFace "<<iF<<std::endl; debregufa(iF); }
#endif
// LOF = nouvelles faces regularisees de newFace
@@ -350,7 +350,7 @@ void TopOpeBRepBuild_Builder::RegularizeFace
if (tSPSFF && savfregu) {
TCollection_AsciiString str("fregu"); str = str + iF;
DBRep::Set(str.ToCString(),newFace);
cout<<"newFace "<<str<<" built on face "<<iF<<" saved"<<endl;
std::cout<<"newFace "<<str<<" built on face "<<iF<<" saved"<<std::endl;
}
#endif

View File

@@ -130,7 +130,7 @@ Standard_Integer FUN_AnalyzemapVon1E(const TopTools_IndexedDataMapOfShapeShape&
{
#ifdef DRAW
Standard_Boolean trc = TopOpeBRepBuild_GettracePURGE();
if (trc) cout<<endl<<"* DetectUnclosedWire :"<<endl;
if (trc) std::cout<<std::endl<<"* DetectUnclosedWire :"<<std::endl;
#endif
Standard_Integer res = ISUNKNOWN;
@@ -191,34 +191,34 @@ void FUN_AnalyzemapVon1EDRAW(const Standard_Integer res,
{
Standard_Boolean trc = TopOpeBRepBuild_GettracePURGE();
if (!trc) return;
cout<<"wire "<<iiwi;
std::cout<<"wire "<<iiwi;
if (res == ISVERTEX) {
cout<<" is vertex"<<endl;
std::cout<<" is vertex"<<std::endl;
}
else if (res == CLOSEDW) {
cout<<" is closed"<<endl;
std::cout<<" is closed"<<std::endl;
}
else if (res == GCLOSEDW) {
cout<<" is Gclosed :"<<endl;
std::cout<<" is Gclosed :"<<std::endl;
TCollection_AsciiString aa("w_");FUN_tool_draw(aa,W,iiwi);
Standard_Integer i ;
for ( i = 1;i <= mapVV.Extent();i++) {
Standard_Integer iV = mapVVsameGDRAW.Add(mapVV.FindKey(i),mapVV.FindFromIndex(i));
cout<<" on vve_"<<iV; aa = "vve_";
std::cout<<" on vve_"<<iV; aa = "vve_";
FUN_tool_draw(aa,mapVVsameGDRAW.FindKey(iV),iV);
}
for (i = 1;i <= mapVon1E.Extent();i++) {
Standard_Integer iE = mapVon1EdgeDRAW.Add(mapVon1E.FindKey(i),mapVon1E.FindFromIndex(i));
cout<<" on eed_"<<iE; aa = "eed_";
std::cout<<" on eed_"<<iE; aa = "eed_";
FUN_tool_draw(aa,mapVon1EdgeDRAW.FindFromIndex(iE),iE);
}
cout<<endl;
std::cout<<std::endl;
}
else if (res == UNCLOSEDW) {
cout<<" is unclosed "<<endl;
std::cout<<" is unclosed "<<std::endl;
TCollection_AsciiString aa("w_");FUN_tool_draw(aa,W,iiwi);
}
cout<<endl;
std::cout<<std::endl;
} // FUN_AnalyzemapVon1EDRAW
#endif
@@ -246,7 +246,7 @@ void TopOpeBRepBuild_FaceBuilder::DetectUnclosedWire(TopTools_IndexedDataMapOfSh
#ifdef DRAW
TopTools_IndexedDataMapOfShapeShape mapVon1EdgeDRAW,mapVVsameGDRAW;
Standard_Boolean trc = TopOpeBRepBuild_GettracePURGE();
if (trc) cout<<endl<<"* DetectUnclosedWire :"<<endl<<endl;
if (trc) std::cout<<std::endl<<"* DetectUnclosedWire :"<<std::endl<<std::endl;
#endif
Standard_Integer iiwi = 0; // DEB
@@ -258,7 +258,7 @@ void TopOpeBRepBuild_FaceBuilder::DetectUnclosedWire(TopTools_IndexedDataMapOfSh
iiwi++;
Standard_Boolean isold = IsOldWire();
#ifdef DRAW
if ( trc && isold ) cout<<"wire "<<iiwi<<" is old wire => closed"<<endl;
if ( trc && isold ) std::cout<<"wire "<<iiwi<<" is old wire => closed"<<std::endl;
#endif
if (isold) continue;
@@ -369,7 +369,7 @@ void TopOpeBRepBuild_FaceBuilder::CorrectGclosedWire(const TopTools_IndexedDataM
// prequesitory : edges described by <mapVon1Edge> are not closed,not degenerated
#ifdef OCCT_DEBUG
if (TopOpeBRepBuild_GettracePURGE()) {
cout<<endl<<"* CorrectGclosedWire :"<<endl<<endl;
std::cout<<std::endl<<"* CorrectGclosedWire :"<<std::endl<<std::endl;
}
#endif

View File

@@ -81,7 +81,7 @@ void TopOpeBRepBuild_FuseFace::Init(const TopTools_ListOfShape& LIF,
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = TopOpeBRepBuild_GettraceFUFA();
if (trc) cout << "TopOpeBRepBuild_FuseFace::Init" << endl;
if (trc) std::cout << "TopOpeBRepBuild_FuseFace::Init" << std::endl;
#endif
myLIF = LIF;
myLRF = LRF;
@@ -94,9 +94,9 @@ void TopOpeBRepBuild_FuseFace::Init(const TopTools_ListOfShape& LIF,
#ifdef OCCT_DEBUG
if (trc) {
if (myInternal) {
cout << " TopOpeBRepBuild_FuseFace::Init : Keep internal connections" << endl;
std::cout << " TopOpeBRepBuild_FuseFace::Init : Keep internal connections" << std::endl;
} else {
cout << " TopOpeBRepBuild_FuseFace::Init : Suppress internal connections" << endl;
std::cout << " TopOpeBRepBuild_FuseFace::Init : Suppress internal connections" << std::endl;
}
}
#endif
@@ -126,14 +126,14 @@ void TopOpeBRepBuild_FuseFace::PerformFace()
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = TopOpeBRepBuild_GettraceFUFA();
if (trc) cout << "TopOpeBRepBuild_FuseFace::PerformFace()" << endl;
if (trc) std::cout << "TopOpeBRepBuild_FuseFace::PerformFace()" << std::endl;
#endif
myModified = Standard_False;
myLFF.Clear();
if (myLRF.IsEmpty()) {
#ifdef OCCT_DEBUG
if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Empty list of reconstructed faces"<<endl;
if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Empty list of reconstructed faces"<<std::endl;
#endif
myModified = Standard_False;
myDone = Standard_True;
@@ -144,7 +144,7 @@ void TopOpeBRepBuild_FuseFace::PerformFace()
Standard_Integer number = myLRF.Extent();
if (number == 1) {
#ifdef OCCT_DEBUG
if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : only 1 reconstructed face"<<endl;
if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : only 1 reconstructed face"<<std::endl;
#endif
myModified = Standard_False;
myDone = Standard_True;
@@ -172,7 +172,7 @@ void TopOpeBRepBuild_FuseFace::PerformFace()
if (!ana.IsValid(fac)) {
// if (!BRepCheck_Analyzer::IsValid(fac)) {
#ifdef OCCT_DEBUG
if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Invalid reconstructed face"<<endl;
if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Invalid reconstructed face"<<std::endl;
#endif
myModified = Standard_False;
myDone = Standard_True;
@@ -186,7 +186,7 @@ void TopOpeBRepBuild_FuseFace::PerformFace()
// Orientation 3d de l'espace limite par la face
if (Ori3dForward && Ori3dReversed) {
#ifdef OCCT_DEBUG
if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Bad faces 3d orientation"<<endl;
if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Bad faces 3d orientation"<<std::endl;
#endif
myModified = Standard_False;
myDone = Standard_True;
@@ -201,7 +201,7 @@ void TopOpeBRepBuild_FuseFace::PerformFace()
GroupShape(mylist,Keep_Edge,mapFacLFac);
if (mapFacLFac.IsEmpty()) {
#ifdef OCCT_DEBUG
if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Empty list of faces"<<endl;
if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Empty list of faces"<<std::endl;
#endif
myModified = Standard_False;
myDone = Standard_True;
@@ -212,7 +212,7 @@ void TopOpeBRepBuild_FuseFace::PerformFace()
Standard_Integer n2 = mapFacLFac.Extent();
if (n1 == n2) {
#ifdef OCCT_DEBUG
if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : No connection"<<endl;
if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : No connection"<<std::endl;
#endif
myModified = Standard_False;
myDone = Standard_True;
@@ -246,7 +246,7 @@ void TopOpeBRepBuild_FuseFace::PerformFace()
GroupShape(LWir,Keep_Edge,mapWirLWir);
if (mapWirLWir.IsEmpty()) {
#ifdef OCCT_DEBUG
if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Empty list of wires"<<endl;
if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Empty list of wires"<<std::endl;
#endif
myModified = Standard_False;
myDone = Standard_True;
@@ -279,7 +279,7 @@ void TopOpeBRepBuild_FuseFace::PerformFace()
GroupShape(LEdg,Keep_Edge,mapEdgLEdg);
if (mapEdgLEdg.IsEmpty()) {
#ifdef OCCT_DEBUG
if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Empty list of edges"<<endl;
if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Empty list of edges"<<std::endl;
#endif
myModified = Standard_False;
myDone = Standard_True;
@@ -303,7 +303,7 @@ void TopOpeBRepBuild_FuseFace::PerformFace()
if (ori1 == TopAbs_REVERSED) {
if (OriReversed) {
#ifdef OCCT_DEBUG
if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Bad faces orientation"<<endl;
if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Bad faces orientation"<<std::endl;
#endif
myModified = Standard_False;
myDone = Standard_True;
@@ -315,7 +315,7 @@ void TopOpeBRepBuild_FuseFace::PerformFace()
else if (ori1 == TopAbs_FORWARD) {
if (OriForward) {
#ifdef OCCT_DEBUG
if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Bad faces orientation"<<endl;
if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Bad faces orientation"<<std::endl;
#endif
myModified = Standard_False;
myDone = Standard_True;
@@ -377,7 +377,7 @@ void TopOpeBRepBuild_FuseFace::PerformFace()
MW.Add(myWireLE);
if (!MW.IsDone()) {
#ifdef OCCT_DEBUG
if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Failure in making wire"<<endl;
if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Failure in making wire"<<std::endl;
#endif
myModified = Standard_False;
myDone = Standard_True;
@@ -465,7 +465,7 @@ void TopOpeBRepBuild_FuseFace::PerformFace()
if (!MF.IsDone()) {
#ifdef OCCT_DEBUG
if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Failure in making face"<<endl;
if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Failure in making face"<<std::endl;
#endif
myModified = Standard_False;
myDone = Standard_True;
@@ -485,7 +485,7 @@ void TopOpeBRepBuild_FuseFace::PerformFace()
if (myLFF.IsEmpty()) {
#ifdef OCCT_DEBUG
if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Empty list of fusionned faces"<<endl;
if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Empty list of fusionned faces"<<std::endl;
#endif
myModified = Standard_False;
myDone = Standard_True;
@@ -497,7 +497,7 @@ void TopOpeBRepBuild_FuseFace::PerformFace()
myDone = Standard_True;
#ifdef OCCT_DEBUG
if (trc) cout << " TopOpeBRepBuild_FuseFace::PerformFace() : Done" << endl;
if (trc) std::cout << " TopOpeBRepBuild_FuseFace::PerformFace() : Done" << std::endl;
#endif
}
@@ -511,7 +511,7 @@ void TopOpeBRepBuild_FuseFace::PerformEdge()
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = TopOpeBRepBuild_GettraceFUFA();
if (trc) cout << "TopOpeBRepBuild_FuseFace::PerformEdge()" << endl;
if (trc) std::cout << "TopOpeBRepBuild_FuseFace::PerformEdge()" << std::endl;
#endif
TopTools_DataMapOfShapeListOfShape mapVerLEdg,mapTampon;
@@ -582,7 +582,7 @@ void TopOpeBRepBuild_FuseFace::PerformEdge()
myDone = Standard_True;
#ifdef OCCT_DEBUG
if (trc) cout << " TopOpeBRepBuild_FuseFace::PerformEdge() : Done" << endl;
if (trc) std::cout << " TopOpeBRepBuild_FuseFace::PerformEdge() : Done" << std::endl;
#endif
}
@@ -595,7 +595,7 @@ void TopOpeBRepBuild_FuseFace::ClearEdge()
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = TopOpeBRepBuild_GettraceFUFA();
if (trc) cout << "TopOpeBRepBuild_FuseFace::ClearEdge()" << endl;
if (trc) std::cout << "TopOpeBRepBuild_FuseFace::ClearEdge()" << std::endl;
#endif
TopTools_ListIteratorOfListOfShape it1,it2;
@@ -638,7 +638,7 @@ void TopOpeBRepBuild_FuseFace::ClearEdge()
MW.Add(myWireLE);
if (!MW.IsDone()) {
#ifdef OCCT_DEBUG
if (trc) cout<<" TopOpeBRepBuild_FuseFace::ClearEdge : Failure in making wire"<<endl;
if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::ClearEdge : Failure in making wire"<<std::endl;
#endif
myModified = Standard_False;
myDone = Standard_True;
@@ -658,7 +658,7 @@ void TopOpeBRepBuild_FuseFace::ClearEdge()
// Reconstrution de 1 face de LRF
if (myFaceLW.IsEmpty()) {
#ifdef OCCT_DEBUG
if (trc) cout<<" TopOpeBRepBuild_FuseFace::ClearEdge : Empty list of wires"<<endl;
if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::ClearEdge : Empty list of wires"<<std::endl;
#endif
myModified = Standard_False;
myDone = Standard_True;
@@ -677,7 +677,7 @@ void TopOpeBRepBuild_FuseFace::ClearEdge()
}
if (!MF.IsDone()) {
#ifdef OCCT_DEBUG
if (trc) cout<<" TopOpeBRepBuild_FuseFace::ClearEdge : Failure in making face"<<endl;
if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::ClearEdge : Failure in making face"<<std::endl;
#endif
myModified = Standard_False;
myDone = Standard_True;
@@ -690,7 +690,7 @@ void TopOpeBRepBuild_FuseFace::ClearEdge()
//Fin Niveau 1
if (myLFFnew.IsEmpty()) {
#ifdef OCCT_DEBUG
if (trc) cout<<" TopOpeBRepBuild_FuseFace::ClearEdge : Empty list of fusionned faces"<<endl;
if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::ClearEdge : Empty list of fusionned faces"<<std::endl;
#endif
myModified = Standard_False;
myDone = Standard_True;
@@ -703,7 +703,7 @@ void TopOpeBRepBuild_FuseFace::ClearEdge()
myDone = Standard_True;
#ifdef OCCT_DEBUG
if (trc) cout << " TopOpeBRepBuild_FuseFace::ClearEdge() : Done" << endl;
if (trc) std::cout << " TopOpeBRepBuild_FuseFace::ClearEdge() : Done" << std::endl;
#endif
}
@@ -716,11 +716,11 @@ void TopOpeBRepBuild_FuseFace::ClearVertex()
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = TopOpeBRepBuild_GettraceFUFA();
if (trc) cout << "TopOpeBRepBuild_FuseFace::ClearVertex()" << endl;
if (trc) std::cout << "TopOpeBRepBuild_FuseFace::ClearVertex()" << std::endl;
#endif
#ifdef OCCT_DEBUG
if (trc) cout << " TopOpeBRepBuild_FuseFace::ClearVertex() : Done" << endl;
if (trc) std::cout << " TopOpeBRepBuild_FuseFace::ClearVertex() : Done" << std::endl;
#endif
}
@@ -979,7 +979,7 @@ static void MakeEdge(TopTools_DataMapOfShapeListOfShape& mymapEdgLEdg)
Standard_Integer number = myEdgeLV.Extent();
if (!(number == 2)){
#ifdef OCCT_DEBUG
if (trc) cout<<" TopOpeBRepBuild_FuseFace::MakeEdge : Failure in reconstructing new edge"<<endl;
if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::MakeEdge : Failure in reconstructing new edge"<<std::endl;
#endif
return;
}
@@ -1071,7 +1071,7 @@ Standard_Boolean SameSupport(const TopoDS_Edge& E1,
typC1 != STANDARD_TYPE(Geom_BSplineCurve) &&
typC1 != STANDARD_TYPE(Geom_BezierCurve)) {
#ifdef OCCT_DEBUG
if (trc) cout << " TopOpeBRepBuild_FuseFace : Type de Support non traite" << endl;
if (trc) std::cout << " TopOpeBRepBuild_FuseFace : Type de Support non traite" << std::endl;
#endif
return Standard_False;
}

View File

@@ -85,5 +85,5 @@ void TopOpeBRepBuild_GIter::Dump(Standard_OStream& OS) const
if ( !More()) return;
TopAbs_State s1,s2; Current(s1,s2);
Standard_Boolean b = MYGTOPO.Value(s1,s2);
TopOpeBRepBuild_GTopo::DumpSSB(OS,s1,s2,b); OS<<endl;
TopOpeBRepBuild_GTopo::DumpSSB(OS,s1,s2,b); OS<<std::endl;
}

View File

@@ -165,18 +165,18 @@ void TopOpeBRepBuild_GTool::Dump(Standard_OStream& OS)
TopOpeBRepBuild_GTopo g;
g = TopOpeBRepBuild_GTool::GFusUnsh(TopAbs_FACE,TopAbs_FACE);
g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<endl;
g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<std::endl;
g = TopOpeBRepBuild_GTool::GFusSame(TopAbs_FACE,TopAbs_FACE);
g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<endl;
g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<std::endl;
g = TopOpeBRepBuild_GTool::GFusDiff(TopAbs_FACE,TopAbs_FACE);
g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<endl;
g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<std::endl;
g = TopOpeBRepBuild_GTool::GCutDiff(TopAbs_FACE,TopAbs_EDGE);
g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<endl;
g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<std::endl;
g = g.CopyPermuted();
g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<endl;
g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<std::endl;
}

View File

@@ -299,31 +299,31 @@ void TopOpeBRepBuild_GTopo::Dump(Standard_OStream& OS,
DumpType(OS);
OS<<" "; TopOpeBRepDS::Print(myConfig1,OS);
OS<<" "; TopOpeBRepDS::Print(myConfig2,OS);
OS<<endl;
OS<<std::endl;
if (myReverseForce) OS<<"reverse value : "<<myReverseValue<<endl;
if (myReverseForce) OS<<"reverse value : "<<myReverseValue<<std::endl;
if(s) OS<<s;
OS<<"\\ I N O";
OS<<endl;
OS<<std::endl;
if(s) OS<<s;
OS<<"I ";
DumpVal(OS,TopAbs_IN,TopAbs_IN); OS<<" ";
DumpVal(OS,TopAbs_IN,TopAbs_ON); OS<<" ";
DumpVal(OS,TopAbs_IN,TopAbs_OUT); OS<<endl;
DumpVal(OS,TopAbs_IN,TopAbs_OUT); OS<<std::endl;
if(s) OS<<s;
OS<<"N ";
DumpVal(OS,TopAbs_ON,TopAbs_IN); OS<<" ";
DumpVal(OS,TopAbs_ON,TopAbs_ON); OS<<" ";
DumpVal(OS,TopAbs_ON,TopAbs_OUT); OS<<endl;
DumpVal(OS,TopAbs_ON,TopAbs_OUT); OS<<std::endl;
if(s) OS<<s;
OS<<"O ";
DumpVal(OS,TopAbs_OUT,TopAbs_IN); OS<<" ";
DumpVal(OS,TopAbs_OUT,TopAbs_ON); OS<<" ";
DumpVal(OS,TopAbs_OUT,TopAbs_OUT); OS<<endl;
DumpVal(OS,TopAbs_OUT,TopAbs_OUT); OS<<std::endl;
}
//=======================================================================

View File

@@ -61,11 +61,11 @@ Standard_Boolean TopOpeBRepBuild_Builder::GToSplit(const TopoDS_Shape& S,const T
#ifdef OCCT_DEBUG
Standard_Integer iS; Standard_Boolean tSPS = GtraceSPS(S,iS);
if (tSPS) {
cout<<"GToSplit ";GdumpSHA(S);cout<<" ";TopAbs::Print(TB,cout);
cout<<" "<<tosplit<<" : !issplit "<<(!issplit);
cout<<" && (facshap || hasgeom || hassame) ";
cout<<"("<<facshap<<" || "<<hasgeom<<" || "<<hassame<<")"<<endl;
cout.flush();
std::cout<<"GToSplit ";GdumpSHA(S);std::cout<<" ";TopAbs::Print(TB,std::cout);
std::cout<<" "<<tosplit<<" : !issplit "<<(!issplit);
std::cout<<" && (facshap || hasgeom || hassame) ";
std::cout<<"("<<facshap<<" || "<<hasgeom<<" || "<<hassame<<")"<<std::endl;
std::cout.flush();
}
#endif
@@ -86,9 +86,9 @@ Standard_Boolean TopOpeBRepBuild_Builder::GToSplit(const TopoDS_Shape& S,const T
} //CONTEXT
} //CONTEXT
Standard_Boolean tosplitH = tosplit || hasON; //CONTEXT
if(tSPS){cout<<"GToSplit context SPEON";} //CONTEXT
if(tSPS){cout<<" "<<tosplitH<<" : tosplit "<<tosplit;} //CONTEXT
if(tSPS){cout<<" || hasON "<<hasON<<endl;} //CONTEXT
if(tSPS){std::cout<<"GToSplit context SPEON";} //CONTEXT
if(tSPS){std::cout<<" "<<tosplitH<<" : tosplit "<<tosplit;} //CONTEXT
if(tSPS){std::cout<<" || hasON "<<hasON<<std::endl;} //CONTEXT
} //CONTEXT
#endif
@@ -110,8 +110,8 @@ Standard_Boolean TopOpeBRepBuild_Builder::GToMerge(const TopoDS_Shape& S) const
#ifdef OCCT_DEBUG
Standard_Integer iS; Standard_Boolean tSPS = GtraceSPS(S,iS);
if(tSPS){cout<<"GToMerge ";GdumpSHA(S);cout<<" ";TopAbs::Print(TB,cout);}
if(tSPS){cout<<" "<<tomerge<<" : !ismerged "<<(!ismerged)<<" && hassame "<<hassame<<endl;}
if(tSPS){std::cout<<"GToMerge ";GdumpSHA(S);std::cout<<" ";TopAbs::Print(TB,std::cout);}
if(tSPS){std::cout<<" "<<tomerge<<" : !ismerged "<<(!ismerged)<<" && hassame "<<hassame<<std::endl;}
#endif
return tomerge;
@@ -254,7 +254,7 @@ void TopOpeBRepBuild_Builder::GFindSamDomSODO(TopTools_ListOfShape& LSO,TopTools
Standard_Integer iS; Standard_Boolean tSPS = GtraceSPS(sref,iS);
if(tSPS) {
TCollection_AsciiString ss("GFindSamDom result on ");
GdumpSHA(sref,(Standard_Address)ss.ToCString());cout<<endl;
GdumpSHA(sref,(Standard_Address)ss.ToCString());std::cout<<std::endl;
GdumpSAMDOM(LSO, (char *) "L1 : ");
GdumpSAMDOM(LDO, (char *) "L2 : ");
}

View File

@@ -93,7 +93,7 @@ void TopOpeBRepBuild_Builder::GMergeEdges(const TopTools_ListOfShape& LE1,const
#ifdef OCCT_DEBUG
Standard_Integer iE; Standard_Boolean tSPS1 = GtraceSPS(E1,iE);
if(tSPS1){
cout<<endl;cout<<"--- GMergeEdges "<<endl;
std::cout<<std::endl;std::cout<<"--- GMergeEdges "<<std::endl;
GdumpEDG(E1);
GdumpSAMDOM(LE1, (char *) "1 : ");
GdumpSAMDOM(LE2, (char *) "2 : ");
@@ -152,8 +152,8 @@ void TopOpeBRepBuild_Builder::GFillEdgesPVS(const TopTools_ListOfShape& LE1,cons
#ifdef OCCT_DEBUG
Standard_Integer i1; Standard_Boolean tSPS1 = GtraceSPS(E11,i1);
if(tSPS1){
cout<<endl;cout<<"--- GFillEdgesPVS ";GdumpSHA(E11);
cout<<" ismerged : "<<ismerged<<" ";TopAbs::Print(TB1,cout);cout<<endl;
std::cout<<std::endl;std::cout<<"--- GFillEdgesPVS ";GdumpSHA(E11);
std::cout<<" ismerged : "<<ismerged<<" ";TopAbs::Print(TB1,std::cout);std::cout<<std::endl;
}
#endif
@@ -170,9 +170,9 @@ void TopOpeBRepBuild_Builder::GFillEdgesPVS(const TopTools_ListOfShape& LE1,cons
#ifdef OCCT_DEBUG
Standard_Integer i2; Standard_Boolean tSPS2 = GtraceSPS(E2,i2);
if(tSPS2){
cout<<endl;
cout<<"--- GFillEdgesPVS ";GdumpSHA(E2);
cout<<" ismerged : "<<ismerged<<" ";TopAbs::Print(TB2,cout);cout<<endl;
std::cout<<std::endl;
std::cout<<"--- GFillEdgesPVS ";GdumpSHA(E2);
std::cout<<" ismerged : "<<ismerged<<" ";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;
}
#endif
@@ -247,11 +247,11 @@ static Standard_Integer FUN_getTRASHA(const Standard_Integer geti,
#endif*/
#ifdef OCCT_DEBUG
void debfillp(const Standard_Integer i) {cout <<"+ + debfillp "<<i<<endl;}
void debfillpon(const Standard_Integer i) {cout <<"+ + debfillpon "<<i<<endl;}
void debfillpin(const Standard_Integer i) {cout <<"+ + debfillpin "<<i<<endl;}
void debfillpou(const Standard_Integer i) {cout <<"+ + debfillpou "<<i<<endl;}
void debfillp2(const Standard_Integer i) {cout <<"+ + debfillp2 "<<i<<endl;}
void debfillp(const Standard_Integer i) {std::cout <<"+ + debfillp "<<i<<std::endl;}
void debfillpon(const Standard_Integer i) {std::cout <<"+ + debfillpon "<<i<<std::endl;}
void debfillpin(const Standard_Integer i) {std::cout <<"+ + debfillpin "<<i<<std::endl;}
void debfillpou(const Standard_Integer i) {std::cout <<"+ + debfillpou "<<i<<std::endl;}
void debfillp2(const Standard_Integer i) {std::cout <<"+ + debfillp2 "<<i<<std::endl;}
#endif
//Standard_IMPORT extern Standard_Boolean GLOBAL_faces2d;
@@ -326,11 +326,11 @@ void TopOpeBRepBuild_Builder::GFillPointTopologyPVS(const TopoDS_Shape& E,
const TopoDS_Shape& EPVS=PVS.Edge();Standard_Integer iEPVS;Standard_Boolean tSPSEPVS=GtraceSPS(EPVS,iEPVS);
Standard_Boolean tSPS = tSPSE || tSPSEPVS;
if(tSPS){
cout<<endl;
cout<<"--- GFillPointTopologyPVS : ShapeInterf ";TopAbs::Print(ShapeInterf,cout);
cout<<",efil ";GdumpSHA(E);cout<<",eref ";GdumpSHA(myEdgeReference);
cout<<",ffil ";GdumpSHA(myFaceToFill);cout<<",fref ";GdumpSHA(myFaceReference);
cout<<endl;
std::cout<<std::endl;
std::cout<<"--- GFillPointTopologyPVS : ShapeInterf ";TopAbs::Print(ShapeInterf,std::cout);
std::cout<<",efil ";GdumpSHA(E);std::cout<<",eref ";GdumpSHA(myEdgeReference);
std::cout<<",ffil ";GdumpSHA(myFaceToFill);std::cout<<",fref ";GdumpSHA(myFaceReference);
std::cout<<std::endl;
debfillp(iEDS);
}
#endif
@@ -554,12 +554,12 @@ void TopOpeBRepBuild_Builder::GFillPointTopologyPVS(const TopoDS_Shape& E,
#ifdef OCCT_DEBUG
Standard_Boolean id2d = (I1 == i2d);
if (tSPS) {
cout<<"DEB : GFillPointTopologyPVS E"<<iEDS<<" has2d3d"<<endl;
if (id3d) cout<<"--> Interference 3d ";
if (id2d) cout<<"--> Interference 2d ";
if (keepinterf1) cout<<" traitee"<<endl;
else cout<<" non traitee"<<endl;
cout<<endl;
std::cout<<"DEB : GFillPointTopologyPVS E"<<iEDS<<" has2d3d"<<std::endl;
if (id3d) std::cout<<"--> Interference 3d ";
if (id2d) std::cout<<"--> Interference 2d ";
if (keepinterf1) std::cout<<" traitee"<<std::endl;
else std::cout<<" non traitee"<<std::endl;
std::cout<<std::endl;
}
#endif
}
@@ -664,8 +664,8 @@ void TopOpeBRepBuild_Builder::GFillPointTopologyPVS(const TopoDS_Shape& E,
GParamOnReference(VPV,EE,parref);
#ifdef OCCT_DEBUG
if(tSPS){
cout<<"par "<<par<<" / ";GdumpSHA(E);cout<<" --> parref "<<parref<<" / ";GdumpSHA(EPVS);
cout<<endl;
std::cout<<"par "<<par<<" / ";GdumpSHA(E);std::cout<<" --> parref "<<parref<<" / ";GdumpSHA(EPVS);
std::cout<<std::endl;
}
#endif
par = parref;
@@ -711,8 +711,8 @@ void TopOpeBRepBuild_Builder::GFillPointTopologyPVS(const TopoDS_Shape& E,
#ifdef OCCT_DEBUG
gp_Pnt P = BRep_Tool::Pnt(VPV);
if(tSPS){cout<<"+";if(ispoint)cout<<" PDS ";else cout<<" VDS ";}
if(tSPS){cout<<iG<<" : ";GdumpORIPARPNT(ori,par,P);cout<<endl;}
if(tSPS){std::cout<<"+";if(ispoint)std::cout<<" PDS ";else std::cout<<" VDS ";}
if(tSPS){std::cout<<iG<<" : ";GdumpORIPARPNT(ori,par,P);std::cout<<std::endl;}
if(tSPS) {
// Standard_Boolean trc = Standard_False;
#ifdef DRAW
@@ -744,8 +744,8 @@ void TopOpeBRepBuild_Builder::GFillPointTopologyPVS(const TopoDS_Shape& E,
#ifdef OCCT_DEBUG
gp_Pnt PF = BRep_Tool::Pnt(VPV);
if(tSPS){cout<<"+";if(ispoint)cout<<" PDS ";else cout<<" VDS ";}
if(tSPS){cout<<iG<<" : ";GdumpORIPARPNT(ovpv,parf,PF);cout<<endl;}
if(tSPS){std::cout<<"+";if(ispoint)std::cout<<" PDS ";else std::cout<<" VDS ";}
if(tSPS){std::cout<<iG<<" : ";GdumpORIPARPNT(ovpv,parf,PF);std::cout<<std::endl;}
#endif
ovpv = TopAbs_REVERSED;
@@ -764,8 +764,8 @@ void TopOpeBRepBuild_Builder::GFillPointTopologyPVS(const TopoDS_Shape& E,
PVS.Append(PVR);
#ifdef OCCT_DEBUG
gp_Pnt PR = BRep_Tool::Pnt(VPV);
if(tSPS){cout<<"+";if(ispoint)cout<<" PDS ";else cout<<" VDS ";}
if(tSPS){cout<<iG<<" : ";GdumpORIPARPNT(ovpv,parl,PR);cout<<endl;}
if(tSPS){std::cout<<"+";if(ispoint)std::cout<<" PDS ";else std::cout<<" VDS ";}
if(tSPS){std::cout<<iG<<" : ";GdumpORIPARPNT(ovpv,parl,PR);std::cout<<std::endl;}
#endif
PVS.RemovePV(Standard_False); // jyl + 980217
@@ -790,7 +790,7 @@ Standard_Boolean TopOpeBRepBuild_Builder::GParamOnReference(const TopoDS_Vertex&
Handle(Geom_Plane) suplan = Handle(Geom_Plane)::DownCast(su);
if ( suplan.IsNull() ) {
#ifdef OCCT_DEBUG
cout<<"NYI : GParamOnReference : not planar"<<endl;
std::cout<<"NYI : GParamOnReference : not planar"<<std::endl;
#endif
return Standard_False;
}
@@ -816,7 +816,7 @@ Standard_Boolean TopOpeBRepBuild_Builder::GParamOnReference(const TopoDS_Vertex&
P = ElCLib::Parameter(AC.Parabola(),p2); break;
default :
#ifdef OCCT_DEBUG
cout<<"NYI : GParamOnReference : OtherCurve on planar surface"<<endl;
std::cout<<"NYI : GParamOnReference : OtherCurve on planar surface"<<std::endl;
#endif
return Standard_False;
}

View File

@@ -62,11 +62,11 @@ extern void* GFABUMAKEFACEPWES_DEB;
Standard_Integer GLOBAL_iexE = 0;
Standard_EXPORT void debfillw(const Standard_Integer /*i*/) {}
Standard_EXPORT void debfille(const Standard_Integer /*i*/) {}
Standard_EXPORT void debffwesON(const Standard_Integer i) {cout<<"++ debffwesON "<<i<<endl;}
Standard_EXPORT void debffwesmf(const Standard_Integer i) {cout<<"++ debffwesmf "<<i<<endl;}
Standard_EXPORT void debfillf(const Standard_Integer i) {cout<<"++ debfillf "<<i<<endl;}
Standard_EXPORT void debsplite(const Standard_Integer i) {cout<<"++ debsplite "<<i<<endl;}
Standard_EXPORT void debmergef(const Standard_Integer i) {cout<<"++ debmergef "<<i<<endl;}
Standard_EXPORT void debffwesON(const Standard_Integer i) {std::cout<<"++ debffwesON "<<i<<std::endl;}
Standard_EXPORT void debffwesmf(const Standard_Integer i) {std::cout<<"++ debffwesmf "<<i<<std::endl;}
Standard_EXPORT void debfillf(const Standard_Integer i) {std::cout<<"++ debfillf "<<i<<std::endl;}
Standard_EXPORT void debsplite(const Standard_Integer i) {std::cout<<"++ debsplite "<<i<<std::endl;}
Standard_EXPORT void debmergef(const Standard_Integer i) {std::cout<<"++ debmergef "<<i<<std::endl;}
Standard_IMPORT void debfctwesmess(const Standard_Integer i,
const TCollection_AsciiString& s = "");
extern void debaddpwes(const Standard_Integer iFOR, const TopAbs_State TB1, const Standard_Integer iEG,
@@ -297,7 +297,7 @@ Standard_EXPORT TopOpeBRepDS_PDataStructure GLOBAL_DS2d = NULL;
#ifdef OCCT_DEBUG
Standard_Integer iF; Standard_Boolean tSPS = GtraceSPS(F1,iF);
if(tSPS){
cout<<endl<<"--- GMergeFaces "<<endl;
std::cout<<std::endl<<"--- GMergeFaces "<<std::endl;
GdumpSAMDOM(LF1, (char *) "1 : ");
GdumpSAMDOM(LF2, (char *) "2 : ");
debmergef(iF);
@@ -585,11 +585,11 @@ static Standard_Boolean FUN_validF1edge(const TopoDS_Shape& F)
#ifdef OCCT_DEBUG
Standard_Integer iW; Standard_Boolean tSPS = GtraceSPS(W,iW);
if(tSPS){
cout<<endl;DEBSHASET(s,"--- GFillWireWES ",WES," ");
GdumpSHA(W,(Standard_Address)s.ToCString()); cout<<endl;
std::cout<<std::endl;DEBSHASET(s,"--- GFillWireWES ",WES," ");
GdumpSHA(W,(Standard_Address)s.ToCString()); std::cout<<std::endl;
Standard_Integer nbe = 0;
TopOpeBRepTool_ShapeExplorer exE(W,TopAbs_EDGE);for (;exE.More(); exE.Next()) nbe++;
cout<<"--- GFillWireWES on W "<<iW<<" with "<<nbe<<" edges "<<endl;
std::cout<<"--- GFillWireWES on W "<<iW<<" with "<<nbe<<" edges "<<std::endl;
debfillw(iW);
}
GLOBAL_iexE = 0;
@@ -633,7 +633,7 @@ static Standard_Boolean FUN_validF1edge(const TopoDS_Shape& F)
#ifdef OCCT_DEBUG
Standard_Integer iE; Standard_Boolean tSPS = GtraceSPS(EOR,iE);
if(tSPS)cout<<endl;
if(tSPS)std::cout<<std::endl;
#endif
#ifdef OCCT_DEBUG
@@ -647,7 +647,7 @@ static Standard_Boolean FUN_validF1edge(const TopoDS_Shape& F)
#ifdef OCCT_DEBUG
if(tSPS) GdumpSHASTA(iE,TB1,WES,"--- GFillEdgeWES ");
if(tSPS) cout<<" tosplit "<<tosplit<<" tomerge "<<tomerge<<endl;
if(tSPS) std::cout<<" tosplit "<<tosplit<<" tomerge "<<tomerge<<std::endl;
if(tSPS) debfille(iE);
#endif
@@ -736,7 +736,7 @@ static void FUN_samgeomori(const TopOpeBRepDS_DataStructure& BDS, const Standard
Standard_Integer iEOR; Standard_Boolean tSPS = GtraceSPS(EOR,iEOR);
Standard_Integer iWESF; /*Standard_Boolean tSPSW = */GtraceSPS(WES.Face(),iWESF);
if(tSPS) GdumpSHASTA(iEOR,TB1,WES,"\n--- GSplitEdgeWES","START");
if(tSPS) cout<<" RevOri1 : "<<RevOri1<<endl;
if(tSPS) std::cout<<" RevOri1 : "<<RevOri1<<std::endl;
if(tSPS) debsplite(iEOR);
#endif
@@ -786,8 +786,8 @@ static void FUN_samgeomori(const TopOpeBRepDS_DataStructure& BDS, const Standard
#ifdef OCCT_DEBUG
if(tSPS) {
GdumpSHASTA(iEOR,TB1,WES,"--- GSplitEdgeWES","WES+ Split");
cout<<" ";TopAbs::Print(TB1,cout)<<" : "<<LSE.Extent()<<" edge(s) ";
TopAbs::Print(neworiE,cout); cout<<endl;
std::cout<<" ";TopAbs::Print(TB1,std::cout)<<" : "<<LSE.Extent()<<" edge(s) ";
TopAbs::Print(neworiE,std::cout); std::cout<<std::endl;
}
#endif
@@ -806,7 +806,7 @@ static void FUN_samgeomori(const TopOpeBRepDS_DataStructure& BDS, const Standard
Standard_Boolean ok = FUN_tool_curvesSO(newE,par,TopoDS::Edge(EOR),so);
if (!ok) {
#ifdef OCCT_DEBUG
cout<<"GSplitEdgeWES: cannot orient SDM split of an edge"<<endl;
std::cout<<"GSplitEdgeWES: cannot orient SDM split of an edge"<<std::endl;
#endif
//return; // nyiFUNRAISE
}
@@ -850,10 +850,10 @@ static void FUN_samgeomori(const TopOpeBRepDS_DataStructure& BDS, const Standard
}
#ifdef OCCT_DEBUG
cout<<"o-o GridFF ffil F"<<ifil<<" se E"<<iEOR<<" / "<<iWESF<<" ";
TopAbs::Print(TB1,cout);cout.flush();
if (!ftg) {cout<<" : !ftg --> "; GKeepShape(EOR,LSclass,TB1);cout.flush();}
else {cout<<" : ftg --> non gardee"<<endl;cout.flush();}
std::cout<<"o-o GridFF ffil F"<<ifil<<" se E"<<iEOR<<" / "<<iWESF<<" ";
TopAbs::Print(TB1,std::cout);std::cout.flush();
if (!ftg) {std::cout<<" : !ftg --> "; GKeepShape(EOR,LSclass,TB1);std::cout.flush();}
else {std::cout<<" : ftg --> non gardee"<<std::endl;std::cout.flush();}
#endif
}
@@ -863,7 +863,7 @@ static void FUN_samgeomori(const TopOpeBRepDS_DataStructure& BDS, const Standard
testkeep = hs && (!hg);
if (testkeep) {
#ifdef OCCT_DEBUG
if(tSPS){cout<<"--- GSplitEdgeWES ";}
if(tSPS){std::cout<<"--- GSplitEdgeWES ";}
#endif
TopAbs_State pos;
Standard_Boolean keep = GKeepShape1(EOR,LSclass,TB1,pos);
@@ -888,8 +888,8 @@ static void FUN_samgeomori(const TopOpeBRepDS_DataStructure& BDS, const Standard
if(tSPS){
DEBSHASET(ss,"--- GSplitEdgeWES ",WES," WES+ edge ");
GdumpSHA(newE,(Standard_Address)ss.ToCString());
cout<<" ";TopAbs::Print(TB1,cout)<<" : 1 edge ";
TopAbs::Print(neworiE,cout); cout<<endl;
std::cout<<" ";TopAbs::Print(TB1,std::cout)<<" : 1 edge ";
TopAbs::Print(neworiE,std::cout); std::cout<<std::endl;
}
#endif
@@ -926,7 +926,7 @@ static void FUN_samgeomori(const TopOpeBRepDS_DataStructure& BDS, const Standard
Standard_Boolean ok = FUN_tool_curvesSO(newE,par,TopoDS::Edge(EOR),so);
if (!ok) {
#ifdef OCCT_DEBUG
cout<<"GSplitEdgeWES: cannot orient SDM split of an edge"<<endl;
std::cout<<"GSplitEdgeWES: cannot orient SDM split of an edge"<<std::endl;
#endif
}
if (!so) newE.Reverse();
@@ -965,7 +965,7 @@ void debmergee(const Standard_Integer /*i*/) {}
Standard_Integer iEOR; Standard_Boolean tSPS = GtraceSPS(EOR,iEOR);
if(tSPS){ debmergee(iEOR);
DEBSHASET(s,"\n--- GMergeEdgeWES ",WES," START ");
GdumpSHAORIGEO(EOR,(Standard_Address)s.ToCString()); cout<<endl;
GdumpSHAORIGEO(EOR,(Standard_Address)s.ToCString()); std::cout<<std::endl;
}
#endif
@@ -1028,8 +1028,8 @@ void debmergee(const Standard_Integer /*i*/) {}
if(tSPS){
DEBSHASET(s,"GMergeEdgeWES(1) ",WES," WES+ Merged ");
GdumpSHA(EOR,(Standard_Address)s.ToCString());
cout<<" ";TopAbs::Print(TBEOR,cout);
cout<<" : "<<ME.Extent()<<" edge"<<endl;
std::cout<<" ";TopAbs::Print(TBEOR,std::cout);
std::cout<<" : "<<ME.Extent()<<" edge"<<std::endl;
}
#endif
for(TopTools_ListIteratorOfListOfShape it(ME);it.More();it.Next()) {
@@ -1041,7 +1041,7 @@ void debmergee(const Standard_Integer /*i*/) {}
#ifdef OCCT_DEBUG
if(tSPS){
DEBSHASET(sss,"GMergeEdgeWES ",WES," END ");
GdumpSHA(EOR,(Standard_Address)sss.ToCString());cout<<endl;
GdumpSHA(EOR,(Standard_Address)sss.ToCString());std::cout<<std::endl;
}
#endif
@@ -1074,7 +1074,7 @@ void debmergee(const Standard_Integer /*i*/) {}
Standard_Boolean takeON = (TB1 == TopAbs_IN) && (isse) && (issplitON);
takeON = Standard_False;
#ifdef OCCT_DEBUG
if (tSPS) cout<<"---- takeON mis a 0"<<endl;
if (tSPS) std::cout<<"---- takeON mis a 0"<<std::endl;
#endif
if ( takeON ) {

View File

@@ -87,8 +87,8 @@
#ifdef OCCT_DEBUG
#define DEBSHASET(sarg,meth,shaset,str) TCollection_AsciiString sarg((meth));(sarg)=(sarg)+(shaset).DEBNumber()+(str);
Standard_EXPORT void debsplitf(const Standard_Integer i){cout<<"++ debsplitf "<<i<<endl;}
Standard_EXPORT void debspanc(const Standard_Integer i){cout<<"++ debspanc "<<i<<endl;}
Standard_EXPORT void debsplitf(const Standard_Integer i){std::cout<<"++ debsplitf "<<i<<std::endl;}
Standard_EXPORT void debspanc(const Standard_Integer i){std::cout<<"++ debspanc "<<i<<std::endl;}
Standard_Integer GLOBAL_iexF = 0;
#endif
@@ -256,8 +256,8 @@ void TopOpeBRepBuild_Builder::GMergeSolids(const TopTools_ListOfShape& LSO1,cons
#ifdef OCCT_DEBUG
Standard_Integer iSO; Standard_Boolean tSPS = GtraceSPS(SO1,iSO);
if(tSPS){
cout<<endl;
cout<<"--- GMergeSolids "<<endl;
std::cout<<std::endl;
std::cout<<"--- GMergeSolids "<<std::endl;
GdumpSAMDOM(LSO1, (char *) "1 : ");
GdumpSAMDOM(LSO2, (char *) "2 : ");
}
@@ -327,8 +327,8 @@ void TopOpeBRepBuild_Builder::GFillSolidsSFS(const TopTools_ListOfShape& LS1,con
#ifdef OCCT_DEBUG
Standard_Integer iS; Standard_Boolean tSPS = GtraceSPS(S,iS);
if(tSPS){
cout<<endl;
GdumpSHASTA(S,TB,"--- GFillSolidsSFS "); cout<<" tomerge : "<<tomerge<<endl;
std::cout<<std::endl;
GdumpSHASTA(S,TB,"--- GFillSolidsSFS "); std::cout<<" tomerge : "<<tomerge<<std::endl;
}
#endif
if (tomerge) GFillSolidSFS(S,LS2,G,SFS);
@@ -343,8 +343,8 @@ void TopOpeBRepBuild_Builder::GFillSolidsSFS(const TopTools_ListOfShape& LS1,con
#ifdef OCCT_DEBUG
Standard_Integer iS; Standard_Boolean tSPS = GtraceSPS(S,iS);
if(tSPS){
cout<<endl;
GdumpSHASTA(S,TB,"--- GFillSolidsSFS "); cout<<" tomerge : "<<tomerge<<endl;
std::cout<<std::endl;
GdumpSHASTA(S,TB,"--- GFillSolidsSFS "); std::cout<<" tomerge : "<<tomerge<<std::endl;
}
#endif
if (tomerge) GFillSolidSFS(S,LS1,G,SFS);
@@ -369,8 +369,8 @@ void TopOpeBRepBuild_Builder::GFillSolidSFS(const TopoDS_Shape& SO1,const TopToo
#ifdef OCCT_DEBUG
Standard_Integer iSO; Standard_Boolean tSPS = GtraceSPS(SO1,iSO);
if(tSPS){
cout<<endl;
GdumpSHASTA(SO1,TB1,"--- GFillSolidSFS ");cout<<endl;
std::cout<<std::endl;
GdumpSHASTA(SO1,TB1,"--- GFillSolidSFS ");std::cout<<std::endl;
}
#endif
@@ -395,8 +395,8 @@ void TopOpeBRepBuild_Builder::GFillSolidSFS(const TopoDS_Shape& SO1,const TopToo
if(tSPS){
DEBSHASET(ss,"--- GFillSolidSFS ",SFS," AddShape SFS+ shell ");
GdumpSHA(SH,(Standard_Address)ss.ToCString());
cout<<" ";TopAbs::Print(TB1,cout)<<" : 1 shell ";
TopAbs::Print(neworiSH,cout); cout<<endl;
std::cout<<" ";TopAbs::Print(TB1,std::cout)<<" : 1 shell ";
TopAbs::Print(neworiSH,std::cout); std::cout<<std::endl;
}
#endif
@@ -432,11 +432,11 @@ void TopOpeBRepBuild_Builder::GFillSurfaceTopologySFS(const TopoDS_Shape&,
#ifdef OCCT_DEBUG
Standard_Integer iSO; Standard_Boolean tSPS = GtraceSPS(SO1,iSO);
if(tSPS){
cout<<endl;
cout<<"--- GFillSurfaceTopologySFS ShapeInterf ";TopAbs::Print(ShapeInterf,cout);
cout<<endl;
std::cout<<std::endl;
std::cout<<"--- GFillSurfaceTopologySFS ShapeInterf ";TopAbs::Print(ShapeInterf,std::cout);
std::cout<<std::endl;
}
cout<<"GFillSurfaceTopologySFS : NYI"<<endl;
std::cout<<"GFillSurfaceTopologySFS : NYI"<<std::endl;
#endif
} // GFillSurfaceTopologySFS
@@ -463,9 +463,9 @@ void TopOpeBRepBuild_Builder::GFillSurfaceTopologySFS
Standard_Integer iref = myDataStructure->Shape(mySolidReference);
Standard_Integer ifil = myDataStructure->Shape(mySolidToFill);
if(tSPS){
cout<<"ifil : "<<ifil<<" iref : "<<iref<<endl;
cout<<"solid "<<ifil<<" is ";TopOpeBRepDS::Print(Conf,cout);
cout<<endl;
std::cout<<"ifil : "<<ifil<<" iref : "<<iref<<std::endl;
std::cout<<"solid "<<ifil<<" is ";TopOpeBRepDS::Print(Conf,std::cout);
std::cout<<std::endl;
}
#endif
@@ -482,8 +482,8 @@ void TopOpeBRepBuild_Builder::GFillSurfaceTopologySFS
if (tSPS){
DEBSHASET(ss,"--- GFillSurfaceTopologySFS ",SFS," AddElement SFS+ face ");
GdumpSHA(F,(Standard_Address)ss.ToCString());
cout<<" ";TopAbs::Print(TB,cout)<<" : 1 face ";
TopAbs::Print(ori,cout); cout<<endl;
std::cout<<" ";TopAbs::Print(TB,std::cout)<<" : 1 face ";
TopAbs::Print(ori,std::cout); std::cout<<std::endl;
}
#endif
@@ -506,9 +506,9 @@ void TopOpeBRepBuild_Builder::GFillShellSFS(const TopoDS_Shape& SH,
#ifdef OCCT_DEBUG
Standard_Integer ish; Standard_Boolean tSPS = GtraceSPS(SH,ish);
if(tSPS){
cout<<endl;
std::cout<<std::endl;
GdumpSHA(SH, (char *) "--- GFillShellSFS ");
cout<<endl;}
std::cout<<std::endl;}
#endif
TopOpeBRepTool_ShapeExplorer exFace;
@@ -695,8 +695,8 @@ void TopOpeBRepBuild_Builder::GSplitFaceSFS
#ifdef OCCT_DEBUG
Standard_Integer iiFOR; Standard_Boolean tSPS = GtraceSPS(FOR,iiFOR);
if(tSPS){
cout<<endl;
GdumpSHASTA(FOR,TB1,"--- GSplitFaceSFS ");cout<<" RevOri1 : "<<RevOri1<<endl;debsplitf(iFOR);
std::cout<<std::endl;
GdumpSHASTA(FOR,TB1,"--- GSplitFaceSFS ");std::cout<<" RevOri1 : "<<RevOri1<<std::endl;debsplitf(iFOR);
}
#endif
@@ -779,8 +779,8 @@ void TopOpeBRepBuild_Builder::GSplitFaceSFS
if(tSPS){
DEBSHASET(ss,"--- GSplitFaceSFS ",SFS," AddStartElement SFS+ face ");
GdumpSHA(newF,(Standard_Address)ss.ToCString());
cout<<" ";TopAbs::Print(TB1,cout)<<" : 1 face ";
TopAbs::Print(neworiF,cout); cout<<endl;
std::cout<<" ";TopAbs::Print(TB1,std::cout)<<" : 1 face ";
TopAbs::Print(neworiF,std::cout); std::cout<<std::endl;
}
#endif
@@ -810,8 +810,8 @@ void TopOpeBRepBuild_Builder::GSplitFaceSFS
if(tSPS){
DEBSHASET(ss,"--- GSplitFaceSFS ",SFS," AddElement SFS+ face ");
GdumpSHA(F,(Standard_Address)ss.ToCString());
cout<<" ";TopAbs::Print(TB1,cout)<<" : 1 face ";
TopAbs::Print(neworiF,cout); cout<<endl;
std::cout<<" ";TopAbs::Print(TB1,std::cout)<<" : 1 face ";
TopAbs::Print(neworiF,std::cout); std::cout<<std::endl;
}
#endif
@@ -832,9 +832,9 @@ void TopOpeBRepBuild_Builder::GMergeFaceSFS
#ifdef OCCT_DEBUG
Standard_Integer iFOR; Standard_Boolean tSPS = GtraceSPS(FOR,iFOR);
if(tSPS){
cout<<endl;
std::cout<<std::endl;
GdumpSHA(FOR, (char *) "--- GMergeFaceSFS ");
cout<<endl;
std::cout<<std::endl;
}
#endif
@@ -864,7 +864,7 @@ void TopOpeBRepBuild_Builder::GMergeFaceSFS
#ifdef OCCT_DEBUG
if(tSPS){
cout<<"--------- merge FACE "<<iFOR<<endl;
std::cout<<"--------- merge FACE "<<iFOR<<std::endl;
GdumpSAMDOM(LFSO1, (char *) "LFSO1 : ");
GdumpSAMDOM(LFDO1, (char *) "LFDO1 : ");
GdumpSAMDOM(LFSO2, (char *) "LFSO2 : ");
@@ -888,10 +888,10 @@ void TopOpeBRepBuild_Builder::GMergeFaceSFS
#ifdef OCCT_DEBUG
if(tSPS) {
cout<<"performcom : "<<performcom<<" ";
cout<<"makecomsam : "<<makecomsam<<" makcomdif : "<<makecomdif<<" ";
cout<<"n1 : "<<n1<<" n2 : "<<n2<<endl;
cout<<"GMergeFaceSFS RevOri1 : "<<RevOri1<<endl;
std::cout<<"performcom : "<<performcom<<" ";
std::cout<<"makecomsam : "<<makecomsam<<" makcomdif : "<<makecomdif<<" ";
std::cout<<"n1 : "<<n1<<" n2 : "<<n2<<std::endl;
std::cout<<"GMergeFaceSFS RevOri1 : "<<RevOri1<<std::endl;
}
#endif
@@ -926,8 +926,8 @@ void TopOpeBRepBuild_Builder::GMergeFaceSFS
if(tSPS){
DEBSHASET(ss,"--- GMergeFaceSFS ",SFS," AddStartElement SFS+ face ");
GdumpSHA(newF,(Standard_Address)ss.ToCString());
cout<<" ";TopAbs::Print(TB1,cout)<<" : 1 face ";
TopAbs::Print(neworiF,cout); cout<<endl;
std::cout<<" ";TopAbs::Print(TB1,std::cout)<<" : 1 face ";
TopAbs::Print(neworiF,std::cout); std::cout<<std::endl;
}
#endif
SFS.AddStartElement(newF);
@@ -936,7 +936,7 @@ void TopOpeBRepBuild_Builder::GMergeFaceSFS
} // performcom
#ifdef OCCT_DEBUG
if(tSPS){cout<<"--------- end merge FACE "<<iFOR<<endl;}
if(tSPS){std::cout<<"--------- end merge FACE "<<iFOR<<std::endl;}
#endif
} // GMergeFaceSFS
@@ -1069,8 +1069,8 @@ void TopOpeBRepBuild_Builder::GSplitFace
#ifdef OCCT_DEBUG
Standard_Integer iF; Standard_Boolean tSPS = GtraceSPS(FOR,iF);
if(tSPS){
cout<<endl;GdumpSHASTA(FOR,TB1,"--- GSplitFace ");
cout<<endl;debsplitf(iF);
std::cout<<std::endl;GdumpSHASTA(FOR,TB1,"--- GSplitFace ");
std::cout<<std::endl;debsplitf(iF);
}
#endif
@@ -1081,7 +1081,7 @@ void TopOpeBRepBuild_Builder::GSplitFace
GFillONPartsWES(FOR,G1,LSclass,WES);
#ifdef OCCT_DEBUG
Standard_Integer n0 = WES.StartElements().Extent();
if(tSPS) cout <<"--> GSplitFace , after GFillONPartsWES nstartelWES = "<<n0<<endl;
if(tSPS) std::cout <<"--> GSplitFace , after GFillONPartsWES nstartelWES = "<<n0<<std::endl;
#endif
// save these edges
@@ -1098,14 +1098,14 @@ void TopOpeBRepBuild_Builder::GSplitFace
GFillFaceWES(FF,LSclass,G1,WES);
Standard_Integer n1 = WES.StartElements().Extent();
#ifdef OCCT_DEBUG
if(tSPS) cout <<"--> GSplitFace , after GFillFaceWES nstartelWES = "<<n1<<endl;
if(tSPS) std::cout <<"--> GSplitFace , after GFillFaceWES nstartelWES = "<<n1<<std::endl;
#endif
// add edges built on curves supported by FF
GFillCurveTopologyWES(FF,G1,WES);
Standard_Integer n2 = WES.StartElements().Extent();
#ifdef OCCT_DEBUG
if(tSPS) cout <<"--> GSplitFace , after GFillCurveTopologyWES nstartelWES = "<<n2<<endl;
if(tSPS) std::cout <<"--> GSplitFace , after GFillCurveTopologyWES nstartelWES = "<<n2<<std::endl;
#endif
// myEdgeAvoid = StartElement edges of WES due to GFillCurveTopologyWES

View File

@@ -132,18 +132,18 @@ void TopOpeBRepBuild_Builder::PrintSur(const TopoDS_Face& F)
BRepAdaptor_Surface STA_Surface(F);
GeomAbs_SurfaceType t = STA_Surface.GetType();
switch(t) {
case GeomAbs_Plane : cout<<"PLANE"; break;
case GeomAbs_Cylinder : cout<<"CYLINDER"; break;
case GeomAbs_Cone : cout<<"CONE"; break;
case GeomAbs_Sphere : cout<<"SPHERE"; break;
case GeomAbs_Torus : cout<<"TORUS"; break;
case GeomAbs_BezierSurface : cout<<"BEZIERSURFACE"; break;
case GeomAbs_BSplineSurface : cout<<"BSPLINESURFACE"; break;
case GeomAbs_SurfaceOfRevolution : cout<<"SURFACEOFREVOLUTION"; break;
case GeomAbs_SurfaceOfExtrusion : cout<<"SURFACEOFEXTRUSION"; break;
case GeomAbs_OtherSurface : default : cout<<"OTHERSURFACE"; break;
case GeomAbs_Plane : std::cout<<"PLANE"; break;
case GeomAbs_Cylinder : std::cout<<"CYLINDER"; break;
case GeomAbs_Cone : std::cout<<"CONE"; break;
case GeomAbs_Sphere : std::cout<<"SPHERE"; break;
case GeomAbs_Torus : std::cout<<"TORUS"; break;
case GeomAbs_BezierSurface : std::cout<<"BEZIERSURFACE"; break;
case GeomAbs_BSplineSurface : std::cout<<"BSPLINESURFACE"; break;
case GeomAbs_SurfaceOfRevolution : std::cout<<"SURFACEOFREVOLUTION"; break;
case GeomAbs_SurfaceOfExtrusion : std::cout<<"SURFACEOFEXTRUSION"; break;
case GeomAbs_OtherSurface : default : std::cout<<"OTHERSURFACE"; break;
}
cout.flush();
std::cout.flush();
}
#else
void TopOpeBRepBuild_Builder::PrintSur(const TopoDS_Face& )
@@ -165,17 +165,17 @@ void TopOpeBRepBuild_Builder::PrintCur(const TopoDS_Edge& E)
GeomAbs_CurveType t = GC.GetType();
switch(t) {
case GeomAbs_Line : cout<<"LINE"; break;
case GeomAbs_Circle : cout<<"CIRCLE"; break;
case GeomAbs_Ellipse : cout<<"ELLIPSE"; break;
case GeomAbs_Hyperbola : cout<<"HYPERBOLA"; break;
case GeomAbs_Parabola : cout<<"PARABOLA"; break;
case GeomAbs_BezierCurve : cout<<"BEZIERCURVE"; break;
case GeomAbs_BSplineCurve : cout<<"BSPLINECURVE "<<GC.BSpline()->Degree(); break;
case GeomAbs_OffsetCurve : cout<<"OFFSETCURVE"; break;
case GeomAbs_OtherCurve : cout<<"OTHERCURVE"; break;
case GeomAbs_Line : std::cout<<"LINE"; break;
case GeomAbs_Circle : std::cout<<"CIRCLE"; break;
case GeomAbs_Ellipse : std::cout<<"ELLIPSE"; break;
case GeomAbs_Hyperbola : std::cout<<"HYPERBOLA"; break;
case GeomAbs_Parabola : std::cout<<"PARABOLA"; break;
case GeomAbs_BezierCurve : std::cout<<"BEZIERCURVE"; break;
case GeomAbs_BSplineCurve : std::cout<<"BSPLINECURVE "<<GC.BSpline()->Degree(); break;
case GeomAbs_OffsetCurve : std::cout<<"OFFSETCURVE"; break;
case GeomAbs_OtherCurve : std::cout<<"OTHERCURVE"; break;
}
cout.flush();
std::cout.flush();
}
#else
void TopOpeBRepBuild_Builder::PrintCur(const TopoDS_Edge&)
@@ -205,8 +205,8 @@ void TopOpeBRepBuild_Builder::PrintPnt(const TopoDS_Vertex&)
#ifdef OCCT_DEBUG
void TopOpeBRepBuild_Builder::PrintOri(const TopoDS_Shape& S)
{
TopAbs::Print(S.Orientation(),cout);
cout.flush();
TopAbs::Print(S.Orientation(),std::cout);
std::cout.flush();
}
#else
void TopOpeBRepBuild_Builder::PrintOri(const TopoDS_Shape& /*S*/)
@@ -243,7 +243,7 @@ TCollection_AsciiString TopOpeBRepBuild_Builder::StringState(const TopAbs_State)
#ifdef OCCT_DEBUG
void TopOpeBRepBuild_Builder::GdumpPNT(const gp_Pnt& P)
{
cout<<P.X()<<" "<<P.Y()<<" "<<P.Z(); cout.flush();
std::cout<<P.X()<<" "<<P.Y()<<" "<<P.Z(); std::cout.flush();
}
#else
void TopOpeBRepBuild_Builder::GdumpPNT(const gp_Pnt&)
@@ -260,7 +260,7 @@ void TopOpeBRepBuild_Builder::GdumpORIPARPNT(const TopAbs_Orientation o,
const Standard_Real p,
const gp_Pnt& Pnt)
{
TopAbs::Print(o,cout); cout<<" "<<p<<" pnt "; GdumpPNT(Pnt); cout.flush();
TopAbs::Print(o,std::cout); std::cout<<" "<<p<<" pnt "; GdumpPNT(Pnt); std::cout.flush();
}
#else
void TopOpeBRepBuild_Builder::GdumpORIPARPNT(const TopAbs_Orientation,
@@ -278,13 +278,13 @@ void TopOpeBRepBuild_Builder::GdumpEDGVER(const TopoDS_Shape& E,
const TopoDS_Shape& V,
const Standard_Address s) const
{
char* c = (char*)s; if (c) cout<<c;
char* c = (char*)s; if (c) std::cout<<c;
const TopoDS_Edge& EE = TopoDS::Edge(E);
const TopoDS_Vertex& VV = TopoDS::Vertex(V);
Standard_Real par = BRep_Tool::Parameter(VV,EE);
gp_Pnt P = BRep_Tool::Pnt(VV);
GdumpORIPARPNT(VV.Orientation(),par,P);
cout.flush();
std::cout.flush();
}
#else
void TopOpeBRepBuild_Builder::GdumpEDGVER(const TopoDS_Shape&,
@@ -302,29 +302,29 @@ void TopOpeBRepBuild_Builder::GdumpEDGVER(const TopoDS_Shape&,
void TopOpeBRepBuild_Builder::GdumpEDG(const TopoDS_Shape& E,
const Standard_Address s) const
{
char* c = (char*)s; if (c) cout<<c;
char* c = (char*)s; if (c) std::cout<<c;
const TopoDS_Edge& EE = TopoDS::Edge(E);
Standard_Integer n = 0;
GdumpSHAORI(E, (char *) "vertices of ");cout<<endl;
GdumpSHAORI(E, (char *) "vertices of ");std::cout<<std::endl;
TopOpeBRepTool_ShapeExplorer ex(E,TopAbs_VERTEX);
char strpar[256];
Sprintf(strpar," #");
for (; ex.More(); ex.Next()) {
const TopoDS_Vertex& VV = TopoDS::Vertex(ex.Current());
TopAbs_Orientation o = VV.Orientation();
cout<<"vertex v";
if (o == TopAbs_FORWARD) cout<<"F";
else if (o == TopAbs_REVERSED) cout<<"R";
else if (o == TopAbs_INTERNAL) cout<<"I";
else if (o == TopAbs_EXTERNAL) cout<<"E";
cout<<++n<<" "; TopOpeBRepBuild_Builder::PrintPnt(VV); cout<<";";
std::cout<<"vertex v";
if (o == TopAbs_FORWARD) std::cout<<"F";
else if (o == TopAbs_REVERSED) std::cout<<"R";
else if (o == TopAbs_INTERNAL) std::cout<<"I";
else if (o == TopAbs_EXTERNAL) std::cout<<"E";
std::cout<<++n<<" "; TopOpeBRepBuild_Builder::PrintPnt(VV); std::cout<<";";
Standard_Real par = BRep_Tool::Parameter(VV,EE);
char spar[255];
Sprintf(spar," par%d %f",n,par);
strcat(strpar,spar);
}
if(n) cout<<strpar<<endl;
cout.flush();
if(n) std::cout<<strpar<<std::endl;
std::cout.flush();
}
#else
void TopOpeBRepBuild_Builder::GdumpEDG(const TopoDS_Shape&,
@@ -341,8 +341,8 @@ void TopOpeBRepBuild_Builder::GdumpSAMDOM(const TopTools_ListOfShape& L,
const Standard_Address astr) const
{
TopOpeBRepDS_Dumper Dumper(myDataStructure);
cout<<Dumper.SPrintShapeRefOri(L,(char*)astr)<<endl;
cout.flush();
std::cout<<Dumper.SPrintShapeRefOri(L,(char*)astr)<<std::endl;
std::cout.flush();
}
//=======================================================================
@@ -353,12 +353,12 @@ void TopOpeBRepBuild_Builder::GdumpSAMDOM(const TopTools_ListOfShape& L,
void TopOpeBRepBuild_Builder::GdumpSHA(const TopoDS_Shape& S,
const Standard_Address str) const
{
char* c = (char*)str; if (c) cout<<c;
char* c = (char*)str; if (c) std::cout<<c;
if (S.IsNull()) return;
TopAbs_ShapeEnum tS = S.ShapeType(); Standard_Integer iS = 0;
if ( ! myDataStructure.IsNull() ) iS = myDataStructure->Shape(S);
TopOpeBRepDS::Print(tS,iS,cout);
cout.flush();
TopOpeBRepDS::Print(tS,iS,std::cout);
std::cout.flush();
}
#else
void TopOpeBRepBuild_Builder::GdumpSHA(const TopoDS_Shape&,
@@ -375,9 +375,9 @@ void TopOpeBRepBuild_Builder::GdumpSHA(const TopoDS_Shape&,
void TopOpeBRepBuild_Builder::GdumpSHAORI(const TopoDS_Shape& S,
const Standard_Address str) const
{
char* c = (char*)str; if (c) cout<<c;
GdumpSHA(S,NULL); cout<<","; PrintOri(S);
cout.flush();
char* c = (char*)str; if (c) std::cout<<c;
GdumpSHA(S,NULL); std::cout<<","; PrintOri(S);
std::cout.flush();
}
#else
void TopOpeBRepBuild_Builder::GdumpSHAORI(const TopoDS_Shape& ,
@@ -393,9 +393,9 @@ void TopOpeBRepBuild_Builder::GdumpSHAORI(const TopoDS_Shape& ,
void TopOpeBRepBuild_Builder::GdumpSHAORIGEO(const TopoDS_Shape& S,
const Standard_Address str) const
{
char* c = (char*)str; if (c) cout<<c;
GdumpSHAORI(S,NULL); cout<<","; PrintGeo(S);
cout.flush();
char* c = (char*)str; if (c) std::cout<<c;
GdumpSHAORI(S,NULL); std::cout<<","; PrintGeo(S);
std::cout.flush();
}
#else
void TopOpeBRepBuild_Builder::GdumpSHAORIGEO(const TopoDS_Shape& ,
@@ -413,10 +413,10 @@ void TopOpeBRepBuild_Builder::GdumpSHASTA(const TopoDS_Shape& S,
const TCollection_AsciiString& a,
const TCollection_AsciiString& b) const
{
cout<<a;
GdumpSHAORIGEO(S,NULL); cout<<","<<StringState(T).ToCString();
cout<<b;
cout.flush();
std::cout<<a;
GdumpSHAORIGEO(S,NULL); std::cout<<","<<StringState(T).ToCString();
std::cout<<b;
std::cout.flush();
}
#else
void TopOpeBRepBuild_Builder::GdumpSHASTA(const TopoDS_Shape& ,
@@ -439,7 +439,7 @@ void TopOpeBRepBuild_Builder::GdumpSHASTA(const Standard_Integer iS,
{
const TopoDS_Shape& S = myDataStructure->Shape(iS);
GdumpSHASTA(S,T,a,b);
cout.flush();
std::cout.flush();
}
#else
void TopOpeBRepBuild_Builder::GdumpSHASTA(const Standard_Integer ,
@@ -465,7 +465,7 @@ void TopOpeBRepBuild_Builder::GdumpSHASTA(const Standard_Integer iS,
const TopoDS_Shape& S = myDataStructure->Shape(iS);
TCollection_AsciiString aib = a + " " + SS.DEBNumber() + " " + b;
GdumpSHASTA(S,T,aib,c);
cout.flush();
std::cout.flush();
}
#else
void TopOpeBRepBuild_Builder::GdumpSHASTA(const Standard_Integer ,
@@ -511,15 +511,15 @@ void TopOpeBRepBuild_Builder::GdumpEXP(const TopOpeBRepTool_ShapeExplorer& Ex) c
{
if ( ! Ex.More() ) return;
TopAbs_ShapeEnum t = Ex.Current().ShapeType();
if (t == TopAbs_SOLID) cout<<"";
else if (t == TopAbs_FACE) cout<<" ";
else if (t == TopAbs_EDGE) cout<<" ";
else cout<<"??";
Ex.DumpCurrent(cout);
if (t == TopAbs_SOLID) std::cout<<"";
else if (t == TopAbs_FACE) std::cout<<" ";
else if (t == TopAbs_EDGE) std::cout<<" ";
else std::cout<<"??";
Ex.DumpCurrent(std::cout);
Standard_Integer I = myDataStructure->Shape(Ex.Current());
if ( I != 0 ) cout<<" : shape "<<I;
cout<<endl;
cout.flush();
if ( I != 0 ) std::cout<<" : shape "<<I;
std::cout<<std::endl;
std::cout.flush();
}
#else
void TopOpeBRepBuild_Builder::GdumpEXP(const TopOpeBRepTool_ShapeExplorer& ) const
@@ -556,14 +556,14 @@ void TopOpeBRepBuild_Builder::GdumpFABU(TopOpeBRepBuild_FaceBuilder& ME) const
Standard_Integer nf,nw,ne;
ME.InitFace();
if ( ME.MoreFace() ) cout<<"clear;"<<endl;
if ( ME.MoreFace() ) std::cout<<"clear;"<<std::endl;
for (nf=0;ME.MoreFace();ME.NextFace()) {
nf++;
cout<<"# face "<<nf<<endl;
std::cout<<"# face "<<nf<<std::endl;
for (nw=0,ME.InitWire();ME.MoreWire();ME.NextWire()) {
nw++;
Standard_Boolean ow = ME.IsOldWire();
cout<<"# wire "<<nw;if(ow)cout<<" (old)";else cout<<" (new)";cout<<endl;
std::cout<<"# wire "<<nw;if(ow)std::cout<<" (old)";else std::cout<<" (new)";std::cout<<std::endl;
if (!ow) {
TCollection_AsciiString whatis("whatis");
for(ne=0,ME.InitEdge();ME.MoreEdge();ME.NextEdge()) {
@@ -576,7 +576,7 @@ void TopOpeBRepBuild_Builder::GdumpFABU(TopOpeBRepBuild_FaceBuilder& ME) const
if (PWES) Enam = Enam + PWES->DEBName() + PWES->DEBNumber();
VFnam = VFnam + ne + "NF" + nf + "F" + iF;
VRnam = VRnam + ne + "NF" + nf + "F" + iF;
// cout<<" puts \"edge "<<ne<<" : "<<Enam<<"\"";cout<<"; ";
// std::cout<<" puts \"edge "<<ne<<" : "<<Enam<<"\"";std::cout<<"; ";
TopoDS_Vertex VF,VR; TopExp::Vertices(EE,VF,VR);
if ( ! VF.IsNull() && !VR.IsNull() && !EE.IsNull()) {
#ifdef DRAW
@@ -584,24 +584,24 @@ void TopOpeBRepBuild_Builder::GdumpFABU(TopOpeBRepBuild_FaceBuilder& ME) const
DBRep::Set(VFnam.ToCString(),VF);
DBRep::Set(VRnam.ToCString(),VR);
#endif
cout<<PRODINS<<"-O -p 0.5 "<<Enam; cout<<"; ";
// cout<<PRODINS<<VFnam; cout<<"; ";
// cout<<PRODINS<<VRnam; cout<<"; ";
std::cout<<PRODINS<<"-O -p 0.5 "<<Enam; std::cout<<"; ";
// std::cout<<PRODINS<<VFnam; std::cout<<"; ";
// std::cout<<PRODINS<<VRnam; std::cout<<"; ";
// gp_Pnt PF = BRep_Tool::Pnt(VF);
// gp_Pnt PR = BRep_Tool::Pnt(VR);
// cout<<endl;
// cout<<"# ";
// cout<<"dinp "<<VFnam<<" ";TopOpeBRepBuild_Builder::PrintPnt(VF);cout<<"; ";
// cout<<"dinp "<<VRnam<<" ";TopOpeBRepBuild_Builder::PrintPnt(VR);cout<<"; ";
cout<<endl;
// std::cout<<std::endl;
// std::cout<<"# ";
// std::cout<<"dinp "<<VFnam<<" ";TopOpeBRepBuild_Builder::PrintPnt(VF);std::cout<<"; ";
// std::cout<<"dinp "<<VRnam<<" ";TopOpeBRepBuild_Builder::PrintPnt(VR);std::cout<<"; ";
std::cout<<std::endl;
whatis += " "; whatis += Enam;
}
}
if (ne) cout<<" "<<whatis<<endl<<endl;
if (ne) std::cout<<" "<<whatis<<std::endl<<std::endl;
}
}
}
cout.flush();
std::cout.flush();
} // GdumpFABU
#else
void TopOpeBRepBuild_Builder::GdumpFABU(TopOpeBRepBuild_FaceBuilder& ) const

View File

@@ -68,7 +68,7 @@ extern Standard_Boolean TopOpeBRepBuild_GettraceKPB();
static void FUN_Raise() {
#ifdef OCCT_DEBUG
cout<<"******************************ERROR"<<endl;
std::cout<<"******************************ERROR"<<std::endl;
throw Standard_ProgramError("KPart.cxx");
#endif
}
@@ -120,7 +120,7 @@ Standard_Integer TopOpeBRepBuild_Builder::FindIsKPart()
#ifdef OCCT_DEBUG
Standard_Boolean TKPB = TopOpeBRepBuild_GettraceKPB();
if(TKPB){cout<<endl<<"--- IsKPart ? ---"<<endl;}
if(TKPB){std::cout<<std::endl<<"--- IsKPart ? ---"<<std::endl;}
#endif
Standard_Integer isfafa = KPisfafa();
@@ -522,7 +522,7 @@ void TopOpeBRepBuild_Builder::MergeKPartiskoletge()
myDataStructure->Shape(fac2); //DEB
#ifdef OCCT_DEBUG
if (TKPB) {cout<<""<<endl;cout<<"face "<<iF1<<" : ";cout<<iF2<<endl;}
if (TKPB) {std::cout<<""<<std::endl;std::cout<<"face "<<iF1<<" : ";std::cout<<iF2<<std::endl;}
#endif
TopOpeBRepDS_Config config2 = BDS.SameDomainOri(fac2);
@@ -800,7 +800,7 @@ void TopOpeBRepBuild_Builder::MergeKPartisdisj()
}
else {
#ifdef OCCT_DEBUG
cout<<"TopOpeBRepBuild_MergeKPart soldisj : ires = "<<ires<<endl;
std::cout<<"TopOpeBRepBuild_MergeKPart soldisj : ires = "<<ires<<std::endl;
#endif
return;
}
@@ -1031,9 +1031,9 @@ Standard_Integer TopOpeBRepBuild_Builder::KPiskoletge()
Standard_Boolean tSPS2 = GtraceSPS(f2,iF2);
if(tSPS1 || tSPS2)
{GdumpSHA( f1, (char *) "KPiskoletge ");
cout<<endl;
std::cout<<std::endl;
GdumpSHA( f2, (char *)"KPiskoletge ");
cout<<endl;}
std::cout<<std::endl;}
#endif
TopoDS_Wire outerw1 = BRepTools::OuterWire(f1);
@@ -1095,7 +1095,7 @@ Standard_Integer TopOpeBRepBuild_Builder::KPisdisj()
#ifdef OCCT_DEBUG
if (TKPB) {
cout<<"isdisj : "<<isdisj1<<" "<<isdisj2<<endl;
std::cout<<"isdisj : "<<isdisj1<<" "<<isdisj2<<std::endl;
}
#endif
@@ -1238,8 +1238,8 @@ TopAbs_State TopOpeBRepBuild_Builder::KPclasSS(const TopoDS_Shape& S1,const TopT
#ifdef OCCT_DEBUG
if (TopOpeBRepBuild_GettraceKPB()) {
const gp_Pnt& P1 = myShapeClassifier.P3D();
cout<<"point P1 "<<P1.X()<<" "<<P1.Y()<<" "<<P1.Z();
cout<<" "; TopAbs::Print(state,cout);cout<<endl;
std::cout<<"point P1 "<<P1.X()<<" "<<P1.Y()<<" "<<P1.Z();
std::cout<<" "; TopAbs::Print(state,std::cout);std::cout<<std::endl;
}
#endif
@@ -1262,8 +1262,8 @@ TopAbs_State TopOpeBRepBuild_Builder::KPclasSS(const TopoDS_Shape& S1,const Topo
#ifdef OCCT_DEBUG
if (TopOpeBRepBuild_GettraceKPB()) {
const gp_Pnt& P1 = myShapeClassifier.P3D();
cout<<"point P1 "<<P1.X()<<" "<<P1.Y()<<" "<<P1.Z();
cout<<" "; TopAbs::Print(state,cout);cout<<endl;
std::cout<<"point P1 "<<P1.X()<<" "<<P1.Y()<<" "<<P1.Z();
std::cout<<" "; TopAbs::Print(state,std::cout);std::cout<<std::endl;
}
#endif
@@ -1329,12 +1329,12 @@ Standard_Boolean TopOpeBRepBuild_Builder::KPiskoletgesh(const TopoDS_Shape& Sarg
#ifdef OCCT_DEBUG
Standard_Integer isol = myDataStructure->Shape(Sarg); Standard_Integer ifac = myDataStructure->Shape(fac);
if(TKPB){cout<<"isol "<<isol<<endl;}
if(TKPB){cout<<"nfhsd "<<nfhsd<<endl;}
if(TKPB){cout<<"ifac "<<ifac<<endl;}
if(TKPB){cout<<"isplan "<<isplan<<endl;}
if(TKPB){cout<<"iscylinder "<<iscylinder<<endl;}
if(TKPB){cout<<endl;}
if(TKPB){std::cout<<"isol "<<isol<<std::endl;}
if(TKPB){std::cout<<"nfhsd "<<nfhsd<<std::endl;}
if(TKPB){std::cout<<"ifac "<<ifac<<std::endl;}
if(TKPB){std::cout<<"isplan "<<isplan<<std::endl;}
if(TKPB){std::cout<<"iscylinder "<<iscylinder<<std::endl;}
if(TKPB){std::cout<<std::endl;}
#endif
}
@@ -1615,7 +1615,7 @@ void TopOpeBRepBuild_Builder::KPiskoletgeanalyse(const TopOpeBRepDS_Config confi
#ifdef OCCT_DEBUG
Standard_Boolean TKPB = TopOpeBRepBuild_GettraceKPB();
if (TKPB) cout<<"ires = "<<ires<<endl;
if (TKPB) std::cout<<"ires = "<<ires<<std::endl;
#endif
}
@@ -1677,7 +1677,7 @@ void TopOpeBRepBuild_Builder::KPisdisjanalyse(const TopAbs_State Stsol1, const T
#ifdef OCCT_DEBUG
Standard_Boolean TKPB = TopOpeBRepBuild_GettraceKPB();
if (TKPB) cout<<"ires = "<<ires<<" icla1 "<<icla1<<" icla2 "<<icla2<<endl;
if (TKPB) std::cout<<"ires = "<<ires<<" icla1 "<<icla1<<" icla2 "<<icla2<<std::endl;
#endif
}
@@ -1756,8 +1756,8 @@ void TopOpeBRepBuild_Builder::KPclassFF(const TopoDS_Shape& F1,const TopoDS_Shap
#ifdef OCCT_DEBUG
if (TopOpeBRepBuild_GettraceKPB()) {
cout<<"Stf1 ";TopAbs::Print(St1,cout); cout<<" ";
cout<<"Stf2 ";TopAbs::Print(St2,cout); cout<<endl;
std::cout<<"Stf1 ";TopAbs::Print(St1,std::cout); std::cout<<" ";
std::cout<<"Stf2 ";TopAbs::Print(St2,std::cout); std::cout<<std::endl;
}
#endif
}
@@ -1776,8 +1776,8 @@ Standard_Boolean TopOpeBRepBuild_Builder::KPiskoleFF(const TopoDS_Shape& F1,cons
Standard_Boolean tSPS1 = GtraceSPS(F1,iF1);
Standard_Integer iF2;
Standard_Boolean tSPS2 = GtraceSPS(F2,iF2);
if(tSPS1) { GdumpSHA(F1, (char *) "KPiskoleFF ");cout<<endl; }
if(tSPS2) { GdumpSHA(F2, (char *) "KPiskoleFF ");cout<<endl; }
if(tSPS1) { GdumpSHA(F1, (char *) "KPiskoleFF ");std::cout<<std::endl; }
if(tSPS2) { GdumpSHA(F2, (char *) "KPiskoleFF ");std::cout<<std::endl; }
#endif
KPclassFF(F1,F2,St1,St2);
@@ -1815,11 +1815,11 @@ Standard_Integer TopOpeBRepBuild_Builder::KPreturn(const Standard_Integer b)
{
#ifdef OCCT_DEBUG
if (TopOpeBRepBuild_GettraceKPB()) {
cout<<"--- IsKPart "<<b;
if ( b == 1 ) cout<<" iskole";
if ( b == 2 ) cout<<" isdisj";
if ( b == 3 ) cout<<" isfafa";
cout<<" ---"<<endl;
std::cout<<"--- IsKPart "<<b;
if ( b == 1 ) std::cout<<" iskole";
if ( b == 2 ) std::cout<<" isdisj";
if ( b == 3 ) std::cout<<" isfafa";
std::cout<<" ---"<<std::endl;
}
#endif
return b;
@@ -1885,7 +1885,7 @@ static void LocalKPisdisjanalyse(const TopAbs_State Stsol1, const TopAbs_State
break;
}
default: {
cout << "Warning: given operation is unknown" << endl;
std::cout << "Warning: given operation is unknown" << std::endl;
break;
}
} //end switch
@@ -2071,7 +2071,7 @@ static Standard_Boolean disjPerformFuse(const TopTools_IndexedMapOfShape& theMap
Standard_Integer ires=RESUNDEF, icla1=SHEUNDEF, icla2=SHEUNDEF;
LocalKPisdisjanalyse(stsol1, stsol2, TopOpeBRepBuild_KPart_Operation_Fuse, ires, icla1, icla2);
if (ires == RESUNDEF || icla1 == SHEUNDEF || icla2 == SHEUNDEF || ires == RESNULL) {
cout << "Warning: disjPerformFuse: can not determine solid's states" << endl;
std::cout << "Warning: disjPerformFuse: can not determine solid's states" << std::endl;
continue;
}
if(ires == RESSHAPE12)
@@ -2087,7 +2087,7 @@ static Standard_Boolean disjPerformFuse(const TopTools_IndexedMapOfShape& theMap
}
} //end while(j)
if(acheckiterator > aMaxNumberOfIterations) {
cout << "disjPerformFuse: programming error" << endl;
std::cout << "disjPerformFuse: programming error" << std::endl;
return Standard_False;
}
theMapOfResult.Add(acurrentsolid);
@@ -2135,7 +2135,7 @@ static Standard_Boolean disjPerformCommon(const TopTools_IndexedMapOfShape& theM
LocalKPisdisjanalyse(stsol1, stsol2, TopOpeBRepBuild_KPart_Operation_Common, ires, icla1, icla2);
if (ires == RESUNDEF || icla1 == SHEUNDEF || icla2 == SHEUNDEF) {
cout << "Warning: disjPerformCommon: can not determine solid's states" << endl;
std::cout << "Warning: disjPerformCommon: can not determine solid's states" << std::endl;
continue;
}
switch (ires) {
@@ -2212,7 +2212,7 @@ static Standard_Boolean disjPerformCut(const TopTools_IndexedMapOfShape& theMapO
LocalKPisdisjanalyse(stsol1, stsol2, TopOpeBRepBuild_KPart_Operation_Cut12, ires, icla1, icla2);
if (ires == RESUNDEF || icla1 == SHEUNDEF || icla2 == SHEUNDEF) {
cout << "Warning: disjPerformCut: can not determine solid's states" << endl;
std::cout << "Warning: disjPerformCut: can not determine solid's states" << std::endl;
continue;
}
switch (ires) {

View File

@@ -138,7 +138,7 @@ static void CorrectEdgeOrientation(TopoDS_Shape& aWire)
static void CorrectUnclosedWire(TopoDS_Shape& aWire)
{
// cout << "-------CorrectUnclosedWire" << endl;
// std::cout << "-------CorrectUnclosedWire" << std::endl;
BRep_Builder BB;
TopoDS_Iterator tdi(aWire, Standard_False, Standard_False);
Standard_Integer nbe = 0;
@@ -146,9 +146,9 @@ static void CorrectUnclosedWire(TopoDS_Shape& aWire)
nbe++;
const TopoDS_Shape& ed = tdi.Value();
Standard_Integer nbv = ed.NbChildren();
// cout << "Edge " << nbe << " : " << nbv << endl;
// std::cout << "Edge " << nbe << " : " << nbv << std::endl;
if(nbv <= 1) {
// cout << "Remove bad edge" << endl;
// std::cout << "Remove bad edge" << std::endl;
BB.Remove(aWire, ed);
}
}
@@ -162,7 +162,7 @@ static void CorrectUnclosedWire(TopoDS_Shape& aWire)
const TopTools_ListOfShape& Elist = VElists.FindFromIndex(i);
if(Elist.Extent() == 1) {
TopoDS_Shape anEdge = Elist.First();
// cout << "Remove redundant edge" << endl;
// std::cout << "Remove redundant edge" << std::endl;
BB.Remove(aWire, anEdge);
}
}
@@ -179,7 +179,7 @@ void TopOpeBRepBuild_Builder::MergeShapes(const TopoDS_Shape& S1,const TopAbs_St
Standard_Boolean lesmemes = S1.IsEqual(S2);
if (lesmemes) {
#ifdef OCCT_DEBUG
cout<<"TopOpeBRepBuild : S1 == S2"<<endl;
std::cout<<"TopOpeBRepBuild : S1 == S2"<<std::endl;
#endif
return;
}
@@ -538,8 +538,8 @@ void TopOpeBRepBuild_Builder::MakeEdges(const TopoDS_Shape& anEdge,TopOpeBRepBui
} // loop on vertices of new edge newEdge
#ifdef OCCT_DEBUG
if(tSPS){cout<<endl;}
if(tSPS){cout<<"V of new edge "<<++ne<<endl;}
if(tSPS){std::cout<<std::endl;}
if(tSPS){std::cout<<"V of new edge "<<++ne<<std::endl;}
if(tSPS){GdumpEDG(newEdge);}
#endif

View File

@@ -141,7 +141,7 @@ const TopoDS_Shape& TopOpeBRepBuild_Pave::Shape() const
void TopOpeBRepBuild_Pave::Dump() const
{
#ifdef OCCT_DEBUG
cout<<Parameter()<<" ";TopAbs::Print(Vertex().Orientation(),cout);
std::cout<<Parameter()<<" ";TopAbs::Print(Vertex().Orientation(),std::cout);
#endif
}

View File

@@ -76,14 +76,14 @@ TopOpeBRepBuild_PaveClassifier::TopOpeBRepBuild_PaveClassifier
#ifdef OCCT_DEBUG
if (TopOpeBRepTool_GettraceVC()) {
cout<<endl;
std::cout<<std::endl;
if (myEdgePeriodic) {
cout<<"VC : periodic edge : myFirst "<<myFirst<<" myPeriod "<<myPeriod<<endl;
if (mySameParameters)cout<<"VC same parameters "<<endl;
else cout<<"VC no same parameters"<<endl;
std::cout<<"VC : periodic edge : myFirst "<<myFirst<<" myPeriod "<<myPeriod<<std::endl;
if (mySameParameters)std::cout<<"VC same parameters "<<std::endl;
else std::cout<<"VC no same parameters"<<std::endl;
}
else {
cout<<"VC : non periodic edge : f "<<f<<" l "<<l<<endl;
std::cout<<"VC : non periodic edge : f "<<f<<" l "<<l<<std::endl;
}
}
#endif
@@ -126,11 +126,11 @@ TopAbs_State TopOpeBRepBuild_PaveClassifier::CompareOnNonPeriodic()
#ifdef OCCT_DEBUG
if (TopOpeBRepTool_GettraceVC()) {
cout<<"VC_NP : ";
if (myP1 == myP2) cout<<" p1 = p2";
else if (myP1 < myP2) cout<<" p1 < p2";
else if (myP1 > myP2) cout<<" p1 > p2";
cout<<" --> state "; TopAbs::Print(state,cout); cout<<endl;
std::cout<<"VC_NP : ";
if (myP1 == myP2) std::cout<<" p1 = p2";
else if (myP1 < myP2) std::cout<<" p1 < p2";
else if (myP1 > myP2) std::cout<<" p1 > p2";
std::cout<<" --> state "; TopAbs::Print(state,std::cout); std::cout<<std::endl;
}
#endif
@@ -200,8 +200,8 @@ void TopOpeBRepBuild_PaveClassifier::AdjustOnPeriodic()
#ifdef OCCT_DEBUG
if (TopOpeBRepTool_GettraceVC()) {
cout<<"p1 "<<p1<<" ";TopAbs::Print(myO1,cout);cout<<" --> "<<myP1<<endl;
cout<<"p2 "<<p2<<" ";TopAbs::Print(myO2,cout);cout<<" --> "<<myP2<<endl;
std::cout<<"p1 "<<p1<<" ";TopAbs::Print(myO1,std::cout);std::cout<<" --> "<<myP1<<std::endl;
std::cout<<"p2 "<<p2<<" ";TopAbs::Print(myO2,std::cout);std::cout<<" --> "<<myP2<<std::endl;
}
#endif
@@ -245,8 +245,8 @@ TopAbs_State TopOpeBRepBuild_PaveClassifier::CompareOnPeriodic()
#ifdef OCCT_DEBUG
if (TopOpeBRepTool_GettraceVC()) {
cout<<"VC_P : cas "<<myCas1<<"__"<<myCas2;
cout<<" --> state "; TopAbs::Print(state,cout); cout<<endl;
std::cout<<"VC_P : cas "<<myCas1<<"__"<<myCas2;
std::cout<<" --> state "; TopAbs::Print(state,std::cout); std::cout<<std::endl;
}
#endif
@@ -276,10 +276,10 @@ TopAbs_State TopOpeBRepBuild_PaveClassifier::Compare
#ifdef OCCT_DEBUG
if (TopOpeBRepTool_GettraceVC()) {
cout<<endl<<"VC : "<<myP1<<" "<<myP2<<" ";
TopAbs::Print(myO1,cout); cout<<" "; TopAbs::Print(myO2,cout);
cout<<" (p "<<myEdgePeriodic;
cout<<" s "<<mySameParameters<<" c "<<myClosedVertices<<")"<<endl;
std::cout<<std::endl<<"VC : "<<myP1<<" "<<myP2<<" ";
TopAbs::Print(myO1,std::cout); std::cout<<" "; TopAbs::Print(myO2,std::cout);
std::cout<<" (p "<<myEdgePeriodic;
std::cout<<" s "<<mySameParameters<<" c "<<myClosedVertices<<")"<<std::endl;
}
#endif
@@ -295,7 +295,7 @@ TopAbs_State TopOpeBRepBuild_PaveClassifier::Compare
#ifdef OCCT_DEBUG
if (TopOpeBRepTool_GettraceVC()) {
cout<<"VC : --> final state "; TopAbs::Print(state,cout); cout<<endl;
std::cout<<"VC : --> final state "; TopAbs::Print(state,std::cout); std::cout<<std::endl;
}
#endif
@@ -315,7 +315,7 @@ void TopOpeBRepBuild_PaveClassifier::SetFirstParameter
#ifdef OCCT_DEBUG
if (TopOpeBRepTool_GettraceVC())
cout<<endl<<"VC : set first parameter "<<myFirst<<endl;
std::cout<<std::endl<<"VC : set first parameter "<<myFirst<<std::endl;
#endif
}
@@ -332,10 +332,10 @@ void TopOpeBRepBuild_PaveClassifier::ClosedVertices
#ifdef OCCT_DEBUG
if (TopOpeBRepTool_GettraceCLOV()) {
myEdgePeriodic = Closed;
cout<<"::::::::::::::::::::::::"<<endl;
cout<<"VC : myClosedVertices"<<myClosedVertices<<endl;
cout<<"VC : myEdgePeriodic "<<myEdgePeriodic<<endl;
cout<<"::::::::::::::::::::::::"<<endl;
std::cout<<"::::::::::::::::::::::::"<<std::endl;
std::cout<<"VC : myClosedVertices"<<myClosedVertices<<std::endl;
std::cout<<"VC : myEdgePeriodic "<<myEdgePeriodic<<std::endl;
std::cout<<"::::::::::::::::::::::::"<<std::endl;
}
#endif
}

View File

@@ -170,7 +170,7 @@ void TopOpeBRepBuild_PaveSet::Prepare()
Standard_Integer iv=0;//,nv=myVertices.Extent();
if (trc) {
TopOpeBRepBuild_ListIteratorOfListOfPave itd(myVertices);
cout<<endl;
std::cout<<std::endl;
for(;itd.More();itd.Next() ) {
const Handle(TopOpeBRepBuild_Pave)& PV = itd.Value();
TopoDS_Vertex& VI = TopoDS::Vertex(PV->ChangeVertex());
@@ -178,7 +178,7 @@ void TopOpeBRepBuild_PaveSet::Prepare()
TopoDS_Vertex VSD; if (hasVSD) VSD = TopoDS::Vertex(PV->SameDomain());
TopAbs_Orientation VIori = VI.Orientation();
Standard_Real p = PV->Parameter();
cout<<"pvs : v "<<++iv<<" par "<<p<<" ";TopAbs::Print(VIori,cout);cout<<endl;
std::cout<<"pvs : v "<<++iv<<" par "<<p<<" ";TopAbs::Print(VIori,std::cout);std::cout<<std::endl;
}
}
#endif
@@ -278,7 +278,7 @@ void TopOpeBRepBuild_PaveSet::Prepare()
#ifdef OCCT_DEBUG
if ( TopOpeBRepTool_GettraceVC() ) {
myVerticesIt.Initialize(myVertices);
if ( MoreLoop() ) cout<<"--- PaveSet : Prepare"<<endl;
if ( MoreLoop() ) std::cout<<"--- PaveSet : Prepare"<<std::endl;
for (; MoreLoop(); NextLoop() ) {
Handle(TopOpeBRepBuild_Pave) PV =
Handle(TopOpeBRepBuild_Pave)::DownCast(Loop());
@@ -286,8 +286,8 @@ void TopOpeBRepBuild_PaveSet::Prepare()
Standard_Real p = PV->Parameter();
Standard_Boolean b = PV->IsShape();
TopOpeBRepBuild_Builder::GdumpORIPARPNT(v.Orientation(),p,BRep_Tool::Pnt(v));
if (b) cout<<" is bound"; else cout<<" is not bound";
cout<<endl;
if (b) std::cout<<" is bound"; else std::cout<<" is not bound";
std::cout<<std::endl;
}
}
#endif
@@ -381,7 +381,7 @@ Standard_Boolean TopOpeBRepBuild_PaveSet::HasEqualParameters()
Standard_Real d = Abs(p1-p2);
#ifdef OCCT_DEBUG
if (TopOpeBRepTool_GettraceVC()) {
cout<<"VertexSet : p1,p2 d "<<p1<<","<<p2<<" "<<d<<endl;
std::cout<<"VertexSet : p1,p2 d "<<p1<<","<<p2<<" "<<d<<std::endl;
}
#endif
if (d < Precision::PConfusion()) {
@@ -413,9 +413,9 @@ Standard_Boolean TopOpeBRepBuild_PaveSet::HasEqualParameters()
myEqualParameters = f;
#ifdef OCCT_DEBUG
if (TopOpeBRepTool_GettraceVC()) {
cout<<"=*=*=*=*=*=*=*=*=*=*=*=*=*=*"<<endl;
cout<<"PaveSet : p1,f d "<<p1<<","<<f<<" "<<d<<endl;
cout<<"=*=*=*=*=*=*=*=*=*=*=*=*=*=*"<<endl;
std::cout<<"=*=*=*=*=*=*=*=*=*=*=*=*=*=*"<<std::endl;
std::cout<<"PaveSet : p1,f d "<<p1<<","<<f<<" "<<d<<std::endl;
std::cout<<"=*=*=*=*=*=*=*=*=*=*=*=*=*=*"<<std::endl;
}
#endif
}

View File

@@ -52,7 +52,7 @@
extern Standard_Boolean TopOpeBRepBuild_GetcontextNOREGUSO();
extern Standard_Boolean TopOpeBRepBuild_GetcontextREGUXPU();
extern Standard_Boolean TopOpeBRepBuild_GettraceSAVSREGU();
Standard_EXPORT void debreguso(const Standard_Integer iS) {cout<<"++ debreguso "<<iS<<endl;}
Standard_EXPORT void debreguso(const Standard_Integer iS) {std::cout<<"++ debreguso "<<iS<<std::endl;}
#endif
#ifdef DRAW
@@ -217,7 +217,7 @@ void TopOpeBRepBuild_Builder::RegularizeSolid
#ifdef OCCT_DEBUG
if (tSPS) {
cout<<"RegularizeSolid "<<iS<<endl;
std::cout<<"RegularizeSolid "<<iS<<std::endl;
debreguso(iS);
}
#endif
@@ -317,7 +317,7 @@ void TopOpeBRepBuild_Builder::RegularizeSolid
if (tSPS && savsregu) {
TCollection_AsciiString str("sregu"); str = str + iS;
DBRep::Set(str.ToCString(),newSolid);
cout<<"newSolid "<<str<<" built on Solid "<<iS<<" saved"<<endl;
std::cout<<"newSolid "<<str<<" built on Solid "<<iS<<" saved"<<std::endl;
}
#endif

View File

@@ -66,7 +66,7 @@
extern Standard_Boolean TopOpeBRepBuild_GettraceSPS();
Standard_EXPORT void debsplitse(const Standard_Integer) {}
Standard_EXPORT void debsplitsemess(const Standard_Integer i,const TCollection_AsciiString& s = "");
Standard_EXPORT void debsplitsemess(const Standard_Integer i,const TCollection_AsciiString& s){cout<<"+++ debsplitse "<<s<<" E"<<i<<endl;debsplitse(i);}
Standard_EXPORT void debsplitsemess(const Standard_Integer i,const TCollection_AsciiString& s){std::cout<<"+++ debsplitse "<<s<<" E"<<i<<std::endl;debsplitse(i);}
Standard_EXPORT void debspseou(const Standard_Integer i) {debsplitsemess(i,"OUT");}
Standard_EXPORT void debspsein(const Standard_Integer i) {debsplitsemess(i,"IN ");}
Standard_EXPORT void debspseon(const Standard_Integer i) {debsplitsemess(i,"ON ");}
@@ -298,8 +298,8 @@ void TopOpeBRepBuild_Builder::SplitSectionEdges()
if (tSPS) {
TCollection_AsciiString str("# edge ");str=str+iE+" sd3d edge "+iESD;
TCollection_AsciiString stru(str.Length(),'-');
cout<<endl;if(DEBiESD==1)cout<<stru<<endl;
DEBiESD++;cout<<str<<endl;debsplitsemess(iE);
std::cout<<std::endl;if(DEBiESD==1)std::cout<<stru<<std::endl;
DEBiESD++;std::cout<<str<<std::endl;debsplitsemess(iE);
}
#endif
@@ -348,10 +348,10 @@ void TopOpeBRepBuild_Builder::SplitSectionEdges()
#ifdef DRAW
if (tSPS) {
cout<<"# edges ON "<<iE<<" ";
TopAbs::Print(TopAbs_IN,cout); cout<<" / esd";
cout<<" "<<iESD;
cout<<" : ("<<nLE1inE2<<")"<<endl;
std::cout<<"# edges ON "<<iE<<" ";
TopAbs::Print(TopAbs_IN,std::cout); std::cout<<" / esd";
std::cout<<" "<<iESD;
std::cout<<" : ("<<nLE1inE2<<")"<<std::endl;
TCollection_AsciiString str("ON");str=str+iE+"IN"+iESD;
FDRAW_DINLOE(" ",LE1inE2,str,"");
}
@@ -409,11 +409,11 @@ void TopOpeBRepBuild_Builder::SplitSectionEdges()
#ifdef DRAW
if (tSPS) {
cout<<endl<<"# edges ON "<<iE<<" ";
TopAbs::Print(TopAbs_OUT,cout);cout<<" / lesd";
std::cout<<std::endl<<"# edges ON "<<iE<<" ";
TopAbs::Print(TopAbs_OUT,std::cout);std::cout<<" / lesd";
for(TopTools_ListIteratorOfListOfShape it(LESD);it.More();it.Next())
cout<<" "<<myDataStructure->Shape(it.Value());
Standard_Integer n=LEoutLESD.Extent();cout<<" : ("<<n<<")"<<endl;
std::cout<<" "<<myDataStructure->Shape(it.Value());
Standard_Integer n=LEoutLESD.Extent();std::cout<<" : ("<<n<<")"<<std::endl;
TCollection_AsciiString str("ON");str=str+iE+"OUT";
FDRAW_DINLOE(" ",LEoutLESD,str,"");
}
@@ -530,8 +530,8 @@ void TopOpeBRepBuild_Builder::SplitSectionEdges()
if (hasPC) continue;
#ifdef OCCT_DEBUG
if (TopOpeBRepTool_GettraceC2D()) {
cout<<"\n#TopOpeBRepBuild_Builder::SSE : hasPC = 0 ES"<<i<<" E"<<idebE<<" sur F"<<iF<<endl;
cout<<"tsee s "<<iF<<" "<<idebE<<";"<<endl;
std::cout<<"\n#TopOpeBRepBuild_Builder::SSE : hasPC = 0 ES"<<i<<" E"<<idebE<<" sur F"<<iF<<std::endl;
std::cout<<"tsee s "<<iF<<" "<<idebE<<";"<<std::endl;
}
#endif
// Standard_Real tolpc; MGhc2 PC = FC2D_CurveOnSurface(eon,F,esdF,f,l,tolpc);
@@ -703,8 +703,8 @@ void TopOpeBRepBuild_Builder::SplitSectionEdge(const TopoDS_Shape& EA)
#ifdef OCCT_DEBUG
if(tSPS) {
GdumpSHA(EF, (char *) "SplitSectionEdges done : ");
if (issplit) cout<<" "<<Splits(EOR,TopAbs_ON).Extent()<<" edges splitON"<<endl;
else cout<<" !IsSplit"<<endl;
if (issplit) std::cout<<" "<<Splits(EOR,TopAbs_ON).Extent()<<" edges splitON"<<std::endl;
else std::cout<<" !IsSplit"<<std::endl;
}
#endif
return;
@@ -712,7 +712,7 @@ void TopOpeBRepBuild_Builder::SplitSectionEdge(const TopoDS_Shape& EA)
#ifdef OCCT_DEBUG
if(tSPS)GdumpSHASTA(EF,TopAbs_ON,"--- SplitSectionEdges ");
if(tSPS)cout<<" (hg="<<hg<<"||hsd3d="<<hsd3d<<")="<<cond<<endl;
if(tSPS)std::cout<<" (hg="<<hg<<"||hsd3d="<<hsd3d<<")="<<cond<<std::endl;
#endif
// xpu161198 BUC60382(e3on) SE EOR has all its interferences "on bounds"
@@ -784,9 +784,9 @@ void TopOpeBRepBuild_Builder::SplitSectionEdge(const TopoDS_Shape& EA)
#ifdef OCCT_DEBUG
if(tSPS)GdumpSHASTA(EF,TopAbs_ON,"--- SplitSectionEdges ");
if(tSPS){
cout<<" (hg="<<hg<<"||hsd3d="<<hsd3d<<")="<<cond<<endl;
std::cout<<" (hg="<<hg<<"||hsd3d="<<hsd3d<<")="<<cond<<std::endl;
GdumpSHA(EOR, (char *) "SplitSectionEdge");
cout<<endl;
std::cout<<std::endl;
GdumpSAMDOM(LESD1, (char *) "LESD1 : ");
GdumpSAMDOM(LESD2, (char *) "LESD2 : ");
}
@@ -984,8 +984,8 @@ void TopOpeBRepBuild_Builder::SectionEdges(TopTools_ListOfShape& LSE)
Standard_Integer iii; Standard_Boolean tSPS = GtraceSPS(es,iii);
if (tSPS) {
GdumpSHA(es, (char *) "--- Section ");
cout<<" splitIN "<<issplitIN<<" "<<Splits(es,TopAbs_IN).Extent()<<endl;
cout<<" splitON "<<issplitON<<" "<<Splits(es,TopAbs_ON).Extent()<<endl;
std::cout<<" splitIN "<<issplitIN<<" "<<Splits(es,TopAbs_IN).Extent()<<std::endl;
std::cout<<" splitON "<<issplitON<<" "<<Splits(es,TopAbs_ON).Extent()<<std::endl;
}
#endif

View File

@@ -78,7 +78,7 @@ void TopOpeBRepBuild_ShapeSet::AddShape(const TopoDS_Shape& S)
{
Standard_Boolean chk = CheckShape(S);
#ifdef OCCT_DEBUG
DumpCheck(cout," AddShape",S,chk);
DumpCheck(std::cout," AddShape",S,chk);
#endif
if (!chk) return;
@@ -93,7 +93,7 @@ void TopOpeBRepBuild_ShapeSet::AddStartElement(const TopoDS_Shape& S)
{
Standard_Boolean chk = CheckShape(S);
#ifdef OCCT_DEBUG
DumpCheck(cout," AddStartElement",S,chk);
DumpCheck(std::cout," AddStartElement",S,chk);
#endif
if (!chk) return;
@@ -108,7 +108,7 @@ void TopOpeBRepBuild_ShapeSet::AddElement(const TopoDS_Shape& S)
{
Standard_Boolean chk = CheckShape(S);
#ifdef OCCT_DEBUG
DumpCheck(cout," AddElement",S,chk);
DumpCheck(std::cout," AddElement",S,chk);
#endif
if (!chk) return;
@@ -369,7 +369,7 @@ void TopOpeBRepBuild_ShapeSet::CheckShape(const Standard_Boolean checkshape)
#ifdef OCCT_DEBUG
if (TopOpeBRepBuild_GettraceCHK() && !myCheckShape) {
DumpName(cout,"no checkshape set on ");cout<<endl;
DumpName(std::cout,"no checkshape set on ");std::cout<<std::endl;
}
#endif
}
@@ -436,14 +436,14 @@ void TopOpeBRepBuild_ShapeSet::DumpCheck(Standard_OStream&,
if (TopOpeBRepBuild_GettraceCHK() ||
TopOpeBRepBuild_GettraceCHKNOK() ) {
DumpName(OS,"*********************** ");
OS<<str<<" ";TopAbs::Print(t,OS);OS<<" : incorrect"<<endl;
OS<<str<<" ";TopAbs::Print(t,OS);OS<<" : incorrect"<<std::endl;
}
}
else {
if (TopOpeBRepBuild_GettraceCHK() ||
TopOpeBRepBuild_GettraceCHKOK() ) {
DumpName(OS,"");
OS<<str<<" ";TopAbs::Print(t,OS);OS<<" : correct"<<endl;
OS<<str<<" ";TopAbs::Print(t,OS);OS<<" : correct"<<std::endl;
}
}
if (!chk) debaddss();
@@ -457,26 +457,26 @@ void TopOpeBRepBuild_ShapeSet::DumpCheck(Standard_OStream&,
void TopOpeBRepBuild_ShapeSet::DumpSS()
{
#ifdef DRAW
DumpName(cout,"\nDumpSS start ");
DumpName(std::cout,"\nDumpSS start ");
TopTools_ListIteratorOfListOfShape it;
Standard_Integer i,j,ne;
TCollection_AsciiString s1(" ");
InitShapes();
cout<<endl<<"#Shapes : ";if (!MoreShapes()) cout<<0;cout<<endl;
std::cout<<std::endl<<"#Shapes : ";if (!MoreShapes()) std::cout<<0;std::cout<<std::endl;
for (i=1;MoreShapes();NextShape(),i++) {
TCollection_AsciiString ns = SNameori(Shape());
cout<<PRODINS<<ns<<"; # "<<i<<" draw"<<endl;
std::cout<<PRODINS<<ns<<"; # "<<i<<" draw"<<std::endl;
DBRep::Set(ns.ToCString(),Shape());
}
InitStartElements();
cout<<"#StartElements : ";if (!MoreStartElements()) cout<<0;cout<<endl;
std::cout<<"#StartElements : ";if (!MoreStartElements()) std::cout<<0;std::cout<<std::endl;
for (i=1;MoreStartElements();NextStartElement(),i++) {
cout<<PRODINS<<SNameori(StartElement())<<"; # "<<i<<" draw"<<endl;
std::cout<<PRODINS<<SNameori(StartElement())<<"; # "<<i<<" draw"<<std::endl;
}
InitStartElements();
cout<<"#Neighbours of StartElements : ";if (!MoreStartElements()) cout<<0;cout<<endl;
std::cout<<"#Neighbours of StartElements : ";if (!MoreStartElements()) std::cout<<0;std::cout<<std::endl;
for (i=1;MoreStartElements();NextStartElement(),i++) {
const TopoDS_Shape& e = StartElement();
TCollection_AsciiString enam = SNameori(e);
@@ -488,12 +488,12 @@ void TopOpeBRepBuild_ShapeSet::DumpSS()
sne=sne+" "+SNameori(N);
}
sne=sne+"; wclick; #draw";
cout<<sne<<endl;
std::cout<<sne<<std::endl;
}
}
Standard_Integer ism,nsm=mySubShapeMap.Extent();
cout<<"#Incident shapes : ";if (!nsm) cout<<0;cout<<endl;
std::cout<<"#Incident shapes : ";if (!nsm) std::cout<<0;std::cout<<std::endl;
for (i=1,ism=1;ism<=nsm;ism++,i++) {
const TopoDS_Shape& v = mySubShapeMap.FindKey(ism);
const TopTools_ListOfShape& lsv = mySubShapeMap.FindFromIndex(ism);
@@ -506,10 +506,10 @@ void TopOpeBRepBuild_ShapeSet::DumpSS()
sle=sle+" "+SNameori(e);
}
sle=sle+"; wclick; #draw";
cout<<sle<<endl;
std::cout<<sle<<std::endl;
}
}
DumpName(cout,"DumpSS end ");
DumpName(std::cout,"DumpSS end ");
#endif
}
@@ -520,15 +520,15 @@ void TopOpeBRepBuild_ShapeSet::DumpSS()
void TopOpeBRepBuild_ShapeSet::DumpBB()
{
#ifdef DRAW
DumpName(cout,"\nDumpBB ");
DumpName(std::cout,"\nDumpBB ");
TopTools_ListIteratorOfListOfShape it;
Standard_Integer i,j,ne = 0, nb = 1, curr, currloc;
TCollection_AsciiString s1(" "),stt,enam,nnam,vnam;
InitShapes();
cout<<endl<<"#Shapes : (block old) ";if (!MoreShapes()) cout<<0;cout<<endl;
std::cout<<std::endl<<"#Shapes : (block old) ";if (!MoreShapes()) std::cout<<0;std::cout<<std::endl;
for (i=1;MoreShapes();NextShape(),i++, nb++) {
cout<<"Block number"<<nb<<" (old)."<<endl;
std::cout<<"Block number"<<nb<<" (old)."<<std::endl;
const TopoDS_Shape& e = Shape();
TopoDS_Iterator ShapIter(e);
for(ne = 1;ShapIter.More();ShapIter.Next(), ne++) {
@@ -536,19 +536,19 @@ void TopOpeBRepBuild_ShapeSet::DumpBB()
ShapeEnumToString(subsha.ShapeType(),stt);
enam = stt+ne+"ShaB"+nb;
DBRep::Set(enam.ToCString(),subsha);
cout<<"clear; "<<PRODINS<<enam<<"; #draw"<<endl;
std::cout<<"clear; "<<PRODINS<<enam<<"; #draw"<<std::endl;
}
}
InitStartElements();
TopTools_IndexedMapOfShape mos;
cout<<"#Elements : (block new) : ";if (!MoreStartElements()) cout<<0;cout<<endl;
std::cout<<"#Elements : (block new) : ";if (!MoreStartElements()) std::cout<<0;std::cout<<std::endl;
mos.Clear();
for (;MoreStartElements();NextStartElement()) {
const TopoDS_Shape& e = StartElement();
curr = mos.Extent();
if(mos.Add(e) > curr) {
cout<<"#Block number"<<nb<<" (new)."<<endl;
std::cout<<"#Block number"<<nb<<" (new)."<<std::endl;
nb++;ne++;
enam = "";
enam = enam+"ste"+ne+"newB"+nb;
@@ -577,7 +577,7 @@ void TopOpeBRepBuild_ShapeSet::DumpBB()
} else {
enam = enam+"ele"+ne+"newB"+nb;
DBRep::Set(enam.ToCString(),N);
cout<<PRODINS<<enam<<"; #draw"<<endl;
std::cout<<PRODINS<<enam<<"; #draw"<<std::endl;
}
}
}

View File

@@ -213,8 +213,8 @@ TopAbs_State TopOpeBRepBuild_ShellFaceClassifier::State()
TCollection_AsciiString sname("shell_"); sname = home + sname + STATIC_ishell;
TCollection_AsciiString vname("vertex_"); vname = home + vname + STATIC_ishell;
BRep_Builder B;TopoDS_Vertex V;B.MakeVertex(V,myPoint3d,tol3d);
cout<<"TopOpeBRepBuild_ShellFaceClassifier : write shell "<<sname;
cout<<" vertex "<<vname<<endl;
std::cout<<"TopOpeBRepBuild_ShellFaceClassifier : write shell "<<sname;
std::cout<<" vertex "<<vname<<std::endl;
BRepTools::Write(myShell,sname.ToCString());
BRepTools::Write(V,vname.ToCString());
}

View File

@@ -66,12 +66,12 @@ TopOpeBRepBuild_ShapeSet(TopAbs_EDGE)
TopOpeBRepBuild_Builder* pB = ((TopOpeBRepBuild_Builder*)((void*)A));
myDEBNumber = pB->GdumpSHASETindex();
Standard_Integer iS; Standard_Boolean tSPS = pB->GtraceSPS(S,iS);
if(tSPS){cout<<"creation SFS "<<myDEBNumber<<" on ";}
if(tSPS){pB->GdumpSHA(S,NULL);cout<<endl;}
if(tSPS){std::cout<<"creation SFS "<<myDEBNumber<<" on ";}
if(tSPS){pB->GdumpSHA(S,NULL);std::cout<<std::endl;}
}
if (TopOpeBRepBuild_GettraceCHK() && !myCheckShape) {
DumpName(cout,"no checkshape in creation of ");cout<<endl;
DumpName(std::cout,"no checkshape in creation of ");std::cout<<std::endl;
}
#endif
}

View File

@@ -329,7 +329,7 @@ const Standard_Real PAR_T = 0.43213918;
aSubsh = aSubshMap(i);
if (aSubsh.IsNull()) {
#ifdef OCCT_DEBUG
cout<<"FindStateThroughVertex: warning: all vertices are avoided"<<endl;
std::cout<<"FindStateThroughVertex: warning: all vertices are avoided"<<std::endl;
#endif
return TopAbs_UNKNOWN; // failure
}
@@ -691,7 +691,7 @@ void TopOpeBRepBuild_Tools::UpdateEdgeOnPeriodicalFace(const TopoDS_Edge& aEdgeT
Handle(Geom2d_Curve) cc = BRep_Tool::CurveOnSurface(newE, tFace, fc, lc);
if(!cc.IsNull()) {
//cout << "Pcurves exist" << endl;
//std::cout << "Pcurves exist" << std::endl;
return;
}

View File

@@ -71,11 +71,11 @@ TopOpeBRepBuild_ShapeSet(TopAbs_VERTEX)
if (LOCAL_PBUILDER_DEB != NULL) {
myDEBNumber = LOCAL_PBUILDER_DEB->GdumpSHASETindex();
Standard_Integer iF; Standard_Boolean tSPS = LOCAL_PBUILDER_DEB->GtraceSPS(F,iF);
if(tSPS){DumpName(cout,"creation ");cout<<" on ";}
if(tSPS){LOCAL_PBUILDER_DEB->GdumpSHA(F,NULL);cout<<endl;}
if(tSPS){DumpName(std::cout,"creation ");std::cout<<" on ";}
if(tSPS){LOCAL_PBUILDER_DEB->GdumpSHA(F,NULL);std::cout<<std::endl;}
}
if (TopOpeBRepBuild_GettraceCHK() && !myCheckShape) {
DumpName(cout,"no checkshape in creation of ");cout<<endl;
DumpName(std::cout,"no checkshape in creation of ");std::cout<<std::endl;
}
#endif
}
@@ -99,8 +99,8 @@ void TopOpeBRepBuild_WireEdgeSet::AddShape(const TopoDS_Shape& S)
#ifdef DRAW
if (TopOpeBRepBuild_GettraceCHK() && CheckShape()) {
if (!tocheck) DumpCheck(cout," AddShape WIRE on closed face",S,chk);
else DumpCheck(cout," AddShape redefined",S,chk);
if (!tocheck) DumpCheck(std::cout," AddShape WIRE on closed face",S,chk);
else DumpCheck(std::cout," AddShape redefined",S,chk);
}
#endif
@@ -165,7 +165,7 @@ void TopOpeBRepBuild_WireEdgeSet::InitNeighbours(const TopoDS_Shape& E)
TCollection_AsciiString str("#**** InitNeighbours");
if (tsh) str = str + " on WES edge " + SNameori(E);
str = str + " #****";
cout<<endl<<str<<endl;
std::cout<<std::endl<<str<<std::endl;
if (tsh) debwesclo(ista);
}
#endif
@@ -217,7 +217,7 @@ const TopTools_ListOfShape & TopOpeBRepBuild_WireEdgeSet::MakeNeighboursList(con
Standard_Boolean traceSS = TopOpeBRepBuild_GettraceSS();
if ( traceSS ) {
TCollection_AsciiString svel = SNameVEL(V,E,l);
cout<<PRODINS<<svel<<"; #---- WES MNL"<<endl;
std::cout<<PRODINS<<svel<<"; #---- WES MNL"<<std::endl;
}
#endif
@@ -239,8 +239,8 @@ const TopTools_ListOfShape & TopOpeBRepBuild_WireEdgeSet::MakeNeighboursList(con
if ( traceSS ) {
Standard_Integer rang = myCurrentShapeNeighbours.Extent();
const TopoDS_Edge& EE = TopoDS::Edge(curn);
cout <<"+ EE "<<iapp<<" , rang "<<rang<<" ";
TCollection_AsciiString svee=SNameVEE(V,E,EE);cout<<svee<<endl;
std::cout <<"+ EE "<<iapp<<" , rang "<<rang<<" ";
TCollection_AsciiString svee=SNameVEE(V,E,EE);std::cout<<svee<<std::endl;
}
#endif
}
@@ -249,9 +249,9 @@ const TopTools_ListOfShape & TopOpeBRepBuild_WireEdgeSet::MakeNeighboursList(con
Standard_Integer newn = NbClosingShapes(myCurrentShapeNeighbours);
#ifdef DRAW
if ( traceSS ) {
cout<<"#~~~~connexes apres VertexConnectsEdgesClosing : ";
std::cout<<"#~~~~connexes apres VertexConnectsEdgesClosing : ";
TCollection_AsciiString svel=SNameVEL(V,E,myCurrentShapeNeighbours);
cout<<svel<<endl;
std::cout<<svel<<std::endl;
}
#endif
@@ -307,22 +307,22 @@ const TopTools_ListOfShape & TopOpeBRepBuild_WireEdgeSet::MakeNeighboursList(con
#ifdef DRAW
if ( traceSS ) {
cout<<"#-------- rang "<<rang<<endl;
TCollection_AsciiString svee=SNameVEE(V,E,EE);cout<<svee<<endl;
std::cout<<"#-------- rang "<<rang<<std::endl;
TCollection_AsciiString svee=SNameVEE(V,E,EE);std::cout<<svee<<std::endl;
cout<<" fiE,laE : "<<fiE<<" "<<laE<<endl;
cout<<" parE "<<parE<<endl;
cout<<" puE,pvE "<<pE.X()<<" "<<pE.Y();
cout<<" d1uE,d1vE "<<d1E.X()<<" "<<d1E.Y()<<endl;
cout<<endl;
cout<<" fiEE,laEE : "<<fiEE<<" "<<laEE<<endl;
cout<<" parEE "<<parEE<<endl;
cout<<" puEE,pvEE "<<pEE.X()<<" "<<pEE.Y();
cout<<" d1uEE,d1vEE "<<d1EE.X()<<" "<<d1EE.Y()<<endl;
cout<<" --> cross "<<cross<<endl;
std::cout<<" fiE,laE : "<<fiE<<" "<<laE<<std::endl;
std::cout<<" parE "<<parE<<std::endl;
std::cout<<" puE,pvE "<<pE.X()<<" "<<pE.Y();
std::cout<<" d1uE,d1vE "<<d1E.X()<<" "<<d1E.Y()<<std::endl;
std::cout<<std::endl;
std::cout<<" fiEE,laEE : "<<fiEE<<" "<<laEE<<std::endl;
std::cout<<" parEE "<<parEE<<std::endl;
std::cout<<" puEE,pvEE "<<pEE.X()<<" "<<pEE.Y();
std::cout<<" d1uEE,d1vEE "<<d1EE.X()<<" "<<d1EE.Y()<<std::endl;
std::cout<<" --> cross "<<cross<<std::endl;
if ( t2 ) cout<<" t2 --> on garde EE"<<endl<<endl;
else cout<<" t2 --> on vire EE"<<endl<<endl;
if ( t2 ) std::cout<<" t2 --> on garde EE"<<std::endl<<std::endl;
else std::cout<<" t2 --> on vire EE"<<std::endl<<std::endl;
}
#endif
@@ -338,8 +338,8 @@ const TopTools_ListOfShape & TopOpeBRepBuild_WireEdgeSet::MakeNeighboursList(con
#ifdef DRAW
if ( traceSS ) {
cout<<"#~~~~connexes apres filtre geom : ";
TCollection_AsciiString svel=SNameVEL(Varg,Earg,myCurrentShapeNeighbours);cout<<svel<<endl;
std::cout<<"#~~~~connexes apres filtre geom : ";
TCollection_AsciiString svel=SNameVEL(Varg,Earg,myCurrentShapeNeighbours);std::cout<<svel<<std::endl;
}
#endif

View File

@@ -51,7 +51,7 @@
#ifdef OCCT_DEBUG
Standard_EXPORT void debfctwes(const Standard_Integer /*i*/) {}
Standard_EXPORT void debfctwesmess(const Standard_Integer i,const TCollection_AsciiString& s = "")
{cout<<"+ + + debfctwes "<<s<<"F"<<i<<endl;debfctwes(i);}
{std::cout<<"+ + + debfctwes "<<s<<"F"<<i<<std::endl;debfctwes(i);}
extern void debaddpwes(const Standard_Integer iFOR,const TopAbs_State TB1,const Standard_Integer iEG,const TopAbs_Orientation neworiE,
const TopOpeBRepBuild_PBuilder& PB,const TopOpeBRepBuild_PWireEdgeSet& PWES,const TCollection_AsciiString& str1,const TCollection_AsciiString& str2);
#endif
@@ -77,7 +77,7 @@ void TopOpeBRepBuild_Builder::GFillCurveTopologyWES(const TopoDS_Shape& F1,const
#ifdef OCCT_DEBUG
Standard_Integer iF; Standard_Boolean tSPS = GtraceSPS(F1,iF);
if(tSPS) GdumpSHASTA(iF,TB1,WES,"--- GFillCurveTopologyWES");
if(tSPS) {cout<<" ShapeInterf ";TopAbs::Print(ShapeInterf,cout);cout<<endl;}
if(tSPS) {std::cout<<" ShapeInterf ";TopAbs::Print(ShapeInterf,std::cout);std::cout<<std::endl;}
if(tSPS) {debfctwesmess(iF);}
#endif
@@ -164,9 +164,9 @@ void TopOpeBRepBuild_Builder::GFillCurveTopologyWES(const TopOpeBRepDS_CurveIter
#ifdef OCCT_DEBUG
Standard_Boolean tSPS = GtraceSPS(iWESF);
if(tSPS){
cout<<"ifil : "<<ifil<<" iref : "<<iref<<" iwes : "<<iWESF<<endl;
cout<<"face "<<ifil<<" is ";TopOpeBRepDS::Print(Conf,cout);cout<<endl;
cout<<"ComOfCut "<<ComOfCut<<endl;
std::cout<<"ifil : "<<ifil<<" iref : "<<iref<<" iwes : "<<iWESF<<std::endl;
std::cout<<"face "<<ifil<<" is ";TopOpeBRepDS::Print(Conf,std::cout);std::cout<<std::endl;
std::cout<<"ComOfCut "<<ComOfCut<<std::endl;
debfctwesmess(iWESF);
}
#endif
@@ -211,7 +211,7 @@ void TopOpeBRepBuild_Builder::GFillCurveTopologyWES(const TopOpeBRepDS_CurveIter
#ifdef OCCT_DEBUG
EhasPConWESF = FC2D_HasCurveOnSurface(E,WESF);
if (!EhasPConWESF) cout<<"TopOpeBRepBuild_Builder::GFillCurveTopologyWES : Null PCurve on F"<<iWESF<<endl;
if (!EhasPConWESF) std::cout<<"TopOpeBRepBuild_Builder::GFillCurveTopologyWES : Null PCurve on F"<<iWESF<<std::endl;
#endif
}

View File

@@ -52,8 +52,8 @@
#ifdef OCCT_DEBUG
#define DEBSHASET(sarg,meth,shaset,str) TCollection_AsciiString sarg((meth));(sarg)=(sarg)+(shaset).DEBNumber()+(str);
Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextNOFUFA();
Standard_EXPORT void debffsfs(const Standard_Integer i){cout<<"+++ debffsfs "<<i<<endl;}
Standard_EXPORT void debffflo(const Standard_Integer i){cout<<"+++ debffflo "<<i<<endl;}
Standard_EXPORT void debffsfs(const Standard_Integer i){std::cout<<"+++ debffsfs "<<i<<std::endl;}
Standard_EXPORT void debffflo(const Standard_Integer i){std::cout<<"+++ debffflo "<<i<<std::endl;}
#endif
static Standard_Boolean STATIC_motheropedef = Standard_False; static TopOpeBRepBuild_GTopo STATIC_Gmotherope;
@@ -189,7 +189,7 @@ void TopOpeBRepBuild_Builder::GFillFaceSFS(const TopoDS_Shape& FOR,const TopTool
#ifdef OCCT_DEBUG
Standard_Integer iF; Standard_Boolean tSPS = GtraceSPS(FOR,iF);
if(tSPS)cout<<endl;
if(tSPS)std::cout<<std::endl;
#endif
const TopOpeBRepDS_DataStructure& BDS = myDataStructure->DS();
Standard_Boolean tosplit = GToSplit(FOR,TB1);
@@ -202,7 +202,7 @@ void TopOpeBRepBuild_Builder::GFillFaceSFS(const TopoDS_Shape& FOR,const TopTool
#ifdef OCCT_DEBUG
if(tSPS){
GdumpSHASTA(FOR,TB1,"--- GFillFaceSFS START ");
cout<<" tosplit "<<tosplit<<" tomerge "<<tomerge<<endl;
std::cout<<" tosplit "<<tosplit<<" tomerge "<<tomerge<<std::endl;
debffsfs(iF);
}
#endif
@@ -230,7 +230,7 @@ void TopOpeBRepBuild_Builder::GFillFaceSFS(const TopoDS_Shape& FOR,const TopTool
#ifdef OCCT_DEBUG
if(tSPS) {
GdumpSHASTA(FOR,TB1,"[[[[[[[[[[[[[[[[[[[[[[[[[[ GFillFaceSFS makemerge START ");
cout<<endl;
std::cout<<std::endl;
}
#endif
@@ -327,13 +327,13 @@ void TopOpeBRepBuild_Builder::GFillFaceSFS(const TopoDS_Shape& FOR,const TopTool
#ifdef OCCT_DEBUG
if(tSPS){
TopAbs_State TB11,TB21; GM.StatesON(TB11,TB21);
cout<<endl;
cout <<"@@@@"<<endl;
cout <<"@@@@@@@@ partie 1 : ";TopAbs::Print(TB11,cout);cout<<" ";TopAbs::Print(TB21,cout);cout<<endl;
cout <<"@@@@"<<endl;
std::cout<<std::endl;
std::cout <<"@@@@"<<std::endl;
std::cout <<"@@@@@@@@ partie 1 : ";TopAbs::Print(TB11,std::cout);std::cout<<" ";TopAbs::Print(TB21,std::cout);std::cout<<std::endl;
std::cout <<"@@@@"<<std::endl;
GdumpSAMDOM(LF1, (char *) "LF1 (LFSO1) : ");
GdumpSAMDOM(LF2, (char *) "LF2 (LFDO2) : ");
cout<<endl;
std::cout<<std::endl;
}
#endif
GLOBAL_classifysplitedge = Standard_True;
@@ -386,13 +386,13 @@ void TopOpeBRepBuild_Builder::GFillFaceSFS(const TopoDS_Shape& FOR,const TopTool
#ifdef OCCT_DEBUG
if(tSPS){
TopAbs_State TB12,TB22; GM.StatesON(TB12,TB22);
cout<<endl;
cout <<"@@@@"<<endl;
cout <<"@@@@@@@@ partie 2 : ";TopAbs::Print(TB12,cout);cout<<" ";TopAbs::Print(TB22,cout);cout<<endl;
cout <<"@@@@"<<endl;
std::cout<<std::endl;
std::cout <<"@@@@"<<std::endl;
std::cout <<"@@@@@@@@ partie 2 : ";TopAbs::Print(TB12,std::cout);std::cout<<" ";TopAbs::Print(TB22,std::cout);std::cout<<std::endl;
std::cout <<"@@@@"<<std::endl;
GdumpSAMDOM(LF1, (char *) "LF1 (LFSO1) : ");
GdumpSAMDOM(LF2, (char *) "LF2 (LFDO2) : ");
cout<<endl;
std::cout<<std::endl;
}
#endif
GLOBAL_classifysplitedge = Standard_True;
@@ -414,7 +414,7 @@ void TopOpeBRepBuild_Builder::GFillFaceSFS(const TopoDS_Shape& FOR,const TopTool
#ifdef OCCT_DEBUG
if(tSPS) {
GdumpSHASTA(FOR,TB1,"]]]]]]]]]]]]]]]]]]]]]]]]]] GFillFaceSFS makemerge END ");
cout<<endl;
std::cout<<std::endl;
}
#endif
@@ -454,8 +454,8 @@ void TopOpeBRepBuild_Builder::GFillFaceSFS(const TopoDS_Shape& FOR,const TopTool
if(tSPS){
DEBSHASET(ss,"--- FillFaceSFS apres fufa",SFS," AddStartElement SFS+ face ");
GdumpSHA(flfr2,(Standard_Address)ss.ToCString());
cout<<" ";TopAbs::Print(TB1,cout)<<" : 1 face ";
TopAbs::Print(flfr2.Orientation(),cout); cout<<endl;
std::cout<<" ";TopAbs::Print(TB1,std::cout)<<" : 1 face ";
TopAbs::Print(flfr2.Orientation(),std::cout); std::cout<<std::endl;
}
#endif
SFS.AddStartElement(flfr2);
@@ -477,7 +477,7 @@ void TopOpeBRepBuild_Builder::GFillFaceSFS(const TopoDS_Shape& FOR,const TopTool
#ifdef OCCT_DEBUG
if(tSPS){
GdumpSHASTA(FOR,TB1,"--- GFillFaceSFS END ");cout<<endl;
GdumpSHASTA(FOR,TB1,"--- GFillFaceSFS END ");std::cout<<std::endl;
}
#endif

View File

@@ -48,7 +48,7 @@
#ifdef OCCT_DEBUG
Standard_EXPORT void debfctwesmess(const Standard_Integer i,const TCollection_AsciiString& s = "");
Standard_EXPORT void debffwesON(const Standard_Integer i);
Standard_EXPORT void debffwesk(const Standard_Integer i) {cout<<"++ debffwesk "<<i<<endl;}
Standard_EXPORT void debffwesk(const Standard_Integer i) {std::cout<<"++ debffwesk "<<i<<std::endl;}
#endif
Standard_Boolean TopOpeBRepBuild_FUN_aresamegeom(const TopoDS_Shape& S1,const TopoDS_Shape& S2);
@@ -82,7 +82,7 @@ void TopOpeBRepBuild_Builder::GFillFacesWESK(const TopTools_ListOfShape& LS1,con
#ifdef OCCT_DEBUG
Standard_Boolean tSPS = GtraceSPS(F1,iF1);
if(tSPS) cout<<"\n%%%%%%%%%%%%% K = "<<Kfill<<" %%%%%%%%%%%%% ";
if(tSPS) std::cout<<"\n%%%%%%%%%%%%% K = "<<Kfill<<" %%%%%%%%%%%%% ";
if(tSPS) GdumpSHASTA(iF1,TB1,WES,"GFillFacesWESK","myFaceReference");
if(tSPS) debffwesk(iF1);
#endif
@@ -99,11 +99,11 @@ void TopOpeBRepBuild_Builder::GFillFacesWESK(const TopTools_ListOfShape& LS1,con
#ifdef OCCT_DEBUG
if(tSPS){
cout<<"\n^^^^^^^^ GFillFacesWESK : traitement de 1/2";
std::cout<<"\n^^^^^^^^ GFillFacesWESK : traitement de 1/2";
TopAbs_State TB11,TB21; G.StatesON(TB11,TB21);
cout<<" TB = ";TopAbs::Print(TB,cout); cout<<" ";
cout<<"(TB1 = ";TopAbs::Print(TB11,cout);cout<<",";
cout<<" TB2 = ";TopAbs::Print(TB21,cout);cout<<")\n\n";
std::cout<<" TB = ";TopAbs::Print(TB,std::cout); std::cout<<" ";
std::cout<<"(TB1 = ";TopAbs::Print(TB11,std::cout);std::cout<<",";
std::cout<<" TB2 = ";TopAbs::Print(TB21,std::cout);std::cout<<")\n\n";
}
#endif
@@ -171,11 +171,11 @@ void TopOpeBRepBuild_Builder::GFillFacesWESK(const TopTools_ListOfShape& LS1,con
#ifdef OCCT_DEBUG
if(tSPS){
cout<<"\n^^^^^^^^ GFillFacesWESK : traitement de 2/1";
std::cout<<"\n^^^^^^^^ GFillFacesWESK : traitement de 2/1";
TopAbs_State TB12,TB22; G.StatesON(TB12,TB22);
cout<<" TB = ";TopAbs::Print(TB,cout); cout<<" ";
cout<<"(TB1 = ";TopAbs::Print(TB12,cout);cout<<",";
cout<<" TB2 = ";TopAbs::Print(TB22,cout);cout<<")\n\n";
std::cout<<" TB = ";TopAbs::Print(TB,std::cout); std::cout<<" ";
std::cout<<"(TB1 = ";TopAbs::Print(TB12,std::cout);std::cout<<",";
std::cout<<" TB2 = ";TopAbs::Print(TB22,std::cout);std::cout<<")\n\n";
}
#endif

View File

@@ -45,7 +45,7 @@ extern Standard_Integer GLOBAL_iexE;
extern Standard_Integer GLOBAL_iexF;
Standard_Boolean STATIC_trace_iexE = Standard_False;
Standard_Boolean STATIC_trace_iexF = Standard_False;
Standard_EXPORT void debkeep(const Standard_Integer i) {cout<<"++ debkeep "<<i<<endl;}
Standard_EXPORT void debkeep(const Standard_Integer i) {std::cout<<"++ debkeep "<<i<<std::endl;}
#endif
//=======================================================================
@@ -97,12 +97,12 @@ Standard_Boolean TopOpeBRepBuild_Builder::GKeepShape1
Standard_Boolean tr = tSPS || tSPSface || tSPSsoli;
if(tr){
if (tSPS) GdumpSHA(S);
else if (tSPSface) cout<<"EDGE exploration "<<GLOBAL_iexE;
else if (tSPSsoli) cout<<"FACE exploration "<<GLOBAL_iexF;
if(keep)cout<<" is kept";else cout<<" is NOT kept";
cout<<" ";TopAbs::Print(TB,cout);cout<<" / ";
if(LSclass.IsEmpty())cout<<"empty list";else GdumpLS(LSclass);cout<<endl;
cout.flush();
else if (tSPSface) std::cout<<"EDGE exploration "<<GLOBAL_iexE;
else if (tSPSsoli) std::cout<<"FACE exploration "<<GLOBAL_iexF;
if(keep)std::cout<<" is kept";else std::cout<<" is NOT kept";
std::cout<<" ";TopAbs::Print(TB,std::cout);std::cout<<" / ";
if(LSclass.IsEmpty())std::cout<<"empty list";else GdumpLS(LSclass);std::cout<<std::endl;
std::cout.flush();
}
#endif
@@ -146,11 +146,11 @@ void TopOpeBRepBuild_Builder::GKeepShapes
#ifdef OCCT_DEBUG
TopAbs_ShapeEnum t = SL.ShapeType();
if(tSPS){cout<<"GKeepShapes : ";}
if(tSPS){cout<<"new ";TopAbs::Print(t,cout);cout<<" "<<++n;}
if(tSPS){cout<<" from ";GdumpSHA(S);if(keep)cout<<" is kept";else cout<<" is NOT kept";}
if(tSPS){cout<<" ";TopAbs::Print(TB,cout);cout<<" / ";}
if(tSPS){if(LSclass.IsEmpty())cout<<"empty list";else GdumpLS(LSclass);cout<<endl;}
if(tSPS){std::cout<<"GKeepShapes : ";}
if(tSPS){std::cout<<"new ";TopAbs::Print(t,std::cout);std::cout<<" "<<++n;}
if(tSPS){std::cout<<" from ";GdumpSHA(S);if(keep)std::cout<<" is kept";else std::cout<<" is NOT kept";}
if(tSPS){std::cout<<" ";TopAbs::Print(TB,std::cout);std::cout<<" / ";}
if(tSPS){if(LSclass.IsEmpty())std::cout<<"empty list";else GdumpLS(LSclass);std::cout<<std::endl;}
#endif
if (keep) Lou.Append(SL);

View File

@@ -107,19 +107,19 @@ void TopOpeBRepBuild_Builder::MergeKPartiskole()
#ifdef OCCT_DEBUG
if (TKPB) {
cout<<""<<endl;
std::cout<<""<<std::endl;
for (; itm1.More();itm1.Next()) {
const TopoDS_Shape& f = itm1.Key();
Standard_Integer fi = myDataStructure->Shape(f);
cout<<"face "<<fi<<" : ";
std::cout<<"face "<<fi<<" : ";
const TopTools_ListOfShape& l = itm1.Value();
TopTools_ListIteratorOfListOfShape it(l);
for(; it.More(); it.Next()) {
const TopoDS_Shape& ff = it.Value();
Standard_Integer ffi = myDataStructure->Shape(ff);
cout<<ffi<<" ";
std::cout<<ffi<<" ";
}
cout<<endl;
std::cout<<std::endl;
}
itm1.Initialize(myKPMAPf1f2);
}
@@ -152,7 +152,7 @@ void TopOpeBRepBuild_Builder::MergeKPartiskole()
if(tSPS || TKPB) {
// Standard_Integer iOU = myDataStructure->Shape(*pfOU);
// Standard_Integer iIN = myDataStructure->Shape(*pfIN);
GdumpSHA(*pfOU, (char *) "MergeKPartiskole pfOU ");cout<<endl;
GdumpSHA(*pfOU, (char *) "MergeKPartiskole pfOU ");std::cout<<std::endl;
GdumpSAMDOM(LFIN, (char *) "LFIN : ");
debiskole();
}
@@ -211,8 +211,8 @@ void TopOpeBRepBuild_Builder::MergeKPartiskole()
ChangeMerged(she2,myState2);
#ifdef OCCT_DEBUG
if (TKPB) { cout<<"stsol1 ";TopAbs::Print(stsol1,cout); cout<<" "; }
if (TKPB) { cout<<"stsol2 ";TopAbs::Print(stsol2,cout); cout<<endl; }
if (TKPB) { std::cout<<"stsol1 ";TopAbs::Print(stsol1,std::cout); std::cout<<" "; }
if (TKPB) { std::cout<<"stsol2 ";TopAbs::Print(stsol2,std::cout); std::cout<<std::endl; }
debiskole();
#endif
@@ -353,7 +353,7 @@ void TopOpeBRepBuild_Builder::MergeKPartiskole()
else {
#ifdef OCCT_DEBUG
cout<<"MergeKPartiskole : ires = "<<ires<<endl;
std::cout<<"MergeKPartiskole : ires = "<<ires<<std::endl;
#endif
}
@@ -472,7 +472,7 @@ Standard_Integer TopOpeBRepBuild_Builder::KPiskole()
#ifdef OCCT_DEBUG
Standard_Integer iF1; Standard_Boolean tSPS1 = GtraceSPS(f1,iF1);
if(tSPS1) {
GdumpSHA(f1, (char *) "KPiskole ");cout<<endl;
GdumpSHA(f1, (char *) "KPiskole ");std::cout<<std::endl;
GdumpSAMDOM(lf2, (char *) "lf2 : ");
}
#endif
@@ -590,7 +590,7 @@ void TopOpeBRepBuild_Builder::KPiskoleanalyse(const TopAbs_State Stfac1, const T
#ifdef OCCT_DEBUG
Standard_Boolean TKPB = TopOpeBRepBuild_GettraceKPB();
if (TKPB) cout<<"ires = "<<ires<<" icla1 "<<icla1<<" icla2 "<<icla2<<endl;
if (TKPB) std::cout<<"ires = "<<ires<<" icla1 "<<icla1<<" icla2 "<<icla2<<std::endl;
#endif
} // TopOpeBRepBuild_Builder::KPiskoleanalyse
@@ -612,7 +612,7 @@ Standard_EXPORT void FUNKP_KPmakefaces(const TopOpeBRepBuild_Builder& BU,
#ifdef OCCT_DEBUG
Standard_Integer iF1; Standard_Boolean tSPS = BU.GtraceSPS(Fac1,iF1);
if(tSPS) { BU.GdumpSHA(Fac1, (char *) "KPmakeFace ");cout<<endl; }
if(tSPS) { BU.GdumpSHA(Fac1, (char *) "KPmakeFace ");std::cout<<std::endl; }
#endif
if (Stfac1 == TopAbs_OUT) {
@@ -699,7 +699,7 @@ TopoDS_Shape TopOpeBRepBuild_Builder::KPmakeface(const TopoDS_Shape& Fac1,
Standard_Boolean tSPS = GtraceSPS(Fac1,iF1);
if(tSPS) {
GdumpSHA(Fac1, (char *) "KPmakeFace ");
cout<<endl;
std::cout<<std::endl;
}
#endif
@@ -826,12 +826,12 @@ Standard_Boolean TopOpeBRepBuild_Builder::KPiskolesh(const TopoDS_Shape& Sarg,
#ifdef OCCT_DEBUG
Standard_Integer isol = myDataStructure->Shape(Sarg);
Standard_Integer ifac = myDataStructure->Shape(fac);
if(TKPB){cout<<"isol "<<isol<<endl;}
if(TKPB){cout<<"nfhsd "<<nfhsd<<endl;}
if(TKPB){cout<<"ifac "<<ifac<<endl;}
if(TKPB){cout<<"isplan "<<isplan<<endl;}
if(TKPB){cout<<"nehg "<<nehg<<endl;}
if(TKPB){cout<<endl;}
if(TKPB){std::cout<<"isol "<<isol<<std::endl;}
if(TKPB){std::cout<<"nfhsd "<<nfhsd<<std::endl;}
if(TKPB){std::cout<<"ifac "<<ifac<<std::endl;}
if(TKPB){std::cout<<"isplan "<<isplan<<std::endl;}
if(TKPB){std::cout<<"nehg "<<nehg<<std::endl;}
if(TKPB){std::cout<<std::endl;}
#endif
}

View File

@@ -47,7 +47,7 @@
#ifdef OCCT_DEBUG
extern void debfillp(const Standard_Integer i);
extern void debedbu(const Standard_Integer i) {cout<<"++ debedbu "<<i<<endl;}
extern void debedbu(const Standard_Integer i) {std::cout<<"++ debedbu "<<i<<std::endl;}
#endif
#ifdef DRAW
@@ -73,7 +73,7 @@ void TopOpeBRepBuild_Builder::GPVSMakeEdges
PVS.InitLoop();
Standard_Boolean novertex = ( ! PVS.MoreLoop() );
#ifdef OCCT_DEBUG
if(tSPS&&novertex)cout<<"#--- GPVSMakeEdges : no vertex from edge "<<iE<<endl;
if(tSPS&&novertex)std::cout<<"#--- GPVSMakeEdges : no vertex from edge "<<iE<<std::endl;
#endif
if (novertex) return;
@@ -93,7 +93,7 @@ void TopOpeBRepBuild_Builder::GEDBUMakeEdges
{
#ifdef OCCT_DEBUG
Standard_Integer iE; Standard_Boolean tSPS = GtraceSPS(EF,iE);
if(tSPS){cout<<endl;GdumpSHA(EF, (char *) "#--- GEDBUMakeEdges ");cout<<endl;}
if(tSPS){std::cout<<std::endl;GdumpSHA(EF, (char *) "#--- GEDBUMakeEdges ");std::cout<<std::endl;}
if(tSPS){GdumpEDBU(EDBU);}
if(tSPS){debedbu(iE);}
#endif

View File

@@ -66,12 +66,12 @@ extern Standard_Boolean TopOpeBRepBuild_GetcontextNOCORRISO();
extern Standard_Boolean TopOpeBRepBuild_GettraceCHK();
#define DEBSHASET(sarg,meth,shaset,str) \
TCollection_AsciiString sarg((meth));(sarg)=(sarg)+(shaset).DEBNumber()+(str);
Standard_EXPORT void debgfabu(const Standard_Integer i) {cout<<"++ debgfabu "<<i<<endl;}
Standard_EXPORT void debwesmf(const Standard_Integer i) {cout<<"++ debwesmf "<<i<<endl;}
Standard_EXPORT void debgfabu(const Standard_Integer i) {std::cout<<"++ debgfabu "<<i<<std::endl;}
Standard_EXPORT void debwesmf(const Standard_Integer i) {std::cout<<"++ debwesmf "<<i<<std::endl;}
Standard_EXPORT Standard_Boolean DEBpurclo = Standard_False;
void debpurclo() {}
void debpurclomess(Standard_Integer i){cout<<"++ debpurclo "<<i<<endl;debpurclo();}
Standard_EXPORT void debcorriso(const Standard_Integer i) {cout<<"++ debcorriso "<<i<<endl;}
void debpurclomess(Standard_Integer i){std::cout<<"++ debpurclo "<<i<<std::endl;debpurclo();}
Standard_EXPORT void debcorriso(const Standard_Integer i) {std::cout<<"++ debcorriso "<<i<<std::endl;}
extern void* GFABUMAKEFACEPWES_DEB;
#endif
@@ -83,7 +83,7 @@ extern void* GFABUMAKEFACEPWES_DEB;
Standard_EXPORT Standard_Boolean FUN_tool_ClosedW(const TopoDS_Wire& W);
// Unused :
/*#ifdef OCCT_DEBUG
static void FUN_Raise(){cout<<"--------- ERROR in GWESMakeFaces ---------"<<endl;}
static void FUN_Raise(){std::cout<<"--------- ERROR in GWESMakeFaces ---------"<<std::endl;}
#endif*/
//=======================================================================
@@ -96,7 +96,7 @@ void TopOpeBRepBuild_Builder::GWESMakeFaces
#ifdef OCCT_DEBUG
Standard_Integer iF; Standard_Boolean tSPS = GtraceSPS(FF,iF);
DEBSHASET(s,"#--- GWESMakeFaces ",WES," ");
if(tSPS){ GdumpSHA(FF,(Standard_Address)s.ToCString());cout<<endl; WES.DumpSS();}
if(tSPS){ GdumpSHA(FF,(Standard_Address)s.ToCString());std::cout<<std::endl; WES.DumpSS();}
if(tSPS){debwesmf(iF);}
GFABUMAKEFACEPWES_DEB = (void*)&WES;
#endif
@@ -192,13 +192,13 @@ void TopOpeBRepBuild_Builder::GWESMakeFaces
#ifdef DRAW
if (tSPS) {
cout<<endl<<"#<< AVANT PurgeClosingEdges "<<endl;
std::cout<<std::endl<<"#<< AVANT PurgeClosingEdges "<<std::endl;
GdumpFABU(FABU);
TopTools_ListOfShape dLOF;TopTools_DataMapOfShapeInteger dMWisOld;
GFABUMakeFaces(FF,FABU,dLOF,dMWisOld);
TopTools_ListIteratorOfListOfShape X(dLOF); for (Standard_Integer i=1;X.More();X.Next(),i++) {
TCollection_AsciiString ss("purclo");ss=ss+i;DBRep::Set(ss.ToCString(),X.Value());
cout<<"... face "<<ss<<endl;
std::cout<<"... face "<<ss<<std::endl;
}
debpurclomess(iF);
DEBpurclo = Standard_True;
@@ -334,7 +334,7 @@ void TopOpeBRepBuild_Builder::GFABUMakeFaces(const TopoDS_Shape& FF,TopOpeBRepBu
#ifdef OCCT_DEBUG
Standard_Integer iF;Standard_Boolean tSPS=GtraceSPS(FF,iF);
if(tSPS) {
cout<<endl;GdumpSHA(FF,(char *) "#--- GFABUMakeFaces ");cout<<endl;
std::cout<<std::endl;GdumpSHA(FF,(char *) "#--- GFABUMakeFaces ");std::cout<<std::endl;
GdumpFABU(FABU);debgfabu(iF);
}
#endif
@@ -547,7 +547,7 @@ void TopOpeBRepBuild_Builder::GFABUMakeFaces(const TopoDS_Shape& FF,TopOpeBRepBu
//--ofv.
#ifdef OCCT_DEBUG
if ( tSPS ) cout<<"#--- GFABUMakeFaces "<<iF<<" : "<<ne<<" edges"<<endl;
if ( tSPS ) std::cout<<"#--- GFABUMakeFaces "<<iF<<" : "<<ne<<" edges"<<std::endl;
#endif
// xpu : 13-11-97
@@ -606,7 +606,7 @@ void TopOpeBRepBuild_Builder::GFABUMakeFaces(const TopoDS_Shape& FF,TopOpeBRepBu
#ifdef OCCT_DEBUG
if(tSPS) {
cout<<endl;GdumpSHA(FF, (char *) "#--- GFABUMakeFaces avant regularize");cout<<endl;
std::cout<<std::endl;GdumpSHA(FF, (char *) "#--- GFABUMakeFaces avant regularize");std::cout<<std::endl;
GdumpFABU(FABU);debgfabu(iF);
}
#endif

View File

@@ -64,7 +64,7 @@ void TopOpeBRepBuild_Builder::GSFSMakeSolids
{
#ifdef OCCT_DEBUG
Standard_Integer iSO; Standard_Boolean tSPS = GtraceSPS(SOF,iSO);
if(tSPS){GdumpSHA(SOF, (char *) "#--- GSFSMakeSolids ");cout<<endl;}
if(tSPS){GdumpSHA(SOF, (char *) "#--- GSFSMakeSolids ");std::cout<<std::endl;}
#endif
Standard_Boolean ForceClass = Standard_True;
@@ -83,7 +83,7 @@ void TopOpeBRepBuild_Builder::GSOBUMakeSolids
{
#ifdef OCCT_DEBUG
Standard_Integer iSO; Standard_Boolean tSPS = GtraceSPS(SOF,iSO);
if(tSPS){GdumpSHA(SOF, (char *) "#--- GSOBUMakeSolids ");cout<<endl;}
if(tSPS){GdumpSHA(SOF, (char *) "#--- GSOBUMakeSolids ");std::cout<<std::endl;}
if(tSPS){GdumpSOBU(SOBU);debgsobu(iSO);}
#endif

View File

@@ -103,7 +103,7 @@ static Standard_Boolean TopOpeBRepBuild_contextNOPURGE = Standard_False;
Standard_EXPORT void TopOpeBRepBuild_SetcontextNOPURGE(const Standard_Boolean b) { TopOpeBRepBuild_contextNOPURGE = b; }
Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextNOPURGE() {
Standard_Boolean b = TopOpeBRepBuild_contextNOPURGE;
if (b) cout<<"context (TopOpeBRepBuild) NOPURGE actif"<<endl;
if (b) std::cout<<"context (TopOpeBRepBuild) NOPURGE actif"<<std::endl;
return b;
}
@@ -111,7 +111,7 @@ static Standard_Boolean TopOpeBRepBuild_contextNOREGUFA = Standard_False;
Standard_EXPORT void TopOpeBRepBuild_SetcontextNOREGUFA(const Standard_Boolean b) { TopOpeBRepBuild_contextNOREGUFA = b; }
Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextNOREGUFA() {
Standard_Boolean b = TopOpeBRepBuild_contextNOREGUFA;
if (b) cout<<"context (TopOpeBRepBuild) NOREGUFA actif"<<endl;
if (b) std::cout<<"context (TopOpeBRepBuild) NOREGUFA actif"<<std::endl;
return b;
}
@@ -119,7 +119,7 @@ static Standard_Boolean TopOpeBRepBuild_contextNOREGUSO = Standard_False;
Standard_EXPORT void TopOpeBRepBuild_SetcontextNOREGUSO(const Standard_Boolean b) { TopOpeBRepBuild_contextNOREGUSO = b; }
Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextNOREGUSO() {
Standard_Boolean b = TopOpeBRepBuild_contextNOREGUSO;
if (b) cout<<"context (TopOpeBRepBuild) NOREGUSO actif"<<endl;
if (b) std::cout<<"context (TopOpeBRepBuild) NOREGUSO actif"<<std::endl;
return b;
}
@@ -135,7 +135,7 @@ static Standard_Boolean TopOpeBRepBuild_contextEINTERNAL = Standard_False;
Standard_EXPORT void TopOpeBRepBuild_SetcontextEINTERNAL(const Standard_Boolean b) { TopOpeBRepBuild_contextEINTERNAL = b; }
Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextEINTERNAL() {
Standard_Boolean b = TopOpeBRepBuild_contextEINTERNAL;
if (b) cout<<"context (TopOpeBRepBuild) EINTERNAL actif"<<endl;
if (b) std::cout<<"context (TopOpeBRepBuild) EINTERNAL actif"<<std::endl;
return b;
}
@@ -143,7 +143,7 @@ static Standard_Boolean TopOpeBRepBuild_contextEEXTERNAL = Standard_False;
Standard_EXPORT void TopOpeBRepBuild_SetcontextEEXTERNAL(const Standard_Boolean b) { TopOpeBRepBuild_contextEEXTERNAL = b; }
Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextEEXTERNAL() {
Standard_Boolean b = TopOpeBRepBuild_contextEEXTERNAL;
if (b) cout<<"context (TopOpeBRepBuild) EEXTERNAL actif"<<endl;
if (b) std::cout<<"context (TopOpeBRepBuild) EEXTERNAL actif"<<std::endl;
return b;
}
@@ -151,7 +151,7 @@ static Standard_Boolean TopOpeBRepBuild_contextNOSG = Standard_False;
Standard_EXPORT void TopOpeBRepBuild_SetcontextNOSG(const Standard_Boolean b) { TopOpeBRepBuild_contextNOSG = b; }
Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextNOSG() {
Standard_Boolean b = TopOpeBRepBuild_contextNOSG;
if (b) cout<<"context (TopOpeBRepBuild) NOSG actif"<<endl;
if (b) std::cout<<"context (TopOpeBRepBuild) NOSG actif"<<std::endl;
return b;
}
@@ -159,7 +159,7 @@ static Standard_Boolean TopOpeBRepBuild_contextNOFUFA = Standard_False;
Standard_EXPORT void TopOpeBRepBuild_SetcontextNOFUFA(const Standard_Boolean b) { TopOpeBRepBuild_contextNOFUFA = b; }
Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextNOFUFA() {
Standard_Boolean b = TopOpeBRepBuild_contextNOFUFA;
if (b) cout<<"context (TopOpeBRepBuild) NOFUFA actif"<<endl;
if (b) std::cout<<"context (TopOpeBRepBuild) NOFUFA actif"<<std::endl;
return b;
}
@@ -167,7 +167,7 @@ static Standard_Boolean TopOpeBRepBuild_contextNOFE = Standard_False;
Standard_EXPORT void TopOpeBRepBuild_SetcontextNOFE(const Standard_Boolean b) { TopOpeBRepBuild_contextNOFE = b; }
Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextNOFE() {
Standard_Boolean b = TopOpeBRepBuild_contextNOFE;
if (b) cout<<"context (TopOpeBRepBuild) NOFE actif"<<endl;
if (b) std::cout<<"context (TopOpeBRepBuild) NOFE actif"<<std::endl;
return b;
}