1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +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

@@ -160,7 +160,7 @@ Standard_Integer ChFi3d::ConcaveSide(const BRepAdaptor_Surface& S1,
}
else {
#ifdef OCCT_DEBUG
cout<<"ConcaveSide : no concave face"<<endl;
std::cout<<"ConcaveSide : no concave face"<<std::endl;
#endif
//This 10 shows that the face at end is in the extension of one of two base faces
return 10;

View File

@@ -265,7 +265,7 @@ void ChFi3d_Builder::Compute()
}
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
cout <<"EXCEPTION Stripe compute " << anException << endl;
std::cout <<"EXCEPTION Stripe compute " << anException << std::endl;
#endif
(void)anException;
badstripes.Append(itel.Value());
@@ -295,7 +295,7 @@ void ChFi3d_Builder::Compute()
}
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
cout <<"EXCEPTION Corner compute " << anException << endl;
std::cout <<"EXCEPTION Corner compute " << anException << std::endl;
#endif
(void)anException;
badvertices.Append(myVDataMap.FindKey(j));
@@ -350,7 +350,7 @@ void ChFi3d_Builder::Compute()
}
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
cout <<"EXCEPTION Fillets compute " << anException << endl;
std::cout <<"EXCEPTION Fillets compute " << anException << std::endl;
#endif
(void)anException;
badstripes.Append(itel.Value());
@@ -503,67 +503,67 @@ void ChFi3d_Builder::Compute()
#ifdef OCCT_DEBUG
if(ChFi3d_GettraceCHRON()){
cout<<endl;
cout<<"COMPUTE: temps total "<<t_total<<"s dont :"<<endl;
cout<<"- Init + ExtentAnalyse "<<t_extent<<"s"<<endl;
cout<<"- PerformSetOfSurf "<<t_perfsetofsurf<<"s"<<endl;
cout<<"- PerformFilletOnVertex "<<t_perffilletonvertex<<"s"<<endl;
cout<<"- FilDS "<<t_filds<<"s"<<endl;
cout<<"- Reconstruction "<<t_reconstruction<<"s"<<endl;
cout<<"- SetRegul "<<t_setregul<<"s"<<endl<<endl;
std::cout<<std::endl;
std::cout<<"COMPUTE: temps total "<<t_total<<"s dont :"<<std::endl;
std::cout<<"- Init + ExtentAnalyse "<<t_extent<<"s"<<std::endl;
std::cout<<"- PerformSetOfSurf "<<t_perfsetofsurf<<"s"<<std::endl;
std::cout<<"- PerformFilletOnVertex "<<t_perffilletonvertex<<"s"<<std::endl;
std::cout<<"- FilDS "<<t_filds<<"s"<<std::endl;
std::cout<<"- Reconstruction "<<t_reconstruction<<"s"<<std::endl;
std::cout<<"- SetRegul "<<t_setregul<<"s"<<std::endl<<std::endl;
cout<<endl;
cout <<"temps PERFORMSETOFSURF "<<t_perfsetofsurf <<"s dont : "<<endl;
cout <<"- SetofKPart "<<t_perfsetofkpart<<"s"<<endl;
cout <<"- SetofKGen "<< t_perfsetofkgen <<"s"<<endl;
cout <<"- MakeExtremities "<<t_makextremities<<"s"<<endl<<endl;
std::cout<<std::endl;
std::cout <<"temps PERFORMSETOFSURF "<<t_perfsetofsurf <<"s dont : "<<std::endl;
std::cout <<"- SetofKPart "<<t_perfsetofkpart<<"s"<<std::endl;
std::cout <<"- SetofKGen "<< t_perfsetofkgen <<"s"<<std::endl;
std::cout <<"- MakeExtremities "<<t_makextremities<<"s"<<std::endl<<std::endl;
cout <<"temps SETOFKGEN "<< t_perfsetofkgen<<"s dont : "<<endl;
cout<<"- PerformSurf "<<t_performsurf<<"s"<<endl;
cout<<"- starsol "<< t_startsol <<"s"<<endl<<endl;
std::cout <<"temps SETOFKGEN "<< t_perfsetofkgen<<"s dont : "<<std::endl;
std::cout<<"- PerformSurf "<<t_performsurf<<"s"<<std::endl;
std::cout<<"- starsol "<< t_startsol <<"s"<<std::endl<<std::endl;
cout<<"temps PERFORMSURF "<<t_performsurf<<"s dont : " << endl;
cout<<"- computedata "<<t_computedata<<"s"<<endl;
cout<<"- completedata "<<t_completedata<<"s"<<endl<<endl;
std::cout<<"temps PERFORMSURF "<<t_performsurf<<"s dont : " << std::endl;
std::cout<<"- computedata "<<t_computedata<<"s"<<std::endl;
std::cout<<"- completedata "<<t_completedata<<"s"<<std::endl<<std::endl;
cout<<"temps PERFORMFILLETVERTEX "<<t_perffilletonvertex <<"s dont : " << endl;
cout<<"- PerformOneCorner "<<t_perform1corner<<"s"<<endl;
cout<<"- PerformIntersectionAtEnd "<<t_performatend<<"s"<<endl;
cout<<"- PerformTwoCorner "<<t_perform2corner<<"s"<<endl;
cout<<"- PerformThreeCorner "<<t_perform3corner<<"s"<<endl;
cout<<"- PerformMoreThreeCorner "<<t_performmore3corner<<"s"<<endl<<endl;
std::cout<<"temps PERFORMFILLETVERTEX "<<t_perffilletonvertex <<"s dont : " << std::endl;
std::cout<<"- PerformOneCorner "<<t_perform1corner<<"s"<<std::endl;
std::cout<<"- PerformIntersectionAtEnd "<<t_performatend<<"s"<<std::endl;
std::cout<<"- PerformTwoCorner "<<t_perform2corner<<"s"<<std::endl;
std::cout<<"- PerformThreeCorner "<<t_perform3corner<<"s"<<std::endl;
std::cout<<"- PerformMoreThreeCorner "<<t_performmore3corner<<"s"<<std::endl<<std::endl;
cout<<"temps PerformOneCorner "<<t_perform1corner<<"s dont:"<<endl;
cout<<"- temps condition if (same) "<<t_same << "s "<<endl;
cout<<"- temps condition if (inter) "<<t_inter<<"s " <<endl;
cout<<"- temps condition if (same inter) "<<t_sameinter<<"s " <<endl<<endl;
std::cout<<"temps PerformOneCorner "<<t_perform1corner<<"s dont:"<<std::endl;
std::cout<<"- temps condition if (same) "<<t_same << "s "<<std::endl;
std::cout<<"- temps condition if (inter) "<<t_inter<<"s " <<std::endl;
std::cout<<"- temps condition if (same inter) "<<t_sameinter<<"s " <<std::endl<<std::endl;
cout<<"temps PerformTwocorner "<<t_perform2corner<<"s dont:"<<endl;
cout<<"- temps initialisation "<< t_t2cornerinit<<"s"<<endl;
cout<<"- temps PerformTwoCornerbyInter "<<t_perf2cornerbyinter<<"s"<<endl;
cout<<"- temps ChFiKPart_ComputeData "<<t_chfikpartcompdata <<"s"<<endl;
cout<<"- temps cheminement "<<t_cheminement<<"s"<<endl;
cout<<"- temps remplissage "<<t_remplissage<<"s"<<endl;
cout<<"- temps mise a jour stripes "<<t_t2cornerDS<<"s"<<endl<<endl;
std::cout<<"temps PerformTwocorner "<<t_perform2corner<<"s dont:"<<std::endl;
std::cout<<"- temps initialisation "<< t_t2cornerinit<<"s"<<std::endl;
std::cout<<"- temps PerformTwoCornerbyInter "<<t_perf2cornerbyinter<<"s"<<std::endl;
std::cout<<"- temps ChFiKPart_ComputeData "<<t_chfikpartcompdata <<"s"<<std::endl;
std::cout<<"- temps cheminement "<<t_cheminement<<"s"<<std::endl;
std::cout<<"- temps remplissage "<<t_remplissage<<"s"<<std::endl;
std::cout<<"- temps mise a jour stripes "<<t_t2cornerDS<<"s"<<std::endl<<std::endl;
cout<<" temps PerformThreecorner "<<t_perform3corner<<"s dont:"<<endl;
cout<<"- temps initialisation "<< t_t3cornerinit<<"s"<<endl;
cout<<"- temps cas spherique "<<t_spherique<<"s"<<endl;
cout<<"- temps cas torique "<<t_torique<<"s"<<endl;
cout<<"- temps notfilling "<<t_notfilling<<"s"<<endl;
cout<<"- temps filling "<<t_filling<<"s"<<endl;
cout<<"- temps mise a jour stripes "<<t_t3cornerDS<<"s"<<endl<<endl;
std::cout<<" temps PerformThreecorner "<<t_perform3corner<<"s dont:"<<std::endl;
std::cout<<"- temps initialisation "<< t_t3cornerinit<<"s"<<std::endl;
std::cout<<"- temps cas spherique "<<t_spherique<<"s"<<std::endl;
std::cout<<"- temps cas torique "<<t_torique<<"s"<<std::endl;
std::cout<<"- temps notfilling "<<t_notfilling<<"s"<<std::endl;
std::cout<<"- temps filling "<<t_filling<<"s"<<std::endl;
std::cout<<"- temps mise a jour stripes "<<t_t3cornerDS<<"s"<<std::endl<<std::endl;
cout<<"temps PerformMore3Corner "<<t_performmore3corner<<"s dont:"<<endl;
cout<<"-temps plate "<<t_plate << "s "<<endl;
cout<<"-temps approxplate "<<t_approxplate<<"s " <<endl;
cout<<"-temps batten "<< t_batten<<"s " <<endl<<endl;
std::cout<<"temps PerformMore3Corner "<<t_performmore3corner<<"s dont:"<<std::endl;
std::cout<<"-temps plate "<<t_plate << "s "<<std::endl;
std::cout<<"-temps approxplate "<<t_approxplate<<"s " <<std::endl;
std::cout<<"-temps batten "<< t_batten<<"s " <<std::endl<<std::endl;
cout <<"TEMPS DIVERS "<<endl;
cout<<"-temps ChFi3d_sameparameter "<<t_sameparam<<"s"<<endl<<endl;
std::cout <<"TEMPS DIVERS "<<std::endl;
std::cout<<"-temps ChFi3d_sameparameter "<<t_sameparam<<"s"<<std::endl<<std::endl;
}
#endif
//

View File

@@ -4273,7 +4273,7 @@ void ChFi3d_PerformElSpine(Handle(ChFiDS_HElSpine)& HES,
BSpline = C1;
}
else {
//cout << "Attention : Echec de C0BSplineToC1 !" << endl;
//std::cout << "Attention : Echec de C0BSplineToC1 !" << std::endl;
}
}
//

View File

@@ -734,7 +734,7 @@ void ChFi3d_Builder::PerformExtremity (const Handle(ChFiDS_Spine)& Spine)
}
else{
#ifdef OCCT_DEBUG
cout<<"top has more than 3 edges"<<endl;
std::cout<<"top has more than 3 edges"<<std::endl;
#endif
sommetpourri = Standard_True;
break;
@@ -767,7 +767,7 @@ void ChFi3d_Builder::PerformExtremity (const Handle(ChFiDS_Spine)& Spine)
if(nbf>3) {
Spine->SetFirstStatus(ChFiDS_BreakPoint);
#ifdef OCCT_DEBUG
cout<<"top has : "<<nbf<<" faces."<<endl;
std::cout<<"top has : "<<nbf<<" faces."<<std::endl;
#endif
}
nbf = 0, jf = 0;
@@ -784,7 +784,7 @@ void ChFi3d_Builder::PerformExtremity (const Handle(ChFiDS_Spine)& Spine)
if(nbf>3) {
Spine->SetLastStatus(ChFiDS_BreakPoint);
#ifdef OCCT_DEBUG
cout<<"top has : "<<nbf<<" faces."<<endl;
std::cout<<"top has : "<<nbf<<" faces."<<std::endl;
#endif
}
}

View File

@@ -1336,7 +1336,7 @@ Standard_Boolean ChFi3d_Builder::SearchFace
if (Pc.IsVertex()){
// attention it is necessary to analyze all faces that turn around of the vertex
#ifdef OCCT_DEBUG
cout<<"Commonpoint on vertex, the process hangs up"<<endl;
std::cout<<"Commonpoint on vertex, the process hangs up"<<std::endl;
#endif
if (Pc.HasVector()) { //General processing
TopoDS_Face Fbis;
@@ -1381,7 +1381,7 @@ Standard_Boolean ChFi3d_Builder::SearchFace
if (Spine.IsNull()) {
//La Spine peut etre nulle (ThreeCorner)
#ifdef OCCT_DEBUG
cout << "FindFace sur vertex avec spine nulle! QUEZAKO ?" << endl;
std::cout << "FindFace sur vertex avec spine nulle! QUEZAKO ?" << std::endl;
#endif
return Standard_False;
}
@@ -1601,7 +1601,7 @@ static void ChFi3d_MakeExtremities(Handle(ChFiDS_Stripe)& Stripe,
ChFi3d_SingularExtremity(Stripe, DStr, CV1.Vertex(), tol3d, tol2d);
}
# if CHFI3D_DEB
else { cout << "MakeExtremities : Singularity out of Vertex !!" << endl; }
else { std::cout << "MakeExtremities : Singularity out of Vertex !!" << std::endl; }
# endif
}
return;
@@ -1666,7 +1666,7 @@ static void ChFi3d_MakeExtremities(Handle(ChFiDS_Stripe)& Stripe,
ChFi3d_SingularExtremity(Stripe, DStr, cpdeb1.Vertex(), tol3d, tol2d);
}
# if CHFI3D_DEB
else { cout << "MakeExtremities : Singularity out of Vertex !!" << endl; }
else { std::cout << "MakeExtremities : Singularity out of Vertex !!" << std::endl; }
# endif
}
}
@@ -1728,7 +1728,7 @@ static void ChFi3d_MakeExtremities(Handle(ChFiDS_Stripe)& Stripe,
ChFi3d_SingularExtremity(Stripe, DStr, cpfin1.Vertex(), tol3d, tol2d);
}
# if CHFI3D_DEB
else { cout << "MakeExtremities : Singularity out of Vertex !!" << endl; }
else { std::cout << "MakeExtremities : Singularity out of Vertex !!" << std::endl; }
# endif
}
}
@@ -1752,7 +1752,7 @@ static void ChFi3d_Purge (Handle(ChFiDS_Stripe)& Stripe,
if (!SD->Vertex(isfirst,opp).IsOnArc() ||
SD->TwistOnS1() || SD->TwistOnS2() ) {
#ifdef OCCT_DEBUG
cout<<"ChFi3d_Purge : No output on extension."<<endl;
std::cout<<"ChFi3d_Purge : No output on extension."<<std::endl;
#endif
ChFiDS_SequenceOfSurfData& Seq =
Stripe->ChangeSetOfSurfData()->ChangeSequence();
@@ -2421,12 +2421,12 @@ void ChFi3d_Builder::PerformSetOfKPart(Handle(ChFiDS_Stripe)& Stripe,
if(!ChFiKPart_ComputeData::Compute(DStr,SD,HS1,HS2,Or1,Or2,Spine,iedge)){
#ifdef OCCT_DEBUG
cout<<"failed calculation KPart"<<endl;
std::cout<<"failed calculation KPart"<<std::endl;
#endif
}
else if(!SplitKPart(SD,LSD,Spine,iedge,HS1,It1,HS2,It2,intf,intl)){
#ifdef OCCT_DEBUG
cout<<"failed calculation KPart"<<endl;
std::cout<<"failed calculation KPart"<<std::endl;
#endif
LSD.Clear();
}
@@ -2991,7 +2991,7 @@ void ChFi3d_Builder::PerformSetOfKGen(Handle(ChFiDS_Stripe)& Stripe,
else if(IF < IL){
TColStd_Array1OfReal wv(IF,IL - 1);
#ifdef OCCT_DEBUG
cout<<"length of the trajectory : "<<(WL-WF)<<endl;
std::cout<<"length of the trajectory : "<<(WL-WF)<<std::endl;
#endif
for(i = IF; i < IL; i++){
Standard_Integer iloc = i;
@@ -3002,7 +3002,7 @@ void ChFi3d_Builder::PerformSetOfKGen(Handle(ChFiDS_Stripe)& Stripe,
#ifdef OCCT_DEBUG
gp_Pnt pelsapp = curels.Value(wi);
Standard_Real distinit = pv.Distance(pelsapp);
cout<<"distance psp/papp : "<<distinit<<endl;
std::cout<<"distance psp/papp : "<<distinit<<std::endl;
#endif
Extrema_LocateExtPC ext(pv,curels,wi,1.e-8);
wv(i) = wi;
@@ -3011,7 +3011,7 @@ void ChFi3d_Builder::PerformSetOfKGen(Handle(ChFiDS_Stripe)& Stripe,
}
else {
#ifdef OCCT_DEBUG
cout<<"fail of projection vertex ElSpine!!!"<<endl;
std::cout<<"fail of projection vertex ElSpine!!!"<<std::endl;
#endif
}
}

View File

@@ -283,7 +283,7 @@ static void CompParam(Geom2dAdaptor_Curve Carc,
else {
//(2) Intersection
#ifdef OCCT_DEBUG
cout<< "CompParam : bad intersection parameters"<<endl;
std::cout<< "CompParam : bad intersection parameters"<<std::endl;
#endif
IntRes2d_IntersectionPoint int2d;
Geom2dInt_GInter Intersection;
@@ -298,7 +298,7 @@ static void CompParam(Geom2dAdaptor_Curve Carc,
nbseg = Intersection.NbSegments();
if ( nbseg > 0 ){
#ifdef OCCT_DEBUG
cout<< "segments of intersection on the restrictions"<<endl;
std::cout<< "segments of intersection on the restrictions"<<std::endl;
#endif
}
nbpt = Intersection.NbPoints();
@@ -320,7 +320,7 @@ static void CompParam(Geom2dAdaptor_Curve Carc,
if(!found){
// (3) Projection...
#ifdef OCCT_DEBUG
cout<<"CompParam : failed intersection PC, projection is created."<<endl;
std::cout<<"CompParam : failed intersection PC, projection is created."<<std::endl;
#endif
parc = prefarc;
Geom2dAPI_ProjectPointOnCurve projector(point,Ctg);
@@ -330,7 +330,7 @@ static void CompParam(Geom2dAdaptor_Curve Carc,
// at the end of spine...
ptg = preftg;
#ifdef OCCT_DEBUG
cout<<"CompParam : failed proj p2d/c2d, the extremity is taken!" <<endl;
std::cout<<"CompParam : failed proj p2d/c2d, the extremity is taken!" <<std::endl;
#endif
}
else {
@@ -551,12 +551,12 @@ Standard_Boolean ChFi3d_Builder::CompleteData
myConti, Degmax, Segmax);
if (!approx.IsDone()) {
#ifdef OCCT_DEBUG
cout << "Approximation non faite !!!" << endl;
std::cout << "Approximation non faite !!!" << std::endl;
#endif
return Standard_False;
}
#ifdef OCCT_DEBUG
approx.Dump(cout);
approx.Dump(std::cout);
#endif
return StoreData( Data, approx, lin, S1, S2, Or1, Gd1, Gd2, Gf1, Gf2, Reversed);
}
@@ -587,12 +587,12 @@ Standard_Boolean ChFi3d_Builder::CompleteData
myConti);
if (!approx.IsDone()) {
#ifdef OCCT_DEBUG
cout << "Approximation is not done!" << endl;
std::cout << "Approximation is not done!" << std::endl;
#endif
return Standard_False;
}
#ifdef OCCT_DEBUG
approx.Dump(cout);
approx.Dump(std::cout);
#endif
return StoreData(Data,approx,lin,S1,S2,Or,0,0,0,0,Reversed);
@@ -624,12 +624,12 @@ Standard_Boolean ChFi3d_Builder::CompleteData
myConti);
if (!approx.IsDone()) {
#ifdef OCCT_DEBUG
cout << "Approximation non faite !!!" << endl;
std::cout << "Approximation non faite !!!" << std::endl;
#endif
return Standard_False;
}
#ifdef OCCT_DEBUG
approx.Dump(cout);
approx.Dump(std::cout);
#endif
return StoreData(Data,approx,lin,S1,S2,Or,0,0,0,0);
@@ -778,7 +778,7 @@ Standard_Boolean ChFi3d_Builder::StoreData(Handle(ChFiDS_SurfData)& Data,
if(!ChFi3d_CheckSameParameter(checkcurve,PCurveOnFace,S1,tolC1,tolcheck)){
#ifdef OCCT_DEBUG
cout<<"aaproximate tolerance under-valued : "<<tolC1<<" for "<<tolcheck<<endl;
std::cout<<"aaproximate tolerance under-valued : "<<tolC1<<" for "<<tolcheck<<std::endl;
#endif
tolC1 = tolcheck;
}
@@ -831,7 +831,7 @@ Standard_Boolean ChFi3d_Builder::StoreData(Handle(ChFiDS_SurfData)& Data,
chc.Load(Crv3d2,par1,par2);
if(!ChFi3d_CheckSameParameter(checkcurve,PCurveOnFace,S2,tolC2,tolcheck)){
#ifdef OCCT_DEBUG
cout<<"approximate tolerance under-evaluated : "<<tolC2<<" for "<<tolcheck<<endl;
std::cout<<"approximate tolerance under-evaluated : "<<tolC2<<" for "<<tolcheck<<std::endl;
#endif
tolC2 = tolcheck;
}
@@ -1011,7 +1011,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
tolesp,TolGuide,RecRst,RecP,RecS,
NewFirst,ParSol)){
#ifdef OCCT_DEBUG
cout<<"ChFi3d_Builder::ComputeData : calculation fail first section"<<endl;
std::cout<<"ChFi3d_Builder::ComputeData : calculation fail first section"<<std::endl;
#endif
return Standard_False;
}
@@ -1026,7 +1026,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
if (!TheWalk.IsDone()) {
#ifdef OCCT_DEBUG
cout << "Path not created" << endl;
std::cout << "Path not created" << std::endl;
#endif
return Standard_False;
}
@@ -1034,7 +1034,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
if (reverse) {
if (!TheWalk.Complete(Func,FInv,FInvP,FInvC,SpLast)) {
#ifdef OCCT_DEBUG
cout << "Not completed" << endl;
std::cout << "Not completed" << std::endl;
#endif
}
}
@@ -1045,24 +1045,24 @@ Standard_Boolean ChFi3d_Builder::ComputeData
if (Nbpnt <= 1 && again == 0) {
again++;
#ifdef OCCT_DEBUG
cout <<"one point of the path MS/50 is attempted."<<endl;
std::cout <<"one point of the path MS/50 is attempted."<<std::endl;
#endif
MS = MS/50.; Target = Targetsov;
}
else if (Nbpnt<=nbptmin && again == 0) {
again++;
#ifdef OCCT_DEBUG
cout <<"Number of points is too small, the step is reduced"<<endl;
std::cout <<"Number of points is too small, the step is reduced"<<std::endl;
#endif
Standard_Real u1 = Lin->Point(1).Parameter();
Standard_Real u2 = Lin->Point(Nbpnt).Parameter();
MS = (u2-u1)/(nbptmin+1.0);
// cout << " MS : " << MS << " u1 : " << u1 << " u2 : " << u2 << " nbptmin : " << nbptmin << endl;
// std::cout << " MS : " << MS << " u1 : " << u1 << " u2 : " << u2 << " nbptmin : " << nbptmin << std::endl;
Target = Targetsov;
}
else if(Nbpnt<=nbptmin){
#ifdef OCCT_DEBUG
cout <<"Number of points is still too small, quit"<<endl;
std::cout <<"Number of points is still too small, quit"<<std::endl;
#endif
return Standard_False;
}
@@ -1143,7 +1143,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
tolesp, TolGuide, RecRst1, RecP1, RecRst2, RecP2,
NewFirst, ParSol)){
#ifdef OCCT_DEBUG
cout<<"ChFi3d_Builder::ComputeData : fail calculation first section"<<endl;
std::cout<<"ChFi3d_Builder::ComputeData : fail calculation first section"<<std::endl;
#endif
return Standard_False;
}
@@ -1158,7 +1158,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
if (!TheWalk.IsDone()) {
#ifdef OCCT_DEBUG
cout << "Path not done" << endl;
std::cout << "Path not done" << std::endl;
#endif
return Standard_False;
}
@@ -1166,7 +1166,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
if (reverse) {
if (!TheWalk.Complete(Func, FInv1, FInvP1, FInv2, FInvP2, SpLast)) {
#ifdef OCCT_DEBUG
cout << "Not completed" << endl;
std::cout << "Not completed" << std::endl;
#endif
}
}
@@ -1177,14 +1177,14 @@ Standard_Boolean ChFi3d_Builder::ComputeData
if (Nbpnt <= 1 && again == 0) {
again++;
#ifdef OCCT_DEBUG
cout <<"one point of path MS/50 is attempted."<<endl;
std::cout <<"one point of path MS/50 is attempted."<<std::endl;
#endif
MS = MS/50.; Target = Targetsov;
}
else if (Nbpnt<=nbptmin && again == 0) {
again++;
#ifdef OCCT_DEBUG
cout <<"Number of points is too small, the step is reduced"<<endl;
std::cout <<"Number of points is too small, the step is reduced"<<std::endl;
#endif
Standard_Real u1 = Lin->Point(1).Parameter();
Standard_Real u2 = Lin->Point(Nbpnt).Parameter();
@@ -1193,7 +1193,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
}
else if(Nbpnt<=nbptmin){
#ifdef OCCT_DEBUG
cout <<"Number of points is still too small, quit"<<endl;
std::cout <<"Number of points is still too small, quit"<<std::endl;
#endif
return Standard_False;
}
@@ -1274,7 +1274,7 @@ Standard_Boolean ChFi3d_Builder::SimulData
NewFirst,ParSol)){
#ifdef OCCT_DEBUG
cout<<"ChFi3d_Builder::SimulData : fail calculate first section"<<endl;
std::cout<<"ChFi3d_Builder::SimulData : fail calculate first section"<<std::endl;
#endif
return Standard_False;
}
@@ -1288,14 +1288,14 @@ Standard_Boolean ChFi3d_Builder::SimulData
MS,TolGuide,ParSol,tolesp,Fleche,Appro);
if (!TheWalk.IsDone()) {
#ifdef OCCT_DEBUG
cout << "Path not done" << endl;
std::cout << "Path not done" << std::endl;
#endif
return Standard_False;
}
if (reverse) {
if (!TheWalk.Complete(Func,FInv,FInvP,FInvC,SpLast)) {
#ifdef OCCT_DEBUG
cout << "Not completed" << endl;
std::cout << "Not completed" << std::endl;
#endif
}
}
@@ -1304,14 +1304,14 @@ Standard_Boolean ChFi3d_Builder::SimulData
if (Nbpnt <= 1 && again == 0) {
again++;
#ifdef OCCT_DEBUG
cout <<"one point of path MS/50 is attempted."<<endl;
std::cout <<"one point of path MS/50 is attempted."<<std::endl;
#endif
MS = MS/50.; Target = Targetsov;
}
else if (Nbpnt <= NbSecMin && again == 0) {
again++;
#ifdef OCCT_DEBUG
cout <<"Number of points is too small, the step is reduced"<<endl;
std::cout <<"Number of points is too small, the step is reduced"<<std::endl;
#endif
Standard_Real u1 = Lin->Point(1).Parameter();
Standard_Real u2 = Lin->Point(Nbpnt).Parameter();
@@ -1320,7 +1320,7 @@ Standard_Boolean ChFi3d_Builder::SimulData
}
else if(Nbpnt<=NbSecMin){
#ifdef OCCT_DEBUG
cout <<"Number of points is still too small, quit"<<endl;
std::cout <<"Number of points is still too small, quit"<<std::endl;
#endif
return Standard_False;
}
@@ -1400,7 +1400,7 @@ Standard_Boolean ChFi3d_Builder::SimulData
NewFirst,ParSol)){
#ifdef OCCT_DEBUG
cout<<"ChFi3d_Builder::SimulData : calculation fail first section"<<endl;
std::cout<<"ChFi3d_Builder::SimulData : calculation fail first section"<<std::endl;
#endif
return Standard_False;
}
@@ -1414,14 +1414,14 @@ Standard_Boolean ChFi3d_Builder::SimulData
MS, TolGuide, ParSol, tolesp, Fleche, Appro);
if (!TheWalk.IsDone()) {
#ifdef OCCT_DEBUG
cout << "Path not created" << endl;
std::cout << "Path not created" << std::endl;
#endif
return Standard_False;
}
if (reverse) {
if (!TheWalk.Complete(Func, FInv1, FInvP1, FInv2, FInvP2, SpLast)) {
#ifdef OCCT_DEBUG
cout << "Not completed" << endl;
std::cout << "Not completed" << std::endl;
#endif
}
}
@@ -1430,14 +1430,14 @@ Standard_Boolean ChFi3d_Builder::SimulData
if (Nbpnt <= 1 && again == 0) {
again++;
#ifdef OCCT_DEBUG
cout <<"only one point of path MS/50 is attempted."<<endl;
std::cout <<"only one point of path MS/50 is attempted."<<std::endl;
#endif
MS = MS/50.; Target = Targetsov;
}
else if (Nbpnt <= NbSecMin && again == 0) {
again++;
#ifdef OCCT_DEBUG
cout <<"Number of points is too small, the step is reduced"<<endl;
std::cout <<"Number of points is too small, the step is reduced"<<std::endl;
#endif
Standard_Real u1 = Lin->Point(1).Parameter();
Standard_Real u2 = Lin->Point(Nbpnt).Parameter();
@@ -1446,7 +1446,7 @@ Standard_Boolean ChFi3d_Builder::SimulData
}
else if(Nbpnt<=NbSecMin){
#ifdef OCCT_DEBUG
cout <<"Number of points is still too small, quit"<<endl;
std::cout <<"Number of points is still too small, quit"<<std::endl;
#endif
return Standard_False;
}
@@ -1611,7 +1611,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
tolesp,TolGuide,RecOnS1,RecOnS2,
NewFirst,ParSol)){
#ifdef OCCT_DEBUG
cout<<"ChFi3d_Builder::ComputeData : calculation fail first section"<<endl;
std::cout<<"ChFi3d_Builder::ComputeData : calculation fail first section"<<std::endl;
#endif
return Standard_False;
}
@@ -1644,7 +1644,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
ParSol,TolEsp,Fleche,Appro);
if (!TheWalk.IsDone()) {
#ifdef OCCT_DEBUG
cout << "Path is not created" << endl;
std::cout << "Path is not created" << std::endl;
#endif
return Standard_False;
}
@@ -1666,7 +1666,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
if (Inside) complmnt = TheWalk.Complete(Func,FInv,SpLast);
if(!complmnt){
#ifdef OCCT_DEBUG
cout << "Not completed" << endl;
std::cout << "Not completed" << std::endl;
#endif
return Standard_False;
}
@@ -1677,7 +1677,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
Nbpnt = Lin->NbPoints();
if (Nbpnt == 0){
#ifdef OCCT_DEBUG
cout <<"0 point of path, quit."<<endl;
std::cout <<"0 point of path, quit."<<std::endl;
#endif
return Standard_False;
}
@@ -1702,7 +1702,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
//satisfactory maximum step. If it already done, quit.
if(tchernobyl){
#ifdef OCCT_DEBUG
cout <<"If it drags without control, quit."<<endl;
std::cout <<"If it drags without control, quit."<<std::endl;
#endif
return Standard_False;
}
@@ -1710,14 +1710,14 @@ Standard_Boolean ChFi3d_Builder::ComputeData
TheWalk.Check(0);
if (Nbpnt == 1){
#ifdef OCCT_DEBUG
cout <<"only one point of path MS/100 is attempted"<<endl;
cout <<"and the controls are extended."<<endl;
std::cout <<"only one point of path MS/100 is attempted"<<std::endl;
std::cout <<"and the controls are extended."<<std::endl;
#endif
MS *= 0.01;
}
else{
#ifdef OCCT_DEBUG
cout <<"It drags, the controls are extended."<<endl;
std::cout <<"It drags, the controls are extended."<<std::endl;
#endif
MS = (lpointpar-fpointpar)/Nbpnt; //EvalStep(Lin);
}
@@ -1725,7 +1725,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
else if (Nbpnt < nbptmin){
if(again == 0){
#ifdef OCCT_DEBUG
cout <<"Number of points is too small, the step is reduced"<<endl;
std::cout <<"Number of points is too small, the step is reduced"<<std::endl;
#endif
u1sov = fpointpar;
u2sov = lpointpar;
@@ -1735,13 +1735,13 @@ Standard_Boolean ChFi3d_Builder::ComputeData
if(Abs(fpointpar-u1sov)>=TolGuide ||
Abs(lpointpar-u2sov)>=TolGuide){
#ifdef OCCT_DEBUG
cout <<"Number of points is still too small, the step is reduced"<<endl;
std::cout <<"Number of points is still too small, the step is reduced"<<std::endl;
#endif
MS = (lpointpar - fpointpar) * factor;
}
else{
#ifdef OCCT_DEBUG
cout <<"Number of points is still too small, quit"<<endl;
std::cout <<"Number of points is still too small, quit"<<std::endl;
#endif
return Standard_False;
}
@@ -1756,13 +1756,13 @@ Standard_Boolean ChFi3d_Builder::ComputeData
if(TheWalk.TwistOnS1()){
Data->TwistOnS1(Standard_True);
#ifdef OCCT_DEBUG
cout<<"Path completed, but TWIST on S1"<<endl;
std::cout<<"Path completed, but TWIST on S1"<<std::endl;
#endif
}
if(TheWalk.TwistOnS2()){
Data->TwistOnS2(Standard_True);
#ifdef OCCT_DEBUG
cout<<"Parh completed, but TWIST on S2"<<endl;
std::cout<<"Parh completed, but TWIST on S2"<<std::endl;
#endif
}
@@ -2169,7 +2169,7 @@ Standard_Boolean ChFi3d_Builder::SimulData
tolesp,TolGuide,RecOnS1,RecOnS2,
NewFirst,ParSol)){
#ifdef OCCT_DEBUG
cout<<"ChFi3d_Builder::SimulData : calculation fail first section"<<endl;
std::cout<<"ChFi3d_Builder::SimulData : calculation fail first section"<<std::endl;
#endif
return Standard_False;
}
@@ -2192,7 +2192,7 @@ Standard_Boolean ChFi3d_Builder::SimulData
if (!TheWalk.IsDone()) {
#ifdef OCCT_DEBUG
cout << "Path not created" << endl;
std::cout << "Path not created" << std::endl;
#endif
return Standard_False;
}
@@ -2213,7 +2213,7 @@ Standard_Boolean ChFi3d_Builder::SimulData
if (Inside) complmnt = TheWalk.Complete(Func,FInv,SpLast);
if(!complmnt){
#ifdef OCCT_DEBUG
cout << "Not completed" << endl;
std::cout << "Not completed" << std::endl;
#endif
return Standard_False;
}
@@ -2222,14 +2222,14 @@ Standard_Boolean ChFi3d_Builder::SimulData
Standard_Real factor = 1./(NbSecMin + 1);
if (Nbpnt == 0){
#ifdef OCCT_DEBUG
cout <<"0 point of path, quit."<<endl;
std::cout <<"0 point of path, quit."<<std::endl;
#endif
return Standard_False;
}
else if (Nbpnt == 1 && again == 0) {
again++;
#ifdef OCCT_DEBUG
cout <<"only one point of path, MS/100 is attempted."<<endl;
std::cout <<"only one point of path, MS/100 is attempted."<<std::endl;
#endif
MS *= 0.01; Target = Targetsov;
u1sov = u2sov = Lin->Point(1).Parameter();
@@ -2237,7 +2237,7 @@ Standard_Boolean ChFi3d_Builder::SimulData
else if (Nbpnt< NbSecMin && again == 0) {
again++;
#ifdef OCCT_DEBUG
cout <<"Number of points is too small, the step is reduced"<<endl;
std::cout <<"Number of points is too small, the step is reduced"<<std::endl;
#endif
Standard_Real u1 = u1sov = Lin->Point(1).Parameter();
Standard_Real u2 = u2sov = Lin->Point(Nbpnt).Parameter();
@@ -2250,21 +2250,21 @@ Standard_Boolean ChFi3d_Builder::SimulData
if(Abs(u1-u1sov)>=TolGuide || Abs(u2-u2sov)>=TolGuide){
again++;
#ifdef OCCT_DEBUG
cout <<"Number of points is still too small, the step is reduced"<<endl;
std::cout <<"Number of points is still too small, the step is reduced"<<std::endl;
#endif
MS /= 100;
Target = Targetsov;
}
else{
#ifdef OCCT_DEBUG
cout <<"Number of points is still too small, quit"<<endl;
std::cout <<"Number of points is still too small, quit"<<std::endl;
#endif
return Standard_False;
}
}
else if(Nbpnt < NbSecMin){
#ifdef OCCT_DEBUG
cout <<"Number of points is still too small, quit"<<endl;
std::cout <<"Number of points is still too small, quit"<<std::endl;
#endif
return Standard_False;
}

View File

@@ -1729,7 +1729,7 @@ void ChFi3d_Builder::PerformIntersectionAtEnd(const Standard_Integer Index)
}
#ifdef OCCT_DEBUG
else {
cout<<"erreur"<<endl;
std::cout<<"erreur"<<std::endl;
}
#endif
trafil1 = TopAbs::Compose(trafil1,Fd->Orientation());
@@ -1737,7 +1737,7 @@ void ChFi3d_Builder::PerformIntersectionAtEnd(const Standard_Integer Index)
trafil1 = TopAbs::Compose(TopAbs::Reverse(Fi1.Transition()),trafil1);
}
#ifdef OCCT_DEBUG
else cout<<"erreur"<<endl;
else std::cout<<"erreur"<<std::endl;
#endif
// eap, Apr 22 2002, occ 293
// Fi1.PCurveOnFace()->D0(Fi1.LastParameter(),p2d);
@@ -3631,7 +3631,7 @@ Standard_Boolean ChFi3d_Builder::FindFace(const TopoDS_Vertex& V,
{
if (P1.IsVertex() || P2.IsVertex()) {
#ifdef OCCT_DEBUG
cout<<"change of face on vertex"<<endl;
std::cout<<"change of face on vertex"<<std::endl;
#endif
}
if (!(P1.IsOnArc() && P2.IsOnArc())) {
@@ -3658,7 +3658,7 @@ Standard_Boolean ChFi3d_Builder::FindFace(const TopoDS_Vertex& V,
}
}
if(!ContainsV){
cout<<"FindFace : the extremity of the spine is not in the end face"<<endl;
std::cout<<"FindFace : the extremity of the spine is not in the end face"<<std::endl;
}
#else
(void)V; // avoid compiler warning on unused variable

View File

@@ -193,7 +193,7 @@ Standard_Boolean ChFi3d_Builder::PerformTwoCornerbyInter(const Standard_Integer
IFaCo1,IFaCo2,Okvisavis,Vtx,Standard_True);
if (!Okvisavis) {
#ifdef OCCT_DEBUG
cout<<"TwoCorner : pas de face commune"<<endl;
std::cout<<"TwoCorner : pas de face commune"<<std::endl;
#endif
done=Standard_False;
return done;
@@ -208,14 +208,14 @@ Standard_Boolean ChFi3d_Builder::PerformTwoCornerbyInter(const Standard_Integer
if (!Okvisavis) {
#ifdef OCCT_DEBUG
cout<<"TwoCorner : no common face"<<endl;
std::cout<<"TwoCorner : no common face"<<std::endl;
#endif
done=Standard_False;
return done;
}
if (!OkinterCC) {
#ifdef OCCT_DEBUG
cout<<"biseau : failed intersection of tangency lines on common face"<<endl;
std::cout<<"biseau : failed intersection of tangency lines on common face"<<std::endl;
#endif
done=Standard_False;
return done;
@@ -230,7 +230,7 @@ Standard_Boolean ChFi3d_Builder::PerformTwoCornerbyInter(const Standard_Integer
if (!CP1.IsOnArc() || !CP2.IsOnArc()) {
#ifdef OCCT_DEBUG
cout<<"fail 1 of 2 fillets are not on arc"<<endl;
std::cout<<"fail 1 of 2 fillets are not on arc"<<std::endl;
#endif
done=Standard_False;
return done;
@@ -238,7 +238,7 @@ Standard_Boolean ChFi3d_Builder::PerformTwoCornerbyInter(const Standard_Integer
if ( ! CP1.Arc().IsSame( CP2.Arc()) ) {
// look like OnSame + OnDiff case (eap, Arp 9 2002, occ266)
#ifdef OCCT_DEBUG
cout<<"PerformTwoCornerbyInter(): fillets are not on the same arc"<<endl;
std::cout<<"PerformTwoCornerbyInter(): fillets are not on the same arc"<<std::endl;
#endif
done = Standard_True;
PerformMoreThreeCorner(Index, 2);
@@ -282,7 +282,7 @@ Standard_Boolean ChFi3d_Builder::PerformTwoCornerbyInter(const Standard_Integer
}
if(!ok1 || !ok2){
#ifdef OCCT_DEBUG
cout<<"fail one of surfaces has no common base face with the pivot edge"<<endl;
std::cout<<"fail one of surfaces has no common base face with the pivot edge"<<std::endl;
#endif
done=Standard_False;
return done;
@@ -329,7 +329,7 @@ Standard_Boolean ChFi3d_Builder::PerformTwoCornerbyInter(const Standard_Integer
!ChFi3d_ComputeCurves(HS1,HS2,Pardeb,Parfin,Gc,
PGc1,PGc2,tolesp,tol2d,tolreached)) {
#ifdef OCCT_DEBUG
cout<<"failed to calculate bevel error interSS"<<endl;
std::cout<<"failed to calculate bevel error interSS"<<std::endl;
#endif
done=Standard_False;
return done;
@@ -338,7 +338,7 @@ Standard_Boolean ChFi3d_Builder::PerformTwoCornerbyInter(const Standard_Integer
!ChFi3d_ComputeCurves(HS1,HS2,Parfin,Pardeb,Gc,
PGc1,PGc2,tolesp,tol2d,tolreached)) {
#ifdef OCCT_DEBUG
cout<<"failed to calculate bevel error interSS"<<endl;
std::cout<<"failed to calculate bevel error interSS"<<std::endl;
#endif
done=Standard_False;
return done;
@@ -474,7 +474,7 @@ Standard_Boolean ChFi3d_Builder::PerformTwoCornerbyInter(const Standard_Integer
}
if(!ChFi3d_IntCS(BigHS,Hctg,UVi,wi)){
#ifdef OCCT_DEBUG
cout<<"bevel : failed inter C S"<<endl;
std::cout<<"bevel : failed inter C S"<<std::endl;
#endif
done=Standard_False;
return done;
@@ -488,7 +488,7 @@ Standard_Boolean ChFi3d_Builder::PerformTwoCornerbyInter(const Standard_Integer
if (!ChFi3d_ComputeCurves(SmaHS,BigHS,Pardeb,Parfin,Gc,
PGc1,PGc2,tolesp,tol2d,tolreached)) {
#ifdef OCCT_DEBUG
cout<<"failed to calculate bevel failed interSS"<<endl;
std::cout<<"failed to calculate bevel failed interSS"<<std::endl;
#endif
done=Standard_False;
return done;
@@ -577,7 +577,7 @@ Standard_Boolean ChFi3d_Builder::PerformTwoCornerbyInter(const Standard_Integer
Handle(Adaptor3d_HCurveOnSurface) Hconsf = new Adaptor3d_HCurveOnSurface(consf);
if(!ChFi3d_IntCS(BigHS,Hconsf,UVi,wi)) {
#ifdef OCCT_DEBUG
cout<<"bevel : failed inter C S"<<endl;
std::cout<<"bevel : failed inter C S"<<std::endl;
#endif
done=Standard_False;
return done;
@@ -610,7 +610,7 @@ Standard_Boolean ChFi3d_Builder::PerformTwoCornerbyInter(const Standard_Integer
if (!ChFi3d_ComputeCurves(HF,BigHS,Pardeb,Parfin,Gc,
PGc1,PGc2,tolesp,tol2d,tolreached)) {
#ifdef OCCT_DEBUG
cout<<"fail calculation bevel fail interSS"<<endl;
std::cout<<"fail calculation bevel fail interSS"<<std::endl;
#endif
done=Standard_False;
return done;

View File

@@ -548,8 +548,8 @@ static void CalculBatten (const Handle (GeomAdaptor_HSurface) ASurf,
Ok = Bat.Compute(Iana,25,1.e-2);
#ifdef OCCT_DEBUG
if (!Ok) {
cout<<"no batten :";
Bat.Dump(cout);
std::cout<<"no batten :";
Bat.Dump(std::cout);
}
#endif
if (Ok) {
@@ -1351,7 +1351,7 @@ void ChFi3d_Builder::PerformMoreThreeCorner(const Standard_Integer Jndex,
}
if ( isOnSameDiff ) {
#ifdef OCCT_DEBUG
cout << "OnSame + OnDiff, PerformMoreThreeCorner() calls PerformOneCorner()" << endl;
std::cout << "OnSame + OnDiff, PerformMoreThreeCorner() calls PerformOneCorner()" << std::endl;
#endif
PerformOneCorner (Jndex, Standard_True);
}
@@ -2061,7 +2061,7 @@ void ChFi3d_Builder::PerformMoreThreeCorner(const Standard_Integer Jndex,
jfp = 3 - jf.Value(ic);
Calcul_P2dOnSurf(CD.Value(ic),jfp,i.Value(ic,icmoins),p.Value(ic,icmoins),p2d1);
Calcul_P2dOnSurf(CD.Value(ic),jf.Value(ic),i.Value(ic,icplus),p.Value(ic,icplus),p2d2);
// if (i[ic][icplus]!= i[ic][icmoins]) cout<<"probleme surface"<<endl;
// if (i[ic][icplus]!= i[ic][icmoins]) std::cout<<"probleme surface"<<std::endl;
indice= SurfIndex(CD, ic, i.Value(ic,icplus), ChFiSURFACE);
Handle (GeomAdaptor_HSurface) Asurf =
new GeomAdaptor_HSurface(DStr.Surface(indice).Surface());

View File

@@ -289,17 +289,17 @@ static Standard_Real ParamOnSpine(const TopOpeBRepDS_DataStructure& DStr,
found = ChFi3d_InterPlaneEdge(plan,HE,Nl,First,tolc);
gp_Pnt point = CE.Value(Nl);
#ifdef OCCT_DEBUG
cout<<"******* ParamOnSpine() for edge "<<iedge<<endl;
cout<<Nl<<endl;
cout<<"point ped "<<point.X()<<" "<<point.Y()<<" "<<point.Z()<<endl;
std::cout<<"******* ParamOnSpine() for edge "<<iedge<<std::endl;
std::cout<<Nl<<std::endl;
std::cout<<"point ped "<<point.X()<<" "<<point.Y()<<" "<<point.Z()<<std::endl;
#endif
if(found) Nl = Spine->Absc(Nl,ii);
point = Spine->Value(Nl);
#ifdef OCCT_DEBUG
if (found) cout << "found by edge " << ii << " : ";
cout<<Nl<<endl;
cout<<"point psp "<<point.X()<<" "<<point.Y()<<" "<<point.Z()<<endl;
cout<<endl;
if (found) std::cout << "found by edge " << ii << " : ";
std::cout<<Nl<<std::endl;
std::cout<<"point psp "<<point.X()<<" "<<point.Y()<<" "<<point.Z()<<std::endl;
std::cout<<std::endl;
#endif
ii +=sens;
@@ -534,7 +534,7 @@ static Standard_Boolean Tri(const Geom2dHatch_Hatcher& H,
if (iSansFirst != 0) {
if (iSansLast == 0) {
#ifdef OCCT_DEBUG
cout<<"Parsing : Pb of Hatcher"<<endl;
std::cout<<"Parsing : Pb of Hatcher"<<std::endl;
#endif
return 0;
}
@@ -704,7 +704,7 @@ Standard_Boolean ChFi3d_Builder::SplitKPart
Nb1 = H1.NbDomains(iH1);
if(Nb1 == 0) {
#ifdef OCCT_DEBUG
cout<<"SplitKPart : tangency line out of the face"<<endl;
std::cout<<"SplitKPart : tangency line out of the face"<<std::endl;
#endif
return Standard_False;
}
@@ -730,7 +730,7 @@ Standard_Boolean ChFi3d_Builder::SplitKPart
Nb2 = H2.NbDomains(iH2);
if(Nb2 == 0) {
#ifdef OCCT_DEBUG
cout<<"SplitKPart : tangency line out of the face"<<endl;
std::cout<<"SplitKPart : tangency line out of the face"<<std::endl;
#endif
return Standard_False;
}
@@ -772,7 +772,7 @@ Standard_Boolean ChFi3d_Builder::SplitKPart
if (C1.IsNull() && C2.IsNull()) {
#ifdef OCCT_DEBUG
cout<<"SplitData : 2 zero lines hatching impossible"<<endl;
std::cout<<"SplitData : 2 zero lines hatching impossible"<<std::endl;
#endif
return Standard_False;
}
@@ -995,7 +995,7 @@ Standard_Boolean ChFi3d_Builder::SplitKPart
onS = 2;
#ifdef OCCT_DEBUG
if (threeE[0].IsSame(threeE[1]))
cout << "SplitKPart(), wrong corner vertex at switcher search" << endl;
std::cout << "SplitKPart(), wrong corner vertex at switcher search" << std::endl;
#endif
cntlFiOnS = 3 - onS;
}
@@ -1090,7 +1090,7 @@ Standard_Boolean ChFi3d_Builder::SplitKPart
onS = 2;
#ifdef OCCT_DEBUG
if (threeE[0].IsSame(threeE[1]))
cout << "SplitKPart(), wrong corner vertex at switcher search" << endl;
std::cout << "SplitKPart(), wrong corner vertex at switcher search" << std::endl;
#endif
cntlFiOnS = 3 - onS;
}

View File

@@ -605,11 +605,11 @@ void ChFi3d_ChBuilder::Simulate (const Standard_Integer IC)
#ifdef OCCT_DEBUG
if(ChFi3d_GettraceCHRON()){
simul.Stop();
cout<<"Total simulation time : ";
std::cout<<"Total simulation time : ";
simul.Show();
cout<<"Spine construction time : ";
std::cout<<"Spine construction time : ";
elspine.Show();
cout<<"and progression time : ";
std::cout<<"and progression time : ";
chemine.Show();
}
#endif
@@ -912,7 +912,7 @@ ChFi3d_ChBuilder::SimulSurf(Handle(ChFiDS_SurfData)& Data,
if (OffsetHGuide.IsNull())
{
cout<<endl<<"Construction of offset guide failed!"<<endl;
std::cout<<std::endl<<"Construction of offset guide failed!"<<std::endl;
//exception
}
pFunc.reset(new BRepBlend_ConstThroatWithPenetration(S1,S2,OffsetHGuide));
@@ -1297,7 +1297,7 @@ Standard_Boolean ChFi3d_ChBuilder::PerformFirstSection
if (OffsetHGuide.IsNull())
{
cout<<endl<<"Construction of offset guide failed!"<<endl;
std::cout<<std::endl<<"Construction of offset guide failed!"<<std::endl;
//exception
}
pFunc.reset(new BRepBlend_ConstThroatWithPenetration(S1,S2,OffsetHGuide));
@@ -1554,7 +1554,7 @@ ChFi3d_ChBuilder::PerformSurf(ChFiDS_SequenceOfSurfData& SeqData,
if (OffsetHGuide.IsNull())
{
cout<<endl<<"Construction of offset guide failed!"<<endl;
std::cout<<std::endl<<"Construction of offset guide failed!"<<std::endl;
//exception
}
pFunc.reset(new BRepBlend_ConstThroatWithPenetration(S1,S2,OffsetHGuide));

View File

@@ -551,7 +551,7 @@ void ChFi3d_ChBuilder::PerformThreeCorner(const Standard_Integer Jndex)
Standard_Integer nbl = inter.NbLines();
if (nbl > 1) {
#ifdef OCCT_DEBUG
cout<<"trop d'intersection entre les surfaces"<<endl;
std::cout<<"trop d'intersection entre les surfaces"<<std::endl;
#endif
}
else if (nbl == 1) {

View File

@@ -466,11 +466,11 @@ void ChFi3d_FilBuilder::Simulate (const Standard_Integer IC)
#ifdef OCCT_DEBUG
if(ChFi3d_GettraceCHRON()){
simul.Stop();
cout<<"Total simulation time : ";
std::cout<<"Total simulation time : ";
simul.Show();
cout<<"Spine construction time : ";
std::cout<<"Spine construction time : ";
elspine.Show();
cout<<"and process time : ";
std::cout<<"and process time : ";
chemine.Show();
}
#endif
@@ -1756,7 +1756,7 @@ void ChFi3d_FilBuilder::SplitSurf(ChFiDS_SequenceOfSurfData& SeqData,
}
else {
# if CHFI3D_DEB
cout << "Failed calculation of the minimum length" << endl;
std::cout << "Failed calculation of the minimum length" << std::endl;
# endif
}
}

View File

@@ -284,7 +284,7 @@ void ChFi3d_FilBuilder::PerformThreeCorner(const Standard_Integer Jndex)
pivot = SearchPivot(sens,p,tol2d);
if(pivot < 0){
#ifdef OCCT_DEBUG
cout<<"pivot not found, plate is called"<<endl;
std::cout<<"pivot not found, plate is called"<<std::endl;
#endif
PerformMoreThreeCorner(Jndex, 3);
return;
@@ -306,14 +306,14 @@ void ChFi3d_FilBuilder::PerformThreeCorner(const Standard_Integer Jndex)
ifacfin = CD[fin]->ChangeSetOfSurfData()->Value(i[fin][pivot])->Index(3-jf[fin][pivot]);
if(ifacfin != ifacdeb){
#ifdef OCCT_DEBUG
cout<<"several base faces, plate is called"<<endl;
std::cout<<"several base faces, plate is called"<<std::endl;
#endif
PerformMoreThreeCorner(Jndex, 3);
return;
}
if(i[pivot][deb] != i[pivot][fin]){
#ifdef OCCT_DEBUG
cout<<"load surfdata on the pivot, plate is called"<<endl;
std::cout<<"load surfdata on the pivot, plate is called"<<std::endl;
#endif
PerformMoreThreeCorner(Jndex, 3);
return;