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:
@@ -861,7 +861,7 @@ void BRepFill::SearchOrigin(TopoDS_Wire & W,
|
||||
}
|
||||
#ifdef OCCT_DEBUG
|
||||
else {
|
||||
cout << "BRepFill::SearchOrigine : Echec Distance" << endl;
|
||||
std::cout << "BRepFill::SearchOrigine : Echec Distance" << std::endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@@ -99,9 +99,9 @@ void BRepFill_ApproxSeewing::Perform(const BRepFill_MultiLine& ML)
|
||||
|
||||
#ifdef DUMP_ML
|
||||
i = 1;
|
||||
cout << "--Point " << i << endl;
|
||||
cout << "P3d: " << P3d.X() << " " << P3d.Y() << " " << P3d.Z() << endl;
|
||||
cout << "P2d1;2: " << PF1.X() << " " << PF1.Y() << " ; " << PF2.X() << " " << PF2.Y() << endl;
|
||||
std::cout << "--Point " << i << std::endl;
|
||||
std::cout << "P3d: " << P3d.X() << " " << P3d.Y() << " " << P3d.Z() << std::endl;
|
||||
std::cout << "P2d1;2: " << PF1.X() << " " << PF1.Y() << " ; " << PF2.X() << " " << PF2.Y() << std::endl;
|
||||
#endif
|
||||
|
||||
|
||||
@@ -116,9 +116,9 @@ void BRepFill_ApproxSeewing::Perform(const BRepFill_MultiLine& ML)
|
||||
AppDef_MultiPointConstraint MPC( 1, 2);
|
||||
ML.Value3dOnF1OnF2(U,P3d,PF1,PF2);
|
||||
#ifdef DUMP_ML
|
||||
cout << "--Point " << i << endl;
|
||||
cout << "P3d: " << P3d.X() << " " << P3d.Y() << " " << P3d.Z() << endl;
|
||||
cout << "P2d1;2: " << PF1.X() << " " << PF1.Y() << " ; " << PF2.X() << " " << PF2.Y() << endl;
|
||||
std::cout << "--Point " << i << std::endl;
|
||||
std::cout << "P3d: " << P3d.X() << " " << P3d.Y() << " " << P3d.Z() << std::endl;
|
||||
std::cout << "P2d1;2: " << PF1.X() << " " << PF1.Y() << " ; " << PF2.X() << " " << PF2.Y() << std::endl;
|
||||
#endif
|
||||
MPC.SetPoint (1, P3d);
|
||||
MPC.SetPoint2d(2, PF1);
|
||||
@@ -130,9 +130,9 @@ void BRepFill_ApproxSeewing::Perform(const BRepFill_MultiLine& ML)
|
||||
ML.Value3dOnF1OnF2(U2,P3d,PF1,PF2);
|
||||
#ifdef DUMP_ML
|
||||
i = NbPoints;
|
||||
cout << "--Point " << i << endl;
|
||||
cout << "P3d: " << P3d.X() << " " << P3d.Y() << " " << P3d.Z() << endl;
|
||||
cout << "P2d1;2: " << PF1.X() << " " << PF1.Y() << " ; " << PF2.X() << " " << PF2.Y() << endl;
|
||||
std::cout << "--Point " << i << std::endl;
|
||||
std::cout << "P3d: " << P3d.X() << " " << P3d.Y() << " " << P3d.Z() << std::endl;
|
||||
std::cout << "P2d1;2: " << PF1.X() << " " << PF1.Y() << " ; " << PF2.X() << " " << PF2.Y() << std::endl;
|
||||
#endif
|
||||
MPE.SetPoint (1, P3d);
|
||||
MPE.SetPoint2d(2, PF1);
|
||||
@@ -146,7 +146,7 @@ void BRepFill_ApproxSeewing::Perform(const BRepFill_MultiLine& ML)
|
||||
|
||||
if ( NbCurves == 0) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << " TrimSurfaceTool : Approx echoue, on met les polygones" << endl;
|
||||
std::cout << " TrimSurfaceTool : Approx echoue, on met les polygones" << std::endl;
|
||||
#endif
|
||||
|
||||
TColStd_Array1OfReal Knots(1,NbPoints);
|
||||
|
@@ -263,14 +263,14 @@ static Standard_Boolean GoodOrientation(const Bnd_Box& B,
|
||||
}
|
||||
else {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Error in MakeWire" << endl;
|
||||
std::cout << "Error in MakeWire" << std::endl;
|
||||
#endif
|
||||
throw Standard_ConstructionError("BRepFill_Draft");
|
||||
}
|
||||
}
|
||||
else {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "No Free Borders !" << endl;
|
||||
std::cout << "No Free Borders !" << std::endl;
|
||||
#endif
|
||||
throw Standard_ConstructionError("BRepFill_Draft");
|
||||
}
|
||||
@@ -899,7 +899,7 @@ static Standard_Boolean GoodOrientation(const Bnd_Box& B,
|
||||
}
|
||||
}
|
||||
#ifdef OCCT_DEBUG
|
||||
else cout << "Draft : No assembly !" << endl;
|
||||
else std::cout << "Draft : No assembly !" << std::endl;
|
||||
#endif
|
||||
return Ok;
|
||||
}
|
||||
|
@@ -747,7 +747,7 @@ void BRepFill_Evolved::ElementaryPerform (const TopoDS_Face& Sp,
|
||||
|
||||
#ifdef DRAW
|
||||
if (AffichEdge) {
|
||||
cout << " End Construction of geometric primitives"<<endl;
|
||||
std::cout << " End Construction of geometric primitives"<<std::endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -1056,7 +1056,7 @@ void BRepFill_Evolved::ElementaryPerform (const TopoDS_Face& Sp,
|
||||
|
||||
#ifdef DRAW
|
||||
if (AffichEdge) {
|
||||
cout << " End of Construction of edges and vertices on bissectrices"<<endl;
|
||||
std::cout << " End of Construction of edges and vertices on bissectrices"<<std::endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -1169,7 +1169,7 @@ void BRepFill_Evolved::ElementaryPerform (const TopoDS_Face& Sp,
|
||||
|
||||
#ifdef DRAW
|
||||
if (AffichEdge) {
|
||||
cout <<" End Construction of parallel edges "<<endl;
|
||||
std::cout <<" End Construction of parallel edges "<<std::endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -1240,7 +1240,7 @@ void BRepFill_Evolved::ElementaryPerform (const TopoDS_Face& Sp,
|
||||
|
||||
#ifdef DRAW
|
||||
if (AffichEdge) {
|
||||
cout <<" End of construction of an elementary volevo."<<endl;
|
||||
std::cout <<" End of construction of an elementary volevo."<<std::endl;
|
||||
char name[100];
|
||||
sprintf(name,"VEVO_%d",++NbVEVOS);
|
||||
DBRep::Set(name,myShape);
|
||||
@@ -2598,8 +2598,8 @@ void TrimFace(const TopoDS_Face& Face,
|
||||
Standard_Integer NB = TheEdges.Length();
|
||||
if ( AffichEdge) {
|
||||
char name[100];
|
||||
cout << " TrimFace " << ++NbTRIMFACES;
|
||||
cout << " : " << NB << " edges within the restriction" << endl;
|
||||
std::cout << " TrimFace " << ++NbTRIMFACES;
|
||||
std::cout << " : " << NB << " edges within the restriction" << std::endl;
|
||||
for ( Standard_Integer j = 1; j <= NB; j++) {
|
||||
sprintf(name,"TRIMEDGE_%d_%d",NbTRIMFACES,j);
|
||||
DBRep::Set(name,TopoDS::Edge(TheEdges.Value(j)));
|
||||
|
@@ -673,7 +673,7 @@ void BRepFill_Filling::Build()
|
||||
{
|
||||
GeomPlate_MakeApprox Approx( GPlate, myTol3d, myMaxSegments, myMaxDeg, dmax, 0 ); //?????????????
|
||||
//GeomConvert_ApproxSurface Approx( GPlate, myTol3d, GeomAbs_C1, GeomAbs_C1, myMaxDeg, myMaxDeg, myMaxSegments, 1 );
|
||||
//Approx.Dump( cout );
|
||||
//Approx.Dump( std::cout );
|
||||
Surface = Approx.Surface();
|
||||
}
|
||||
|
||||
|
@@ -183,13 +183,13 @@ void BRepFill_LocationLaw::BiNormalIsMain()
|
||||
|
||||
#ifdef OCCT_DEBUG
|
||||
if (N2.Dot(T1) > 1.e-9) {
|
||||
cout << "Inprecision in TransformInCompatibleLaw" << endl;
|
||||
cout << "--- T1.R(N2) = " << N2.Dot(T1) << endl;
|
||||
std::cout << "Inprecision in TransformInCompatibleLaw" << std::endl;
|
||||
std::cout << "--- T1.R(N2) = " << N2.Dot(T1) << std::endl;
|
||||
gp_Vec tt;
|
||||
tt = T1;
|
||||
tt.Rotate(axe, alpha);
|
||||
cout << "--- T1.R(T2) = " << tt.Dot(T1) << endl;
|
||||
cout << "--- R(N2).R(T2) = " << N2.Dot(tt) << endl;
|
||||
std::cout << "--- T1.R(T2) = " << tt.Dot(T1) << std::endl;
|
||||
std::cout << "--- R(N2).R(T2) = " << N2.Dot(tt) << std::endl;
|
||||
}
|
||||
#endif
|
||||
Angle = N2.AngleWithRef(N1, T1);
|
||||
@@ -620,8 +620,8 @@ void BRepFill_LocationLaw::CurvilinearBounds(const Standard_Integer Index,
|
||||
else {
|
||||
W.Nullify();
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "BRepFill_LocationLaw::D0 : Attention position out of limits"
|
||||
<< endl;
|
||||
std::cout << "BRepFill_LocationLaw::D0 : Attention position out of limits"
|
||||
<< std::endl;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
@@ -612,8 +612,8 @@ static gp_Pnt2d ValueOnFace(const Standard_Real U,
|
||||
}
|
||||
else {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "MultiLine : D1 = D2 and the Curve is not a circle" << endl;
|
||||
cout << " ---> ValueOnFace failed at parameter U = " << U << endl;
|
||||
std::cout << "MultiLine : D1 = D2 and the Curve is not a circle" << std::endl;
|
||||
std::cout << " ---> ValueOnFace failed at parameter U = " << U << std::endl;
|
||||
#endif
|
||||
throw Standard_ConstructionError("BRepFill_MultiLine: ValueOnFace");
|
||||
}
|
||||
@@ -665,8 +665,8 @@ static gp_Pnt2d ValueOnFace(const Standard_Real U,
|
||||
|
||||
if ( !Intersector.IsDone()) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Intersector not done" << endl;
|
||||
cout << " ---> ValueonFace failed at parameter U = " << U << endl;
|
||||
std::cout << "Intersector not done" << std::endl;
|
||||
std::cout << " ---> ValueonFace failed at parameter U = " << U << std::endl;
|
||||
#endif
|
||||
return gp_Pnt2d(0.,0.);
|
||||
}
|
||||
@@ -685,8 +685,8 @@ static gp_Pnt2d ValueOnFace(const Standard_Real U,
|
||||
}
|
||||
else {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Intersector done, but no points found" << endl;
|
||||
cout << " ---> ValueonFace failed at parameter U = " << U << endl;
|
||||
std::cout << "Intersector done, but no points found" << std::endl;
|
||||
std::cout << " ---> ValueonFace failed at parameter U = " << U << std::endl;
|
||||
#endif
|
||||
if (Abs(Dist - PL.Y()) < Abs(Dist - PF.Y()))
|
||||
VV = TheV.LastParameter();
|
||||
|
@@ -521,7 +521,7 @@ void BRepFill_OffsetWire::Perform (const Standard_Real Offset,
|
||||
if(!BadEdges.IsEmpty())
|
||||
{
|
||||
// Modification of myWorkSpine;
|
||||
//cout << "Modification of myWorkSpine : " << BadEdges.Extent() << endl;
|
||||
//std::cout << "Modification of myWorkSpine : " << BadEdges.Extent() << std::endl;
|
||||
BRepTools_Substitution aSubst;
|
||||
TopTools_ListIteratorOfListOfShape it(BadEdges);
|
||||
TopTools_ListOfShape aL;
|
||||
@@ -548,7 +548,7 @@ void BRepFill_OffsetWire::Perform (const Standard_Real Offset,
|
||||
Standard_Integer NPnts = Points.Length();
|
||||
if(NPnts > 2)
|
||||
{
|
||||
//cout << NPnts << " points " << endl;
|
||||
//std::cout << NPnts << " points " << std::endl;
|
||||
TopoDS_Vertex FV = Vf;
|
||||
TopoDS_Vertex LV;
|
||||
TopoDS_Edge newE;
|
||||
@@ -566,7 +566,7 @@ void BRepFill_OffsetWire::Perform (const Standard_Real Offset,
|
||||
}
|
||||
else
|
||||
{
|
||||
//cout << " 2 points " << endl;
|
||||
//std::cout << " 2 points " << std::endl;
|
||||
TopoDS_Edge newE = BRepLib_MakeEdge(Vf, Vl);
|
||||
aL.Append(newE);
|
||||
}
|
||||
@@ -642,9 +642,9 @@ void BRepFill_OffsetWire::Perform (const Standard_Real Offset,
|
||||
}
|
||||
catch (Standard_Failure const& anException) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"An exception was caught in BRepFill_OffsetWire::Perform : ";
|
||||
anException.Print(cout);
|
||||
cout<<endl;
|
||||
std::cout<<"An exception was caught in BRepFill_OffsetWire::Perform : ";
|
||||
anException.Print(std::cout);
|
||||
std::cout<<std::endl;
|
||||
#endif
|
||||
(void)anException;
|
||||
myShape.Nullify();
|
||||
@@ -831,7 +831,7 @@ void BRepFill_OffsetWire::PerformWithBiLo
|
||||
#ifdef OCCT_DEBUG
|
||||
#ifdef DRAW
|
||||
if (AffichEdge) {
|
||||
cout << " End Construction of geometric primitives "<<endl;
|
||||
std::cout << " End Construction of geometric primitives "<<std::endl;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
@@ -1019,7 +1019,7 @@ void BRepFill_OffsetWire::PerformWithBiLo
|
||||
#ifdef OCCT_DEBUG
|
||||
#ifdef DRAW
|
||||
if (AffichEdge) {
|
||||
cout << " End Construction of vertices on offsets"<<endl;
|
||||
std::cout << " End Construction of vertices on offsets"<<std::endl;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
@@ -1469,7 +1469,7 @@ void BRepFill_OffsetWire::MakeWires()
|
||||
|
||||
if (!End) {
|
||||
if (MVE.FindFromKey(CV).Extent() > 2) {
|
||||
//cout <<"vertex on more that 2 edges in a face."<<endl;
|
||||
//std::cout <<"vertex on more that 2 edges in a face."<<std::endl;
|
||||
}
|
||||
for ( itl.Initialize(MVE.FindFromKey(CV)); itl.More(); itl.Next()) {
|
||||
if (itl.Value().IsSame(CE)) {
|
||||
@@ -2521,7 +2521,7 @@ static void CheckBadEdges(const TopoDS_Face& Spine, const Standard_Real Offset,
|
||||
|
||||
|
||||
if (aMap.Contains(SE)) {
|
||||
//cout << "Edge is treated second time" << endl;
|
||||
//std::cout << "Edge is treated second time" << std::endl;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@@ -300,8 +300,8 @@ BRepFill_SectionPlacement(const Handle(BRepFill_LocationLaw)& Law,
|
||||
if (myDebug) {
|
||||
gp_Pnt P_Path;
|
||||
P_Path = adpPath->Value(theParam);
|
||||
cout << "Point on Path" << P_Path.X() << ", "
|
||||
<< P_Path.Y() << ", " << P_Path.Z() << ", " << endl;
|
||||
std::cout << "Point on Path" << P_Path.X() << ", "
|
||||
<< P_Path.Y() << ", " << P_Path.Z() << ", " << std::endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@@ -179,7 +179,7 @@ void BRepFill_ShapeLaw::Init(const Standard_Boolean Build)
|
||||
}
|
||||
}
|
||||
|
||||
// cout << "new law" << endl;
|
||||
// std::cout << "new law" << std::endl;
|
||||
|
||||
// Is the law closed by U ?
|
||||
uclosed = W.Closed();
|
||||
@@ -372,8 +372,8 @@ void BRepFill_ShapeLaw::Init(const Standard_Boolean Build)
|
||||
Standard_True, Standard_False, 20);
|
||||
#ifdef OCCT_DEBUG
|
||||
if (!Bof)
|
||||
cout << "BRepFill_ShapeLaw::ConcatenedLaw INCOMPLET !!!"
|
||||
<< endl;
|
||||
std::cout << "BRepFill_ShapeLaw::ConcatenedLaw INCOMPLET !!!"
|
||||
<< std::endl;
|
||||
#endif
|
||||
}
|
||||
Composite = Concat.BSplineCurve();
|
||||
|
@@ -347,7 +347,7 @@ static Standard_Boolean SameParameter(TopoDS_Edge& E,
|
||||
if(sp.IsDone() && !sp.IsSameParameter()) Pcurv = sp.Curve2d();
|
||||
else if(!sp.IsDone() && !sp.IsSameParameter()){
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"echec SameParameter"<<endl;
|
||||
std::cout<<"echec SameParameter"<<std::endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
}
|
||||
@@ -355,8 +355,8 @@ static Standard_Boolean SameParameter(TopoDS_Edge& E,
|
||||
ResTol = sp.TolReached();
|
||||
if(ResTol > tolreached ){
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"SameParameter : Tolerance not reached!"<<endl;
|
||||
cout<<"tol visee : "<<tol3d<<" tol obtained : "<<ResTol<<endl;
|
||||
std::cout<<"SameParameter : Tolerance not reached!"<<std::endl;
|
||||
std::cout<<"tol visee : "<<tol3d<<" tol obtained : "<<ResTol<<std::endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
}
|
||||
@@ -647,7 +647,7 @@ static void BuildFace(const Handle(Geom_Surface)& S,
|
||||
if (MkF.Error() != BRepLib_FaceDone) {
|
||||
#ifdef OCCT_DEBUG
|
||||
BRepLib_FaceError Err = MkF.Error();
|
||||
cout << "Planar Face Error :" << Err << endl;
|
||||
std::cout << "Planar Face Error :" << Err << std::endl;
|
||||
#endif
|
||||
}
|
||||
else {
|
||||
@@ -1110,13 +1110,13 @@ static Standard_Boolean Filling(const TopoDS_Shape& EF,
|
||||
8, 8, 2*NbInt, 0);
|
||||
if (!App.HasResult()) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Filling_Approx : Pas de resultat" << endl;
|
||||
std::cout << "Filling_Approx : Pas de resultat" << std::endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
}
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Filling_Approx Error 3d = " <<
|
||||
App.MaxError() << endl;
|
||||
std::cout << "Filling_Approx Error 3d = " <<
|
||||
App.MaxError() << std::endl;
|
||||
#endif
|
||||
Surf = App.Surface();
|
||||
Tol3d = App.MaxError();
|
||||
@@ -1331,7 +1331,7 @@ static void SetCommonEdgeInFace(BRepTools_Substitution& aSubstitute,
|
||||
}
|
||||
}
|
||||
#ifdef OCCT_DEBUG
|
||||
if (!done) cout << "Substitution of Edge failed" << endl;
|
||||
if (!done) std::cout << "Substitution of Edge failed" << std::endl;
|
||||
#endif
|
||||
}
|
||||
*/
|
||||
@@ -1884,7 +1884,7 @@ BRepFill_Sweep::BRepFill_Sweep(const Handle(BRepFill_SectionLaw)& Section,
|
||||
|
||||
#ifdef OCCT_DEBUG
|
||||
if (!issame)
|
||||
cout<<"Sweep Warning : Edge not SameRange in the limits"<<endl;
|
||||
std::cout<<"Sweep Warning : Edge not SameRange in the limits"<<std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -2564,7 +2564,7 @@ BRepFill_Sweep::BRepFill_Sweep(const Handle(BRepFill_SectionLaw)& Section,
|
||||
}
|
||||
if (Degenerated(isec, ipath)) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Sweep : Degenerated case" << endl;
|
||||
std::cout << "Sweep : Degenerated case" << std::endl;
|
||||
#endif
|
||||
hasdegen = Standard_True;
|
||||
// Particular construction of edges
|
||||
@@ -3223,7 +3223,7 @@ TopoDS_Shape BRepFill_Sweep::Tape(const Standard_Integer Index) const
|
||||
|
||||
if (t1.Angle(t2) < myAngMin) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "BRepFill_Sweep::PerformCorner : This is not a corner !" << endl;
|
||||
std::cout << "BRepFill_Sweep::PerformCorner : This is not a corner !" << std::endl;
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
@@ -3333,7 +3333,7 @@ TopoDS_Shape BRepFill_Sweep::Tape(const Standard_Integer Index) const
|
||||
else if ((TheTransition == BRepFill_Right) ||
|
||||
aTrim.HasSection() ) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Fail of TrimCorner" << endl;
|
||||
std::cout << "Fail of TrimCorner" << std::endl;
|
||||
#endif
|
||||
return; // Nothing is touched
|
||||
}
|
||||
@@ -3411,7 +3411,7 @@ TopoDS_Shape BRepFill_Sweep::Tape(const Standard_Integer Index) const
|
||||
}
|
||||
}
|
||||
#ifdef OCCT_DEBUG
|
||||
else cout << "PerformCorner : Unsymmetry of free border" << endl;
|
||||
else std::cout << "PerformCorner : Unsymmetry of free border" << std::endl;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
@@ -442,7 +442,7 @@ void BRepFill_TrimEdgeTool::IntersectWith(const TopoDS_Edge& Edge1,
|
||||
(Points2.Length() == 0 && Params.Length() == 0) ) ) {
|
||||
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "BRepFill_TrimEdgeTool: incoherent intersection. Try with a greater tolerance" << endl;
|
||||
std::cout << "BRepFill_TrimEdgeTool: incoherent intersection. Try with a greater tolerance" << std::endl;
|
||||
#endif
|
||||
|
||||
Params.Clear();
|
||||
@@ -456,16 +456,16 @@ void BRepFill_TrimEdgeTool::IntersectWith(const TopoDS_Edge& Edge1,
|
||||
}
|
||||
|
||||
#ifdef OCCT_DEBUG
|
||||
if(SeanceDeRattrapage != 0) cout << "SeanceDeRattrapage = " << SeanceDeRattrapage << endl;
|
||||
if(SeanceDeRattrapage != 0) std::cout << "SeanceDeRattrapage = " << SeanceDeRattrapage << std::endl;
|
||||
if(SeanceDeRattrapage == nn) {
|
||||
cout << "BRepFill_TrimEdgeTool: incoherent intersection" << endl;
|
||||
std::cout << "BRepFill_TrimEdgeTool: incoherent intersection" << std::endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
if(Params.Length() == 0 && Points2.Length() == 1) {
|
||||
|
||||
//cout << "Params.Length() == 0 && Points2.Length() == 1" << endl;
|
||||
//std::cout << "Params.Length() == 0 && Points2.Length() == 1" << std::endl;
|
||||
Standard_Real dmin, dmax = 0.25*myOffset*myOffset;
|
||||
Standard_Real tBis = Points2(1).X();
|
||||
gp_Pnt2d PBis = myBis.Value(tBis);
|
||||
@@ -492,7 +492,7 @@ void BRepFill_TrimEdgeTool::IntersectWith(const TopoDS_Edge& Edge1,
|
||||
}
|
||||
else if(Params.Length() == 1 && Points2.Length() == 0) {
|
||||
|
||||
//cout << "Params.Length() == 1 && Points2.Length() == 0" << endl;
|
||||
//std::cout << "Params.Length() == 1 && Points2.Length() == 0" << std::endl;
|
||||
Standard_Real dmin, dmax = 0.25*myOffset*myOffset;
|
||||
Standard_Real tBis = Params(1).X();
|
||||
gp_Pnt2d PBis = myBis.Value(tBis);
|
||||
@@ -529,7 +529,7 @@ void BRepFill_TrimEdgeTool::IntersectWith(const TopoDS_Edge& Edge1,
|
||||
Standard_Integer NbPoints = Params.Length();
|
||||
|
||||
if(NbPoints == 1 && Points2.Length() == 1) {
|
||||
//cout << "NbPoints == 1 && Points2.Length() == 1" << endl;
|
||||
//std::cout << "NbPoints == 1 && Points2.Length() == 1" << std::endl;
|
||||
for ( i = 1; i <= NbPoints; i++) {
|
||||
PSeq = Params(i);
|
||||
PSeq.SetZ((Points2.Value(i)).Y());
|
||||
@@ -546,11 +546,11 @@ void BRepFill_TrimEdgeTool::IntersectWith(const TopoDS_Edge& Edge1,
|
||||
|
||||
if ( P1xP2x > Tol ) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "BRepFill_TrimEdgeTool: no same parameter on the bissectrice" << endl;
|
||||
std::cout << "BRepFill_TrimEdgeTool: no same parameter on the bissectrice" << std::endl;
|
||||
#endif
|
||||
if(P1xP2x>TolInit) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "BRepFill_TrimEdgeTool: Continue somehow" << endl;
|
||||
std::cout << "BRepFill_TrimEdgeTool: Continue somehow" << std::endl;
|
||||
#endif
|
||||
i++;
|
||||
}
|
||||
@@ -690,7 +690,7 @@ void BRepFill_TrimEdgeTool::AddOrConfuse(const Standard_Boolean Start,
|
||||
|
||||
if (ToProj) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << " project extremity bissectrice on parallel."<<endl;
|
||||
std::cout << " project extremity bissectrice on parallel."<<std::endl;
|
||||
#endif
|
||||
|
||||
// Project point on parallels and add in Params
|
||||
@@ -704,25 +704,25 @@ void BRepFill_TrimEdgeTool::AddOrConfuse(const Standard_Boolean Start,
|
||||
|
||||
if (Projector1.NbPoints() == 0) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Failed projection in BRepFill_TrimEdgeTool::AddOrConfuse"<<endl;
|
||||
std::cout << "Failed projection in BRepFill_TrimEdgeTool::AddOrConfuse"<<std::endl;
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
if (!Projector1.NearestPoint().IsEqual(PBis,Tol)) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout <<"Incorrect solution in BRepFill_TrimEdgeTool::AddOrConfuse"<<endl;
|
||||
std::cout <<"Incorrect solution in BRepFill_TrimEdgeTool::AddOrConfuse"<<std::endl;
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
if (Projector2.NbPoints() == 0) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Failed projection in BRepFill_TrimEdgeTool::AddOrConfuse"<<endl;
|
||||
std::cout << "Failed projection in BRepFill_TrimEdgeTool::AddOrConfuse"<<std::endl;
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
if (!Projector2.NearestPoint().IsEqual(PBis,Tol)) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout <<" Mauvaisesolution dans BRepFill_TrimEdgeTool::AddOrConfuse"<<endl;
|
||||
std::cout <<" Mauvaisesolution dans BRepFill_TrimEdgeTool::AddOrConfuse"<<std::endl;
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
|
@@ -103,7 +103,7 @@ myFace1(Face1),
|
||||
#ifdef OCCT_DEBUG
|
||||
if ( Affich) {
|
||||
NBCALL++;
|
||||
cout << " ---------->TrimSurfaceTool : NBCALL = " << NBCALL << endl;
|
||||
std::cout << " ---------->TrimSurfaceTool : NBCALL = " << NBCALL << std::endl;
|
||||
#ifdef DRAW
|
||||
char name[256];
|
||||
|
||||
@@ -279,8 +279,8 @@ static void EvalParameters(const TopoDS_Edge& Edge,
|
||||
|
||||
if (NbSegments > 0) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << " IntersectWith : " << NbSegments
|
||||
<< " Segments of intersection" << endl;
|
||||
std::cout << " IntersectWith : " << NbSegments
|
||||
<< " Segments of intersection" << std::endl;
|
||||
#endif
|
||||
IntRes2d_IntersectionSegment Seg;
|
||||
for ( Standard_Integer i = 1; i <= NbSegments; i++) {
|
||||
@@ -305,7 +305,7 @@ static void EvalParameters(const TopoDS_Edge& Edge,
|
||||
P1 = Seq.Value(i);
|
||||
P2 = Seq.Value(i+1);
|
||||
if ( P2.X()-P1.X() < Tol ) {
|
||||
// cout<<"REMOVE "<<P1.X()<<endl;
|
||||
// std::cout<<"REMOVE "<<P1.X()<<std::endl;
|
||||
Seq.Remove(i--);
|
||||
NbPoints--;
|
||||
}
|
||||
@@ -432,7 +432,7 @@ void BRepFill_TrimSurfaceTool::IntersectWith
|
||||
PSeq = Points(i);
|
||||
PSeq.SetZ((Points2.Value(i)).Y());
|
||||
Points.SetValue(i,PSeq);
|
||||
// cout<<"BisPar "<<PSeq.X()<<endl;
|
||||
// std::cout<<"BisPar "<<PSeq.X()<<std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -488,9 +488,9 @@ Standard_Real BRepFill_TrimSurfaceTool::ProjOn(const gp_Pnt2d& Point,
|
||||
#ifdef OCCT_DEBUG
|
||||
Standard_Real Dist = Projector.LowerDistance();
|
||||
if ( Dist > Precision::Confusion() ) {
|
||||
cout << " *** WARNING TrimSurfaceTool: *** " << endl;
|
||||
cout << " --> the point is not on the edge" <<endl;
|
||||
cout << " distance = " << Dist << endl;
|
||||
std::cout << " *** WARNING TrimSurfaceTool: *** " << std::endl;
|
||||
std::cout << " --> the point is not on the edge" <<std::endl;
|
||||
std::cout << " distance = " << Dist << std::endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user