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

@@ -84,7 +84,7 @@ void IntPatch_ALine::AddVertex (const IntPatch_Point& VTXj) {
if((VTXi.IsOnDomS1()==Standard_False) && (VTXi.IsOnDomS2()==Standard_False)) {
if(Abs(par-VTXi.ParameterOnLine())<=PCONFUSION) {
#if DEBUG
cout<<" Rejet IntPatch_ALine::AddVertex (0) "<<endl;
std::cout<<" Rejet IntPatch_ALine::AddVertex (0) "<<std::endl;
#endif
return;
}
@@ -98,7 +98,7 @@ void IntPatch_ALine::AddVertex (const IntPatch_Point& VTXj) {
if(Abs(VTXi.ParameterOnArc1()-VTXj.ParameterOnArc1())<=PCONFUSION) {
if(VTXi.ArcOnS1() == VTXj.ArcOnS1()) {
#if DEBUG
cout<<" Rejet IntPatch_ALine::AddVertex (1) "<<endl;
std::cout<<" Rejet IntPatch_ALine::AddVertex (1) "<<std::endl;
#endif
return;
}
@@ -113,7 +113,7 @@ void IntPatch_ALine::AddVertex (const IntPatch_Point& VTXj) {
if(Abs(VTXi.ParameterOnArc2()-VTXj.ParameterOnArc2())<=PCONFUSION) {
if(VTXi.ArcOnS2() == VTXj.ArcOnS2()) {
#if DEBUG
cout<<" Rejet IntPatch_ALine::AddVertex (2) "<<endl;
std::cout<<" Rejet IntPatch_ALine::AddVertex (2) "<<std::endl;
#endif
return;
}
@@ -130,7 +130,7 @@ void IntPatch_ALine::AddVertex (const IntPatch_Point& VTXj) {
if(VTXi.ArcOnS2() == VTXj.ArcOnS2()) {
if(VTXi.ArcOnS1() == VTXj.ArcOnS1()) {
#if DEBUG
cout<<" Rejet IntPatch_ALine::AddVertex (3) "<<endl;
std::cout<<" Rejet IntPatch_ALine::AddVertex (3) "<<std::endl;
#endif
return;
}
@@ -148,12 +148,12 @@ void IntPatch_ALine::AddVertex (const IntPatch_Point& VTXj) {
if((VTXi.IsOnDomS2()==Standard_False) && (VTXi.IsOnDomS1()==Standard_True)) {
Standard_Real p = Abs(VTXi.ParameterOnArc1()-VTXj.ParameterOnArc1());
#if DEBUG
cout<<" Est ce que VTXj present sur 1 et 2 remplace un point VTXi present sur 1 : "<<p<<endl;
std::cout<<" Est ce que VTXj present sur 1 et 2 remplace un point VTXi present sur 1 : "<<p<<std::endl;
#endif
if(p<=PCONFUSION) {
if(VTXi.ArcOnS1() == VTXj.ArcOnS1()) {
#if DEBUG
cout<<" Replace IntPatch_ALine::AddVertex (1) "<<endl;
std::cout<<" Replace IntPatch_ALine::AddVertex (1) "<<std::endl;
#endif
Replace(i,VTXj);
return;
@@ -169,12 +169,12 @@ void IntPatch_ALine::AddVertex (const IntPatch_Point& VTXj) {
if((VTXi.IsOnDomS2()==Standard_True) && (VTXi.IsOnDomS1()==Standard_False)) {
Standard_Real p = Abs(VTXi.ParameterOnArc2()-VTXj.ParameterOnArc2());
#if DEBUG
cout<<" Est ce que VTXj present sur 1 et 2 remplace un point VTXi present sur 2 : "<<p<<endl;
std::cout<<" Est ce que VTXj present sur 1 et 2 remplace un point VTXi present sur 2 : "<<p<<std::endl;
#endif
if(p<=PCONFUSION) {
if(VTXi.ArcOnS2() == VTXj.ArcOnS2()) {
#if DEBUG
cout<<" Replace IntPatch_ALine::AddVertex (2) "<<endl;
std::cout<<" Replace IntPatch_ALine::AddVertex (2) "<<std::endl;
#endif
Replace(i,VTXj);
return;
@@ -194,7 +194,7 @@ void IntPatch_ALine::AddVertex (const IntPatch_Point& VTXj) {
if(p<=PCONFUSION) {
if(VTXi.ArcOnS1() == VTXj.ArcOnS1()) {
#if DEBUG
cout<<" Replace IntPatch_ALine::AddVertex (1) -> RIEN "<<endl;
std::cout<<" Replace IntPatch_ALine::AddVertex (1) -> RIEN "<<std::endl;
#endif
return;
}
@@ -639,7 +639,7 @@ void IntPatch_ALine::ComputeVertexParameters(const Standard_Real Tol) {
SortIsOK=Standard_False;
//-- cout<<" IntPatch_ALine : ComputeVertexParameters : Ajust "<<endl;
//-- std::cout<<" IntPatch_ALine : ComputeVertexParameters : Ajust "<<std::endl;
}
}
}

View File

@@ -1917,7 +1917,7 @@ static Standard_Boolean InsertSeamVertices(Handle(IntSurf_LineOn2S)& Line,
// Line->InsertBefore(ip,Line->Value(ipn));
// Line->RemovePoint(ip+2);
// result = Standard_True;
// cout << "swap vertex " << endl;
// std::cout << "swap vertex " << std::endl;
// break;
}
}

View File

@@ -696,12 +696,12 @@ void IntPatch_InterferencePolyhedron::Intersect
Standard_Real d=piOT(-ideb).Pnt().Distance(piOT(-ifin).Pnt());
if(d<Tolerance) {
Insert(piOT(-ideb), piOT(-ifin));
//-- cout<<"Insertion Point IntPatch_InterferencePolyhedron 1,2 d="<<d<<" Tol="<<Tolerance<<" num:"<<++nisp<<endl;
//-- std::cout<<"Insertion Point IntPatch_InterferencePolyhedron 1,2 d="<<d<<" Tol="<<Tolerance<<" num:"<<++nisp<<std::endl;
//-- piOT(-ideb).Dump(1); piOT(-ifin).Dump(0);
//-- cout<<"point p"<<++nisp<<" "<<piOT(-ideb).Pnt().X()<<" "<<piOT(-ideb).Pnt().Y()<<" "<<piOT(-ideb).Pnt().Z()<<endl;
//-- std::cout<<"point p"<<++nisp<<" "<<piOT(-ideb).Pnt().X()<<" "<<piOT(-ideb).Pnt().Y()<<" "<<piOT(-ideb).Pnt().Z()<<std::endl;
}
else {
//-- cout<<"Insertion Point IntPatch_InterferencePolyhedron 1,2 d="<<d<<" Tol="<<Tolerance<<" NON INSERE "<<endl;
//-- std::cout<<"Insertion Point IntPatch_InterferencePolyhedron 1,2 d="<<d<<" Tol="<<Tolerance<<" NON INSERE "<<std::endl;
}
}
}

View File

@@ -1562,15 +1562,15 @@ void IntPatch_Intersection::Perform(const Handle(Adaptor3d_HSurface)& S1,
myTolTang = TolTang;
if(myFleche == 0.0) {
#if DEBUG
//cout<<" -- IntPatch_Intersection::myFleche fixe par defaut a 0.01 --"<<endl;
//cout<<" -- Utiliser la Methode SetTolerances( ... ) "<<endl;
//std::cout<<" -- IntPatch_Intersection::myFleche fixe par defaut a 0.01 --"<<std::endl;
//std::cout<<" -- Utiliser la Methode SetTolerances( ... ) "<<std::endl;
#endif
myFleche = 0.01;
}
if(myUVMaxStep==0.0) {
#if DEBUG
//cout<<" -- IntPatch_Intersection::myUVMaxStep fixe par defaut a 0.01 --"<<endl;
//cout<<" -- Utiliser la Methode SetTolerances( ... ) "<<endl;
//std::cout<<" -- IntPatch_Intersection::myUVMaxStep fixe par defaut a 0.01 --"<<std::endl;
//std::cout<<" -- Utiliser la Methode SetTolerances( ... ) "<<std::endl;
#endif
myUVMaxStep = 0.01;
}

View File

@@ -899,7 +899,7 @@ static Standard_Boolean TestIfWLineIsRestriction(const IntPatch_SequenceOfLine&
}
if(allon1==NbPnts || allon2==NbPnts) {
#ifdef OCCT_DEBUG
cout<<" IntPatch_LineConstructor.gxx : CC**ONS"<<(allon1==NbPnts?1:2)<<"** Traitement WLIne + ARC CLASS "<<endl;
std::cout<<" IntPatch_LineConstructor.gxx : CC**ONS"<<(allon1==NbPnts?1:2)<<"** Traitement WLIne + ARC CLASS "<<std::endl;
#endif
Standard_Real tol2d = Max(tol2d1,tol2d2);
return TestWLineIsARLine(slinref,wlin,tol2d);
@@ -1060,7 +1060,7 @@ static void TestWLineToRLine(const IntPatch_SequenceOfLine& slinref,
}
if (!iv1 || !iv2) {
#ifdef OCCT_DEBUG
cout<<" Pb getting vertices linked with arc"<<endl;
std::cout<<" Pb getting vertices linked with arc"<<std::endl;
#endif
continue;
}
@@ -1071,7 +1071,7 @@ static void TestWLineToRLine(const IntPatch_SequenceOfLine& slinref,
? (WLine->Vertex(iv2).*pParOnArc)()
: paramsResolved(iv2));
#ifdef OCCT_DEBUG
cout<<"****** Parameters on arc on S"<<is+1<<": "<<par1<<" "<<par2<<endl;
std::cout<<"****** Parameters on arc on S"<<is+1<<": "<<par1<<" "<<par2<<std::endl;
#endif
// check that the middle point is on arc
@@ -1085,7 +1085,7 @@ static void TestWLineToRLine(const IntPatch_SequenceOfLine& slinref,
Standard_Real par,dist;
if (!ProjectOnArc(utst,vtst,arc,surf,TolArc,par,dist)) {
#ifdef OCCT_DEBUG
cout<<" Pb en projection ds IntPatch_LineConstructor"<<endl;
std::cout<<" Pb en projection ds IntPatch_LineConstructor"<<std::endl;
#endif
continue;
}
@@ -1224,7 +1224,7 @@ void IntPatch_LineConstructor::Perform(const IntPatch_SequenceOfLine& slinref,
if(in1 == TopAbs_OUT || in2 == TopAbs_OUT) {
}
else {
//-- cout<<"Analytic : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<endl;
//-- std::cout<<"Analytic : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<std::endl;
TabIndex[i]=TabIndex[i+1]=++numline;
AddLine(L,i,i+1,typs1,typs2,TabIndex,slin);
}
@@ -1380,7 +1380,7 @@ void IntPatch_LineConstructor::Perform(const IntPatch_SequenceOfLine& slinref,
}
}
if(LignetropPetite==Standard_False) {
//-- cout<<"WLine : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<endl;
//-- std::cout<<"WLine : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<std::endl;
TabIndex[i]=TabIndex[i+1]=++numline;
AddLine(L,i,i+1,typs1,typs2,TabIndex,slin);
TestWLineToRLine(slinref,slin,mySurf1,myDom1,mySurf2,myDom2,TolArc); //-- on teste la derniere entree de slin
@@ -1468,7 +1468,7 @@ void IntPatch_LineConstructor::Perform(const IntPatch_SequenceOfLine& slinref,
if(in1 == TopAbs_OUT || in2 == TopAbs_OUT) {
}
else {
//-- cout<<"GLine : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<endl;
//-- std::cout<<"GLine : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<std::endl;
TabIndex[i]=TabIndex[i+1]=++numline;
AddLine(L,i,i+1,typs1,typs2,TabIndex,slin);
}
@@ -1505,7 +1505,7 @@ void IntPatch_LineConstructor::Perform(const IntPatch_SequenceOfLine& slinref,
if(in1 == TopAbs_OUT || in2 == TopAbs_OUT) {
}
else {
//-- cout<<"GLine bis : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<endl;
//-- std::cout<<"GLine bis : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<std::endl;
TabIndex[nbvtx]=TabIndex[1]=++numline;
AddLine(L,nbvtx,1,typs1,typs2,TabIndex,slin);
}
@@ -1630,7 +1630,7 @@ void IntPatch_LineConstructor::Perform(const IntPatch_SequenceOfLine& slinref,
}
if(in2!=TopAbs_OUT) {
//-- cout<<"RLine ons1 : u0 ="<<u0<<" u1 ="<<u1<<" Vtx:"<<i<<","<<i+1<<endl;
//-- std::cout<<"RLine ons1 : u0 ="<<u0<<" u1 ="<<u1<<" Vtx:"<<i<<","<<i+1<<std::endl;
AddLine(L,i,i+1,typs1,typs2,TabIndex,slin);
}
}
@@ -1710,7 +1710,7 @@ void IntPatch_LineConstructor::Perform(const IntPatch_SequenceOfLine& slinref,
}
if(in2!=TopAbs_OUT) {
//-- cout<<"RLine ons2 : u0 ="<<u0<<" u1 ="<<u1<<" Vtx:"<<i<<","<<i+1<<endl;
//-- std::cout<<"RLine ons2 : u0 ="<<u0<<" u1 ="<<u1<<" Vtx:"<<i<<","<<i+1<<std::endl;
AddLine(L,i,i+1,typs1,typs2,TabIndex,slin);
}

View File

@@ -128,28 +128,28 @@ void IntPatch_Point::ReverseTransition()
static void DumpTransition(const IntSurf_Transition& T)
{
IntSurf_TypeTrans typetrans = T.TransitionType();
if(typetrans == IntSurf_In) cout<<" In ";
else if(typetrans == IntSurf_Out) cout<<" Out ";
else if(typetrans == IntSurf_Undecided) cout<<" Und.";
if(typetrans == IntSurf_In) std::cout<<" In ";
else if(typetrans == IntSurf_Out) std::cout<<" Out ";
else if(typetrans == IntSurf_Undecided) std::cout<<" Und.";
else if(typetrans == IntSurf_Touch) {
cout<<" Touch ";
if(T.Situation() == IntSurf_Inside) cout<<" Inside ";
else if(T.Situation() == IntSurf_Outside) cout<<" Outside";
else cout<<" Unknown";
if(T.IsOpposite()) cout<<" Opposite ";
else cout<<" Non_Opposite ";
std::cout<<" Touch ";
if(T.Situation() == IntSurf_Inside) std::cout<<" Inside ";
else if(T.Situation() == IntSurf_Outside) std::cout<<" Outside";
else std::cout<<" Unknown";
if(T.IsOpposite()) std::cout<<" Opposite ";
else std::cout<<" Non_Opposite ";
}
if(typetrans != IntSurf_Undecided) {
if(T.IsTangent()) cout<<" Tangent ";
else cout<<" Non_Tangent";
if(T.IsTangent()) std::cout<<" Tangent ";
else std::cout<<" Non_Tangent";
}
}
#include <Standard_Transient.hxx>
void IntPatch_Point::Dump() const {
cout<<"----------- IntPatch_Point : "<<endl;
std::cout<<"----------- IntPatch_Point : "<<std::endl;
Standard_Real u1,v1,u2,v2;
pt.Parameters(u1,v1,u2,v2);
@@ -173,17 +173,17 @@ void IntPatch_Point::Dump() const {
fflush(stdout);
if(onS1 || onS2) {
cout<<" tgt:"<<((tgt)? 1 : 0) <<" mult:"<<((mult)? 1 :0);
std::cout<<" tgt:"<<((tgt)? 1 : 0) <<" mult:"<<((mult)? 1 :0);
if(onS1) {
cout<<"\n-traline1 : "; DumpTransition(traline1);
cout<<" -tra1 : "; DumpTransition(tra1);
std::cout<<"\n-traline1 : "; DumpTransition(traline1);
std::cout<<" -tra1 : "; DumpTransition(tra1);
}
if(onS2) {
cout<<"\n-traline2 : "; DumpTransition(traline2);
cout<<" -tra2 : "; DumpTransition(tra2);
std::cout<<"\n-traline2 : "; DumpTransition(traline2);
std::cout<<" -tra2 : "; DumpTransition(tra2);
}
cout<<endl;
std::cout<<std::endl;
}
cout << "\nToler = " << Tolerance();
cout << endl;
std::cout << "\nToler = " << Tolerance();
std::cout << std::endl;
}

View File

@@ -137,7 +137,7 @@ IntPatch_PolyArc::IntPatch_PolyArc(const Handle(Adaptor2d_HCurve2d)& Line ,
if(IndexInf > IndexSup) {
r+=r;
r2 = r*r*49.;
//-- cout<<" Le rayon : "<<r<<" est insuffisant "<<endl;
//-- std::cout<<" Le rayon : "<<r<<" est insuffisant "<<std::endl;
}
else {
//----------------------------------------------
@@ -146,7 +146,7 @@ IntPatch_PolyArc::IntPatch_PolyArc(const Handle(Adaptor2d_HCurve2d)& Line ,
//-- encore
//----------------------------------------------
if((IndexSup-IndexInf)<(NbSample/2)) {
//-- cout<<" --- On remet ca entre les index "<<IndexInf<<" et "<<IndexSup<<endl;
//-- std::cout<<" --- On remet ca entre les index "<<IndexInf<<" et "<<IndexSup<<std::endl;
nbloop = 10;
//if(IndexInf>1) IndexInf--;
//if(IndexSup<NbSample) IndexSup++;

View File

@@ -36,18 +36,18 @@ void IntPatch_Polygo::Dump () const
{
static int num=0;
num++;
cout<<"\n#------------- D u m p B o x 2 d ("<<num<<")"<<endl;
std::cout<<"\n#------------- D u m p B o x 2 d ("<<num<<")"<<std::endl;
Bounding().Dump();
cout<<"\n#-----------------------------------------------"<<endl;
std::cout<<"\n#-----------------------------------------------"<<std::endl;
const Standard_Integer nbs = NbSegments();
cout<<"\npol2d "<<num<<" "<<nbs<<" ";
cout<<DeflectionOverEstimation()<<endl;
std::cout<<"\npol2d "<<num<<" "<<nbs<<" ";
std::cout<<DeflectionOverEstimation()<<std::endl;
gp_Pnt2d P, PF;
for(Standard_Integer i=1;i<=nbs;i++) {
Segment(i,P,PF);
cout<<"pnt2d "<<num<<" "<< P.X()<<" "<<P.Y()<<endl;
std::cout<<"pnt2d "<<num<<" "<< P.X()<<" "<<P.Y()<<std::endl;
}
cout<<"pnt2d "<<num<<" "<< PF.X()<<" "<<PF.Y()<<endl;
std::cout<<"pnt2d "<<num<<" "<< PF.X()<<" "<<PF.Y()<<std::endl;
}

View File

@@ -508,13 +508,13 @@ Standard_Integer IntPatch_Polyhedron::TriConnex (const Standard_Integer Triang,
OtherP=0;
TriCon=Triang;
#if MSG_DEBUG
cout<<" Probleme ds IntCurveSurface_Polyhedron : Pivot et PEdge Confondus "<<endl;
std::cout<<" Probleme ds IntCurveSurface_Polyhedron : Pivot et PEdge Confondus "<<std::endl;
#endif
return(TriCon);
}
if(Point(OtherP).SquareDistance(Point(Pedge))<=LONGUEUR_MINI_EDGE_TRIANGLE) {
#if MSG_DEBUG
cout<<" Probleme ds IntCurveSurface_Polyhedron : OtherP et PEdge Confondus "<<endl;
std::cout<<" Probleme ds IntCurveSurface_Polyhedron : OtherP et PEdge Confondus "<<std::endl;
#endif
return(0); //-- BUG NON CORRIGE ( a revoir le role de nbdeltaU et nbdeltaV)
// Standard_Integer TempTri,TempOtherP;

View File

@@ -1397,7 +1397,7 @@ void SectionPointToParameters(const Intf_SectionPoint& Sp,
}
default:
{
//-- cout<<" Default dans SectionPointToParameters "<<endl;
//-- std::cout<<" Default dans SectionPointToParameters "<<std::endl;
break;
}
}
@@ -1442,7 +1442,7 @@ void SectionPointToParameters(const Intf_SectionPoint& Sp,
}
default:
{
//-- cout<<" Default dans SectionPointToParameters "<<endl;
//-- std::cout<<" Default dans SectionPointToParameters "<<std::endl;
break;
}
}
@@ -1882,7 +1882,7 @@ void IntPatch_PrmPrmIntersection::Perform(const Handle(Adaptor3d_HSurface)& S
// Standard_Real nIncrement=Increment;
// if(MaxOscill>10) {
// #ifdef OCCT_DEBUG
// cout<<"\n IntPatch_PrmPrmIntersection.gxx : Increment:"<<Increment<<" -> "<<Increment/(0.5*MaxOscill)<<endl;
// std::cout<<"\n IntPatch_PrmPrmIntersection.gxx : Increment:"<<Increment<<" -> "<<Increment/(0.5*MaxOscill)<<std::endl;
// #endif
// nIncrement/=0.5*MaxOscill;
// }
@@ -2740,7 +2740,7 @@ void IntPatch_PrmPrmIntersection::Perform (const Handle(Adaptor3d_HSurface)& Sur
}
else
{
//-- cout<<" ----- REJET DE LIGNE (POINT DE DEPART) ----- "<<endl;
//-- std::cout<<" ----- REJET DE LIGNE (POINT DE DEPART) ----- "<<std::endl;
}
//------------------------------------------------------------
}
@@ -2938,7 +2938,7 @@ void IntPatch_PrmPrmIntersection::Perform (const Handle(Adaptor3d_HSurface)& Sur
}
else
{
//-- cout<<" ----- REJET DE LIGNE (POINT DE DEPART) ----- "<<endl;
//-- std::cout<<" ----- REJET DE LIGNE (POINT DE DEPART) ----- "<<std::endl;
}
//------------------------------------------------------------
}
@@ -3227,7 +3227,7 @@ void IntPatch_PrmPrmIntersection::PointDepart(Handle(IntSurf_LineOn2S)& LineOn2S
}
}
}
//-- cout<<" Grille du 1 fini "<<endl;
//-- std::cout<<" Grille du 1 fini "<<std::endl;
for(i=0;i<SU2;i++) {
for(j=0;j<SV2;j++) {
aIPD.xIP2(i, j)=-1;

View File

@@ -347,7 +347,7 @@ void IntPatch_RLine::ComputeVertexParameters(const Standard_Real )
void IntPatch_RLine::Dump(const Standard_Integer theMode) const
{
cout<<" ----------- D u m p I n t P a t c h _ R L i n e -(begin)------"<<endl;
std::cout<<" ----------- D u m p I n t P a t c h _ R L i n e -(begin)------"<<std::endl;
const Standard_Integer aNbPoints = NbPnts();
const Standard_Integer aNbVertex = NbVertex();
@@ -372,10 +372,10 @@ void IntPatch_RLine::Dump(const Standard_Integer theMode) const
if(pol>=1 && pol<=aNbVertex)
{
cout<<"----> IntSurf_PntOn2S : "<<
std::cout<<"----> IntSurf_PntOn2S : "<<
polr <<", Pnt (" << Vertex(pol).Value().X() << "," <<
Vertex(pol).Value().Y() << "," <<
Vertex(pol).Value().Z() <<")" <<endl;
Vertex(pol).Value().Z() <<")" <<std::endl;
}
}
@@ -409,6 +409,6 @@ void IntPatch_RLine::Dump(const Standard_Integer theMode) const
break;
}
cout<<"\n--------------------------------------------------- (end) -------"<<endl;
std::cout<<"\n--------------------------------------------------- (end) -------"<<std::endl;
}

View File

@@ -480,7 +480,7 @@ void IntPatch_RstInt::PutVertexOnLine (const Handle(IntPatch_Line)& L,
PLast = myInfinite;
//if (Precision::IsNegativeInfinite(PFirst) ||
// Precision::IsPositiveInfinite(PLast)) {
// //-- cout<<" IntPatch_RstInt::PutVertexOnLine ---> Restrictions Infinies :"<<endl;
// //-- std::cout<<" IntPatch_RstInt::PutVertexOnLine ---> Restrictions Infinies :"<<std::endl;
// return;
//}
@@ -596,7 +596,7 @@ void IntPatch_RstInt::PutVertexOnLine (const Handle(IntPatch_Line)& L,
static int debug_polygon2d =0;
if(debug_polygon2d) {
cout<<" ***** Numero Restriction : "<<NumeroEdge<<" *****"<<endl;
std::cout<<" ***** Numero Restriction : "<<NumeroEdge<<" *****"<<std::endl;
PLin.Dump();
Brise.Dump();
}
@@ -891,7 +891,7 @@ void IntPatch_RstInt::PutVertexOnLine (const Handle(IntPatch_Line)& L,
}
}
else {
//-- cout << "pb dans RstInt Type 1 " << endl;
//-- std::cout << "pb dans RstInt Type 1 " << std::endl;
}
}
else {
@@ -974,7 +974,7 @@ void IntPatch_RstInt::PutVertexOnLine (const Handle(IntPatch_Line)& L,
}
else {
//-- cout << "pb dans RstInt Type 2 " << endl;
//-- std::cout << "pb dans RstInt Type 2 " << std::endl;
}
}
}
@@ -1020,14 +1020,14 @@ void IntPatch_RstInt::PutVertexOnLine (const Handle(IntPatch_Line)& L,
}
else if(Surf1->IsUClosed()) {
pu1=Surf1->LastUParameter() - Surf1->FirstUParameter();
//cout<<" UClosed1 "<<pu1<<endl;
//std::cout<<" UClosed1 "<<pu1<<std::endl;
}
if( Surf1->IsVPeriodic()) {
pv1=Surf1->VPeriod();
}
else if(Surf1->IsVClosed()) {
pv1=Surf1->LastVParameter() - Surf1->FirstVParameter();
//cout<<" VClosed1 "<<pv1<<endl;
//std::cout<<" VClosed1 "<<pv1<<std::endl;
}
break;
@@ -1051,7 +1051,7 @@ void IntPatch_RstInt::PutVertexOnLine (const Handle(IntPatch_Line)& L,
}
else if(Surf2->IsUClosed()) {
pu2=Surf2->LastUParameter() - Surf2->FirstUParameter();
//cout<<" UClosed2 "<<pu2<<endl;
//std::cout<<" UClosed2 "<<pu2<<std::endl;
}
if( Surf2->IsVPeriodic()) {
@@ -1059,7 +1059,7 @@ void IntPatch_RstInt::PutVertexOnLine (const Handle(IntPatch_Line)& L,
}
else if(Surf2->IsVClosed()) {
pv2=Surf2->LastVParameter() - Surf2->FirstVParameter();
//cout<<" VClosed2 "<<pv2<<endl;
//std::cout<<" VClosed2 "<<pv2<<std::endl;
}
break;

View File

@@ -460,9 +460,9 @@ Standard_Boolean IntPatch_SpecialPoints::ProcessSphere(const IntSurf_PntOn2S& th
//of the pole.
#ifdef INTPATCH_ADDSPECIALPOINTS_DEBUG
cout << "Cannot find UV-coordinate for quadric in the pole."
std::cout << "Cannot find UV-coordinate for quadric in the pole."
" See considered comment above. IntPatch_SpecialPoints.cxx,"
" ProcessSphere(...)" << endl;
" ProcessSphere(...)" << std::endl;
#endif
Standard_Real aUIso = 0.0, aVIso = 0.0;
if (theIsReversed)
@@ -672,8 +672,8 @@ Standard_Boolean IntPatch_SpecialPoints::ProcessCone(const IntSurf_PntOn2S& theP
if (theIsIsoChoosen)
{
#ifdef INTPATCH_ADDSPECIALPOINTS_DEBUG
cout << "Cannot find UV-coordinate for quadric in the pole."
" IntPatch_AddSpecialPoints.cxx, ProcessCone(...)" << endl;
std::cout << "Cannot find UV-coordinate for quadric in the pole."
" IntPatch_AddSpecialPoints.cxx, ProcessCone(...)" << std::endl;
#endif
theIsIsoChoosen = Standard_True;

View File

@@ -269,18 +269,18 @@ void IntPatch_WLine::ComputeVertexParameters( const Standard_Real RTol)
nbvtx = NbVertex();
#if DEBUGV
cout<<"\n----------- avant ComputeVertexParameters -------------"<<endl;
std::cout<<"\n----------- avant ComputeVertexParameters -------------"<<std::endl;
for(i=1;i<=nbvtx;i++) {
Vertex(i).Dump();
Standard_Real polr = Vertex(i).ParameterOnLine();
Standard_Real pol = (Standard_Integer)polr;
if(pol>=1 && pol<=nbvtx) {
cout<<"----> IntSurf_PntOn2S : "<<polr<<" Pnt ("<<Vertex(pol).Value().X()
std::cout<<"----> IntSurf_PntOn2S : "<<polr<<" Pnt ("<<Vertex(pol).Value().X()
<<","<<Vertex(pol).Value().Y()
<<","<<Vertex(pol).Value().Z()<<")"<<endl;
<<","<<Vertex(pol).Value().Z()<<")"<<std::endl;
}
}
cout<<"\n----------------------------------------------------------"<<endl;
std::cout<<"\n----------------------------------------------------------"<<std::endl;
#endif
@@ -924,18 +924,18 @@ void IntPatch_WLine::ComputeVertexParameters( const Standard_Real RTol)
//-- Dump();
#if DEBUGV
cout<<"\n----------- apres ComputeVertexParameters -------------"<<endl;
std::cout<<"\n----------- apres ComputeVertexParameters -------------"<<std::endl;
for(i=1;i<=nbvtx;i++) {
Vertex(i).Dump();
Standard_Real polr = Vertex(i).ParameterOnLine();
Standard_Real pol = (Standard_Integer)polr;
if(pol>=1 && pol<=nbvtx) {
cout<<"----> IntSurf_PntOn2S : "<<polr<<" Pnt ("<<Vertex(pol).Value().X()
std::cout<<"----> IntSurf_PntOn2S : "<<polr<<" Pnt ("<<Vertex(pol).Value().X()
<<","<<Vertex(pol).Value().Y()
<<","<<Vertex(pol).Value().Z()<<")"<<endl;
<<","<<Vertex(pol).Value().Z()<<")"<<std::endl;
}
}
cout<<"\n----------------------------------------------------------"<<endl;
std::cout<<"\n----------------------------------------------------------"<<std::endl;
#endif
@@ -970,7 +970,7 @@ const Handle(Adaptor2d_HCurve2d)& IntPatch_WLine::GetArcOnS2() const {
void IntPatch_WLine::Dump(const Standard_Integer theMode) const
{
cout<<" ----------- D u m p I n t P a t c h _ W L i n e -(begin)------"<<endl;
std::cout<<" ----------- D u m p I n t P a t c h _ W L i n e -(begin)------"<<std::endl;
const Standard_Integer aNbPoints = NbPnts();
const Standard_Integer aNbVertex = NbVertex();
@@ -995,10 +995,10 @@ void IntPatch_WLine::Dump(const Standard_Integer theMode) const
if(pol>=1 && pol<=aNbVertex)
{
cout<<"----> IntSurf_PntOn2S : "<<
std::cout<<"----> IntSurf_PntOn2S : "<<
polr <<", Pnt (" << Vertex(pol).Value().X() << "," <<
Vertex(pol).Value().Y() << "," <<
Vertex(pol).Value().Z() <<")" <<endl;
Vertex(pol).Value().Z() <<")" <<std::endl;
}
}
@@ -1032,6 +1032,6 @@ void IntPatch_WLine::Dump(const Standard_Integer theMode) const
break;
}
cout<<"\n--------------------------------------------------- (end) -------"<<endl;
std::cout<<"\n--------------------------------------------------- (end) -------"<<std::endl;
}