{
Curve2d.Nullify(); // No continuous solution
#ifdef OCCT_DEBUG
- cout << "BuildPlateSurace :: No continuous projection" << endl;
+ std::cout << "BuildPlateSurace :: No continuous projection" << std::endl;
#endif
}
}
HProjector.Nullify(); // No continuous solution
#ifdef OCCT_DEBUG
- cout << "BuildPlateSurace :: No continuous projection" << endl;
+ std::cout << "BuildPlateSurace :: No continuous projection" << std::endl;
#endif
}
else
{
HProjector.Nullify(); // No continuous solution
#ifdef OCCT_DEBUG
- cout << "BuildPlateSurace :: No complete projection" << endl;
+ std::cout << "BuildPlateSurace :: No complete projection" << std::endl;
#endif
}
}
if ((NTLinCont + NTPntCont) == 0)
{
#ifdef OCCT_DEBUG
- cout << "WARNING : GeomPlate : The number of constraints is null." << endl;
+ std::cout << "WARNING : GeomPlate : The number of constraints is null." << std::endl;
#endif
return;
if (!CourbeJointive(myTol3d))
{// throw Standard_Failure("Curves are not joined");
#ifdef OCCT_DEBUG
- cout<<"WARNING : Courbes non jointives a "<<myTol3d<<" pres"<<endl;
+ std::cout<<"WARNING : Courbes non jointives a "<<myTol3d<<" pres"<<std::endl;
#endif
}
TrierTab(myInitOrder); // Reorder the table of transformations
{
#ifdef OCCT_DEBUG
if (Affich && NbBoucle) {
- cout<<"Resultats boucle"<< NbBoucle << endl;
- cout<<"DistMax="<<myG0Error<<endl;
+ std::cout<<"Resultats boucle"<< NbBoucle << std::endl;
+ std::cout<<"DistMax="<<myG0Error<<std::endl;
if (myG1Error!=0)
- cout<<"AngleMax="<<myG1Error<<endl;
+ std::cout<<"AngleMax="<<myG1Error<<std::endl;
if (myG2Error!=0)
- cout<<"CourbMax="<<myG2Error<<endl;
+ std::cout<<"CourbMax="<<myG2Error<<std::endl;
}
#endif
NbBoucle++;
if (!myPlate.IsDone())
{
#ifdef OCCT_DEBUG
- cout << "WARNING : GeomPlate : calculation of Plate failed" << endl;
+ std::cout << "WARNING : GeomPlate : calculation of Plate failed" << std::endl;
#endif
return;
}
if ((NbBoucle >= myNbIter)&&(!Fini))
{
#ifdef OCCT_DEBUG
- cout<<"Warning: objective was not reached"<<endl;
+ std::cout<<"Warning: objective was not reached"<<std::endl;
#endif
Fini = Standard_True;
}
if (!myPlate.IsDone())
{
#ifdef OCCT_DEBUG
- cout << "WARNING : GeomPlate : calculation of Plate failed" << endl;
+ std::cout << "WARNING : GeomPlate : calculation of Plate failed" << std::endl;
#endif
return;
}
} while (!Fini); // End loop for better surface
#ifdef OCCT_DEBUG
if (NTLinCont != 0)
- { cout<<"======== Global results ==========="<<endl;
- cout<<"DistMax="<<myG0Error<<endl;
+ { std::cout<<"======== Global results ==========="<<std::endl;
+ std::cout<<"DistMax="<<myG0Error<<std::endl;
if (myG1Error!=0)
- cout<<"AngleMax="<<myG1Error<<endl;
+ std::cout<<"AngleMax="<<myG1Error<<std::endl;
if (myG2Error!=0)
- cout<<"CourbMax="<<myG2Error<<endl;
+ std::cout<<"CourbMax="<<myG2Error<<std::endl;
}
Chrono.Stop();
Standard_Real Tps;
Chrono.Show(Tps);
- cout<<"*** END OF GEOMPLATE ***"<<endl;
- cout<<"Time of calculation : "<<Tps<<endl;
- cout<<"Number of loops : "<<NbBoucle<<endl;
+ std::cout<<"*** END OF GEOMPLATE ***"<<std::endl;
+ std::cout<<"Time of calculation : "<<Tps<<std::endl;
+ std::cout<<"Number of loops : "<<NbBoucle<<std::endl;
#endif
}
{
#ifdef OCCT_DEBUG
if (Seq2d.Length()!=4)
- cout<<"Number of points should be equal to 4 for Disc2dContour"<<endl;
+ std::cout<<"Number of points should be equal to 4 for Disc2dContour"<<std::endl;
#endif
// initialization
Seq2d.Clear();
{
#ifdef OCCT_DEBUG
if (Seq3d.Length()!=4)
- cout<<"nbp should be equal to 4 for Disc3dContour"<<endl;
+ std::cout<<"nbp should be equal to 4 for Disc3dContour"<<std::endl;
if (iordre!=0&&iordre!=1)
- cout<<"incorrect order for Disc3dContour"<<endl;
+ std::cout<<"incorrect order for Disc3dContour"<<std::endl;
#endif
// initialization
Seq3d.Clear();
if (!isHalfSpace)
{
#ifdef OCCT_DEBUG
- cout<<endl<<"Normals are not in half space"<<endl<<endl;
+ std::cout<<std::endl<<"Normals are not in half space"<<std::endl<<std::endl;
#endif
myIsLinear = Standard_False;
nopt = 2;
else if (!CourbeJoint || NTLinCont != myNbBounds)
{// throw Standard_Failure("Curves are not joined");
#ifdef OCCT_DEBUG
- cout << "WARNING : Curves are non-adjacent with tolerance " << myTol3d << endl;
+ std::cout << "WARNING : Curves are non-adjacent with tolerance " << myTol3d << std::endl;
#endif
nopt = 1;
}
if (!BAP.IsPlane())
{
#ifdef OCCT_DEBUG
- cout << "WARNING : GeomPlate : the initial surface is not a plane." << endl;
+ std::cout << "WARNING : GeomPlate : the initial surface is not a plane." << std::endl;
#endif
return;
}
#ifdef OCCT_DEBUG
if (! myIsLinear)
- cout <<"Metrics are too different :"<< Ratio<<endl;
+ std::cout <<"Metrics are too different :"<< Ratio<<std::endl;
#endif
// myIsLinear = Standard_True; // !!
} //comparing metrics of curves and projected curves
if (!myPlate.IsDone())
{
#ifdef OCCT_DEBUG
- cout << "WARNING : GeomPlate : calculation of Plate failed" << endl;
+ std::cout << "WARNING : GeomPlate : calculation of Plate failed" << std::endl;
#endif
return;
}
#ifdef OCCT_DEBUG
if (Affich> 1)
{
- cout << " Intersection "<< k << " entre " << i
- << " &" << j << endl;
- cout <<" Distance = "<< P1.Distance(P2) << endl;
+ std::cout << " Intersection "<< k << " entre " << i
+ << " &" << j << std::endl;
+ std::cout <<" Distance = "<< P1.Distance(P2) << std::endl;
}
#endif
if (P1.Distance( P2 ) < myTol3d)
A1= M_PI - A1;
if (Abs(Abs(A1)-M_PI)<myTolAng) Tol = 100000 * myTol3d;
#ifdef OCCT_DEBUG
- if (Affich) cout <<"Angle between curves "<<i<<","<<j
- <<" "<<Abs(Abs(A1)-M_PI)<<endl;
+ if (Affich) std::cout <<"Angle between curves "<<i<<","<<j
+ <<" "<<Abs(Abs(A1)-M_PI)<<std::endl;
#endif
coin = Ci.Resolution(Tol);
A1= M_PI - A1;
if (Abs(Abs(A1) - M_PI) < myTolAng) Tol = 100000 * myTol3d;
#ifdef OCCT_DEBUG
- if (Affich) cout <<"Angle entre Courbe "<<i<<","<<j
- <<" "<<Abs(Abs(A1)-M_PI)<<endl;
+ if (Affich) std::cout <<"Angle entre Courbe "<<i<<","<<j
+ <<" "<<Abs(Abs(A1)-M_PI)<<std::endl;
#endif
if (myLinCont->Value(i)->Order() == 1)
{
coin = Ci.Resolution(Tol);
coin *= Angle / myTolAng * 10.;
#ifdef OCCT_DEBUG
- cout<<endl<<"coin = "<<coin<<endl;
+ std::cout<<std::endl<<"coin = "<<coin<<std::endl;
#endif
Standard_Real Par1 = int2d.ParamOnFirst() - coin;
Standard_Real Par2 = int2d.ParamOnFirst() + coin;
coin = Cj.Resolution(Tol);
coin *= Angle / myTolAng * 10.;
#ifdef OCCT_DEBUG
- cout<<endl<<"coin = "<<coin<<endl;
+ std::cout<<std::endl<<"coin = "<<coin<<std::endl;
#endif
Standard_Real Par1 = int2d.ParamOnSecond() - coin;
Standard_Real Par2 = int2d.ParamOnSecond() + coin;
}
#ifdef OCCT_DEBUG
- cout << "Attention: Two points 3d have the same projection dist = " << Dist << endl;
+ std::cout << "Attention: Two points 3d have the same projection dist = " << Dist << std::endl;
#endif
#ifdef DRAW
if (Affich > 1)
#ifdef OCCT_DEBUG
if (Affich > 1) {
- cout << "Courbe : " << i << endl;
- cout << " NbPnt, NbPtInter, NbPtG1G1 :" << NbPnt_i << ", "
- << NbPtInter << ", " << NbPtG1G1 << endl;
+ std::cout << "Courbe : " << i << std::endl;
+ std::cout << " NbPnt, NbPtInter, NbPtG1G1 :" << NbPnt_i << ", "
+ << NbPtInter << ", " << NbPtG1G1 << std::endl;
}
#endif
for (Standard_Integer j=1; j<=NbPnt_i; j++)