if (aHasChanged)
distmin = Sqrt (distmin2);
#ifdef OCCT_DEBUG
- cout<<"ShapeAnalysis_Geom:Project, param="<<param<<" -> distmin="<<distmin<<endl;
+ std::cout<<"ShapeAnalysis_Geom:Project, param="<<param<<" -> distmin="<<distmin<<std::endl;
#endif
uMax = Min (uMax, param+delta);
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
//:s5
- cout << "\nWarning: ShapeAnalysis_Curve::ProjectAct(): Exception in Extrema_ExtPC: ";
- anException.Print(cout); cout << endl;
+ std::cout << "\nWarning: ShapeAnalysis_Curve::ProjectAct(): Exception in Extrema_ExtPC: ";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
OK = Standard_False;
if (aDistNewton < aModMin)
return aDistNewton;
}
- // cout <<"newton failed"<<endl;
+ // std::cout <<"newton failed"<<std::endl;
ProjectOnSegments (C3D,P3D,40,uMin,uMax,distmin,proj,param);
if (distmin <= preci) return distmin;
ProjectOnSegments (C3D,P3D,20,uMin,uMax,distmin,proj,param);
if (theCurve->IsKind(STANDARD_TYPE(Geom_BoundedCurve)) && !theCurve->IsClosed()) {
if (First < cf) {
#ifdef OCCT_DEBUG
- cout << "Update Edge First Parameter to Curve First Parameter" << endl;
+ std::cout << "Update Edge First Parameter to Curve First Parameter" << std::endl;
#endif
First = cf;
}
else if (First > cl) {
#ifdef OCCT_DEBUG
- cout << "Update Edge First Parameter to Curve Last Parameter" << endl;
+ std::cout << "Update Edge First Parameter to Curve Last Parameter" << std::endl;
#endif
First = cl;
}
if (Last < cf) {
#ifdef OCCT_DEBUG
- cout << "Update Edge Last Parameter to Curve First Parameter" << endl;
+ std::cout << "Update Edge Last Parameter to Curve First Parameter" << std::endl;
#endif
Last = cf;
}
else if (Last > cl) {
#ifdef OCCT_DEBUG
- cout << "Update Edge Last Parameter to Curve Last Parameter" << endl;
+ std::cout << "Update Edge Last Parameter to Curve Last Parameter" << std::endl;
#endif
Last = cl;
}
if ( theCurve->Value(Last).Distance(theCurve->Value(cl)) < preci ) Last = cl;
if ( First > Last ) {
#ifdef OCCT_DEBUG
- cout << "Warning : parameter range of edge crossing non periodic curve origin" << endl;
+ std::cout << "Warning : parameter range of edge crossing non periodic curve origin" << std::endl;
#endif
Standard_Real tmp = First;
First = Last;
// on inverse quand meme les parametres !!!!!!
else {
#ifdef OCCT_DEBUG
- cout << "Warning : parameter range of edge crossing non periodic curve origin" << endl;
+ std::cout << "Warning : parameter range of edge crossing non periodic curve origin" << std::endl;
#endif
Standard_Real tmp = First;
First = Last;
//abv 15.03.00 #72 bm1_pe_t4 protection of exceptions in draw
else if ( First > Last ) {
#ifdef OCCT_DEBUG
- cout << "Warning: parameter range is bad; curve reversed" << endl;
+ std::cout << "Warning: parameter range is bad; curve reversed" << std::endl;
#endif
First = theCurve->ReversedParameter ( First );
Last = theCurve->ReversedParameter ( Last );
}
else {
#ifdef OCCT_DEBUG
- cout << "UpdateParam3d Failed" << endl;
- cout << " - Curve Type : " << theCurve->DynamicType() << endl;
- cout << " - Param 1 : " << First << endl;
- cout << " - Param 2 : " << Last << endl;
+ std::cout << "UpdateParam3d Failed" << std::endl;
+ std::cout << " - Curve Type : " << theCurve->DynamicType() << std::endl;
+ std::cout << " - Param 1 : " << First << std::endl;
+ std::cout << " - Param 2 : " << Last << std::endl;
#endif
//abv 15.03.00 #72 bm1_pe_t4 protection of exceptions in draw
if ( First > Last ) {
#ifdef OCCT_DEBUG
- cout << "Warning: parameter range is bad; curve reversed" << endl;
+ std::cout << "Warning: parameter range is bad; curve reversed" << std::endl;
#endif
First = theCurve->ReversedParameter ( First );
Last = theCurve->ReversedParameter ( Last );
AppendControlPoles(seq,bslp);
done = Standard_True;
}
- catch (Standard_Failure) {
+ catch (Standard_Failure const&) {
}
}
else if ( aBaseCrv->IsKind(STANDARD_TYPE(Geom_BezierCurve))) {
AppendControlPoles(seq,bz);
done = Standard_True;
}
- catch (Standard_Failure) {
+ catch (Standard_Failure const&) {
}
}
if (!done) {
GeomAdaptor_Curve GAC(curve);
Standard_Real step = ( last - first ) / (Standard_Real)( nbp - 1 );
- Standard_Real par = first, stop = last - 0.5 * step;
- for ( ; par < stop; par += step )
- seq.Append(GAC.Value(par));
+ for (Standard_Integer i = 0; i < nbp - 1; ++i)
+ seq.Append(GAC.Value(first + step * i));
seq.Append(GAC.Value(last));
return Standard_True;
}
//-- Attention aux bsplines rationnelles de degree 3. (bouts de cercles entre autres)
if (nbs > 2) nbs*=4;
Standard_Real step = ( last - first ) / (Standard_Real)( nbs - 1 );
- Standard_Real par = first, stop = last - 0.5 * step;
- for ( ; par < stop; par += step )
- seq.Append(C.Value(par));
+ for (Standard_Integer i = 0; i < nbs - 1; ++i)
+ seq.Append(C.Value(first + step * i));
seq.Append(C.Value(last));
return Standard_True;
/*