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:
@@ -247,9 +247,9 @@ Standard_Boolean ShapeFix::SameParameter(const TopoDS_Shape& shape,
|
||||
|
||||
if (!status) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"** SameParameter not complete. On "<<numedge<<" Edges:";
|
||||
if (nbfail > 0) cout<<" "<<nbfail<<" Failed";
|
||||
cout<<endl;
|
||||
std::cout<<"** SameParameter not complete. On "<<numedge<<" Edges:";
|
||||
if (nbfail > 0) std::cout<<" "<<nbfail<<" Failed";
|
||||
std::cout<<std::endl;
|
||||
#endif
|
||||
}
|
||||
return status;
|
||||
|
@@ -383,7 +383,7 @@ static Standard_Integer ApplyContext (ShapeFix_WireSegment &wire,
|
||||
TopoDS_Edge E = TopoDS::Edge ( it.Value() );
|
||||
if ( ! E.IsNull() ) segw->Add ( E );
|
||||
#ifdef OCCT_DEBUG
|
||||
else cout << "Error: ShapeFix_ComposeShell, ApplyContext: wrong mapping of edge" << endl;
|
||||
else std::cout << "Error: ShapeFix_ComposeShell, ApplyContext: wrong mapping of edge" << std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -400,7 +400,7 @@ static Standard_Integer ApplyContext (ShapeFix_WireSegment &wire,
|
||||
}
|
||||
}
|
||||
#ifdef OCCT_DEBUG
|
||||
else cout << "Warning: ShapeFix_ComposeShell, ApplyContext: edge is to remove - not implemented" << endl;
|
||||
else std::cout << "Warning: ShapeFix_ComposeShell, ApplyContext: edge is to remove - not implemented" << std::endl;
|
||||
#endif
|
||||
|
||||
return index - iedge;
|
||||
@@ -707,7 +707,7 @@ Standard_Integer ShapeFix_ComposeShell::ComputeCode (const Handle(ShapeExtend_Wi
|
||||
code = IOR_LEFT;
|
||||
myStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_FAIL2 );
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: ShapeFix_ComposeShell::ComputeCode: lost intersection point" << endl;
|
||||
std::cout << "Warning: ShapeFix_ComposeShell::ComputeCode: lost intersection point" << std::endl;
|
||||
#endif
|
||||
}
|
||||
return code;
|
||||
@@ -828,7 +828,7 @@ ShapeFix_WireSegment ShapeFix_ComposeShell::SplitWire (ShapeFix_WireSegment &wir
|
||||
DistributeSplitPoints ( wire.WireData(), myFace, i, nsplit, indexes, values );
|
||||
if ( nsplit <=0 ) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Error: ShapeFix_ComposeShell::SplitWire: edge dismissed" << endl;
|
||||
std::cout << "Error: ShapeFix_ComposeShell::SplitWire: edge dismissed" << std::endl;
|
||||
#endif
|
||||
i--;
|
||||
continue;
|
||||
@@ -1612,7 +1612,7 @@ void ShapeFix_ComposeShell::SplitByLine (ShapeFix_SequenceOfWireSegment &wires,
|
||||
if ( tanglevel <0 ) {
|
||||
// myStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_FAIL4 );
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: ShapeFix_ComposeShell::SplitByLine: tangency level <0 !" << endl;
|
||||
std::cout << "Warning: ShapeFix_ComposeShell::SplitByLine: tangency level <0 !" << std::endl;
|
||||
#endif
|
||||
}
|
||||
if ( ! interior ) continue;
|
||||
@@ -1627,7 +1627,7 @@ void ShapeFix_ComposeShell::SplitByLine (ShapeFix_SequenceOfWireSegment &wires,
|
||||
if ( SplitLinePar(i) - SplitLinePar(i-1) < ::Precision::PConfusion() ) {
|
||||
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Info: ShapeFix_ComposeShell::SplitByLine: Short segment ignored" << endl;
|
||||
std::cout << "Info: ShapeFix_ComposeShell::SplitByLine: Short segment ignored" << std::endl;
|
||||
#endif
|
||||
if ( ! V1.IsSame ( V2 ) ) { // merge coincident vertices
|
||||
ShapeBuild_Vertex sbv;
|
||||
@@ -1636,7 +1636,7 @@ void ShapeFix_ComposeShell::SplitByLine (ShapeFix_SequenceOfWireSegment &wires,
|
||||
Context()->Replace ( V2, V.Oriented ( V2.Orientation() ) );
|
||||
V1 = V2 = V;
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Info: ShapeFix_ComposeShell::SplitByLine: Coincided vertices merged" << endl;
|
||||
std::cout << "Info: ShapeFix_ComposeShell::SplitByLine: Coincided vertices merged" << std::endl;
|
||||
#endif
|
||||
}
|
||||
continue;
|
||||
@@ -1680,7 +1680,7 @@ void ShapeFix_ComposeShell::SplitByLine (ShapeFix_SequenceOfWireSegment &wires,
|
||||
if ( parity % 2 ) {
|
||||
myStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_FAIL4 );
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Error: ShapeFix_ComposeShell::SplitByLine: parity error" << endl;
|
||||
std::cout << "Error: ShapeFix_ComposeShell::SplitByLine: parity error" << std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -2006,7 +2006,7 @@ void ShapeFix_ComposeShell::CollectWires (ShapeFix_SequenceOfWireSegment &wires,
|
||||
#ifdef OCCT_DEBUG
|
||||
for ( Standard_Integer k=1; ! myClosedMode && k <= seqw(i).NbEdges(); k++ )
|
||||
if ( ! seqw(i).CheckPatchIndex ( k ) ) {
|
||||
cout << "Warning: ShapeFix_ComposeShell::CollectWires: Wrong patch indices" << endl;
|
||||
std::cout << "Warning: ShapeFix_ComposeShell::CollectWires: Wrong patch indices" << std::endl;
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
@@ -2018,7 +2018,7 @@ void ShapeFix_ComposeShell::CollectWires (ShapeFix_SequenceOfWireSegment &wires,
|
||||
( seqw(i).NbEdges() == 1 && //:abv 13.05.02: OCC320 - remove if degenerated
|
||||
BRep_Tool::Degenerated ( seqw(i).Edge(1) ) ) ) ) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Info: ShapeFix_ComposeShell::CollectWires: Short segment ignored" << endl;
|
||||
std::cout << "Info: ShapeFix_ComposeShell::CollectWires: Short segment ignored" << std::endl;
|
||||
#endif
|
||||
seqw(i).Orientation ( TopAbs_INTERNAL );
|
||||
}
|
||||
@@ -2225,7 +2225,7 @@ void ShapeFix_ComposeShell::CollectWires (ShapeFix_SequenceOfWireSegment &wires,
|
||||
if ( ! endV.IsSame ( sae.FirstVertex ( firstEdge ) ) ) {
|
||||
myStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_FAIL5 );
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: ShapeFix_ComposeShell::CollectWires: can't close wire" << endl;
|
||||
std::cout << "Warning: ShapeFix_ComposeShell::CollectWires: can't close wire" << std::endl;
|
||||
#endif
|
||||
}
|
||||
ShapeFix_WireSegment s ( sbwd, TopAbs_FORWARD );
|
||||
@@ -2285,7 +2285,7 @@ void ShapeFix_ComposeShell::CollectWires (ShapeFix_SequenceOfWireSegment &wires,
|
||||
ShapeFix_WireSegment s ( wd, TopAbs_FORWARD );
|
||||
wires.Append ( s );
|
||||
#ifdef OCCT_DEBUG
|
||||
cout <<"Warning: Short segment processed as separate wire"<<endl;
|
||||
std::cout <<"Warning: Short segment processed as separate wire"<<std::endl;
|
||||
#endif
|
||||
continue;
|
||||
}
|
||||
@@ -2471,7 +2471,7 @@ void ShapeFix_ComposeShell::MakeFacesOnPatch (TopTools_SequenceOfShape &faces,
|
||||
// check for lost wires, and if they are, make them roots
|
||||
if ( roots.Length() <=0 && loops.Length() >0 ) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Error: ShapeFix_ComposeShell::MakeFacesOnPatch: can't dispatch wires" << endl;
|
||||
std::cout << "Error: ShapeFix_ComposeShell::MakeFacesOnPatch: can't dispatch wires" << std::endl;
|
||||
#endif
|
||||
for ( Standard_Integer j=1; j <= loops.Length(); j++ ) {
|
||||
roots.Append ( loops(j) );
|
||||
@@ -2490,7 +2490,7 @@ void ShapeFix_ComposeShell::MakeFacesOnPatch (TopTools_SequenceOfShape &faces,
|
||||
if ( clas.PerformInfinitePoint() == TopAbs_IN ) {
|
||||
reverse = Standard_True;
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: ShapeFix_ComposeShell::MakeFacesOnPatch: badly oriented wire" << endl;
|
||||
std::cout << "Warning: ShapeFix_ComposeShell::MakeFacesOnPatch: badly oriented wire" << std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -2542,7 +2542,7 @@ void ShapeFix_ComposeShell::MakeFacesOnPatch (TopTools_SequenceOfShape &faces,
|
||||
// check for lost wires, and if they are, make them roots
|
||||
if ( i == roots.Length() && loops.Length() >0 ) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Error: ShapeFix_ComposeShell::MakeFacesOnPatch: can't dispatch wires" << endl;
|
||||
std::cout << "Error: ShapeFix_ComposeShell::MakeFacesOnPatch: can't dispatch wires" << std::endl;
|
||||
#endif
|
||||
for ( j=1; j <= loops.Length(); j++ ) {
|
||||
TopoDS_Shape aSh = loops(j);
|
||||
|
@@ -267,7 +267,7 @@ static Handle(Geom2d_Curve) TranslatePCurve (const Handle(Geom_Surface)& aSurf,
|
||||
*/
|
||||
// Other case not yet implemented
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "TranslatePCurve not performed" << endl;
|
||||
std::cout << "TranslatePCurve not performed" << std::endl;
|
||||
#endif
|
||||
return theNewL2d;//*theL2d;
|
||||
}
|
||||
@@ -277,7 +277,7 @@ static Handle(Geom2d_Curve) TranslatePCurve (const Handle(Geom_Surface)& aSurf,
|
||||
aBC = Handle(Geom2d_BSplineCurve)::DownCast(aC2d);
|
||||
if (aBC.IsNull()) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Untreated curve type in TranslatePCurve" << endl;
|
||||
std::cout << "Untreated curve type in TranslatePCurve" << std::endl;
|
||||
#endif
|
||||
return aC2d;
|
||||
}
|
||||
@@ -558,8 +558,8 @@ Standard_Boolean ShapeFix_Edge::FixAddPCurve (const TopoDS_Edge& edge,
|
||||
catch(Standard_Failure const& anException) {
|
||||
#ifdef OCCT_DEBUG
|
||||
//:s5
|
||||
cout << "Warning: ShapeFix_Edge::FixAddPCurve(): Exception: ";
|
||||
anException.Print(cout); cout << endl;
|
||||
std::cout << "Warning: ShapeFix_Edge::FixAddPCurve(): Exception: ";
|
||||
anException.Print(std::cout); std::cout << std::endl;
|
||||
#endif
|
||||
(void)anException;
|
||||
myStatus |= ShapeExtend::EncodeStatus (ShapeExtend_FAIL2);
|
||||
@@ -787,8 +787,8 @@ Standard_Boolean ShapeFix_Edge::FixSameParameter(const TopoDS_Edge& edge,
|
||||
}
|
||||
catch(Standard_Failure const& anException) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "\nWarning: ShapeFix_Edge: Exception in SameParameter: ";
|
||||
anException.Print(cout); cout << endl;
|
||||
std::cout << "\nWarning: ShapeFix_Edge: Exception in SameParameter: ";
|
||||
anException.Print(std::cout); std::cout << std::endl;
|
||||
#endif
|
||||
(void)anException;
|
||||
myStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_FAIL2 );
|
||||
|
@@ -101,7 +101,7 @@ void ShapeFix_EdgeProjAux::Compute (const Standard_Real preci)
|
||||
Standard_Real U2 = LastParam();
|
||||
if (U1>=U2) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Parametres inverses ... " << endl;
|
||||
std::cout << "Parametres inverses ... " << std::endl;
|
||||
#endif
|
||||
Standard_Real tmp = U1;
|
||||
U1 = U2; U2 = tmp;
|
||||
@@ -212,8 +212,8 @@ static Standard_Boolean FindParameterWithExt (const gp_Pnt& Pt1,
|
||||
catch(Standard_Failure const& anException) {
|
||||
#ifdef OCCT_DEBUG
|
||||
//:s5
|
||||
cout << "Warning: ShapeFix_EdgeProjAux, FindParameterWithExt(): Exception: ";
|
||||
anException.Print(cout); cout << endl;
|
||||
std::cout << "Warning: ShapeFix_EdgeProjAux, FindParameterWithExt(): Exception: ";
|
||||
anException.Print(std::cout); std::cout << std::endl;
|
||||
#endif
|
||||
(void)anException;
|
||||
return Standard_False;
|
||||
@@ -268,7 +268,7 @@ void ShapeFix_EdgeProjAux::Init2d (const Standard_Real preci)
|
||||
}
|
||||
}
|
||||
#ifdef OCCT_DEBUG
|
||||
else cout <<"Other type of deg curve"<<endl;
|
||||
else std::cout <<"Other type of deg curve"<<std::endl;
|
||||
#endif
|
||||
|
||||
}
|
||||
@@ -357,7 +357,7 @@ void ShapeFix_EdgeProjAux::Init2d (const Standard_Real preci)
|
||||
cl= 10000;
|
||||
//pdn not cutted by bounds
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"Infinite Surface"<<endl;
|
||||
std::cout<<"Infinite Surface"<<std::endl;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -377,7 +377,7 @@ void ShapeFix_EdgeProjAux::Init2d (const Standard_Real preci)
|
||||
}
|
||||
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"Some infinite curve"<<endl;
|
||||
std::cout<<"Some infinite curve"<<std::endl;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -424,7 +424,7 @@ void ShapeFix_EdgeProjAux::Init2d (const Standard_Real preci)
|
||||
myLastParam = theCurve2d->ReversedParameter(Uinf);
|
||||
theCurve2d->Reverse();
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: ShapeFix_EdgeProjAux: pcurve reversed" << endl;
|
||||
std::cout << "Warning: ShapeFix_EdgeProjAux: pcurve reversed" << std::endl;
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
@@ -465,7 +465,7 @@ void ShapeFix_EdgeProjAux::Init2d (const Standard_Real preci)
|
||||
else {
|
||||
myLastParam+=period;
|
||||
#ifdef OCCT_DEBUG
|
||||
cout <<" Added"<<endl;
|
||||
std::cout <<" Added"<<std::endl;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -474,7 +474,7 @@ void ShapeFix_EdgeProjAux::Init2d (const Standard_Real preci)
|
||||
myLastParam -=period;
|
||||
UpdateParam2d(theCurve2d);
|
||||
#ifdef OCCT_DEBUG
|
||||
cout <<" Added & Inverted"<<endl;
|
||||
std::cout <<" Added & Inverted"<<std::endl;
|
||||
#endif
|
||||
} else if (w2 < wmid) {
|
||||
myFirstParam += period;
|
||||
@@ -587,8 +587,8 @@ void ShapeFix_EdgeProjAux::UpdateParam2d (const Handle(Geom2d_Curve)& theCurve2d
|
||||
else if ( Abs ( myLastParam - cf ) <= preci2d ) myLastParam = cl;
|
||||
else {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Error : curve 2d range crossing non periodic curve origin";
|
||||
cout << endl;
|
||||
std::cout << "Error : curve 2d range crossing non periodic curve origin";
|
||||
std::cout << std::endl;
|
||||
#endif
|
||||
// add fail result;
|
||||
return;
|
||||
@@ -605,13 +605,13 @@ void ShapeFix_EdgeProjAux::UpdateParam2d (const Handle(Geom2d_Curve)& theCurve2d
|
||||
}
|
||||
else {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning : non increasing parameters for 2d curve." << endl;
|
||||
cout << " update parameter 2d uncertain." << endl;
|
||||
std::cout << "Warning : non increasing parameters for 2d curve." << std::endl;
|
||||
std::cout << " update parameter 2d uncertain." << std::endl;
|
||||
#endif
|
||||
Standard_Real tmp1 = myFirstParam, tmp2 = myLastParam;
|
||||
myFirstParam = theCurve2d->ReversedParameter(tmp1);
|
||||
myLastParam = theCurve2d->ReversedParameter(tmp2);
|
||||
theCurve2d->Reverse();
|
||||
//cout<<"Reversed case 2"<<endl;
|
||||
//std::cout<<"Reversed case 2"<<std::endl;
|
||||
}
|
||||
}
|
||||
|
@@ -348,7 +348,7 @@ static Standard_Boolean SplitWire(const TopoDS_Face &face, const TopoDS_Wire& wi
|
||||
|
||||
if(aResWires.Length()>1) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"Wire was splitted on "<<aResWires.Length()<<" wires"<< endl;
|
||||
std::cout<<"Wire was splitted on "<<aResWires.Length()<<" wires"<< std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -995,7 +995,7 @@ Standard_Boolean ShapeFix_Face::FixAddNaturalBound()
|
||||
|
||||
/**/
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"Natural bound on sphere or torus with holes added"<<endl; // mise au point !
|
||||
std::cout<<"Natural bound on sphere or torus with holes added"<<std::endl; // mise au point !
|
||||
#endif
|
||||
SendWarning ( myFace, Message_Msg ( "FixAdvFace.FixOrientation.MSG0" ) );// Face created with natural bounds
|
||||
return Standard_True;
|
||||
@@ -1106,7 +1106,7 @@ Standard_Boolean ShapeFix_Face::FixOrientation(TopTools_DataMapOfShapeListOfShap
|
||||
SendWarning ( sbdw->Wire(), Message_Msg ( "FixAdvFace.FixOrientation.MSG5" ) );// Wire on face was reversed
|
||||
done = Standard_True;
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"Wire reversed"<<endl; // mise au point !
|
||||
std::cout<<"Wire reversed"<<std::endl; // mise au point !
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -1403,7 +1403,7 @@ Standard_Boolean ShapeFix_Face::FixOrientation(TopTools_DataMapOfShapeListOfShap
|
||||
for( ; k <= aSeqReversed.Length(); k++ )
|
||||
{
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"Wire no "<<aSeqReversed.Value(k)<<" of "<<nb<<" reversed"<<endl; // mise au point !
|
||||
std::cout<<"Wire no "<<aSeqReversed.Value(k)<<" of "<<nb<<" reversed"<<std::endl; // mise au point !
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -1567,18 +1567,18 @@ Standard_Boolean ShapeFix_Face::FixMissingSeam()
|
||||
else {
|
||||
w2.Reverse();
|
||||
#ifdef OCCT_DEBUG
|
||||
if ( ! isdeg2 ) cout << "Warning: ShapeFix_Face::FixMissingSeam(): wire reversed" << endl;
|
||||
if ( ! isdeg2 ) std::cout << "Warning: ShapeFix_Face::FixMissingSeam(): wire reversed" << std::endl;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
#ifdef OCCT_DEBUG
|
||||
else cout << "Warning: ShapeFix_Face::FixMissingSeam(): incompatible open wires" << endl;
|
||||
else std::cout << "Warning: ShapeFix_Face::FixMissingSeam(): incompatible open wires" << std::endl;
|
||||
#endif
|
||||
}
|
||||
// else return Standard_False; // abort
|
||||
else {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: ShapeFix_Face::FixMissingSeam(): more than two open wires detected!" << endl;
|
||||
std::cout << "Warning: ShapeFix_Face::FixMissingSeam(): more than two open wires detected!" << std::endl;
|
||||
#endif
|
||||
//:abv 30.08.09: if more than one open wires and more than two of them are
|
||||
// completely degenerated, remove any of them
|
||||
@@ -1588,7 +1588,7 @@ Standard_Boolean ShapeFix_Face::FixMissingSeam()
|
||||
w2.Nullify();
|
||||
i = 0;
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: ShapeFix_Face::FixMissingSeam(): open degenerated wire removed" << endl;
|
||||
std::cout << "Warning: ShapeFix_Face::FixMissingSeam(): open degenerated wire removed" << std::endl;
|
||||
#endif
|
||||
continue;
|
||||
}
|
||||
@@ -1921,7 +1921,7 @@ Standard_Boolean ShapeFix_Face::FixSmallAreaWire(const Standard_Boolean theIsRem
|
||||
if ( nbWires <= 0 )
|
||||
{
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: ShapeFix_Face: All wires on a face have small area; left untouched" << endl;
|
||||
std::cout << "Warning: ShapeFix_Face: All wires on a face have small area; left untouched" << std::endl;
|
||||
#endif
|
||||
if ( theIsRemoveSmallFace && !Context().IsNull() )
|
||||
Context()->Remove(myFace);
|
||||
@@ -1929,7 +1929,7 @@ Standard_Boolean ShapeFix_Face::FixSmallAreaWire(const Standard_Boolean theIsRem
|
||||
return Standard_False;
|
||||
}
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: ShapeFix_Face: " << nbRemoved << " small area wire(s) removed" << endl;
|
||||
std::cout << "Warning: ShapeFix_Face: " << nbRemoved << " small area wire(s) removed" << std::endl;
|
||||
#endif
|
||||
if ( !Context().IsNull() )
|
||||
Context()->Replace(myFace, aFace);
|
||||
@@ -2146,7 +2146,7 @@ Standard_Boolean ShapeFix_Face::FixLoopWire(TopTools_SequenceOfShape& aResWires)
|
||||
if(isDone && aResWires.Length() >1)
|
||||
{
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"Wire was splitted on "<<aResWires.Length()<<" wires"<< endl;
|
||||
std::cout<<"Wire was splitted on "<<aResWires.Length()<<" wires"<< std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -2421,7 +2421,7 @@ Standard_Boolean ShapeFix_Face::FixSplitFace(const TopTools_DataMapOfShapeListOf
|
||||
V2=sae.LastVertex(E2);
|
||||
if(!V1.IsSame(V2)) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"wire not closed --> stop split"<<endl;
|
||||
std::cout<<"wire not closed --> stop split"<<std::endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
}
|
||||
|
@@ -171,15 +171,15 @@ ShapeFix_FaceConnect::ShapeFix_FaceConnect() {}
|
||||
//szv debug - preparation results
|
||||
//-------------------------------
|
||||
if (!myOriFreeEdges.IsEmpty()) {
|
||||
cout<<endl<<"FACE CONNECT PREPARATION RESULTS:"<<endl;
|
||||
cout<<"---------------------------------"<<endl;
|
||||
std::cout<<std::endl<<"FACE CONNECT PREPARATION RESULTS:"<<std::endl;
|
||||
std::cout<<"---------------------------------"<<std::endl;
|
||||
Standard_Integer freenum = 0, facenum = 0;
|
||||
for ( TopTools_DataMapIteratorOfDataMapOfShapeListOfShape theOFIter( myOriFreeEdges );
|
||||
theOFIter.More(); theOFIter.Next() ) {
|
||||
freenum += theOFIter.Value().Extent();
|
||||
facenum++;
|
||||
}
|
||||
cout<<"TOTAL: "<<facenum<<" faces containing "<<freenum<<" free edges"<<endl;
|
||||
std::cout<<"TOTAL: "<<facenum<<" faces containing "<<freenum<<" free edges"<<std::endl;
|
||||
}
|
||||
//-------------------------------
|
||||
#endif
|
||||
@@ -245,7 +245,7 @@ ShapeFix_FaceConnect::ShapeFix_FaceConnect() {}
|
||||
// Process second face for the pair of different faces only
|
||||
if (theFirstFace.IsSame(theSecondFace)) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"Warning: ShapeFix_FaceConnect::Build: Self-connected face"<<endl;
|
||||
std::cout<<"Warning: ShapeFix_FaceConnect::Build: Self-connected face"<<std::endl;
|
||||
#endif
|
||||
}
|
||||
else theNumOfFacesToSew = 2;
|
||||
@@ -346,9 +346,9 @@ ShapeFix_FaceConnect::ShapeFix_FaceConnect() {}
|
||||
//-------------------------------
|
||||
//szv debug - sewing results
|
||||
//-------------------------------
|
||||
cout<<endl<<"FACE CONNECT SEWING RESULTS:"<<endl;
|
||||
cout<<"----------------------------"<<endl;
|
||||
cout<<"Sewing tolerance was set to "<<sewtoler<<endl;
|
||||
std::cout<<std::endl<<"FACE CONNECT SEWING RESULTS:"<<std::endl;
|
||||
std::cout<<"----------------------------"<<std::endl;
|
||||
std::cout<<"Sewing tolerance was set to "<<sewtoler<<std::endl;
|
||||
Standard_Integer totfree = 0, totshared = 0;
|
||||
for ( TopTools_DataMapIteratorOfDataMapOfShapeListOfShape theOF2Iter( myOriFreeEdges );
|
||||
theOF2Iter.More(); theOF2Iter.Next() ) {
|
||||
@@ -359,7 +359,7 @@ ShapeFix_FaceConnect::ShapeFix_FaceConnect() {}
|
||||
totshared += myResSharEdges(theOFL2Iter.Value()).Extent();
|
||||
}
|
||||
}
|
||||
cout<<"TOTAL: "<<totfree<<" free, "<<totshared<<" shared edges"<<endl;
|
||||
std::cout<<"TOTAL: "<<totfree<<" free, "<<totshared<<" shared edges"<<std::endl;
|
||||
//-------------------------------
|
||||
#endif
|
||||
|
||||
@@ -476,12 +476,12 @@ ShapeFix_FaceConnect::ShapeFix_FaceConnect() {}
|
||||
result = TopoDS::Shell(tmpReShape);
|
||||
if (theReShape->Status(ShapeExtend_OK)) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"Warning: ShapeFix_FaceConnect::Build: Edges not replaced by ReShape"<<endl;
|
||||
std::cout<<"Warning: ShapeFix_FaceConnect::Build: Edges not replaced by ReShape"<<std::endl;
|
||||
#endif
|
||||
}
|
||||
else if (theReShape->Status(ShapeExtend_FAIL1)) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"Error: ShapeFix_FaceConnect::Build: ReShape failed on edges"<<endl;
|
||||
std::cout<<"Error: ShapeFix_FaceConnect::Build: ReShape failed on edges"<<std::endl;
|
||||
#endif
|
||||
}
|
||||
else {
|
||||
@@ -631,7 +631,7 @@ ShapeFix_FaceConnect::ShapeFix_FaceConnect() {}
|
||||
|
||||
if (theReShape->Status(ShapeExtend_FAIL1)) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"Error: ShapeFix_FaceConnect::Build: ReShape failed on vertices"<<endl;
|
||||
std::cout<<"Error: ShapeFix_FaceConnect::Build: ReShape failed on vertices"<<std::endl;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -640,8 +640,8 @@ ShapeFix_FaceConnect::ShapeFix_FaceConnect() {}
|
||||
//-------------------------------
|
||||
//szv debug - reshape results
|
||||
//-------------------------------
|
||||
cout<<endl<<"FACE CONNECT REPLACEMENT RESULTS:"<<endl;
|
||||
cout<<"---------------------------------"<<endl;
|
||||
std::cout<<std::endl<<"FACE CONNECT REPLACEMENT RESULTS:"<<std::endl;
|
||||
std::cout<<"---------------------------------"<<std::endl;
|
||||
TopTools_MapOfShape theTmpMap;
|
||||
Standard_Integer toteold = 0, totenew = 0;
|
||||
for ( TopTools_DataMapIteratorOfDataMapOfShapeShape theR1Iter( theRepEdges );
|
||||
@@ -662,8 +662,8 @@ ShapeFix_FaceConnect::ShapeFix_FaceConnect() {}
|
||||
totvnew++;
|
||||
}
|
||||
}
|
||||
cout<<"TOTAL: "<<toteold<<" edges, "<<totvold<<" vertices replaced by "
|
||||
<<totenew<<" edges, "<<totvnew<<" vertices"<<endl<<endl;
|
||||
std::cout<<"TOTAL: "<<toteold<<" edges, "<<totvold<<" vertices replaced by "
|
||||
<<totenew<<" edges, "<<totvnew<<" vertices"<<std::endl<<std::endl;
|
||||
//-------------------------------
|
||||
#endif
|
||||
|
||||
|
@@ -252,7 +252,7 @@ ShapeFix_FixSmallFace::ShapeFix_FixSmallFace()
|
||||
TopoDS_Shell Sh = TopoDS::Shell (exp_s.Current());
|
||||
TopExp_Explorer ex_sh(Sh,TopAbs_FACE);
|
||||
if (!ex_sh.More()) { Context()->Remove(Sh);
|
||||
// cout << "Empty shell was removed" << endl;
|
||||
// std::cout << "Empty shell was removed" << std::endl;
|
||||
}
|
||||
}
|
||||
myShape = Context()->Apply(myShape);
|
||||
@@ -449,7 +449,7 @@ ShapeFix_FixSmallFace::ShapeFix_FixSmallFace()
|
||||
}
|
||||
else {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "The face is not strip face" << endl;
|
||||
std::cout << "The face is not strip face" << std::endl;
|
||||
#endif
|
||||
return theNewEdge;
|
||||
}
|
||||
|
@@ -462,7 +462,7 @@ Standard_Boolean ShapeFix_IntersectionTool::UnionVertexes(const Handle(ShapeExte
|
||||
// union vertexes V1F and V2F
|
||||
B.UpdateVertex(V1F,tolv);
|
||||
TopoDS_Edge NewE = sbe.CopyReplaceVertices(edge2,V1F,V2L);
|
||||
// cout<<"union vertexes V1F and V2F"<<endl;
|
||||
// std::cout<<"union vertexes V1F and V2F"<<std::endl;
|
||||
// gp_Pnt Ptmp = BRep_Tool::Pnt(V1F);
|
||||
// B.MakeVertex(V,Ptmp,tolv);
|
||||
// myContext->Replace(V1F,V);
|
||||
@@ -525,7 +525,7 @@ Standard_Boolean ShapeFix_IntersectionTool::UnionVertexes(const Handle(ShapeExte
|
||||
// union vertexes V1F and V2L
|
||||
B.UpdateVertex(V1F,tolv);
|
||||
TopoDS_Edge NewE = sbe.CopyReplaceVertices(edge2,V2F,V1F);
|
||||
// cout<<"union vertexes V1F and V2L"<<endl;
|
||||
// std::cout<<"union vertexes V1F and V2L"<<std::endl;
|
||||
// gp_Pnt Ptmp = BRep_Tool::Pnt(V1F);
|
||||
// B.MakeVertex(V,Ptmp,tolv);
|
||||
// myContext->Replace(V1F,V);
|
||||
@@ -589,7 +589,7 @@ Standard_Boolean ShapeFix_IntersectionTool::UnionVertexes(const Handle(ShapeExte
|
||||
// union vertexes V1L and V2F
|
||||
B.UpdateVertex(V1L,tolv);
|
||||
TopoDS_Edge NewE = sbe.CopyReplaceVertices(edge2,V1L,V2L);
|
||||
// cout<<"union vertexes V1L and V2F"<<endl;
|
||||
// std::cout<<"union vertexes V1L and V2F"<<std::endl;
|
||||
// gp_Pnt Ptmp = BRep_Tool::Pnt(V1L);
|
||||
// B.MakeVertex(V,Ptmp,tolv);
|
||||
// myContext->Replace(V1L,V);
|
||||
@@ -652,7 +652,7 @@ Standard_Boolean ShapeFix_IntersectionTool::UnionVertexes(const Handle(ShapeExte
|
||||
// union vertexes V1L and V2L
|
||||
B.UpdateVertex(V1L,tolv);
|
||||
TopoDS_Edge NewE = sbe.CopyReplaceVertices(edge2,V2F,V1L);
|
||||
// cout<<"union vertexes V1L and V2L"<<endl;
|
||||
// std::cout<<"union vertexes V1L and V2L"<<std::endl;
|
||||
// gp_Pnt Ptmp = BRep_Tool::Pnt(V1L);
|
||||
// B.MakeVertex(V,Ptmp,tolv);
|
||||
// myContext->Replace(V1L,V);
|
||||
|
@@ -223,8 +223,8 @@ static void CollectSolids(const TopTools_SequenceOfShape& aSeqShells ,
|
||||
}
|
||||
catch(Standard_Failure const& anException) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: ShapeFix_Solid::SolidFromShell: Exception: ";
|
||||
anException.Print(cout); cout << endl;
|
||||
std::cout << "Warning: ShapeFix_Solid::SolidFromShell: Exception: ";
|
||||
anException.Print(std::cout); std::cout << std::endl;
|
||||
#endif
|
||||
(void)anException;
|
||||
continue;
|
||||
@@ -301,8 +301,8 @@ static Standard_Boolean CreateSolids(const TopoDS_Shape theShape,TopTools_Indexe
|
||||
}
|
||||
catch(Standard_Failure const& anException) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: ShapeFix_Solid::SolidFromShell: Exception: ";
|
||||
anException.Print(cout); cout << endl;
|
||||
std::cout << "Warning: ShapeFix_Solid::SolidFromShell: Exception: ";
|
||||
anException.Print(std::cout); std::cout << std::endl;
|
||||
#endif
|
||||
(void)anException;
|
||||
ShellSolid.Add(aShell,aSolid);
|
||||
@@ -584,8 +584,8 @@ TopoDS_Solid ShapeFix_Solid::SolidFromShell (const TopoDS_Shell& shell)
|
||||
}
|
||||
catch(Standard_Failure const& anException) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: ShapeFix_Solid::SolidFromShell: Exception: ";
|
||||
anException.Print(cout); cout << endl;
|
||||
std::cout << "Warning: ShapeFix_Solid::SolidFromShell: Exception: ";
|
||||
anException.Print(std::cout); std::cout << std::endl;
|
||||
#endif
|
||||
(void)anException;
|
||||
return solid;
|
||||
|
@@ -608,7 +608,7 @@ Standard_Boolean ShapeFix_Wire::FixEdgeCurves()
|
||||
}
|
||||
if ( seq.Length() >0 ) { // supposed that edge is SP
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Edge going over singularity detected; splitted" << endl;
|
||||
std::cout << "Edge going over singularity detected; splitted" << std::endl;
|
||||
#endif
|
||||
Standard_Boolean isFwd = ( E.Orientation() == TopAbs_FORWARD );
|
||||
E.Orientation ( TopAbs_FORWARD );
|
||||
@@ -723,7 +723,7 @@ Standard_Boolean ShapeFix_Wire::FixEdgeCurves()
|
||||
myFixEdge->FixAddPCurve ( sbwd->Edge(overdegen), face, sbwd->IsSeam(overdegen), myAnalyzer->Surface(), Precision());
|
||||
}
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Edge going over singularity detected; pcurve adjusted" << endl;
|
||||
std::cout << "Edge going over singularity detected; pcurve adjusted" << std::endl;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -960,7 +960,7 @@ Standard_Boolean ShapeFix_Wire::FixSelfIntersection()
|
||||
num = ( myClosedMode ? 1 : 2 );
|
||||
nb = sbwd->NbEdges();
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: ShapeFix_Wire::FixSelfIntersection: Edge removed" << endl;
|
||||
std::cout << "Warning: ShapeFix_Wire::FixSelfIntersection: Edge removed" << std::endl;
|
||||
#endif
|
||||
}
|
||||
else
|
||||
@@ -996,8 +996,8 @@ Standard_Boolean ShapeFix_Wire::FixSelfIntersection()
|
||||
}
|
||||
#ifdef OCCT_DEBUG
|
||||
if (StatusSelfIntersection (ShapeExtend_DONE5))
|
||||
cout<<"Warning: ShapeFix_Wire::FixIntersection: Non-adjacent intersection fixed (split-"
|
||||
<<NbSplit<<", cut-"<<NbCut<<", removed-"<<NbRemoved<<")"<<endl;
|
||||
std::cout<<"Warning: ShapeFix_Wire::FixIntersection: Non-adjacent intersection fixed (split-"
|
||||
<<NbSplit<<", cut-"<<NbCut<<", removed-"<<NbRemoved<<")"<<std::endl;
|
||||
#endif
|
||||
|
||||
/*
|
||||
@@ -1043,7 +1043,7 @@ Standard_Boolean ShapeFix_Wire::FixSelfIntersection()
|
||||
myStatusSelfIntersection |= ShapeExtend::EncodeStatus ( ShapeExtend_DONE5 );
|
||||
#ifdef OCCT_DEBUG
|
||||
if (StatusSelfIntersection (ShapeExtend_DONE5))
|
||||
cout << "Warning: ShapeFix_Wire::FixSelfIntersection: Non ajacent intersection fixed" << endl;
|
||||
std::cout << "Warning: ShapeFix_Wire::FixSelfIntersection: Non ajacent intersection fixed" << std::endl;
|
||||
#endif
|
||||
*/
|
||||
}
|
||||
@@ -1388,7 +1388,7 @@ Standard_Boolean ShapeFix_Wire::FixShifted()
|
||||
VRange = aBaseCrv->Period();
|
||||
IsVCrvClosed = Standard_True;
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: ShapeFix_Wire::FixShifted set vclosed True for Surface of Revolution" << endl;
|
||||
std::cout << "Warning: ShapeFix_Wire::FixShifted set vclosed True for Surface of Revolution" << std::endl;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -1572,7 +1572,7 @@ Standard_Boolean ShapeFix_Wire::FixShifted()
|
||||
}
|
||||
myLastFixStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_DONE1 );
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Info: ShapeFix_Wire::FixShifted(): bi - meridian case fixed" << endl;
|
||||
std::cout << "Info: ShapeFix_Wire::FixShifted(): bi - meridian case fixed" << std::endl;
|
||||
#endif
|
||||
continue;
|
||||
}
|
||||
@@ -1869,14 +1869,14 @@ static Standard_Boolean RemoveLoop (TopoDS_Edge &E, const TopoDS_Face &face,
|
||||
return Standard_False;
|
||||
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Cut Loop: params (" << t1 << ", " << t2;
|
||||
std::cout << "Cut Loop: params (" << t1 << ", " << t2;
|
||||
#endif
|
||||
GeomAdaptor_Curve GAC ( crv, f, l );
|
||||
Standard_Real dt = tolfact * GAC.Resolution(prec);
|
||||
t1 -= dt; //1e-3;//::Precision::PConfusion();
|
||||
t2 += dt; //1e-3;//::Precision::PConfusion();
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << ") -> (" << t1 << ", " << t2 << ")" << endl;
|
||||
std::cout << ") -> (" << t1 << ", " << t2 << ")" << std::endl;
|
||||
#endif
|
||||
|
||||
if ( t1 <= a || t2 >= b ) { // should not be so, but to be sure ..
|
||||
@@ -1946,7 +1946,7 @@ static Standard_Boolean RemoveLoop (TopoDS_Edge &E, const TopoDS_Face &face,
|
||||
|
||||
Standard_Real tol = BRep_Tool::Tolerance ( E );
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Cut Loop: tol orig " << tol << ", prec " << prec << ", new tol " << newtol << endl;
|
||||
std::cout << "Cut Loop: tol orig " << tol << ", prec " << prec << ", new tol " << newtol << std::endl;
|
||||
#endif
|
||||
if ( newtol > Max ( prec, tol ) ) return Standard_False;
|
||||
//:s2 bs = BRep_Tool::CurveOnSurface ( edge, face, a, b );
|
||||
@@ -2055,7 +2055,7 @@ static Standard_Boolean RemoveLoop (TopoDS_Edge &E, const TopoDS_Face &face,
|
||||
TopoDS_Edge &E2)
|
||||
{
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"Info: ShapeFix_Wire::FixSelfIntersection : Try insert vertex"<<endl;
|
||||
std::cout<<"Info: ShapeFix_Wire::FixSelfIntersection : Try insert vertex"<<std::endl;
|
||||
#endif
|
||||
|
||||
if ( BRep_Tool::IsClosed ( E, face ) ) return Standard_False;
|
||||
@@ -2484,8 +2484,8 @@ Standard_Boolean ShapeFix_Wire::FixIntersectingEdges (const Standard_Integer num
|
||||
if ( BRep_Tool::Tolerance(E1) < te1 || BRep_Tool::Tolerance(E2) < te2 )
|
||||
{
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: ShapeFix_Wire::FixIE: edges tolerance increased: (" <<
|
||||
te1 << ", " << te2 << ") / " << newtol << endl;
|
||||
std::cout << "Warning: ShapeFix_Wire::FixIE: edges tolerance increased: (" <<
|
||||
te1 << ", " << te2 << ") / " << newtol << std::endl;
|
||||
#endif
|
||||
|
||||
// Make copy of edges.
|
||||
@@ -2915,7 +2915,7 @@ static Standard_Boolean TryBendingPCurve (const TopoDS_Edge &E, const TopoDS_Fac
|
||||
}
|
||||
catch ( Standard_Failure const& ) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: ShapeFix_Wire::FixLacking: Exception in Geom2d_BSplineCurve::Segment()" << endl;
|
||||
std::cout << "Warning: ShapeFix_Wire::FixLacking: Exception in Geom2d_BSplineCurve::Segment()" << std::endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
}
|
||||
@@ -3146,7 +3146,7 @@ Standard_Boolean ShapeFix_Wire::FixLacking (const Standard_Integer num,
|
||||
if ( doAddDegen ) {
|
||||
myLastFixStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_DONE3 );
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: ShapeFix_Wire::FixLacking: degenerated edge added" << endl;
|
||||
std::cout << "Warning: ShapeFix_Wire::FixLacking: degenerated edge added" << std::endl;
|
||||
#endif
|
||||
}
|
||||
else if ( ! doAddLong ) {
|
||||
@@ -3179,7 +3179,7 @@ Standard_Boolean ShapeFix_Wire::FixLacking (const Standard_Integer num,
|
||||
FixSelfIntersectingEdge ( n2 );
|
||||
FixIntersectingEdges ( n2 ); //skl 24.04.2003 for OCC58
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Info: ShapeFix_Wire::FixLacking: Bending pcurves" << endl;
|
||||
std::cout << "Info: ShapeFix_Wire::FixLacking: Bending pcurves" << std::endl;
|
||||
#endif
|
||||
myLastFixStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_DONE5 );
|
||||
}
|
||||
|
@@ -243,7 +243,7 @@ void ShapeFix_WireSegment::DefineIUMin (const Standard_Integer i,
|
||||
if ( myIUMin->Value(i) < iumin ) myIUMin->SetValue ( i, iumin );
|
||||
#ifdef OCCT_DEBUG
|
||||
if ( myIUMin->Value(i) > myIUMax->Value(i) )
|
||||
cout << "Warning: ShapeFix_WireSegment::DefineIUMin: indexation error" << endl;
|
||||
std::cout << "Warning: ShapeFix_WireSegment::DefineIUMin: indexation error" << std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -259,7 +259,7 @@ void ShapeFix_WireSegment::DefineIUMax (const Standard_Integer i,
|
||||
#ifdef OCCT_DEBUG
|
||||
Standard_Integer iun = myIUMin->Value(i), iux = myIUMax->Value(i);
|
||||
if ( iun > iux )
|
||||
cout << "Warning: ShapeFix_WireSegment::DefineIUMax: indexation error" << endl;
|
||||
std::cout << "Warning: ShapeFix_WireSegment::DefineIUMax: indexation error" << std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -275,7 +275,7 @@ void ShapeFix_WireSegment::DefineIVMin (const Standard_Integer i,
|
||||
#ifdef OCCT_DEBUG
|
||||
Standard_Integer ivn = myIVMin->Value(i), ivx = myIVMax->Value(i);
|
||||
if ( ivn > ivx )
|
||||
cout << "Warning: ShapeFix_WireSegment::DefineIVMin: indexation error" << endl;
|
||||
std::cout << "Warning: ShapeFix_WireSegment::DefineIVMin: indexation error" << std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -291,7 +291,7 @@ void ShapeFix_WireSegment::DefineIVMax (const Standard_Integer i,
|
||||
#ifdef OCCT_DEBUG
|
||||
Standard_Integer ivn = myIVMin->Value(i), ivx = myIVMax->Value(i);
|
||||
if ( ivn > ivx )
|
||||
cout << "Warning: ShapeFix_WireSegment::DefineIVMax: indexation error" << endl;
|
||||
std::cout << "Warning: ShapeFix_WireSegment::DefineIVMax: indexation error" << std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -324,7 +324,7 @@ Standard_Boolean ShapeFix_WireSegment::CheckPatchIndex (const Standard_Integer i
|
||||
Standard_Boolean ok = ( dU ==0 || dU ==1 ) && ( dV ==0 || dV ==1 );
|
||||
#ifdef OCCT_DEBUG
|
||||
if ( ! ok )
|
||||
cout << "Warning: ShapeFix_WireSegment::CheckPatchIndex: incomplete indexation" << endl;
|
||||
std::cout << "Warning: ShapeFix_WireSegment::CheckPatchIndex: incomplete indexation" << std::endl;
|
||||
#endif
|
||||
return ok;
|
||||
}
|
||||
|
@@ -367,8 +367,8 @@ static Standard_Real AdjustOnPeriodic3d (const Handle(Geom_Curve)& c,
|
||||
}
|
||||
catch (Standard_Failure const& anException) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: ShapeFix_Wire_1::FixGap3d: Exception in TrimmedCurve" <<first<<" " <<last<<endl;
|
||||
anException.Print(cout); cout << endl;
|
||||
std::cout << "Warning: ShapeFix_Wire_1::FixGap3d: Exception in TrimmedCurve" <<first<<" " <<last<<std::endl;
|
||||
anException.Print(std::cout); std::cout << std::endl;
|
||||
#endif
|
||||
(void)anException;
|
||||
}
|
||||
@@ -642,8 +642,8 @@ static Standard_Real AdjustOnPeriodic3d (const Handle(Geom_Curve)& c,
|
||||
}
|
||||
catch (Standard_Failure const& anException) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: ShapeFix_Wire_1::FixGap3d: Exception in TrimmedCurve :"<<endl;
|
||||
anException.Print(cout); cout << endl;
|
||||
std::cout << "Warning: ShapeFix_Wire_1::FixGap3d: Exception in TrimmedCurve :"<<std::endl;
|
||||
anException.Print(std::cout); std::cout << std::endl;
|
||||
#endif
|
||||
(void)anException;
|
||||
}
|
||||
@@ -950,8 +950,8 @@ static Standard_Real AdjustOnPeriodic2d (const Handle(Geom2d_Curve)& pc,
|
||||
}
|
||||
catch (Standard_Failure const& anException) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: ShapeFix_Wire_1::FixGap2d: Exception in TrimmedCurve2d" <<first<<" " <<last<<endl;
|
||||
anException.Print(cout); cout << endl;
|
||||
std::cout << "Warning: ShapeFix_Wire_1::FixGap2d: Exception in TrimmedCurve2d" <<first<<" " <<last<<std::endl;
|
||||
anException.Print(std::cout); std::cout << std::endl;
|
||||
#endif
|
||||
(void)anException;
|
||||
}
|
||||
@@ -1529,8 +1529,8 @@ static Standard_Real AdjustOnPeriodic2d (const Handle(Geom2d_Curve)& pc,
|
||||
}
|
||||
catch (Standard_Failure const& anException) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: ShapeFix_Wire_1::FixGap2d: Exception in TrimmedCurve2d :"<<endl;
|
||||
anException.Print(cout); cout << endl;
|
||||
std::cout << "Warning: ShapeFix_Wire_1::FixGap2d: Exception in TrimmedCurve2d :"<<std::endl;
|
||||
anException.Print(std::cout); std::cout << std::endl;
|
||||
#endif
|
||||
(void)anException;
|
||||
}
|
||||
|
@@ -392,8 +392,8 @@ ShapeFix_Wireframe::ShapeFix_Wireframe(const TopoDS_Shape& shape)
|
||||
}
|
||||
catch ( Standard_Failure const& anException) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"Error: ShapeFix_Wireframe::FixSmallEdges: JoinEdges: Exception in GeomConvert_CompCurveToBSplineCurve: ";
|
||||
anException.Print(cout); cout<<endl;
|
||||
std::cout<<"Error: ShapeFix_Wireframe::FixSmallEdges: JoinEdges: Exception in GeomConvert_CompCurveToBSplineCurve: ";
|
||||
anException.Print(std::cout); std::cout<<std::endl;
|
||||
#endif
|
||||
(void)anException;
|
||||
return ReplaceFirst;
|
||||
|
Reference in New Issue
Block a user