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:
@@ -538,16 +538,16 @@ NbIntervals(const GeomAbs_Shape S) const
|
||||
myPath->Intervals(ICenter, GeomFillNextShape(S));
|
||||
myCurve1->Intervals(ICb1, S);
|
||||
myCurve2->Intervals(ICb2, S);
|
||||
/* cout << "Intervals : " << S << endl;
|
||||
cout << "-- Center-> " << endl;
|
||||
for (ii=1; ii<=ICenter.Length(); ii++) cout << " , "<< ICenter(ii);
|
||||
cout << endl; cout << endl;
|
||||
cout << "-- Cb1-> " << endl;
|
||||
for (ii=1; ii<=ICb1.Length(); ii++) cout << " , "<< ICb1(ii);
|
||||
cout << endl; cout << endl;
|
||||
cout << "-- Cb2-> " << endl;
|
||||
for (ii=1; ii<=ICb2.Length(); ii++) cout << " , "<< ICb1(ii);
|
||||
cout << endl; cout << endl;*/
|
||||
/* std::cout << "Intervals : " << S << std::endl;
|
||||
std::cout << "-- Center-> " << std::endl;
|
||||
for (ii=1; ii<=ICenter.Length(); ii++) std::cout << " , "<< ICenter(ii);
|
||||
std::cout << std::endl; std::cout << std::endl;
|
||||
std::cout << "-- Cb1-> " << std::endl;
|
||||
for (ii=1; ii<=ICb1.Length(); ii++) std::cout << " , "<< ICb1(ii);
|
||||
std::cout << std::endl; std::cout << std::endl;
|
||||
std::cout << "-- Cb2-> " << std::endl;
|
||||
for (ii=1; ii<=ICb2.Length(); ii++) std::cout << " , "<< ICb1(ii);
|
||||
std::cout << std::endl; std::cout << std::endl;*/
|
||||
|
||||
GeomFillFusInt(ICb1, ICb2, Inter);
|
||||
|
||||
|
@@ -129,12 +129,12 @@ GeomFill_ConstantBiNormal::GeomFill_ConstantBiNormal(const gp_Dir& BiNormal) : B
|
||||
cTangent = (Tangent_ - cTangent)/h;
|
||||
cNormal = (Normal_ - cNormal)/h;
|
||||
cBiNormal = (BiNormal_ - cBiNormal)/h;
|
||||
cout<<"DTangent = ("<<DTangent.X()<<", "<<DTangent.Y()<<", "<<DTangent.Z()<<")"<<endl;
|
||||
cout<<"CTangent = ("<<cTangent.X()<<", "<<cTangent.Y()<<", "<<cTangent.Z()<<")"<<endl;
|
||||
cout<<"DNormal = ("<<DNormal.X()<<", "<<DNormal.Y()<<", "<<DNormal.Z()<<")"<<endl;
|
||||
cout<<"CNormal = ("<<cNormal.X()<<", "<<cNormal.Y()<<", "<<cNormal.Z()<<")"<<endl;
|
||||
cout<<"DBiNormal = ("<<DBiNormal.X()<<", "<<DBiNormal.Y()<<", "<<DBiNormal.Z()<<")"<<endl;
|
||||
cout<<"CBiNormal = ("<<cBiNormal.X()<<", "<<cBiNormal.Y()<<", "<<cBiNormal.Z()<<")"<<endl;
|
||||
std::cout<<"DTangent = ("<<DTangent.X()<<", "<<DTangent.Y()<<", "<<DTangent.Z()<<")"<<std::endl;
|
||||
std::cout<<"CTangent = ("<<cTangent.X()<<", "<<cTangent.Y()<<", "<<cTangent.Z()<<")"<<std::endl;
|
||||
std::cout<<"DNormal = ("<<DNormal.X()<<", "<<DNormal.Y()<<", "<<DNormal.Z()<<")"<<std::endl;
|
||||
std::cout<<"CNormal = ("<<cNormal.X()<<", "<<cNormal.Y()<<", "<<cNormal.Z()<<")"<<std::endl;
|
||||
std::cout<<"DBiNormal = ("<<DBiNormal.X()<<", "<<DBiNormal.Y()<<", "<<DBiNormal.Z()<<")"<<std::endl;
|
||||
std::cout<<"CBiNormal = ("<<cBiNormal.X()<<", "<<cBiNormal.Y()<<", "<<cBiNormal.Z()<<")"<<std::endl;
|
||||
*/
|
||||
return Standard_True;
|
||||
}
|
||||
@@ -181,14 +181,14 @@ GeomFill_ConstantBiNormal::GeomFill_ConstantBiNormal(const gp_Dir& BiNormal) : B
|
||||
DNormal = BiNormal.Crossed(DTangent);
|
||||
D2Normal = BiNormal.Crossed(D2Tangent);
|
||||
}
|
||||
/* cout<<"Param = "<<Param<<endl;
|
||||
cout<<"Tangent = ("<<Tangent.X()<<", "<<Tangent.Y()<<", "<<Tangent.Z()<<")"<<endl;
|
||||
cout<<"DTangent = ("<<DTangent.X()<<", "<<DTangent.Y()<<", "<<DTangent.Z()<<")"<<endl;
|
||||
cout<<"D2Tangent = ("<<D2Tangent.X()<<", "<<D2Tangent.Y()<<", "<<D2Tangent.Z()<<")"<<endl;
|
||||
/* std::cout<<"Param = "<<Param<<std::endl;
|
||||
std::cout<<"Tangent = ("<<Tangent.X()<<", "<<Tangent.Y()<<", "<<Tangent.Z()<<")"<<std::endl;
|
||||
std::cout<<"DTangent = ("<<DTangent.X()<<", "<<DTangent.Y()<<", "<<DTangent.Z()<<")"<<std::endl;
|
||||
std::cout<<"D2Tangent = ("<<D2Tangent.X()<<", "<<D2Tangent.Y()<<", "<<D2Tangent.Z()<<")"<<std::endl;
|
||||
|
||||
cout<<"BiNormal = ("<<BiNormal.X()<<", "<<BiNormal.Y()<<", "<<BiNormal.Z()<<")"<<endl;
|
||||
cout<<"DBiNormal = ("<<DBiNormal.X()<<", "<<DBiNormal.Y()<<", "<<DBiNormal.Z()<<")"<<endl;
|
||||
cout<<"D2BiNormal = ("<<D2BiNormal.X()<<", "<<D2BiNormal.Y()<<", "<<D2BiNormal.Z()<<")"<<endl;
|
||||
std::cout<<"BiNormal = ("<<BiNormal.X()<<", "<<BiNormal.Y()<<", "<<BiNormal.Z()<<")"<<std::endl;
|
||||
std::cout<<"DBiNormal = ("<<DBiNormal.X()<<", "<<DBiNormal.Y()<<", "<<DBiNormal.Z()<<")"<<std::endl;
|
||||
std::cout<<"D2BiNormal = ("<<D2BiNormal.X()<<", "<<D2BiNormal.Y()<<", "<<D2BiNormal.Z()<<")"<<std::endl;
|
||||
*/
|
||||
return Standard_True;
|
||||
}
|
||||
|
@@ -223,7 +223,7 @@ static void coonscnd(const Standard_Integer nb,
|
||||
Standard_Real killfactor = tolang/scal1;
|
||||
stat[i].DoKill(killfactor);
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"pb coons cnd coin : "<<i<<" fact = "<<killfactor<<endl;
|
||||
std::cout<<"pb coons cnd coin : "<<i<<" fact = "<<killfactor<<std::endl;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -589,14 +589,14 @@ void GeomFill_ConstrainedFilling::Build()
|
||||
parclock.Show(partime);
|
||||
appclock.Show(apptime);
|
||||
cstclock.Show(csttime);
|
||||
cout<<"temp total : "<<tottime<<" secondes"<<endl;
|
||||
cout<<endl;
|
||||
cout<<"dont"<<endl;
|
||||
cout<<endl;
|
||||
cout<<"reparametrage : "<<partime<<" secondes"<<endl;
|
||||
cout<<"approximation : "<<apptime<<" secondes"<<endl;
|
||||
cout<<"construction formelle : "<<csttime<<" secondes"<<endl;
|
||||
cout<<endl;
|
||||
std::cout<<"temp total : "<<tottime<<" secondes"<<std::endl;
|
||||
std::cout<<std::endl;
|
||||
std::cout<<"dont"<<std::endl;
|
||||
std::cout<<std::endl;
|
||||
std::cout<<"reparametrage : "<<partime<<" secondes"<<std::endl;
|
||||
std::cout<<"approximation : "<<apptime<<" secondes"<<std::endl;
|
||||
std::cout<<"construction formelle : "<<csttime<<" secondes"<<std::endl;
|
||||
std::cout<<std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -1331,8 +1331,8 @@ void GeomFill_ConstrainedFilling::CheckTgteField(const Standard_Integer I)
|
||||
if(Abs(alpha) > maxang) maxang = Abs(alpha);
|
||||
}
|
||||
}
|
||||
cout<<"KAlgo angle max sur bord "<<I<<" : "<<maxang<<endl;
|
||||
if(caplisse) cout<<"sur bord "<<I<<" le champ tangent change de cote!"<<endl;
|
||||
std::cout<<"KAlgo angle max sur bord "<<I<<" : "<<maxang<<std::endl;
|
||||
if(caplisse) std::cout<<"sur bord "<<I<<" le champ tangent change de cote!"<<std::endl;
|
||||
}
|
||||
|
||||
|
||||
@@ -1377,11 +1377,11 @@ void GeomFill_ConstrainedFilling::CheckApprox(const Standard_Integer I)
|
||||
}
|
||||
if(papp.Distance(pbound) > maxdist) maxdist = papp.Distance(pbound);
|
||||
}
|
||||
cout<<"Controle approx/contrainte sur bord "<<I<<" : "<<endl;
|
||||
cout<<"Distance max : "<<maxdist<<endl;
|
||||
std::cout<<"Controle approx/contrainte sur bord "<<I<<" : "<<std::endl;
|
||||
std::cout<<"Distance max : "<<maxdist<<std::endl;
|
||||
if (donor) {
|
||||
maxang = maxang*180./M_PI;
|
||||
cout<<"Angle max : "<<maxang<<" deg"<<endl;
|
||||
std::cout<<"Angle max : "<<maxang<<" deg"<<std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1457,11 +1457,11 @@ void GeomFill_ConstrainedFilling::CheckResult(const Standard_Integer I)
|
||||
vv += dvv;
|
||||
ww += dww;
|
||||
}
|
||||
cout<<"Controle resultat/contrainte sur bord "<<I<<" : "<<endl;
|
||||
cout<<"Distance max : "<<maxdist<<endl;
|
||||
std::cout<<"Controle resultat/contrainte sur bord "<<I<<" : "<<std::endl;
|
||||
std::cout<<"Distance max : "<<maxdist<<std::endl;
|
||||
if (donor) {
|
||||
Standard_Real angdeg = maxang*180./M_PI;
|
||||
cout<<"Angle max : "<<angdeg<<" deg"<<endl;
|
||||
std::cout<<"Angle max : "<<angdeg<<" deg"<<std::endl;
|
||||
}
|
||||
#ifdef DRAW
|
||||
Standard_Boolean scale = maxang>1.e-10;
|
||||
|
@@ -152,7 +152,7 @@ static void smoothlaw(Handle(Law_BSpline)& Law,
|
||||
tol = (Tol-tol)/2;
|
||||
else {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "smooth law echec" << endl;
|
||||
std::cout << "smooth law echec" << std::endl;
|
||||
#endif
|
||||
return; // Echec
|
||||
}
|
||||
@@ -180,7 +180,7 @@ static void smoothlaw(Handle(Law_BSpline)& Law,
|
||||
}
|
||||
if (!Ok) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "smooth law echec" << endl;
|
||||
std::cout << "smooth law echec" << std::endl;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -188,9 +188,9 @@ static void smoothlaw(Handle(Law_BSpline)& Law,
|
||||
|
||||
#ifdef OCCT_DEBUG
|
||||
if (Affich) {
|
||||
cout << "Knots Law : " << endl;
|
||||
std::cout << "Knots Law : " << std::endl;
|
||||
for (ii=1; ii<=BS->NbKnots(); ii++) {
|
||||
cout << ii << " : " << BS->Knot(ii) << endl;
|
||||
std::cout << ii << " : " << BS->Knot(ii) << std::endl;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -591,11 +591,11 @@ Handle(GeomFill_TrihedronLaw) GeomFill_CorrectedFrenet::Copy() const
|
||||
|
||||
#ifdef OCCT_DEBUG
|
||||
if (Affich) {
|
||||
cout<<"NormalEvolution"<<endl;
|
||||
std::cout<<"NormalEvolution"<<std::endl;
|
||||
for (i = 1; i <= Length; i++) {
|
||||
cout<<"("<<pararr->Value(i)<<", "<<angleATarr->Value(i)<<")" << endl;
|
||||
std::cout<<"("<<pararr->Value(i)<<", "<<angleATarr->Value(i)<<")" << std::endl;
|
||||
}
|
||||
cout<<endl;
|
||||
std::cout<<std::endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -757,9 +757,9 @@ Standard_Real GeomFill_CorrectedFrenet::GetAngleAT(const Standard_Real Param) co
|
||||
if (Param + h > myTrimmed->LastParameter()) h = -h;
|
||||
D0(Param + h, Tf, Nf, BNf);
|
||||
FDN = (Nf - Normal)/h;
|
||||
cout<<"Param = "<<Param<<endl;
|
||||
cout<<"DN = ("<<DNormal.X()<<", "<<DNormal.Y()<<", "<<DNormal.Z()<<")"<<endl;
|
||||
cout<<"FDN = ("<<FDN.X()<<", "<<FDN.Y()<<", "<<FDN.Z()<<")"<<endl;
|
||||
std::cout<<"Param = "<<Param<<std::endl;
|
||||
std::cout<<"DN = ("<<DNormal.X()<<", "<<DNormal.Y()<<", "<<DNormal.Z()<<")"<<std::endl;
|
||||
std::cout<<"FDN = ("<<FDN.X()<<", "<<FDN.Y()<<", "<<FDN.Z()<<")"<<std::endl;
|
||||
*/
|
||||
|
||||
return Standard_True;
|
||||
@@ -858,13 +858,13 @@ Standard_Real GeomFill_CorrectedFrenet::GetAngleAT(const Standard_Real Param) co
|
||||
FD2N = (DNf - DNormal)/h;
|
||||
FD2T = (DTf - DTangent)/h;
|
||||
FD2BN = (DBNf - DBiNormal)/h;
|
||||
cout<<"Param = "<<Param<<endl;
|
||||
cout<<"D2N = ("<<D2Normal.X()<<", "<<D2Normal.Y()<<", "<<D2Normal.Z()<<")"<<endl;
|
||||
cout<<"FD2N = ("<<FD2N.X()<<", "<<FD2N.Y()<<", "<<FD2N.Z()<<")"<<endl<<endl;
|
||||
cout<<"D2T = ("<<D2Tangent.X()<<", "<<D2Tangent.Y()<<", "<<D2Tangent.Z()<<")"<<endl;
|
||||
cout<<"FD2T = ("<<FD2T.X()<<", "<<FD2T.Y()<<", "<<FD2T.Z()<<")"<<endl<<endl;
|
||||
cout<<"D2BN = ("<<D2BiNormal.X()<<", "<<D2BiNormal.Y()<<", "<<D2BiNormal.Z()<<")"<<endl;
|
||||
cout<<"FD2BN = ("<<FD2BN.X()<<", "<<FD2BN.Y()<<", "<<FD2BN.Z()<<")"<<endl<<endl;
|
||||
std::cout<<"Param = "<<Param<<std::endl;
|
||||
std::cout<<"D2N = ("<<D2Normal.X()<<", "<<D2Normal.Y()<<", "<<D2Normal.Z()<<")"<<std::endl;
|
||||
std::cout<<"FD2N = ("<<FD2N.X()<<", "<<FD2N.Y()<<", "<<FD2N.Z()<<")"<<std::endl<<std::endl;
|
||||
std::cout<<"D2T = ("<<D2Tangent.X()<<", "<<D2Tangent.Y()<<", "<<D2Tangent.Z()<<")"<<std::endl;
|
||||
std::cout<<"FD2T = ("<<FD2T.X()<<", "<<FD2T.Y()<<", "<<FD2T.Z()<<")"<<std::endl<<std::endl;
|
||||
std::cout<<"D2BN = ("<<D2BiNormal.X()<<", "<<D2BiNormal.Y()<<", "<<D2BiNormal.Z()<<")"<<std::endl;
|
||||
std::cout<<"FD2BN = ("<<FD2BN.X()<<", "<<FD2BN.Y()<<", "<<FD2BN.Z()<<")"<<std::endl<<std::endl;
|
||||
*/
|
||||
//
|
||||
return Standard_True;
|
||||
|
@@ -114,11 +114,11 @@ static void NormalD0(const Standard_Real U, const Standard_Real V, const Handle(
|
||||
|
||||
if (NStatus != CSLib_Defined) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << U << ", " << V<< endl;
|
||||
std::cout << U << ", " << V<< std::endl;
|
||||
for(i=0;i<=MaxOrder;i++)
|
||||
for(j=0;j<=MaxOrder;j++){
|
||||
cout <<"("<<i <<"," << j << ") = "<< DerSurf(i,j).X() <<","
|
||||
<< DerSurf(i,j).Y() <<"," << DerSurf(i,j).Z() << endl;
|
||||
std::cout <<"("<<i <<"," << j << ") = "<< DerSurf(i,j).X() <<","
|
||||
<< DerSurf(i,j).Y() <<"," << DerSurf(i,j).Z() << std::endl;
|
||||
}
|
||||
#endif
|
||||
throw Geom_UndefinedValue();
|
||||
|
@@ -307,7 +307,7 @@ Handle(GeomFill_TrihedronLaw) GeomFill_Frenet::Copy() const
|
||||
}
|
||||
#ifdef OCCT_DEBUG
|
||||
for(i = 1; i <= mySngl->Length(); i++) {
|
||||
cout<<"Sngl("<<i<<") = "<<mySngl->Value(i)<<" Length = "<<mySnglLen->Value(i)<<endl;
|
||||
std::cout<<"Sngl("<<i<<") = "<<mySngl->Value(i)<<" Length = "<<mySnglLen->Value(i)<<std::endl;
|
||||
}
|
||||
#endif
|
||||
if(mySngl->Length() > 1) {
|
||||
@@ -333,9 +333,9 @@ Handle(GeomFill_TrihedronLaw) GeomFill_Frenet::Copy() const
|
||||
}
|
||||
}
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"After merging"<<endl;
|
||||
std::cout<<"After merging"<<std::endl;
|
||||
for(i = 1; i <= mySngl->Length(); i++) {
|
||||
cout<<"Sngl("<<i<<") = "<<mySngl->Value(i)<<" Length = "<<mySnglLen->Value(i)<<endl;
|
||||
std::cout<<"Sngl("<<i<<") = "<<mySngl->Value(i)<<" Length = "<<mySnglLen->Value(i)<<std::endl;
|
||||
}
|
||||
#endif
|
||||
isSngl = Standard_True;
|
||||
@@ -521,7 +521,7 @@ Standard_Boolean
|
||||
if(RotateTrihedron(Tangent,Normal,BiNormal,aTn) == Standard_False)
|
||||
{
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Cannot coincide two tangents." << endl;
|
||||
std::cout << "Cannot coincide two tangents." << std::endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
}
|
||||
|
@@ -256,7 +256,7 @@ GeomFill_FunctionGuide::GeomFill_FunctionGuide
|
||||
|
||||
gp_XYZ& Q = Pc.ChangeCoord(), DQ(0, 0, 0); //Q
|
||||
if (!isconst) {
|
||||
cout << "Not implemented" << endl;
|
||||
std::cout << "Not implemented" << std::endl;
|
||||
}
|
||||
|
||||
|
||||
|
@@ -124,7 +124,7 @@ GeomFill_GuideTrihedronAC::GeomFill_GuideTrihedronAC(const Handle(Adaptor3d_HCur
|
||||
if (Norm < 1.e-12) {
|
||||
Norm = 1;
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "GuideTrihedronAC : Normal indefinie" << endl;
|
||||
std::cout << "GuideTrihedronAC : Normal indefinie" << std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@@ -49,7 +49,7 @@ IMPLEMENT_STANDARD_RTTIEXT(GeomFill_GuideTrihedronPlan,GeomFill_TrihedronWithGui
|
||||
#ifdef OCCT_DEBUG
|
||||
static void TracePlan(const Handle(Geom_Surface)& /*Plan*/)
|
||||
{
|
||||
cout << "Pas d'intersection Guide/Plan" << endl;
|
||||
std::cout << "Pas d'intersection Guide/Plan" << std::endl;
|
||||
#if DRAW
|
||||
char* Temp = "ThePlan" ;
|
||||
DrawTrSurf::Set(Temp, Plan);
|
||||
@@ -182,8 +182,8 @@ GeomFill_GuideTrihedronPlan::GeomFill_GuideTrihedronPlan (const Handle(Adaptor3d
|
||||
|
||||
#ifdef OCCT_DEBUG
|
||||
if (Abs(Diff) > DeltaG) {
|
||||
cout << "Trihedron Plan Diff on Guide : " <<
|
||||
Diff << endl;
|
||||
std::cout << "Trihedron Plan Diff on Guide : " <<
|
||||
Diff << std::endl;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@@ -256,7 +256,7 @@ void GeomFill_GuideTrihedronPlan::SetCurve(const Handle(Adaptor3d_HCurve)& C)
|
||||
}
|
||||
else { // Erreur...
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "D0 :";
|
||||
std::cout << "D0 :";
|
||||
// plan ortho a la trajectoire pour determiner Pprime
|
||||
Handle(Geom_Plane) Plan = new (Geom_Plane)(P, Tangent);
|
||||
TracePlan(Plan);
|
||||
@@ -329,7 +329,7 @@ void GeomFill_GuideTrihedronPlan::SetCurve(const Handle(Adaptor3d_HCurve)& C)
|
||||
E.Value(Res, e);
|
||||
E.Value(Res+h, etg);
|
||||
if ( Abs( (etg-e)/h - dedx) > 1.e-4) {
|
||||
cout << "err :" << (etg-e)/h - dedx << endl;
|
||||
std::cout << "err :" << (etg-e)/h - dedx << std::endl;
|
||||
}
|
||||
gp_Pnt pdbg;
|
||||
gp_Vec td, nb, bnb;
|
||||
@@ -339,7 +339,7 @@ void GeomFill_GuideTrihedronPlan::SetCurve(const Handle(Adaptor3d_HCurve)& C)
|
||||
GeomFill_PlanFunc Edeb(pdbg, td, myGuide);
|
||||
Edeb.Value(Res, etc);
|
||||
if ( Abs( (etc-e)/h - dedt) > 1.e-4) {
|
||||
cout << "err :" << (etc-e)/h - dedt << endl;
|
||||
std::cout << "err :" << (etc-e)/h - dedt << std::endl;
|
||||
} */
|
||||
|
||||
dn.SetLinearForm(dtg_dt, TG, -1, To);
|
||||
@@ -351,7 +351,7 @@ void GeomFill_GuideTrihedronPlan::SetCurve(const Handle(Adaptor3d_HCurve)& C)
|
||||
}
|
||||
else {// Erreur...
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "D1 :";
|
||||
std::cout << "D1 :";
|
||||
// plan ortho a la trajectoire
|
||||
Handle(Geom_Plane) Plan = new (Geom_Plane)(P, Tangent);
|
||||
TracePlan(Plan);
|
||||
@@ -450,7 +450,7 @@ void GeomFill_GuideTrihedronPlan::SetCurve(const Handle(Adaptor3d_HCurve)& C)
|
||||
}
|
||||
else {// Erreur...
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "D2 :";
|
||||
std::cout << "D2 :";
|
||||
TracePlan(Plan);
|
||||
#endif
|
||||
myStatus = GeomFill_PlaneNotIntersectGuide;
|
||||
|
@@ -137,7 +137,7 @@ static void TraceRevol(const Standard_Real t,
|
||||
|
||||
// Surface de revolution
|
||||
Handle (Geom_Surface) Revol = new(Geom_SurfaceOfRevolution) (S, Ax);
|
||||
cout << "Surf Revol at parameter t = " << t << endl;
|
||||
std::cout << "Surf Revol at parameter t = " << t << std::endl;
|
||||
|
||||
#if DRAW
|
||||
Standard_CString aName = "TheRevol" ;
|
||||
@@ -350,7 +350,7 @@ static void InGoodPeriod(const Standard_Real Prec,
|
||||
|
||||
if (!DistMini.IsDone() || DistMini.NbExt() == 0) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout <<"LocationGuide : Pas d'intersection"<<endl;
|
||||
std::cout <<"LocationGuide : Pas d'intersection"<<std::endl;
|
||||
TraceRevol(t, U, myLaw, mySec, myCurve, Trans);
|
||||
#endif
|
||||
Standard_Boolean SOS=Standard_False;
|
||||
@@ -369,7 +369,7 @@ static void InGoodPeriod(const Standard_Real Prec,
|
||||
if (Result.IsDone() &&
|
||||
(Result.FunctionSetErrors().Norm() < TolRes(1)*TolRes(1)) ) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Ratrappage Reussi !" << endl;
|
||||
std::cout << "Ratrappage Reussi !" << std::endl;
|
||||
#endif
|
||||
SOS = Standard_True;
|
||||
math_Vector RR(1,3);
|
||||
@@ -380,7 +380,7 @@ static void InGoodPeriod(const Standard_Real Prec,
|
||||
}
|
||||
else {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Echec du Ratrappage !" << endl;
|
||||
std::cout << "Echec du Ratrappage !" << std::endl;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -427,8 +427,8 @@ static void InGoodPeriod(const Standard_Real Prec,
|
||||
|
||||
#ifdef OCCT_DEBUG
|
||||
if (Abs(Diff) > DeltaG) {
|
||||
cout << "Location :: Diff on Guide : " <<
|
||||
Diff << endl;
|
||||
std::cout << "Location :: Diff on Guide : " <<
|
||||
Diff << std::endl;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@@ -443,7 +443,7 @@ static void InGoodPeriod(const Standard_Real Prec,
|
||||
}
|
||||
#ifdef OCCT_DEBUG
|
||||
if (Abs(Diff) > M_PI/4) {
|
||||
cout << "Diff d'angle trop grand !!" << endl;
|
||||
std::cout << "Diff d'angle trop grand !!" << std::endl;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@@ -459,7 +459,7 @@ static void InGoodPeriod(const Standard_Real Prec,
|
||||
Diff = v - myPoles2d->Value(2, ii-1).Y();
|
||||
#ifdef OCCT_DEBUG
|
||||
if (Abs(Diff) > (Ul-Uf)/(2+NbKnots)) {
|
||||
cout << "Diff sur section trop grand !!" << endl;
|
||||
std::cout << "Diff sur section trop grand !!" << std::endl;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@@ -637,7 +637,7 @@ static void InGoodPeriod(const Standard_Real Prec,
|
||||
}
|
||||
else {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "LocationGuide::D0 : No Result !"<<endl;
|
||||
std::cout << "LocationGuide::D0 : No Result !"<<std::endl;
|
||||
TraceRevol(Param, U, myLaw, mySec, myCurve, Trans);
|
||||
#endif
|
||||
myStatus = GeomFill_ImpossibleContact;
|
||||
@@ -710,7 +710,7 @@ static void InGoodPeriod(const Standard_Real Prec,
|
||||
else {
|
||||
#ifdef OCCT_DEBUG
|
||||
Standard_Real U = myFirstS + ratio*(Param-myCurve->FirstParameter());
|
||||
cout << "LocationGuide::D0 : No Result !"<<endl;
|
||||
std::cout << "LocationGuide::D0 : No Result !"<<std::endl;
|
||||
TraceRevol(Param, U, myLaw, mySec, myCurve, Trans);
|
||||
#endif
|
||||
myStatus = GeomFill_ImpossibleContact;
|
||||
@@ -808,8 +808,8 @@ static void InGoodPeriod(const Standard_Real Prec,
|
||||
}//if
|
||||
else {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "DEDX = " << DEDX << endl;
|
||||
cout << "DEDT = " << DEDT << endl;
|
||||
std::cout << "DEDX = " << DEDX << std::endl;
|
||||
std::cout << "DEDT = " << DEDT << std::endl;
|
||||
#endif
|
||||
throw Standard_ConstructionError(
|
||||
"LocationGuide::D1 : No Result dans la derivee");
|
||||
@@ -872,7 +872,7 @@ static void InGoodPeriod(const Standard_Real Prec,
|
||||
|
||||
else {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "LocationGuide::D1 : No Result !!"<<endl;
|
||||
std::cout << "LocationGuide::D1 : No Result !!"<<std::endl;
|
||||
TraceRevol(Param, U, myLaw, mySec, myCurve, Trans);
|
||||
#endif
|
||||
myStatus = GeomFill_ImpossibleContact;
|
||||
@@ -972,7 +972,7 @@ Standard_Boolean GeomFill_LocationGuide::D2(const Standard_Real Param,
|
||||
//gp_Vec2d dp (DSDT(2), DSDT(3)); // surface
|
||||
//DPoles2d.SetValue(1, dp);
|
||||
}//if
|
||||
else cout <<"LocationGuide::D2 : No Result dans la derivee premiere"<<endl;
|
||||
else std::cout <<"LocationGuide::D2 : No Result dans la derivee premiere"<<std::endl;
|
||||
|
||||
// deuxieme derivee
|
||||
GeomFill_Tensor D2EDX2(3,3,3);
|
||||
@@ -1003,7 +1003,7 @@ Standard_Boolean GeomFill_LocationGuide::D2(const Standard_Real Param,
|
||||
//D2Poles2d.SetValue(1, d2p);
|
||||
}//if
|
||||
else {
|
||||
cout <<"LocationGuide::D2 : No Result dans la derivee seconde"<<endl;
|
||||
std::cout <<"LocationGuide::D2 : No Result dans la derivee seconde"<<std::endl;
|
||||
myStatus = GeomFill_ImpossibleContact;
|
||||
}
|
||||
|
||||
@@ -1123,7 +1123,7 @@ Standard_Boolean GeomFill_LocationGuide::D2(const Standard_Real Param,
|
||||
}//if_result
|
||||
else {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "LocationGuide::D2 : No Result !!" <<endl;
|
||||
std::cout << "LocationGuide::D2 : No Result !!" <<std::endl;
|
||||
TraceRevol(Param, U, myLaw, mySec, myCurve, Trans);
|
||||
#endif
|
||||
return Standard_False;
|
||||
|
@@ -80,9 +80,9 @@ Standard_Boolean verifD1(const TColgp_Array1OfPnt& P1,
|
||||
dw = (W2(ii)-W1(ii)) / pas;
|
||||
if (Abs(dw-DWeights(ii))>wTol) {
|
||||
if (Affich) {
|
||||
cout<<"erreur dans la derivee 1ere du poids pour l'indice "<<ii<<endl;
|
||||
cout<<"par diff finies : "<<dw<<endl;
|
||||
cout<<"resultat obtenu : "<<DWeights(ii)<<endl;
|
||||
std::cout<<"erreur dans la derivee 1ere du poids pour l'indice "<<ii<<std::endl;
|
||||
std::cout<<"par diff finies : "<<dw<<std::endl;
|
||||
std::cout<<"resultat obtenu : "<<DWeights(ii)<<std::endl;
|
||||
}
|
||||
ok = Standard_False;
|
||||
}
|
||||
@@ -90,13 +90,13 @@ Standard_Boolean verifD1(const TColgp_Array1OfPnt& P1,
|
||||
gp_Vec diff = dP - DPoles(ii);
|
||||
if (diff.Magnitude()>pTol) {
|
||||
if (Affich) {
|
||||
cout<<"erreur dans la derivee 1ere du pole pour l'indice "<<ii<<endl;
|
||||
cout<<"par diff finies : ("<<dP.X()
|
||||
std::cout<<"erreur dans la derivee 1ere du pole pour l'indice "<<ii<<std::endl;
|
||||
std::cout<<"par diff finies : ("<<dP.X()
|
||||
<<" "<<dP.Y()
|
||||
<<" "<<dP.Z()<<")"<<endl;
|
||||
cout<<"resultat obtenu : ("<<DPoles(ii).X()
|
||||
<<" "<<dP.Z()<<")"<<std::endl;
|
||||
std::cout<<"resultat obtenu : ("<<DPoles(ii).X()
|
||||
<<" "<<DPoles(ii).Y()
|
||||
<<" "<<DPoles(ii).Z()<<")"<<endl;
|
||||
<<" "<<DPoles(ii).Z()<<")"<<std::endl;
|
||||
}
|
||||
ok = Standard_False;
|
||||
}
|
||||
@@ -123,9 +123,9 @@ Standard_Boolean verifD2(const TColgp_Array1OfVec& DP1,
|
||||
d2w = (dw2-dw1) / pas;
|
||||
if (Abs(d2w-D2Weights(ii))>wTol) {
|
||||
if (Affich) {
|
||||
cout<<"erreur dans la derivee 2nde du poids pour l'indice "<<ii<<endl;
|
||||
cout<<"par diff finies : "<<d2w<<endl;
|
||||
cout<<"resultat obtenu : "<<D2Weights(ii)<<endl;
|
||||
std::cout<<"erreur dans la derivee 2nde du poids pour l'indice "<<ii<<std::endl;
|
||||
std::cout<<"par diff finies : "<<d2w<<std::endl;
|
||||
std::cout<<"resultat obtenu : "<<D2Weights(ii)<<std::endl;
|
||||
}
|
||||
ok = Standard_False;
|
||||
}
|
||||
@@ -133,13 +133,13 @@ Standard_Boolean verifD2(const TColgp_Array1OfVec& DP1,
|
||||
gp_Vec diff = d2P - D2Poles(ii);
|
||||
if (diff.Magnitude()>pTol) {
|
||||
if (Affich) {
|
||||
cout<<"erreur dans la derivee 2nde du pole pour l'indice "<<ii<<endl;
|
||||
cout<<"par diff finies : ("<<d2P.X()
|
||||
std::cout<<"erreur dans la derivee 2nde du pole pour l'indice "<<ii<<std::endl;
|
||||
std::cout<<"par diff finies : ("<<d2P.X()
|
||||
<<" "<<d2P.Y()
|
||||
<<" "<<d2P.Z()<<")"<<endl;
|
||||
cout<<"resultat obtenu : ("<<D2Poles(ii).X()
|
||||
<<" "<<d2P.Z()<<")"<<std::endl;
|
||||
std::cout<<"resultat obtenu : ("<<D2Poles(ii).X()
|
||||
<<" "<<D2Poles(ii).Y()
|
||||
<<" "<<D2Poles(ii).Z()<<")"<<endl;
|
||||
<<" "<<D2Poles(ii).Z()<<")"<<std::endl;
|
||||
}
|
||||
ok = Standard_False;
|
||||
}
|
||||
@@ -385,9 +385,9 @@ GeomFill_NSections::GeomFill_NSections(const TColGeom_SequenceOfCurve& NC,
|
||||
V2 = V+pas;
|
||||
ok1 = D0(V1,P1,W1);
|
||||
ok2 = D0(V2,P2,W2);
|
||||
if (!ok1 || !ok2) cout<<"probleme en D0"<<endl;
|
||||
if (!ok1 || !ok2) std::cout<<"probleme en D0"<<std::endl;
|
||||
Standard_Boolean check = verifD1(P1,W1,P2,W2,DPoles,DWeights,pTol,wTol,pas);
|
||||
if (!check) cout<<"D1 incorrecte en V = "<<V<<endl;
|
||||
if (!check) std::cout<<"D1 incorrecte en V = "<<V<<std::endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -485,9 +485,9 @@ GeomFill_NSections::GeomFill_NSections(const TColGeom_SequenceOfCurve& NC,
|
||||
V2 = V+pas;
|
||||
ok1 = D1(V1,P1,DP1,W1,DW1);
|
||||
ok2 = D1(V2,P2,DP2,W2,DW2);
|
||||
if (!ok1 || !ok2) cout<<"probleme en D0 ou en D1"<<endl;
|
||||
if (!ok1 || !ok2) std::cout<<"probleme en D0 ou en D1"<<std::endl;
|
||||
Standard_Boolean check = verifD2(DP1,DW1,DP2,DW2,D2Poles,D2Weights,pTol,wTol,pas);
|
||||
if (!check) cout<<"D2 incorrecte en V = "<<V<<endl;
|
||||
if (!check) std::cout<<"D2 incorrecte en V = "<<V<<std::endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -635,7 +635,7 @@ GeomFill_NSections::GeomFill_NSections(const TColGeom_SequenceOfCurve& NC,
|
||||
char name[256];
|
||||
sprintf(name,"NS_Surf_%d",NbSurf);
|
||||
DrawTrSurf::Set(name,BS);
|
||||
cout<<endl<<"RESULTAT de ComputeSurface : NS_Surf_"<<NbSurf<<endl<<endl;
|
||||
std::cout<<std::endl<<"RESULTAT de ComputeSurface : NS_Surf_"<<NbSurf<<std::endl<<std::endl;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
@@ -497,7 +497,7 @@ void GeomFill_Pipe::Init(const Handle(Geom_Curve)& Path,
|
||||
case GeomFill_IsDarboux :
|
||||
#ifdef OCCT_DEBUG
|
||||
{
|
||||
cout << "Option Darboux: non realisable" << endl;
|
||||
std::cout << "Option Darboux: non realisable" << std::endl;
|
||||
}
|
||||
#endif
|
||||
case GeomFill_IsFrenet :
|
||||
@@ -871,9 +871,9 @@ void GeomFill_Pipe::Perform(const Standard_Real Tol,
|
||||
Tol, Tol, 0., 0.01,
|
||||
TheConti, DegMax, NbMaxSegment);
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Tuyau : ";
|
||||
App.Dump(cout);
|
||||
cout << endl;
|
||||
std::cout << "Tuyau : ";
|
||||
App.Dump(std::cout);
|
||||
std::cout << std::endl;
|
||||
#endif
|
||||
if (App.IsDone()) {
|
||||
mySurface = new Geom_BSplineSurface(App.SurfPoles(),
|
||||
|
@@ -281,7 +281,7 @@ GeomFill_Sweep::GeomFill_Sweep(const Handle(GeomFill_LocationLaw)& Location,
|
||||
Ok = Standard_True;
|
||||
|
||||
#ifdef OCCT_DEBUG
|
||||
Approx.Dump(cout);
|
||||
Approx.Dump(std::cout);
|
||||
#endif
|
||||
|
||||
// La surface
|
||||
@@ -450,7 +450,7 @@ GeomFill_Sweep::GeomFill_Sweep(const Handle(GeomFill_LocationLaw)& Location,
|
||||
eval,
|
||||
Preferentiel);
|
||||
#ifdef OCCT_DEBUG
|
||||
Approx.Dump(cout);
|
||||
Approx.Dump(std::cout);
|
||||
#endif
|
||||
|
||||
Ok = Approx.HasResult();
|
||||
@@ -1036,13 +1036,13 @@ static Standard_Boolean IsSweepParallelSpine (const Handle(GeomFill_LocationLaw)
|
||||
|
||||
#ifdef OCCT_DEBUG
|
||||
if (isUPeriodic && !mySurface->IsUPeriodic())
|
||||
cout<<"Pb de periodicite en U" << endl;
|
||||
std::cout<<"Pb de periodicite en U" << std::endl;
|
||||
if (isUPeriodic && !mySurface->IsUClosed())
|
||||
cout<<"Pb de fermeture en U" << endl;
|
||||
std::cout<<"Pb de fermeture en U" << std::endl;
|
||||
if (isVPeriodic && !mySurface->IsVPeriodic())
|
||||
cout << "Pb de periodicite en V" << endl;
|
||||
std::cout << "Pb de periodicite en V" << std::endl;
|
||||
if (isVPeriodic && !mySurface->IsVClosed())
|
||||
cout<<"Pb de fermeture en V" << endl;
|
||||
std::cout<<"Pb de fermeture en V" << std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@@ -356,7 +356,7 @@ void GeomFill_SweepSectionGenerator::Perform(const Standard_Boolean Polynomial)
|
||||
else
|
||||
if (D1Ref.IsOpposite(D1, Precision::Angular()))
|
||||
#ifdef OCCT_DEBUG
|
||||
cout <<"Que fais-je ???? " << endl;
|
||||
std::cout <<"Que fais-je ???? " << std::endl;
|
||||
#endif
|
||||
|
||||
// TR is the transformation between (i-1) section and the i-th.
|
||||
@@ -630,8 +630,8 @@ void GeomFill_SweepSectionGenerator::Section
|
||||
gp_Vec dummyD1 = myAdpPath->DN(U,1);
|
||||
gp_Vec dummyTg = Axis.Direction();
|
||||
Standard_Real Cos = dummyD1.Dot(dummyTg);
|
||||
if ( Cos > 0.) cout << "+" ;
|
||||
else cout << "-" ;
|
||||
if ( Cos > 0.) std::cout << "+" ;
|
||||
else std::cout << "-" ;
|
||||
}
|
||||
*/
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user