1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +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
samples
src
AIS
AdvApp2Var
AdvApprox
AppBlend
AppDef
AppParCurves
Approx
ApproxInt
BOPTest
BOPTools
BRepAlgo
BRepBlend
BRepBuilderAPI
BRepCheck
BRepClass3d
BRepExtrema
BRepFeat
BRepFill
BRepGProp
BRepLib
BRepMesh
BRepOffset
BRepOffsetAPI

@ -596,8 +596,8 @@ void GeomConstraints_Presentation::sample3()
aFileName += "\\points.dat"; aFileName += "\\points.dat";
// open file // open file
ifstream aFile; std::ifstream aFile;
aFile.open(aFileName.ToCString(), ios::failbit); aFile.open(aFileName.ToCString(), std::ios::failbit);
if(!aFile) if(!aFile)
{ {
aFileName += " was not found. The sample can not be shown."; aFileName += " was not found. The sample can not be shown.";

@ -80,7 +80,7 @@ void GeoAlgo_Sol::Build(const TColgp_SequenceOfXYZ& seqOfXYZ)
//Filling plate //Filling plate
Plate_Plate myPlate; Plate_Plate myPlate;
cout<<" * Nunber of points = "<< nbPnt << endl; std::cout<<" * Nunber of points = "<< nbPnt << std::endl;
for (i=1; i<= nbPnt; i++) { for (i=1; i<= nbPnt; i++) {
gp_Pnt ptProj(seqOfXYZ.Value(i).X(), seqOfXYZ.Value(i).Y(), 0. ); gp_Pnt ptProj(seqOfXYZ.Value(i).X(), seqOfXYZ.Value(i).Y(), 0. );
gp_Vec aVec( ptProj, seqOfXYZ.Value(i)); gp_Vec aVec( ptProj, seqOfXYZ.Value(i));
@ -90,7 +90,7 @@ void GeoAlgo_Sol::Build(const TColgp_SequenceOfXYZ& seqOfXYZ)
} }
myPlate.SolveTI(2, 1.);// resolution myPlate.SolveTI(2, 1.);// resolution
if (!myPlate.IsDone()) { if (!myPlate.IsDone()) {
cout<<" plate computation has failed"<< endl; std::cout<<" plate computation has failed"<< std::endl;
myIsDone=Standard_False; myIsDone=Standard_False;
} }
@ -144,11 +144,11 @@ Handle(Geom_BSplineSurface) GeoAlgo_Sol::Read(const Standard_CString aGroundName
Standard_Integer nbPnt=0; Standard_Integer nbPnt=0;
// Read points from the file // Read points from the file
filebuf fic; std::filebuf fic;
istream in(&fic); std::istream in(&fic);
if (!fic.open(aGroundName,ios::in)){ if (!fic.open(aGroundName,std::ios::in)){
cout << " impossible to open a file : "<<aGroundName<<endl; std::cout << " impossible to open a file : "<<aGroundName<<std::endl;
myIsDone = Standard_False; myIsDone = Standard_False;
return 0; return 0;
} }

@ -1217,7 +1217,7 @@ Standard_Real ang = D1.Angle(D2); \n\
Handle(ISession_Direction) aDirection2 = new ISession_Direction(gp_Pnt(0,0,0),D2,3); Handle(ISession_Direction) aDirection2 = new ISession_Direction(gp_Pnt(0,0,0),D2,3);
aDoc->GetAISContext()->Display(aDirection2, Standard_False); aDoc->GetAISContext()->Display(aDirection2, Standard_False);
cout<<" D1.Angle(D2) : "<<ang<<endl; std::cout<<" D1.Angle(D2) : "<<ang<<std::endl;
TCollection_AsciiString Message2 (ang); TCollection_AsciiString Message2 (ang);
TCollection_AsciiString Message3 (ang/M_PI/180); TCollection_AsciiString Message3 (ang/M_PI/180);

@ -1081,9 +1081,9 @@ void CGeometryDoc::OnCreateSol()
SetCursor(AfxGetApp()->LoadStandardCursor(IDC_WAIT)); SetCursor(AfxGetApp()->LoadStandardCursor(IDC_WAIT));
CString filename = dlg.GetPathName(); CString filename = dlg.GetPathName();
filebuf fic; std::filebuf fic;
istream in(&fic); std::istream in(&fic);
if (!fic.open (filename, ios::in)) if (!fic.open (filename, std::ios::in))
MessageBoxW (AfxGetApp()->m_pMainWnd->m_hWnd, L"Error : Unable to open file", L"CasCade Error", MB_ICONERROR); MessageBoxW (AfxGetApp()->m_pMainWnd->m_hWnd, L"Error : Unable to open file", L"CasCade Error", MB_ICONERROR);
TColgp_SequenceOfXYZ seqOfXYZ; TColgp_SequenceOfXYZ seqOfXYZ;
@ -1162,7 +1162,7 @@ void CGeometryDoc::OnSimplify()
std::filebuf aFileBuf; std::filebuf aFileBuf;
std::istream aStream (&aFileBuf); std::istream aStream (&aFileBuf);
if (!aFileBuf.open (initfile, ios::in)) if (!aFileBuf.open (initfile, std::ios::in))
{ {
initfile += L" was not found. The sample can not be shown."; initfile += L" was not found. The sample can not be shown.";
myCResultDialog.SetText (initfile); myCResultDialog.SetText (initfile);

@ -4949,9 +4949,9 @@ void CModelingDoc::InputEvent(const Standard_Integer /*x*/,
((OCC_MainFrame*)AfxGetMainWnd())->SetStatusMessage("Building the tangent surface..."); ((OCC_MainFrame*)AfxGetMainWnd())->SetStatusMessage("Building the tangent surface...");
SetCursor(AfxGetApp()->LoadStandardCursor(IDC_WAIT)); SetCursor(AfxGetApp()->LoadStandardCursor(IDC_WAIT));
CString filename = dlg.GetPathName(); CString filename = dlg.GetPathName();
filebuf fic; std::filebuf fic;
istream in(&fic); std::istream in(&fic);
if (!fic.open(filename, ios::in)) if (!fic.open(filename, std::ios::in))
MessageBoxW (AfxGetApp()->m_pMainWnd->m_hWnd, L"Error : Unable to open file", L"CasCade Error", MB_ICONERROR); MessageBoxW (AfxGetApp()->m_pMainWnd->m_hWnd, L"Error : Unable to open file", L"CasCade Error", MB_ICONERROR);
Standard_Real x,y,z; Standard_Real x,y,z;
BRep_Builder B; BRep_Builder B;

@ -233,7 +233,7 @@ void CViewer2dDoc::OnBUTTONTestFace()
std::filebuf aFileBuf; std::filebuf aFileBuf;
std::istream aStream (&aFileBuf); std::istream aStream (&aFileBuf);
if (!aFileBuf.open (dlg.GetPathName(), ios::in)) if (!aFileBuf.open (dlg.GetPathName(), std::ios::in))
{ {
AfxMessageBox (L"The shape must be not a null Face"); AfxMessageBox (L"The shape must be not a null Face");
return; return;

@ -164,7 +164,7 @@ Standard_Boolean TexturesExt_Presentation::loadShape(TopoDS_Shape& aShape,
std::filebuf aFileBuf; std::filebuf aFileBuf;
std::istream aStream (&aFileBuf); std::istream aStream (&aFileBuf);
if (!aFileBuf.open (initfile, ios::in)) if (!aFileBuf.open (initfile, std::ios::in))
{ {
initfile += L" was not found. The sample can not be shown."; initfile += L" was not found. The sample can not be shown.";
getDocument()->UpdateResultMessageDlg ("Textured Shape", initfile); getDocument()->UpdateResultMessageDlg ("Textured Shape", initfile);

@ -936,7 +936,7 @@ void CViewer3dDoc::DoSample()
catch (Standard_Failure const& anException) catch (Standard_Failure const& anException)
{ {
Standard_SStream aSStream; Standard_SStream aSStream;
aSStream << "An exception was caught: " << anException << ends; aSStream << "An exception was caught: " << anException << std::ends;
CString aMsg = aSStream.str().c_str(); CString aMsg = aSStream.str().c_str();
AfxMessageBox (aMsg); AfxMessageBox (aMsg);
} }

@ -925,7 +925,7 @@ void COcafDoc::OnFileSaveAs()
CWaitCursor aWaitCursor; CWaitCursor aWaitCursor;
CString CSPath = dlg.GetPathName(); CString CSPath = dlg.GetPathName();
cout << "Save As " << CSPath << endl; std::cout << "Save As " << CSPath << std::endl;
PathName=CSPath; PathName=CSPath;
const wchar_t* SPath = CSPath; const wchar_t* SPath = CSPath;
TCollection_ExtendedString TPath (SPath); TCollection_ExtendedString TPath (SPath);

@ -76,7 +76,7 @@ Standard_Boolean TOcafFunction_CutDriver::MustExecute(const Handle(TFunction_Log
*/ */
TCollection_AsciiString aEntry; TCollection_AsciiString aEntry;
TDF_Tool::Entry(Label(), aEntry); TDF_Tool::Entry(Label(), aEntry);
cout << "Entry: "<<aEntry.ToCString()<<endl; std::cout << "Entry: "<<aEntry.ToCString()<<std::endl;
Label().FindChild(1).FindAttribute(TDF_Reference::GetID(),OriginalRef); Label().FindChild(1).FindAttribute(TDF_Reference::GetID(),OriginalRef);
if (log->IsModified(OriginalRef->Get())) return Standard_True; // Original shape. if (log->IsModified(OriginalRef->Get())) return Standard_True; // Original shape.

@ -425,7 +425,7 @@ void Tesselate_Presentation::sample(const Standard_CString aFileName)
std::filebuf aFileBuf; std::filebuf aFileBuf;
std::istream aStream (&aFileBuf); std::istream aStream (&aFileBuf);
if (!aFileBuf.open (initfile, ios::in)) if (!aFileBuf.open (initfile, std::ios::in))
{ {
initfile += L" was not found. The sample can not be shown."; initfile += L" was not found. The sample can not be shown.";
GetDocument()->PocessTextInDialog ("Compute the triangulation on a shape", initfile); GetDocument()->PocessTextInDialog ("Compute the triangulation on a shape", initfile);

@ -349,7 +349,7 @@ void CTriangulationDoc::DoSample()
catch (Standard_Failure const& anException) catch (Standard_Failure const& anException)
{ {
Standard_SStream aSStream; Standard_SStream aSStream;
aSStream << "An exception was caught: " << anException << ends; aSStream << "An exception was caught: " << anException << std::ends;
CString aMsg = aSStream.str().c_str(); CString aMsg = aSStream.str().c_str();
// aSStream.rdbuf()->freeze(0); // allow deletion of dynamic array // aSStream.rdbuf()->freeze(0); // allow deletion of dynamic array
AfxMessageBox (aMsg); AfxMessageBox (aMsg);

@ -83,35 +83,35 @@ CAnimationDoc::CAnimationDoc()
std::filebuf aFileBuf; std::filebuf aFileBuf;
std::istream aStream (&aFileBuf); std::istream aStream (&aFileBuf);
CString aPathCrankArm = aDataDirPath + "\\CrankArm.rle"; CString aPathCrankArm = aDataDirPath + "\\CrankArm.rle";
if (aFileBuf.open (aPathCrankArm, ios::in)) if (aFileBuf.open (aPathCrankArm, std::ios::in))
{ {
BRepTools::Read (CrankArm, aStream, B); BRepTools::Read (CrankArm, aStream, B);
aFileBuf.close(); aFileBuf.close();
} }
CString aPathCylinderHead = aDataDirPath + "\\CylinderHead.rle"; CString aPathCylinderHead = aDataDirPath + "\\CylinderHead.rle";
if (aFileBuf.open (aPathCylinderHead, ios::in)) if (aFileBuf.open (aPathCylinderHead, std::ios::in))
{ {
BRepTools::Read (CylinderHead, aStream, B); BRepTools::Read (CylinderHead, aStream, B);
aFileBuf.close(); aFileBuf.close();
} }
CString aPathPropeller = aDataDirPath + "\\Propeller.rle"; CString aPathPropeller = aDataDirPath + "\\Propeller.rle";
if (aFileBuf.open (aPathPropeller, ios::in)) if (aFileBuf.open (aPathPropeller, std::ios::in))
{ {
BRepTools::Read (Propeller, aStream, B); BRepTools::Read (Propeller, aStream, B);
aFileBuf.close(); aFileBuf.close();
} }
CString aPathPiston = aDataDirPath + "\\Piston.rle"; CString aPathPiston = aDataDirPath + "\\Piston.rle";
if (aFileBuf.open (aPathPiston, ios::in)) if (aFileBuf.open (aPathPiston, std::ios::in))
{ {
BRepTools::Read (Piston, aStream, B); BRepTools::Read (Piston, aStream, B);
aFileBuf.close(); aFileBuf.close();
} }
CString aPathEngineBlock = aDataDirPath + "\\EngineBlock.rle"; CString aPathEngineBlock = aDataDirPath + "\\EngineBlock.rle";
if (aFileBuf.open (aPathEngineBlock, ios::in)) if (aFileBuf.open (aPathEngineBlock, std::ios::in))
{ {
BRepTools::Read (EngineBlock, aStream, B); BRepTools::Read (EngineBlock, aStream, B);
aFileBuf.close(); aFileBuf.close();

@ -49,7 +49,7 @@ Handle(TColStd_HArray2OfReal) ReadRegularGrid(CString FileName,
if (fp) if (fp)
{ {
fscanf_s(fp, "%d %d", &R2, &C2); fscanf_s(fp, "%d %d", &R2, &C2);
cout << "Reading Grid : ( " << R2 << " , " << C2 << " )." << endl; std::cout << "Reading Grid : ( " << R2 << " , " << C2 << " )." << std::endl;
H = new TColStd_HArray2OfReal(C1, C2, R1, R2); H = new TColStd_HArray2OfReal(C1, C2, R1, R2);
@ -83,14 +83,14 @@ Handle(TColStd_HArray2OfReal) ReadRegularGrid(CString FileName,
} }
} }
cout << "Deltax = " << Deltax << endl; std::cout << "Deltax = " << Deltax << std::endl;
cout << "Deltay = " << Deltay << endl; std::cout << "Deltay = " << Deltay << std::endl;
fclose(fp); fclose(fp);
} }
else else
{ {
cout << "cannot open file : " << FileName << endl; std::cout << "cannot open file : " << FileName << std::endl;
} }
return H; return H;
} }

@ -153,7 +153,7 @@ void COCCDemoDoc::DoSample()
catch (Standard_Failure const& anException) catch (Standard_Failure const& anException)
{ {
Standard_SStream aSStream; Standard_SStream aSStream;
aSStream << "An exception was caught: " << anException << ends; aSStream << "An exception was caught: " << anException << std::ends;
CString aMsg = aSStream.str().c_str(); CString aMsg = aSStream.str().c_str();
AfxMessageBox (aMsg); AfxMessageBox (aMsg);
} }

@ -156,7 +156,7 @@ Standard_Boolean CImportExport::ReadBREP(CString aFileName,
std::filebuf aFileBuf; std::filebuf aFileBuf;
std::istream aStream (&aFileBuf); std::istream aStream (&aFileBuf);
if (!aFileBuf.open (aFileName, ios::in)) if (!aFileBuf.open (aFileName, std::ios::in))
{ {
return Standard_False; return Standard_False;
} }
@ -230,7 +230,7 @@ Standard_Boolean CImportExport::SaveBREP (CString aFileName,
{ {
std::filebuf aFileBuf; std::filebuf aFileBuf;
std::ostream aStream (&aFileBuf); std::ostream aStream (&aFileBuf);
if (!aFileBuf.open (aFileName, ios::out)) if (!aFileBuf.open (aFileName, std::ios::out))
{ {
return Standard_False; return Standard_False;
} }
@ -811,7 +811,7 @@ Standard_Boolean CImportExport::SaveVRML(const Standard_CString&
} // iterator of shapes } // iterator of shapes
// Call VRML writer // Call VRML writer
ofstream writer(aFileName); std::ofstream writer(aFileName);
writer<<scene; writer<<scene;
writer.close(); writer.close();

@ -129,7 +129,7 @@ case 6: //color
// This triangulation is computed with the deflection myDeflection. // This triangulation is computed with the deflection myDeflection.
#ifdef DEBUG #ifdef DEBUG
cout <<"Deflection = " << myDeflection << "\n" << endl; std::cout <<"Deflection = " << myDeflection << "\n" << std::endl;
#endif #endif
Standard_Integer NumFace; Standard_Integer NumFace;
@ -145,7 +145,7 @@ case 6: //color
TopLoc_Location myLocation = myFace.Location(); TopLoc_Location myLocation = myFace.Location();
#ifdef DEBUG #ifdef DEBUG
cout << "J\'explore actuellement la face " << NumFace << "\n" << endl; std::cout << "J\'explore actuellement la face " << NumFace << "\n" << std::endl;
#endif #endif
Handle(Poly_Triangulation) myT = BRep_Tool::Triangulation(myFace, myLocation); Handle(Poly_Triangulation) myT = BRep_Tool::Triangulation(myFace, myLocation);
// Returns the Triangulation of the face. It is a null handle if there is no triangulation. // Returns the Triangulation of the face. It is a null handle if there is no triangulation.
@ -153,7 +153,7 @@ case 6: //color
if (myT.IsNull()) if (myT.IsNull())
{ {
#ifdef DEBUG #ifdef DEBUG
// cout << "Triangulation of the face "<< i <<" is null \n"<< endl; // std::cout << "Triangulation of the face "<< i <<" is null \n"<< std::endl;
#endif #endif
return; return;
} }
@ -200,7 +200,7 @@ case 6: //color
TopLoc_Location myLocation = myFace.Location(); TopLoc_Location myLocation = myFace.Location();
#ifdef DEBUG #ifdef DEBUG
cout << "J\'explore actuellement la face " << NumFace << "\n" << endl; std::cout << "J\'explore actuellement la face " << NumFace << "\n" << std::endl;
#endif #endif
Handle(Poly_Triangulation) myT = BRep_Tool::Triangulation(myFace, myLocation); Handle(Poly_Triangulation) myT = BRep_Tool::Triangulation(myFace, myLocation);
// Returns the Triangulation of the face. It is a null handle if there is no triangulation. // Returns the Triangulation of the face. It is a null handle if there is no triangulation.
@ -208,7 +208,7 @@ case 6: //color
if (myT.IsNull()) if (myT.IsNull())
{ {
#ifdef DEBUG #ifdef DEBUG
//cout << "Triangulation of the face "<< i <<" is null \n"<< endl; //std::cout << "Triangulation of the face "<< i <<" is null \n"<< std::endl;
#endif #endif
return; return;
} }
@ -255,7 +255,7 @@ case 6: //color
for (nt = 1; nt <= nnn; nt++) for (nt = 1; nt <= nnn; nt++)
{ {
#ifdef DEBUG #ifdef DEBUG
cout << "On traite actuellement le triangle : "<< nt <<"\n"; std::cout << "On traite actuellement le triangle : "<< nt <<"\n";
#endif #endif
if (myFace.Orientation() == TopAbs_REVERSED) // si la face est "reversed" if (myFace.Orientation() == TopAbs_REVERSED) // si la face est "reversed"
triangles(nt).Get(n1,n3,n2); // le triangle est n1,n3,n2 triangles(nt).Get(n1,n3,n2); // le triangle est n1,n3,n2

@ -50,7 +50,7 @@ int AFXAPI AfxWinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
// int i = setvbuf( stdout, NULL, _IONBF, 0 ); // int i = setvbuf( stdout, NULL, _IONBF, 0 );
// filebuf ff(hCrt); // filebuf ff(hCrt);
// cout = &ff; // cout = &ff;
cout<<"This Debug Window is defined in WinMain.cpp and will disappear in release mode"<<endl; std::cout<<"This Debug Window is defined in WinMain.cpp and will disappear in release mode"<<std::endl;
#endif // DISPLAYCONSOLE // By Matra #endif // DISPLAYCONSOLE // By Matra

@ -354,7 +354,7 @@ static void Sample()
Standard_Boolean isverified = constraint->Verified(); Standard_Boolean isverified = constraint->Verified();
if( !isverified ) { if( !isverified ) {
cout << "Constraint is not valid" << endl; std::cout << "Constraint is not valid" << std::endl;
} }

@ -308,7 +308,7 @@ void Sample()
BRepAlgo_Cut mkCUT (OBJECT, TOOL); BRepAlgo_Cut mkCUT (OBJECT, TOOL);
if (!mkCUT.IsDone()) { if (!mkCUT.IsDone()) {
cout << "CUT: Algorithm failed" << endl; std::cout << "CUT: Algorithm failed" << std::endl;
return; return;
} else } else
{ {
@ -318,7 +318,7 @@ void Sample()
if (!BRepAlgo::IsValid(Larg, mkCUT.Shape(), Standard_True, Standard_False)) { if (!BRepAlgo::IsValid(Larg, mkCUT.Shape(), Standard_True, Standard_False)) {
cout << "CUT: Result is not valid" << endl; std::cout << "CUT: Result is not valid" << std::endl;
return; return;
} else } else
{ {

@ -101,9 +101,9 @@ static void Sample()
Handle(TPrsStd_NamedShapeDriver) driver; Handle(TPrsStd_NamedShapeDriver) driver;
if( table->FindDriver(driverguid, driver) ) if( table->FindDriver(driverguid, driver) )
cout << "Driver was found " << endl; std::cout << "Driver was found " << std::endl;
else else
cout << "Driver wasn't found" << endl; std::cout << "Driver wasn't found" << std::endl;
// Driver can be used to build AIS_InteractiveObject for presenting the given label // Driver can be used to build AIS_InteractiveObject for presenting the given label

@ -214,7 +214,7 @@ void MainWindow::compute()
} }
aTimer.Show(seconds, minutes, hours, CPUTime); aTimer.Show(seconds, minutes, hours, CPUTime);
cout << "Execution of "<<graph->getNbThreads()<< " threads took " << hours << " hours, " << minutes << " minutes, " << seconds << " seconds" << endl; std::cout << "Execution of "<<graph->getNbThreads()<< " threads took " << hours << " hours, " << minutes << " minutes, " << seconds << " seconds" << std::endl;
// Redraw the nodes (change their colour). // Redraw the nodes (change their colour).
redrawGraph(); redrawGraph();

@ -340,7 +340,7 @@ TranslateDlg* Translate::getDialog( const int format, const bool import )
filter.append( "\t" ); filter.append( "\t" );
} }
cout << filter.toLatin1().constData() << endl; std::cout << filter.toLatin1().constData() << std::endl;
QStringList filters = filter.split( "\t" ); QStringList filters = filter.split( "\t" );
myDlg->setNameFilters ( filters ); myDlg->setNameFilters ( filters );

@ -273,7 +273,7 @@ Standard_Boolean MainPage::SaveBREP(const wchar_t* theFilePath, const TopoDS_Sha
std::filebuf aFileBuf; std::filebuf aFileBuf;
std::ostream aStream(&aFileBuf); std::ostream aStream(&aFileBuf);
if (!aFileBuf.open(theFilePath, ios::out)) { if (!aFileBuf.open(theFilePath, std::ios::out)) {
Output_TextBlock->Text += L"Error: cannot open file for export (brep)\n"; Output_TextBlock->Text += L"Error: cannot open file for export (brep)\n";
return Standard_False; return Standard_False;
} }
@ -291,7 +291,7 @@ Standard_Boolean MainPage::SaveIGES(const wchar_t* theFilePath, const TopoDS_Sha
std::filebuf aFileBuf; std::filebuf aFileBuf;
std::ostream aStream(&aFileBuf); std::ostream aStream(&aFileBuf);
if (!aFileBuf.open(theFilePath, ios::out)) { if (!aFileBuf.open(theFilePath, std::ios::out)) {
Output_TextBlock->Text += L"Error: cannot open file for export (iges)\n"; Output_TextBlock->Text += L"Error: cannot open file for export (iges)\n";
return Standard_False; return Standard_False;
} }
@ -319,7 +319,7 @@ Standard_Boolean MainPage::SaveSTEP(const wchar_t* theFilePath, const TopoDS_Sha
std::filebuf aFileBuf; std::filebuf aFileBuf;
std::ostream aStream(&aFileBuf); std::ostream aStream(&aFileBuf);
if (!aFileBuf.open(theFilePath, ios::out)) { if (!aFileBuf.open(theFilePath, std::ios::out)) {
Output_TextBlock->Text += L"Error: cannot open file for export (step)\n"; Output_TextBlock->Text += L"Error: cannot open file for export (step)\n";
return Standard_False; return Standard_False;
} }

@ -79,7 +79,7 @@ mySAttach(0.,0.,0.)
myArrowSize = fabs (myVal/10.0); myArrowSize = fabs (myVal/10.0);
if (myArrowSize > 30.) myArrowSize = 30.; if (myArrowSize > 30.) myArrowSize = 30.;
if (myArrowSize < 15.) myArrowSize = 15.; if (myArrowSize < 15.) myArrowSize = 15.;
//cout<<"AIS_OffsetDimension::AIS_OffsetDimension " << myArrowSize << " myArrowSize"<<endl; //std::cout<<"AIS_OffsetDimension::AIS_OffsetDimension " << myArrowSize << " myArrowSize"<<std::endl;
} }
//======================================================================= //=======================================================================
@ -95,7 +95,7 @@ void AIS_OffsetDimension::Compute(const Handle(PrsMgr_PresentationManager3d)&,
myArrowSize = fabs (myVal/10.0); myArrowSize = fabs (myVal/10.0);
if (myArrowSize > 30.) myArrowSize = 30.; if (myArrowSize > 30.) myArrowSize = 30.;
if (myArrowSize < 15.) myArrowSize = 15.; if (myArrowSize < 15.) myArrowSize = 15.;
//cout<<"AIS_OffsetDimension::AIS_OffsetDimension " << myArrowSize << " myArrowSize"<<endl; //std::cout<<"AIS_OffsetDimension::AIS_OffsetDimension " << myArrowSize << " myArrowSize"<<std::endl;
BRepAdaptor_Surface surf1(TopoDS::Face(myFShape)); BRepAdaptor_Surface surf1(TopoDS::Face(myFShape));
BRepAdaptor_Surface surf2(TopoDS::Face(mySShape)); BRepAdaptor_Surface surf2(TopoDS::Face(mySShape));
@ -163,7 +163,7 @@ void AIS_OffsetDimension::ComputeSelection(const Handle(SelectMgr_Selection)& aS
myArrowSize = fabs (myVal/10.0); myArrowSize = fabs (myVal/10.0);
if (myArrowSize > 30.) myArrowSize = 30.; if (myArrowSize > 30.) myArrowSize = 30.;
if (myArrowSize < 15.) myArrowSize = 15.; if (myArrowSize < 15.) myArrowSize = 15.;
//cout<<"AIS_OffsetDimension::AIS_OffsetDimension " << myArrowSize << " myArrowSize"<<endl; //std::cout<<"AIS_OffsetDimension::AIS_OffsetDimension " << myArrowSize << " myArrowSize"<<std::endl;
gp_Pnt myTFAttach = myFAttach.Transformed (myRelativePos); gp_Pnt myTFAttach = myFAttach.Transformed (myRelativePos);
gp_Pnt myTSAttach = mySAttach.Transformed (myRelativePos); gp_Pnt myTSAttach = mySAttach.Transformed (myRelativePos);
gp_Dir myTDirAttach = myDirAttach.Transformed (myRelativePos); gp_Dir myTDirAttach = myDirAttach.Transformed (myRelativePos);
@ -325,7 +325,7 @@ void AIS_OffsetDimension::ComputeTwoAxesOffset(const Handle(Prs3d_Presentation)&
Handle(Prs3d_DimensionAspect) la = myDrawer->DimensionAspect(); Handle(Prs3d_DimensionAspect) la = myDrawer->DimensionAspect();
Handle(Prs3d_ArrowAspect) arr = la->ArrowAspect(); Handle(Prs3d_ArrowAspect) arr = la->ArrowAspect();
//cout<<"AIS_OffsetDimension::AIS_OffsetDimension " << myArrowSize << " myArrowSize"<<endl; //std::cout<<"AIS_OffsetDimension::AIS_OffsetDimension " << myArrowSize << " myArrowSize"<<std::endl;
arr->SetLength(myArrowSize); arr->SetLength(myArrowSize);
arr = la->ArrowAspect(); arr = la->ArrowAspect();
arr->SetLength(myArrowSize); arr->SetLength(myArrowSize);
@ -431,7 +431,7 @@ void AIS_OffsetDimension::ComputeTwoFacesOffset(const Handle(Prs3d_Presentation)
Handle(Prs3d_DimensionAspect) la = myDrawer->DimensionAspect(); Handle(Prs3d_DimensionAspect) la = myDrawer->DimensionAspect();
Handle(Prs3d_ArrowAspect) arr = la->ArrowAspect(); Handle(Prs3d_ArrowAspect) arr = la->ArrowAspect();
//cout<<"AIS_OffsetDimension::AIS_OffsetDimension " << myArrowSize << " myArrowSize"<<endl; //std::cout<<"AIS_OffsetDimension::AIS_OffsetDimension " << myArrowSize << " myArrowSize"<<std::endl;
arr->SetLength(myArrowSize); arr->SetLength(myArrowSize);
arr = la->ArrowAspect(); arr = la->ArrowAspect();
arr->SetLength(myArrowSize); arr->SetLength(myArrowSize);

@ -1054,44 +1054,44 @@ Standard_Real
void AdvApp2Var_ApproxAFunc2Var::Dump(Standard_OStream& o) const void AdvApp2Var_ApproxAFunc2Var::Dump(Standard_OStream& o) const
{ {
Standard_Integer iesp=1,NbKU,NbKV,ik; Standard_Integer iesp=1,NbKU,NbKV,ik;
o<<endl; o<<std::endl;
if (!myHasResult) { o<<"No result"<<endl; } if (!myHasResult) { o<<"No result"<<std::endl; }
else { else {
o<<"There is a result"; o<<"There is a result";
if (myDone) { if (myDone) {
o<<" within the requested tolerance "<<my3DTolerances->Value(iesp)<<endl; o<<" within the requested tolerance "<<my3DTolerances->Value(iesp)<<std::endl;
} }
else if (my3DMaxError->Value(iesp)>my3DTolerances->Value(iesp)) { else if (my3DMaxError->Value(iesp)>my3DTolerances->Value(iesp)) {
o<<" WITHOUT the requested tolerance "<<my3DTolerances->Value(iesp)<<endl; o<<" WITHOUT the requested tolerance "<<my3DTolerances->Value(iesp)<<std::endl;
} }
else { else {
o<<" WITHOUT the requested continuities "<<endl; o<<" WITHOUT the requested continuities "<<std::endl;
} }
o<<endl; o<<std::endl;
o<<"Result max error :"<<my3DMaxError->Value(iesp)<<endl; o<<"Result max error :"<<my3DMaxError->Value(iesp)<<std::endl;
o<<"Result average error :"<<my3DAverageError->Value(iesp)<<endl; o<<"Result average error :"<<my3DAverageError->Value(iesp)<<std::endl;
o<<"Result max error on U frontiers :"<<my3DUFrontError->Value(iesp)<<endl; o<<"Result max error on U frontiers :"<<my3DUFrontError->Value(iesp)<<std::endl;
o<<"Result max error on V frontiers :"<<my3DVFrontError->Value(iesp)<<endl; o<<"Result max error on V frontiers :"<<my3DVFrontError->Value(iesp)<<std::endl;
o<<endl; o<<std::endl;
o<<"Degree of Bezier patches in U : "<<myDegreeInU o<<"Degree of Bezier patches in U : "<<myDegreeInU
<<" in V : "<<myDegreeInV<<endl; <<" in V : "<<myDegreeInV<<std::endl;
o<<endl; o<<std::endl;
Handle(Geom_BSplineSurface) S Handle(Geom_BSplineSurface) S
= Handle(Geom_BSplineSurface)::DownCast(mySurfaces->Value(iesp)); = Handle(Geom_BSplineSurface)::DownCast(mySurfaces->Value(iesp));
o<<"Number of poles in U : "<<S->NbUPoles() o<<"Number of poles in U : "<<S->NbUPoles()
<<" in V : "<<S->NbVPoles()<<endl; <<" in V : "<<S->NbVPoles()<<std::endl;
o<<endl; o<<std::endl;
NbKU = S->NbUKnots(); NbKU = S->NbUKnots();
NbKV = S->NbVKnots(); NbKV = S->NbVKnots();
o<<"Number of knots in U : "<<NbKU<<endl; o<<"Number of knots in U : "<<NbKU<<std::endl;
for (ik=1;ik<=NbKU;ik++) { for (ik=1;ik<=NbKU;ik++) {
o<<" "<<ik<<" : "<<S->UKnot(ik)<<" mult : "<<S->UMultiplicity(ik)<<endl; o<<" "<<ik<<" : "<<S->UKnot(ik)<<" mult : "<<S->UMultiplicity(ik)<<std::endl;
} }
o<<endl; o<<std::endl;
o<<"Number of knots in V : "<<NbKV<<endl; o<<"Number of knots in V : "<<NbKV<<std::endl;
for (ik=1;ik<=NbKV;ik++) { for (ik=1;ik<=NbKV;ik++) {
o<<" "<<ik<<" : "<<S->VKnot(ik)<<" mult : "<<S->VMultiplicity(ik)<<endl; o<<" "<<ik<<" : "<<S->VKnot(ik)<<" mult : "<<S->VMultiplicity(ik)<<std::endl;
} }
o<<endl; o<<std::endl;
} }
} }

@ -46,7 +46,7 @@ static Standard_Boolean lesparam(const Standard_Integer iordre,
else { else {
nbpnts = 50; nbpnts = 50;
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "F(U, V) : Not enough points of discretization" << endl; std::cout << "F(U, V) : Not enough points of discretization" << std::endl;
#endif #endif
} }

@ -89,10 +89,10 @@ static void MAPDBN(const Standard_Integer dimension,
if ( (Diff-Der).Norm() > eps * (Der.Norm()+1) ) { if ( (Diff-Der).Norm() > eps * (Der.Norm()+1) ) {
cout << " Debug Ft au parametre t+ = " << t << endl; std::cout << " Debug Ft au parametre t+ = " << t << std::endl;
cout << " Positionement sur la derive "<< OrdreDer std::cout << " Positionement sur la derive "<< OrdreDer
<< " : " << Der << endl; << " : " << Der << std::endl;
cout << " Erreur estime : " << (Der-Diff) << endl; std::cout << " Erreur estime : " << (Der-Diff) << std::endl;
} }
// Verif a la fin // Verif a la fin
@ -112,10 +112,10 @@ static void MAPDBN(const Standard_Integer dimension,
if ( (Diff-Der).Norm() > eps * (Der.Norm()+1) ) { if ( (Diff-Der).Norm() > eps * (Der.Norm()+1) ) {
cout << " Debug Ft au parametre t- = " << t << endl; std::cout << " Debug Ft au parametre t- = " << t << std::endl;
cout << " Positionement sur la derive "<< OrdreDer std::cout << " Positionement sur la derive "<< OrdreDer
<< " : " << Der << endl; << " : " << Der << std::endl;
cout << " Erreur estime : " << (Der-Diff) << endl; std::cout << " Erreur estime : " << (Der-Diff) << std::endl;
} }
} }
} }
@ -1092,25 +1092,25 @@ Standard_Real AdvApprox_ApproxAFunction::AverageError(
void AdvApprox_ApproxAFunction::Dump(Standard_OStream& o) const void AdvApprox_ApproxAFunction::Dump(Standard_OStream& o) const
{ {
Standard_Integer ii; Standard_Integer ii;
o << "Dump of ApproxAFunction" << endl; o << "Dump of ApproxAFunction" << std::endl;
if (myNumSubSpaces[0] > 0) { if (myNumSubSpaces[0] > 0) {
o << "Error(s) 1d = " << endl; o << "Error(s) 1d = " << std::endl;
for (ii=1; ii <= myNumSubSpaces[0]; ii++) { for (ii=1; ii <= myNumSubSpaces[0]; ii++) {
o << " " << MaxError(1, ii) << endl; o << " " << MaxError(1, ii) << std::endl;
} }
} }
if (myNumSubSpaces[1] > 0) { if (myNumSubSpaces[1] > 0) {
o << "Error(s) 2d = " << endl; o << "Error(s) 2d = " << std::endl;
for (ii=1; ii <= myNumSubSpaces[1]; ii++) { for (ii=1; ii <= myNumSubSpaces[1]; ii++) {
o << " " << MaxError(2, ii) << endl; o << " " << MaxError(2, ii) << std::endl;
} }
} }
if (myNumSubSpaces[2] > 0) { if (myNumSubSpaces[2] > 0) {
o << "Error(s) 3d = " << endl; o << "Error(s) 3d = " << std::endl;
for (ii=1; ii <= myNumSubSpaces[2]; ii++) { for (ii=1; ii <= myNumSubSpaces[2]; ii++) {
o << " " << MaxError(3, ii) << endl; o << " " << MaxError(3, ii) << std::endl;
} }
} }
} }

@ -232,7 +232,7 @@ void AdvApprox_SimpleApprox::Perform(const TColStd_Array1OfInteger& LocalDimensi
} }
} }
// for (i=0; i<(WorkDegree+1)*TotalDimension; i++) // for (i=0; i<(WorkDegree+1)*TotalDimension; i++)
// cout << " Coeff(" << i << ") = " << Coeff(i) << endl; // std::cout << " Coeff(" << i << ") = " << Coeff(i) << std::endl;
// the computing of NewDegree // the computing of NewDegree
TColStd_Array1OfReal JacCoeff(0, myTotalDimension*(myWorkDegree+1)-1); TColStd_Array1OfReal JacCoeff(0, myTotalDimension*(myWorkDegree+1)-1);
@ -380,9 +380,9 @@ Standard_Real AdvApprox_SimpleApprox::AverageError(const Standard_Integer Index)
void AdvApprox_SimpleApprox::Dump(Standard_OStream& o) const void AdvApprox_SimpleApprox::Dump(Standard_OStream& o) const
{ {
Standard_Integer ii; Standard_Integer ii;
o << "Dump of SimpleApprox " << endl; o << "Dump of SimpleApprox " << std::endl;
for (ii=1; ii <= myTotalNumSS; ii++) { for (ii=1; ii <= myTotalNumSS; ii++) {
o << "Error " << MaxError(ii) << endl; o << "Error " << MaxError(ii) << std::endl;
} }
} }

@ -391,8 +391,8 @@ void AppBlend_AppSurf::InternalPerform(const Handle(TheLine)& Lin,
mytol2d = Max(TheTol2d, mytol2d); mytol2d = Max(TheTol2d, mytol2d);
} }
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << " Tolerances obtenues --> 3d : "<< mytol3d << endl; std::cout << " Tolerances obtenues --> 3d : "<< mytol3d << std::endl;
cout << " --> 2d : "<< mytol2d << endl; std::cout << " --> 2d : "<< mytol2d << std::endl;
#endif #endif
multC = theapprox.SplineValue(); multC = theapprox.SplineValue();
} }
@ -436,8 +436,8 @@ void AppBlend_AppSurf::InternalPerform(const Handle(TheLine)& Lin,
theapprox.Perform(multL); theapprox.Perform(multL);
theapprox.Error(mytol3d,mytol2d); theapprox.Error(mytol3d,mytol2d);
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << " Tolerances obtenues --> 3d : "<< mytol3d << endl; std::cout << " Tolerances obtenues --> 3d : "<< mytol3d << std::endl;
cout << " --> 2d : "<< mytol2d << endl; std::cout << " --> 2d : "<< mytol2d << std::endl;
#endif #endif
tol3dreached = mytol3d; tol3dreached = mytol3d;
tol2dreached = mytol2d; tol2dreached = mytol2d;
@ -498,8 +498,8 @@ void AppBlend_AppSurf::InternalPerform(const Handle(TheLine)& Lin,
mytol3d = Variation.MaxError(); mytol3d = Variation.MaxError();
mytol2d = 0.; mytol2d = 0.;
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << " Tolerances obtenues --> 3d : "<< mytol3d << endl; std::cout << " Tolerances obtenues --> 3d : "<< mytol3d << std::endl;
cout << " --> 2d : "<< mytol2d << endl; std::cout << " --> 2d : "<< mytol2d << std::endl;
#endif #endif
tol3dreached = mytol3d; tol3dreached = mytol3d;
tol2dreached = mytol2d; tol2dreached = mytol2d;
@ -827,8 +827,8 @@ void AppBlend_AppSurf::Perform(const Handle(TheLine)& Lin,
// modified by EAP Thu Jan 3 15:45:27 2002 ___END___ // modified by EAP Thu Jan 3 15:45:27 2002 ___END___
} }
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << " Tolerances obtenues --> 3d : "<< mytol3d << endl; std::cout << " Tolerances obtenues --> 3d : "<< mytol3d << std::endl;
cout << " --> 2d : "<< mytol2d << endl; std::cout << " --> 2d : "<< mytol2d << std::endl;
#endif #endif
tol3dreached = mytol3d; tol3dreached = mytol3d;
tol2dreached = mytol2d; tol2dreached = mytol2d;
@ -852,8 +852,8 @@ void AppBlend_AppSurf::Perform(const Handle(TheLine)& Lin,
tabVKnots->ChangeArray1() tabVKnots->ChangeArray1()
); );
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Warning: AppBlend_AppSurf::Perform(), bad length of aParamSeq: " << std::cout << "Warning: AppBlend_AppSurf::Perform(), bad length of aParamSeq: " <<
aParamSeq.Length() << " instead of " << tabVKnots->Length() << endl; aParamSeq.Length() << " instead of " << tabVKnots->Length() << std::endl;
#endif #endif
} }
else else

@ -97,8 +97,8 @@ AppDef_MultiPointConstraint AppDef_MultiLine::Value (const Standard_Integer Inde
void AppDef_MultiLine::Dump(Standard_OStream& o) const void AppDef_MultiLine::Dump(Standard_OStream& o) const
{ {
o << "AppDef_MultiLine dump:" << endl; o << "AppDef_MultiLine dump:" << std::endl;
// AppDef_MultiPointConstraint MP = tabMult->Value(1); // AppDef_MultiPointConstraint MP = tabMult->Value(1);
o << "It contains " << tabMult->Length() << " MultiPointConstraint"<< endl; o << "It contains " << tabMult->Length() << " MultiPointConstraint"<< std::endl;
// o << MP->NbPoints() << " 3d and " << MP->NbPoints2d() << endl; // o << MP->NbPoints() << " 3d and " << MP->NbPoints2d() << std::endl;
} }

@ -319,5 +319,5 @@ Standard_Boolean AppDef_MultiPointConstraint::IsCurvaturePoint() const
void AppDef_MultiPointConstraint::Dump(Standard_OStream& o) const void AppDef_MultiPointConstraint::Dump(Standard_OStream& o) const
{ {
o << "AppDef_MultiPointConstraint dump:" << endl; o << "AppDef_MultiPointConstraint dump:" << std::endl;
} }

@ -582,11 +582,11 @@ void AppDef_Variational::Approximate()
{ {
for (jp3d=1;jp3d<=myNbP3d;jp3d++) for (jp3d=1;jp3d<=myNbP3d;jp3d++)
{ {
// cout << "\n Poles(ipole,1)" << PolesPtr->Value(ipole,index); // std::cout << "\n Poles(ipole,1)" << PolesPtr->Value(ipole,index);
P3d.SetX(PolesPtr->Value(ipole,index++)); P3d.SetX(PolesPtr->Value(ipole,index++));
// cout << "\n Poles(ipole,1)" << PolesPtr->Value(ipole,index); // std::cout << "\n Poles(ipole,1)" << PolesPtr->Value(ipole,index);
P3d.SetY(PolesPtr->Value(ipole,index++)); P3d.SetY(PolesPtr->Value(ipole,index++));
// cout << "\n Poles(ipole,1)" << PolesPtr->Value(ipole,index); // std::cout << "\n Poles(ipole,1)" << PolesPtr->Value(ipole,index);
P3d.SetZ(PolesPtr->Value(ipole,index++)); P3d.SetZ(PolesPtr->Value(ipole,index++));
TabP3d.SetValue(jp3d,P3d); TabP3d.SetValue(jp3d,P3d);
} }
@ -897,32 +897,32 @@ Standard_Integer AppDef_Variational::NbIterations() const
// //
void AppDef_Variational::Dump(Standard_OStream& o) const void AppDef_Variational::Dump(Standard_OStream& o) const
{ {
o << " \nVariational Smoothing " << endl; o << " \nVariational Smoothing " << std::endl;
o << " Number of multipoints " << myNbPoints << endl; o << " Number of multipoints " << myNbPoints << std::endl;
o << " Number of 2d par multipoint " << myNbP2d << endl; o << " Number of 2d par multipoint " << myNbP2d << std::endl;
o << " Nombre of 3d par multipoint " << myNbP3d << endl; o << " Nombre of 3d par multipoint " << myNbP3d << std::endl;
o << " Number of PassagePoint " << myNbPassPoints << endl; o << " Number of PassagePoint " << myNbPassPoints << std::endl;
o << " Number of TangencyPoints " << myNbTangPoints << endl; o << " Number of TangencyPoints " << myNbTangPoints << std::endl;
o << " Number of CurvaturePoints " << myNbCurvPoints << endl; o << " Number of CurvaturePoints " << myNbCurvPoints << std::endl;
o << " \nTolerance " << o.setf(ios::scientific) << setprecision(3) << setw(9) << myTolerance; o << " \nTolerance " << o.setf(std::ios::scientific) << std::setprecision(3) << std::setw(9) << myTolerance;
if ( WithMinMax()) { o << " as Max Error." << endl;} if ( WithMinMax()) { o << " as Max Error." << std::endl;}
else { o << " as size Error." << endl;} else { o << " as size Error." << std::endl;}
o << "CriteriumWeights : " << myPercent[0] << " , " o << "CriteriumWeights : " << myPercent[0] << " , "
<< myPercent[1] << " , " << myPercent[2] << endl; << myPercent[1] << " , " << myPercent[2] << std::endl;
if (myIsDone ) { if (myIsDone ) {
o << " MaxError " << setprecision(3) << setw(9) << myMaxError << endl; o << " MaxError " << std::setprecision(3) << std::setw(9) << myMaxError << std::endl;
o << " Index of MaxError " << myMaxErrorIndex << endl; o << " Index of MaxError " << myMaxErrorIndex << std::endl;
o << " Average Error " << setprecision(3) << setw(9) << myAverageError << endl; o << " Average Error " << std::setprecision(3) << std::setw(9) << myAverageError << std::endl;
o << " Quadratic Error " << setprecision(3) << setw(9) << myCriterium[0] << endl; o << " Quadratic Error " << std::setprecision(3) << std::setw(9) << myCriterium[0] << std::endl;
o << " Tension Criterium " << setprecision(3) << setw(9) << myCriterium[1] << endl; o << " Tension Criterium " << std::setprecision(3) << std::setw(9) << myCriterium[1] << std::endl;
o << " Flexion Criterium " << setprecision(3) << setw(9) << myCriterium[2] << endl; o << " Flexion Criterium " << std::setprecision(3) << std::setw(9) << myCriterium[2] << std::endl;
o << " Jerk Criterium " << setprecision(3) << setw(9) << myCriterium[3] << endl; o << " Jerk Criterium " << std::setprecision(3) << std::setw(9) << myCriterium[3] << std::endl;
o << " NbSegments " << myKnots->Length()-1 << endl; o << " NbSegments " << myKnots->Length()-1 << std::endl;
} }
else else
{ if (myIsOverConstr) o << "The probleme is overconstraint " << endl; { if (myIsOverConstr) o << "The probleme is overconstraint " << std::endl;
else o << " Erreur dans l''approximation" << endl; else o << " Erreur dans l''approximation" << std::endl;
} }
} }
// //
@ -2539,7 +2539,7 @@ void AppDef_Variational::Adjusting(
TColStd_Array1OfReal& Ecarts) TColStd_Array1OfReal& Ecarts)
{ {
// cout << "=========== Adjusting =============" << endl; // std::cout << "=========== Adjusting =============" << std::endl;
/* Initialized data */ /* Initialized data */

@ -286,24 +286,24 @@ void AppParCurves_MultiBSpCurve::D2 (const Standard_Integer CuIndex,
void AppParCurves_MultiBSpCurve::Dump(Standard_OStream& o) const void AppParCurves_MultiBSpCurve::Dump(Standard_OStream& o) const
{ {
o << "AppParCurves_MultiBSpCurve dump:" << endl; o << "AppParCurves_MultiBSpCurve dump:" << std::endl;
o << " It contains " << NbCurves() << " BSpline curves "<< endl; o << " It contains " << NbCurves() << " BSpline curves "<< std::endl;
o << " The poles are: " << endl; o << " The poles are: " << std::endl;
/* for (Standard_Integer i = 1; i <= NbCurves(); i++) { /* for (Standard_Integer i = 1; i <= NbCurves(); i++) {
o << " Curve No. " << i << endl; o << " Curve No. " << i << std::endl;
if (Dimension(i) == 3) { if (Dimension(i) == 3) {
for (Standard_Integer j = 1; j <= tabPoint->Length(); j++) { for (Standard_Integer j = 1; j <= tabPoint->Length(); j++) {
o << " Pole No. " << j << ": " << endl; o << " Pole No. " << j << ": " << std::endl;
o << " Pole x = " << (tabPoint->Value(j)->Point(i)).X() << endl; o << " Pole x = " << (tabPoint->Value(j)->Point(i)).X() << std::endl;
o << " Pole y = " << (tabPoint->Value(j)->Point(i)).Y() << endl; o << " Pole y = " << (tabPoint->Value(j)->Point(i)).Y() << std::endl;
o << " Pole z = " << (tabPoint->Value(j)->Point(i)).Z() << endl; o << " Pole z = " << (tabPoint->Value(j)->Point(i)).Z() << std::endl;
} }
} }
else { else {
for (Standard_Integer j = 1; j <= tabPoint->Length(); j++) { for (Standard_Integer j = 1; j <= tabPoint->Length(); j++) {
o << " Pole No. " << j << ": " << endl; o << " Pole No. " << j << ": " << std::endl;
o << " Pole x = " << (tabPoint->Value(j)->Point2d(i)).X() << endl; o << " Pole x = " << (tabPoint->Value(j)->Point2d(i)).X() << std::endl;
o << " Pole y = " << (tabPoint->Value(j)->Point2d(i)).Y() << endl; o << " Pole y = " << (tabPoint->Value(j)->Point2d(i)).Y() << std::endl;
} }
} }
} }

@ -286,24 +286,24 @@ void AppParCurves_MultiCurve::D2 (const Standard_Integer CuIndex,
void AppParCurves_MultiCurve::Dump(Standard_OStream& o) const void AppParCurves_MultiCurve::Dump(Standard_OStream& o) const
{ {
o << "AppParCurves_MultiCurve dump:" << endl; o << "AppParCurves_MultiCurve dump:" << std::endl;
o << " It contains " << NbCurves() << " Bezier curves of degree " << tabPoint->Length()-1 << endl; o << " It contains " << NbCurves() << " Bezier curves of degree " << tabPoint->Length()-1 << std::endl;
o << " The poles are: " << endl; o << " The poles are: " << std::endl;
/* for (Standard_Integer i = 1; i <= NbCurves(); i++) { /* for (Standard_Integer i = 1; i <= NbCurves(); i++) {
o << " Curve No. " << i << endl; o << " Curve No. " << i << std::endl;
if (Dimension(i) == 3) { if (Dimension(i) == 3) {
for (Standard_Integer j = 1; j <= tabPoint->Length(); j++) { for (Standard_Integer j = 1; j <= tabPoint->Length(); j++) {
o << " Pole No. " << j << ": " << endl; o << " Pole No. " << j << ": " << std::endl;
o << " Pole x = " << (tabPoint->Value(j)->Point(i)).X() << endl; o << " Pole x = " << (tabPoint->Value(j)->Point(i)).X() << std::endl;
o << " Pole y = " << (tabPoint->Value(j)->Point(i)).Y() << endl; o << " Pole y = " << (tabPoint->Value(j)->Point(i)).Y() << std::endl;
o << " Pole z = " << (tabPoint->Value(j)->Point(i)).Z() << endl; o << " Pole z = " << (tabPoint->Value(j)->Point(i)).Z() << std::endl;
} }
} }
else { else {
for (Standard_Integer j = 1; j <= tabPoint->Length(); j++) { for (Standard_Integer j = 1; j <= tabPoint->Length(); j++) {
o << " Pole No. " << j << ": " << endl; o << " Pole No. " << j << ": " << std::endl;
o << " Pole x = " << (tabPoint->Value(j)->Point2d(i)).X() << endl; o << " Pole x = " << (tabPoint->Value(j)->Point2d(i)).X() << std::endl;
o << " Pole y = " << (tabPoint->Value(j)->Point2d(i)).Y() << endl; o << " Pole y = " << (tabPoint->Value(j)->Point2d(i)).Y() << std::endl;
} }
} }
} }

@ -169,20 +169,20 @@ const gp_Pnt2d& AppParCurves_MultiPoint::Point2d (const Standard_Integer Index)
void AppParCurves_MultiPoint::Dump(Standard_OStream& o) const void AppParCurves_MultiPoint::Dump(Standard_OStream& o) const
{ {
o << "AppParCurves_MultiPoint dump:" << endl; o << "AppParCurves_MultiPoint dump:" << std::endl;
const Standard_Integer aNbPnts3D = NbPoints(), const Standard_Integer aNbPnts3D = NbPoints(),
aNbPnts2D = NbPoints2d(); aNbPnts2D = NbPoints2d();
o << "It contains " << aNbPnts3D << " 3d points and " << aNbPnts2D <<" 2d points." << endl; o << "It contains " << aNbPnts3D << " 3d points and " << aNbPnts2D <<" 2d points." << std::endl;
if(aNbPnts3D > 0) if(aNbPnts3D > 0)
{ {
for(Standard_Integer i = tabPoint->Lower(); i <= tabPoint->Upper(); i++) for(Standard_Integer i = tabPoint->Lower(); i <= tabPoint->Upper(); i++)
{ {
o << "3D-Point #" << i << endl; o << "3D-Point #" << i << std::endl;
o << " Pole x = " << (tabPoint->Value(i)/*->Point(j)*/).X() << endl; o << " Pole x = " << (tabPoint->Value(i)/*->Point(j)*/).X() << std::endl;
o << " Pole y = " << (tabPoint->Value(i)/*->Point(j)*/).Y() << endl; o << " Pole y = " << (tabPoint->Value(i)/*->Point(j)*/).Y() << std::endl;
o << " Pole z = " << (tabPoint->Value(i)/*->Point(j)*/).Z() << endl; o << " Pole z = " << (tabPoint->Value(i)/*->Point(j)*/).Z() << std::endl;
} }
} }
@ -190,10 +190,10 @@ void AppParCurves_MultiPoint::Dump(Standard_OStream& o) const
{ {
for(Standard_Integer i = tabPoint2d->Lower(); i <= tabPoint2d->Upper(); i++) for(Standard_Integer i = tabPoint2d->Lower(); i <= tabPoint2d->Upper(); i++)
{ {
o << "2D-Point #" << i << endl; o << "2D-Point #" << i << std::endl;
o << " Pole x = " << (tabPoint2d->Value(i)/*->Point2d(j)*/).X() << endl; o << " Pole x = " << (tabPoint2d->Value(i)/*->Point2d(j)*/).X() << std::endl;
o << " Pole y = " << (tabPoint2d->Value(i)/*->Point2d(j)*/).Y() << endl; o << " Pole y = " << (tabPoint2d->Value(i)/*->Point2d(j)*/).Y() << std::endl;
} }
} }
} }

@ -64,20 +64,20 @@ static void DUMP(const MultiLine& Line)
TColgp_Array1OfPnt tabP(1, mynbP3d); TColgp_Array1OfPnt tabP(1, mynbP3d);
TColgp_Array1OfPnt2d tabP2d(1, mynbP2d); TColgp_Array1OfPnt2d tabP2d(1, mynbP2d);
cout <<"DUMP de la MultiLine entre "<<firstP <<" et "<<lastP<<": "<<endl; std::cout <<"DUMP de la MultiLine entre "<<firstP <<" et "<<lastP<<": "<<std::endl;
for (i = firstP; i <= lastP; i++) { for (i = firstP; i <= lastP; i++) {
if (nbP3d != 0 && nbP2d != 0) LineTool::Value(Line, i, tabP, tabP2d); if (nbP3d != 0 && nbP2d != 0) LineTool::Value(Line, i, tabP, tabP2d);
else if (nbP2d != 0) LineTool::Value(Line, i, tabP2d); else if (nbP2d != 0) LineTool::Value(Line, i, tabP2d);
else if (nbP3d != 0) LineTool::Value(Line, i, tabP); else if (nbP3d != 0) LineTool::Value(Line, i, tabP);
cout << "point "<<i<<":"<< endl; std::cout << "point "<<i<<":"<< std::endl;
for (j = 1; j <= nbP3d; j++) { for (j = 1; j <= nbP3d; j++) {
P1 = tabP(j); P1 = tabP(j);
cout <<P1.X()<<" "<<P1.Y()<<" "<<P1.Z()<<endl; std::cout <<P1.X()<<" "<<P1.Y()<<" "<<P1.Z()<<std::endl;
} }
for (j = 1; j <= nbP2d; j++) { for (j = 1; j <= nbP2d; j++) {
P12d = tabP2d(j); P12d = tabP2d(j);
cout <<P12d.X()<<" "<<P12d.Y()<<endl; std::cout <<P12d.X()<<" "<<P12d.Y()<<std::endl;
} }
} }
@ -197,7 +197,7 @@ static Standard_Boolean CheckMultiCurve(const AppParCurves_MultiCurve& theMultiC
if (ScalProd < MinScalProd) if (ScalProd < MinScalProd)
{ {
#ifdef DRAW #ifdef DRAW
cout<<"ScalProd("<<indp-2<<","<<indp-1<<")-("<<indp-1<<","<<indp<<") = "<<ScalProd<<endl; std::cout<<"ScalProd("<<indp-2<<","<<indp-1<<")-("<<indp-1<<","<<indp<<") = "<<ScalProd<<std::endl;
#endif #endif
LoopFound = Standard_True; LoopFound = Standard_True;
break; break;
@ -329,7 +329,7 @@ static Standard_Boolean CheckMultiCurve(const AppParCurves_MultiCurve& theMultiC
if (ScalProd < MinScalProd) if (ScalProd < MinScalProd)
{ {
#ifdef DRAW #ifdef DRAW
cout<<"ScalProd("<<k-2<<","<<k-1<<")-("<<k-1<<","<<k<<") = "<<ScalProd<<endl; std::cout<<"ScalProd("<<k-2<<","<<k-1<<")-("<<k-1<<","<<k<<") = "<<ScalProd<<std::endl;
#endif #endif
LoopFound = Standard_True; LoopFound = Standard_True;
break; break;
@ -1486,7 +1486,7 @@ Standard_Boolean Approx_ComputeLine::ComputeCurve(const MultiLine& Line,
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (!Parallel) { if (!Parallel) {
if (mydebug) cout <<"droite mais tangentes pas vraiment paralleles!!"<< endl; if (mydebug) std::cout <<"droite mais tangentes pas vraiment paralleles!!"<< std::endl;
} }
#endif #endif
AppParCurves_MultiCurve mySCU(mydegremin+1); AppParCurves_MultiCurve mySCU(mydegremin+1);

@ -174,8 +174,8 @@ Approx_Curve3d::Approx_Curve3d(const Handle(Adaptor3d_HCurve)& Curve,
void Approx_Curve3d::Dump(Standard_OStream& o) const void Approx_Curve3d::Dump(Standard_OStream& o) const
{ {
o << "******* Dump of ApproxCurve *******" << endl; o << "******* Dump of ApproxCurve *******" << std::endl;
o << "*******Degree " << Curve()->Degree() << endl; o << "*******Degree " << Curve()->Degree() << std::endl;
o << "*******NbSegments " << Curve()->NbKnots() - 1 << endl; o << "*******NbSegments " << Curve()->NbKnots() - 1 << std::endl;
o << "*******Error " << MaxError() << endl; o << "*******Error " << MaxError() << std::endl;
} }

@ -197,11 +197,11 @@ Approx_CurvilinearParameter::Approx_CurvilinearParameter(const Handle(Adaptor3d_
#ifdef OCCT_DEBUG_CHRONO #ifdef OCCT_DEBUG_CHRONO
ResultChron(chr_total, t_total); ResultChron(chr_total, t_total);
cout<<" total reparametrization time = "<<t_total<<endl; std::cout<<" total reparametrization time = "<<t_total<<std::endl;
cout<<"initialization time = "<<t_init<<endl; std::cout<<"initialization time = "<<t_init<<std::endl;
cout<<"approximation time = "<<t_approx<<endl; std::cout<<"approximation time = "<<t_approx<<std::endl;
cout<<"total time for uparam computation = "<<t_uparam<<endl; std::cout<<"total time for uparam computation = "<<t_uparam<<std::endl;
cout<<"number uparam calles = "<<uparam_count<<endl; std::cout<<"number uparam calles = "<<uparam_count<<std::endl;
#endif #endif
} }
@ -358,11 +358,11 @@ Approx_CurvilinearParameter::Approx_CurvilinearParameter(const Handle(Adaptor2d_
#ifdef OCCT_DEBUG_CHRONO #ifdef OCCT_DEBUG_CHRONO
ResultChron(chr_total, t_total); ResultChron(chr_total, t_total);
cout<<" total reparametrization time = "<<t_total<<endl; std::cout<<" total reparametrization time = "<<t_total<<std::endl;
cout<<"initialization time = "<<t_init<<endl; std::cout<<"initialization time = "<<t_init<<std::endl;
cout<<"approximation time = "<<t_approx<<endl; std::cout<<"approximation time = "<<t_approx<<std::endl;
cout<<"total time for uparam computation = "<<t_uparam<<endl; std::cout<<"total time for uparam computation = "<<t_uparam<<std::endl;
cout<<"number uparam calles = "<<uparam_count<<endl; std::cout<<"number uparam calles = "<<uparam_count<<std::endl;
#endif #endif
} }
@ -531,11 +531,11 @@ Approx_CurvilinearParameter::Approx_CurvilinearParameter(const Handle(Adaptor2d_
#ifdef OCCT_DEBUG_CHRONO #ifdef OCCT_DEBUG_CHRONO
ResultChron(chr_total, t_total); ResultChron(chr_total, t_total);
cout<<" total reparametrization time = "<<t_total<<endl; std::cout<<" total reparametrization time = "<<t_total<<std::endl;
cout<<"initialization time = "<<t_init<<endl; std::cout<<"initialization time = "<<t_init<<std::endl;
cout<<"approximation time = "<<t_approx<<endl; std::cout<<"approximation time = "<<t_approx<<std::endl;
cout<<"total time for uparam computation = "<<t_uparam<<endl; std::cout<<"total time for uparam computation = "<<t_uparam<<std::endl;
cout<<"number uparam calles = "<<uparam_count<<endl; std::cout<<"number uparam calles = "<<uparam_count<<std::endl;
#endif #endif
} }
@ -628,12 +628,12 @@ Approx_CurvilinearParameter::Approx_CurvilinearParameter(const Handle(Adaptor2d_
void Approx_CurvilinearParameter::Dump(Standard_OStream& o) const void Approx_CurvilinearParameter::Dump(Standard_OStream& o) const
{ {
o << "Dump of Approx_CurvilinearParameter" << endl; o << "Dump of Approx_CurvilinearParameter" << std::endl;
if (myCase==2 || myCase==3) if (myCase==2 || myCase==3)
o << "myMaxError2d1 = " << myMaxError2d1 << endl; o << "myMaxError2d1 = " << myMaxError2d1 << std::endl;
if (myCase==3) if (myCase==3)
o << "myMaxError2d2 = " << myMaxError2d2 << endl; o << "myMaxError2d2 = " << myMaxError2d2 << std::endl;
o << "myMaxError3d = " << myMaxError3d << endl; o << "myMaxError3d = " << myMaxError3d << std::endl;
} }
//======================================================================= //=======================================================================
@ -665,7 +665,7 @@ void Approx_CurvilinearParameter::ToleranceComputation(const Handle(Adaptor2d_HC
TolW = Tol / (4.*Max_dS_dw); TolW = Tol / (4.*Max_dS_dw);
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "TolV = " << TolV << endl; std::cout << "TolV = " << TolV << std::endl;
cout << "TolW = " << TolW << endl; std::cout << "TolW = " << TolW << std::endl;
#endif #endif
} }

@ -36,17 +36,17 @@ static void DEBUG(const AppParCurves_MultiCurve& MC) {
TColgp_Array1OfPnt2d Poles2d(1, nbpoles); TColgp_Array1OfPnt2d Poles2d(1, nbpoles);
for (i = 1; i <= nbcu; i++) { for (i = 1; i <= nbcu; i++) {
cout << " Curve No. " << i << endl; std::cout << " Curve No. " << i << std::endl;
if (MC.Dimension(i) == 3) { if (MC.Dimension(i) == 3) {
MC.Curve(i, Poles); MC.Curve(i, Poles);
for (j = 1; j <= nbpoles; j++) { for (j = 1; j <= nbpoles; j++) {
cout<< " Pole = " << Poles(j).X() <<" "<<Poles(j).Y()<<" "<<Poles(j).Z()<< endl; std::cout<< " Pole = " << Poles(j).X() <<" "<<Poles(j).Y()<<" "<<Poles(j).Z()<< std::endl;
} }
} }
else { else {
MC.Curve(i, Poles2d); MC.Curve(i, Poles2d);
for (j = 1; j <= nbpoles; j++) { for (j = 1; j <= nbpoles; j++) {
cout<< " Pole = " << Poles2d(j).X() <<" "<<Poles2d(j).Y()<< endl; std::cout<< " Pole = " << Poles2d(j).X() <<" "<<Poles2d(j).Y()<< std::endl;
} }
} }
} }

@ -542,7 +542,7 @@ void Approx_SameParameter::Build(const Standard_Real Tolerance)
{ {
//Projector //Projector
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Projection not done" << endl; std::cout << "Projection not done" << std::endl;
#endif #endif
} }
} }
@ -558,7 +558,7 @@ void Approx_SameParameter::Build(const Standard_Real Tolerance)
// If not already SameP and tangent to mill, abandon. // If not already SameP and tangent to mill, abandon.
mySameParameter = Standard_False; mySameParameter = Standard_False;
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout<<"SameParameter problem : zero tangent to extremities"<<endl; std::cout<<"SameParameter problem : zero tangent to extremities"<<std::endl;
#endif #endif
return; return;
} }
@ -653,7 +653,7 @@ void Approx_SameParameter::Build(const Standard_Real Tolerance)
} }
else { else {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Projection not done" << endl; std::cout << "Projection not done" << std::endl;
#endif #endif
} }
} }
@ -687,7 +687,7 @@ void Approx_SameParameter::Build(const Standard_Real Tolerance)
if (Precision::IsInfinite(algtol)) { if (Precision::IsInfinite(algtol)) {
mySameParameter = Standard_False; mySameParameter = Standard_False;
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout<<"SameParameter problem : function of interpolation of parametration at mills !!"<<endl; std::cout<<"SameParameter problem : function of interpolation of parametration at mills !!"<<std::endl;
#endif #endif
return; return;
} }
@ -778,7 +778,7 @@ void Approx_SameParameter::Build(const Standard_Real Tolerance)
} }
else { else {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Projection not done" << endl; std::cout << "Projection not done" << std::endl;
#endif #endif
} }
} }

@ -737,19 +737,19 @@ Standard_Real Approx_SweepApproximation::TolCurveOnSurf(const Standard_Integer I
void Approx_SweepApproximation::Dump(Standard_OStream& o) const void Approx_SweepApproximation::Dump(Standard_OStream& o) const
{ {
o << "Dump of SweepApproximation" << endl; o << "Dump of SweepApproximation" << std::endl;
if (done) { if (done) {
o << "Error 3d = " << MaxErrorOnSurf() << endl; o << "Error 3d = " << MaxErrorOnSurf() << std::endl;
if (Num2DSS>0) { if (Num2DSS>0) {
o << "Error 2d = "; o << "Error 2d = ";
for (Standard_Integer ii=1; ii<=Num2DSS; ii++) for (Standard_Integer ii=1; ii<=Num2DSS; ii++)
{ o << Max2dError(ii); { o << Max2dError(ii);
if (ii < Num2DSS) o << " , " << endl; if (ii < Num2DSS) o << " , " << std::endl;
} }
cout << endl; std::cout << std::endl;
} }
o << tabVKnots->Length()-1 <<" Segment(s) of degree " << vdeg << endl; o << tabVKnots->Length()-1 <<" Segment(s) of degree " << vdeg << std::endl;
} }
else cout << " Not Done " << endl; else std::cout << " Not Done " << std::endl;
} }

@ -170,10 +170,10 @@ void ApproxInt_KnotTools::ComputeKnotInds(const NCollection_LocalArray<Standard_
} }
#ifdef APPROXINT_KNOTTOOLS_DEBUG #ifdef APPROXINT_KNOTTOOLS_DEBUG
cout << "Discrete curvature array is" << endl; std::cout << "Discrete curvature array is" << std::endl;
for(i = aCurv.Lower(); i <= aCurv.Upper(); ++i) for(i = aCurv.Lower(); i <= aCurv.Upper(); ++i)
{ {
cout << i << " " << aCurv(i) << endl; std::cout << i << " " << aCurv(i) << std::endl;
} }
#endif #endif
@ -219,11 +219,11 @@ void ApproxInt_KnotTools::ComputeKnotInds(const NCollection_LocalArray<Standard_
#if defined(APPROXINT_KNOTTOOLS_DEBUG) #if defined(APPROXINT_KNOTTOOLS_DEBUG)
{ {
cout << "Feature indices new: " << endl; std::cout << "Feature indices new: " << std::endl;
i; i;
for(i = theInds.Lower(); i <= theInds.Upper(); ++i) for(i = theInds.Lower(); i <= theInds.Upper(); ++i)
{ {
cout << i << " : " << theInds(i) << endl; std::cout << i << " : " << theInds(i) << std::endl;
} }
} }
#endif #endif
@ -608,10 +608,10 @@ void ApproxInt_KnotTools::BuildKnots(const TColgp_Array1OfPnt& thePntsXYZ,
ComputeKnotInds(aCoords, aDim, thePars, aKnots); ComputeKnotInds(aCoords, aDim, thePars, aKnots);
#if defined(APPROXINT_KNOTTOOLS_DEBUG) #if defined(APPROXINT_KNOTTOOLS_DEBUG)
cout << "Draft knot sequence: " << endl; std::cout << "Draft knot sequence: " << std::endl;
for(i = aKnots.Lower(); i <= aKnots.Upper(); ++i) for(i = aKnots.Lower(); i <= aKnots.Upper(); ++i)
{ {
cout << i << " : " << aKnots(i) << endl; std::cout << i << " : " << aKnots(i) << std::endl;
} }
#endif #endif
@ -619,10 +619,10 @@ void ApproxInt_KnotTools::BuildKnots(const TColgp_Array1OfPnt& thePntsXYZ,
FilterKnots(aKnots, theMinNbPnts, theKnots); FilterKnots(aKnots, theMinNbPnts, theKnots);
#if defined(APPROXINT_KNOTTOOLS_DEBUG) #if defined(APPROXINT_KNOTTOOLS_DEBUG)
cout << "Result knot sequence: " << endl; std::cout << "Result knot sequence: " << std::endl;
for(i = theKnots.Lower(); i <= theKnots.Upper(); ++i) for(i = theKnots.Lower(); i <= theKnots.Upper(); ++i)
{ {
cout << i << " : " << theKnots(i) << endl; std::cout << i << " : " << theKnots(i) << std::endl;
} }
#endif #endif

@ -21,7 +21,7 @@
#include <math_FunctionSetRoot.hxx> #include <math_FunctionSetRoot.hxx>
#include <Precision.hxx> #include <Precision.hxx>
#define Debug(expr) cout<<" expr :"<<expr; #define Debug(expr) std::cout<<" expr :"<<expr;
#define MySurf1 MyIntersectionOn2S.Function().AuxillarSurface1() #define MySurf1 MyIntersectionOn2S.Function().AuxillarSurface1()
#define MySurf2 MyIntersectionOn2S.Function().AuxillarSurface2() #define MySurf2 MyIntersectionOn2S.Function().AuxillarSurface2()

@ -255,9 +255,8 @@ Standard_Integer bopcheck (Draw_Interpretor& di,
// //
const BOPDS_MapOfPair& aMPK=aDS.Interferences(); const BOPDS_MapOfPair& aMPK=aDS.Interferences();
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
using namespace std; std::vector <BOPTest_Interf> aVec;
vector <BOPTest_Interf> aVec; std::vector <BOPTest_Interf>::iterator aIt;
vector <BOPTest_Interf>::iterator aIt;
BOPTest_Interf aBInterf; BOPTest_Interf aBInterf;
// //
aItMPK.Initialize(aMPK); aItMPK.Initialize(aMPK);
@ -281,7 +280,7 @@ Standard_Integer bopcheck (Draw_Interpretor& di,
aVec.push_back(aBInterf); aVec.push_back(aBInterf);
} }
// //
sort( aVec.begin(), aVec.end(), less<BOPTest_Interf>()); sort( aVec.begin(), aVec.end(), std::less<BOPTest_Interf>());
// //
iCnt=0; iCnt=0;
for (aIt=aVec.begin(); aIt!=aVec.end(); aIt++) { for (aIt=aVec.begin(); aIt!=aVec.end(); aIt++) {

@ -988,7 +988,7 @@ Standard_Boolean BOPTools_AlgoTools::GetFaceOff
aDN1, aDBF, theContext, aProjPL, aDt3D); aDN1, aDBF, theContext, aProjPL, aDt3D);
if (!bIsComputed) { if (!bIsComputed) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "BOPTools_AlgoTools::GetFaceOff(): incorrect computation of bi-normal direction." << endl; std::cout << "BOPTools_AlgoTools::GetFaceOff(): incorrect computation of bi-normal direction." << std::endl;
#endif #endif
} }
// //
@ -1006,7 +1006,7 @@ Standard_Boolean BOPTools_AlgoTools::GetFaceOff
aDBF2, theContext, aProjPL, aDt3D); aDBF2, theContext, aProjPL, aDt3D);
if (!bIsComputed) { if (!bIsComputed) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "BOPTools_AlgoTools::GetFaceOff(): incorrect computation of bi-normal direction." << endl; std::cout << "BOPTools_AlgoTools::GetFaceOff(): incorrect computation of bi-normal direction." << std::endl;
#endif #endif
} }
//Angle //Angle

@ -149,7 +149,7 @@ BRepAlgo_BooleanOperation::~BRepAlgo_BooleanOperation()
} }
myBuilderCanWork = (esp || tede) ; myBuilderCanWork = (esp || tede) ;
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (!esp) cout<<"BRepAlgo_BooleanOperation(DEB) some edges not SameParameter"<<endl; if (!esp) std::cout<<"BRepAlgo_BooleanOperation(DEB) some edges not SameParameter"<<std::endl;
#endif #endif
if (!myBuilderCanWork) return; if (!myBuilderCanWork) return;
@ -241,8 +241,8 @@ BRepAlgo_BooleanOperation::~BRepAlgo_BooleanOperation()
Vertex2.Append(Ex.Current()); nbv2++; Vertex2.Append(Ex.Current()); nbv2++;
} }
//-- cout<<"Solids1: "<<nbs1<<" Faces1: "<<nbf1<<" Edges1:"<<nbe1<<" Vtx1:"<<nbv1<<endl; //-- std::cout<<"Solids1: "<<nbs1<<" Faces1: "<<nbf1<<" Edges1:"<<nbe1<<" Vtx1:"<<nbv1<<std::endl;
//-- cout<<"Solids2: "<<nbs2<<" Faces2: "<<nbf2<<" Edges2:"<<nbe2<<" Vtx2:"<<nbv2<<endl; //-- std::cout<<"Solids2: "<<nbs2<<" Faces2: "<<nbf2<<" Edges2:"<<nbe2<<" Vtx2:"<<nbv2<<std::endl;
//== //==
@ -253,14 +253,14 @@ BRepAlgo_BooleanOperation::~BRepAlgo_BooleanOperation()
// Standard_Boolean Correct = Standard_True; // Standard_Boolean Correct = Standard_True;
if( (nbs1 && nbs2==0 && St1==TopAbs_OUT && St2==TopAbs_IN) if( (nbs1 && nbs2==0 && St1==TopAbs_OUT && St2==TopAbs_IN)
|| (nbs2 && nbs1==0 && St2==TopAbs_OUT && St1==TopAbs_IN)) { || (nbs2 && nbs1==0 && St2==TopAbs_OUT && St1==TopAbs_IN)) {
//-- cout<<"***** Invalid Operation : Cut of a Solid by a Non Solid "<<endl; //-- std::cout<<"***** Invalid Operation : Cut of a Solid by a Non Solid "<<std::endl;
Done(); Done();
return; return;
} }
if( (nbs1 && nbs2==0 && St1==TopAbs_OUT && St2==TopAbs_OUT) if( (nbs1 && nbs2==0 && St1==TopAbs_OUT && St2==TopAbs_OUT)
|| (nbs2 && nbs1==0 && St2==TopAbs_OUT && St1==TopAbs_OUT)) { || (nbs2 && nbs1==0 && St2==TopAbs_OUT && St1==TopAbs_OUT)) {
//-- cout<<"***** Invalid Operation : Fusion of a Solid and a Non Solid "<<endl; //-- std::cout<<"***** Invalid Operation : Fusion of a Solid and a Non Solid "<<std::endl;
Done(); Done();
return; return;
} }
@ -268,7 +268,7 @@ BRepAlgo_BooleanOperation::~BRepAlgo_BooleanOperation()
if( (nbs1>0 && nbs2>0) if( (nbs1>0 && nbs2>0)
&& (nbe1 || nbe2 || nbf1 || nbf2 || nbv1 || nbv2)) { && (nbe1 || nbe2 || nbf1 || nbf2 || nbv1 || nbv2)) {
//-- cout<<"***** Not Yet Implemented : Compound of solid and non Solid"<<endl; //-- std::cout<<"***** Not Yet Implemented : Compound of solid and non Solid"<<std::endl;
Done(); Done();
return; return;
} }

@ -198,7 +198,7 @@ static TopoDS_Vertex UpdateClosedEdge(const TopoDS_Edge& E,
if (!VB[0].IsSame(VB[1])) { if (!VB[0].IsSame(VB[1])) {
#ifdef OCCT_DEBUG_ALGO #ifdef OCCT_DEBUG_ALGO
if (AffichLoop) if (AffichLoop)
cout <<"Two different vertices on the closing vertex"<<endl; std::cout <<"Two different vertices on the closing vertex"<<std::endl;
#endif #endif
} }
else { else {
@ -314,7 +314,7 @@ static Standard_Boolean SelectEdge(const TopoDS_Face& F,
#ifdef OCCT_DEBUG_ALGO #ifdef OCCT_DEBUG_ALGO
if (AffichLoop) { if (AffichLoop) {
if ( LE.Extent() > 2) { if ( LE.Extent() > 2) {
cout <<"vertex on more than 2 edges in a face."<<endl; std::cout <<"vertex on more than 2 edges in a face."<<std::endl;
} }
} }
#endif #endif
@ -512,7 +512,7 @@ void BRepAlgo_Loop::Perform()
#ifdef OCCT_DEBUG_ALGO #ifdef OCCT_DEBUG_ALGO
if (AffichLoop) { if (AffichLoop) {
cout <<"NewLoop"<<endl; std::cout <<"NewLoop"<<std::endl;
NbLoops++; NbLoops++;
#ifdef DRAW #ifdef DRAW
sprintf(name,"FLoop_%d",NbLoops); sprintf(name,"FLoop_%d",NbLoops);
@ -582,7 +582,7 @@ void BRepAlgo_Loop::Perform()
#ifdef DRAW #ifdef DRAW
if (AffichLoop) { if (AffichLoop) {
cout <<"NewLoop"<<endl; std::cout <<"NewLoop"<<std::endl;
Standard_Integer NbEdges = 1; Standard_Integer NbEdges = 1;
TopTools_MapOfShape Done; TopTools_MapOfShape Done;
for (Standard_Integer iV = 1; iV <= MVE.Extent(); iV++) { for (Standard_Integer iV = 1; iV <= MVE.Extent(); iV++) {
@ -685,9 +685,9 @@ void BRepAlgo_Loop::Perform()
} }
#ifdef OCCT_DEBUG_ALGO #ifdef OCCT_DEBUG_ALGO
else { else {
cout <<"BRepAlgo_Loop: Open Wire"<<endl; std::cout <<"BRepAlgo_Loop: Open Wire"<<std::endl;
if (AffichLoop) if (AffichLoop)
cout << "OpenWire is : NW_"<<NbLoops<<"_"<<NbWires<<endl; std::cout << "OpenWire is : NW_"<<NbLoops<<"_"<<NbWires<<std::endl;
} }
#endif #endif
#ifdef DRAW #ifdef DRAW

@ -292,8 +292,8 @@ void BRepAlgo_NormalProjection::SetDefaultParams()
for(k = 1; k <= Projector.NbCurves(); k++){ for(k = 1; k <= Projector.NbCurves(); k++){
if(Projector.IsSinglePnt(k, P2d)){ if(Projector.IsSinglePnt(k, P2d)){
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Projection of edge "<<i<<" on face "<<j; std::cout << "Projection of edge "<<i<<" on face "<<j;
cout << " is punctual"<<endl<<endl; std::cout << " is punctual"<<std::endl<<std::endl;
#endif #endif
Projector.GetSurface()->D0(P2d.X(), P2d.Y(), P); Projector.GetSurface()->D0(P2d.X(), P2d.Y(), P);
prj = BRepLib_MakeVertex(P).Shape(); prj = BRepLib_MakeVertex(P).Shape();
@ -310,8 +310,8 @@ void BRepAlgo_NormalProjection::SetDefaultParams()
/**************************************************************/ /**************************************************************/
if (Projector.IsUIso(k, UIso)) { if (Projector.IsUIso(k, UIso)) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Projection of edge "<<i<<" on face "<<j; std::cout << "Projection of edge "<<i<<" on face "<<j;
cout << " is U-isoparametric"<<endl<<endl; std::cout << " is U-isoparametric"<<std::endl<<std::endl;
#endif #endif
Projector.D0(Udeb, Pdeb); Projector.D0(Udeb, Pdeb);
Projector.D0(Ufin, Pfin); Projector.D0(Ufin, Pfin);
@ -327,8 +327,8 @@ void BRepAlgo_NormalProjection::SetDefaultParams()
} }
else if (Projector.IsVIso(k, VIso)) { else if (Projector.IsVIso(k, VIso)) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Projection of edge "<<i<<" on face "<<j; std::cout << "Projection of edge "<<i<<" on face "<<j;
cout << " is V-isoparametric"<<endl<<endl; std::cout << " is V-isoparametric"<<std::endl<<std::endl;
#endif #endif
Projector.D0(Udeb, Pdeb); Projector.D0(Udeb, Pdeb);
Projector.D0(Ufin, Pfin); Projector.D0(Ufin, Pfin);
@ -370,12 +370,12 @@ void BRepAlgo_NormalProjection::SetDefaultParams()
ResultChron(chr_approx,t_approx); ResultChron(chr_approx,t_approx);
approx_count++; approx_count++;
cout<<"Approximation.IsDone = "<<appr.IsDone()<<endl; std::cout<<"Approximation.IsDone = "<<appr.IsDone()<<std::endl;
if(!Only2d) if(!Only2d)
cout<<"MaxError3d = "<<appr.MaxError3d()<<endl<<endl; std::cout<<"MaxError3d = "<<appr.MaxError3d()<<std::endl<<std::endl;
if(!Only3d) { if(!Only3d) {
cout<<"MaxError2dU = "<<appr.MaxError2dU()<<endl; std::cout<<"MaxError2dU = "<<appr.MaxError2dU()<<std::endl;
cout<<"MaxError2dV = "<<appr.MaxError2dV()<<endl<<endl; std::cout<<"MaxError2dV = "<<appr.MaxError2dV()<<std::endl<<std::endl;
} }
#endif #endif
@ -440,8 +440,8 @@ void BRepAlgo_NormalProjection::SetDefaultParams()
} }
if (Degenerated) { if (Degenerated) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Projection of edge "<<i<<" on face "<<j; std::cout << "Projection of edge "<<i<<" on face "<<j;
cout << " is degenerated "<<endl<<endl; std::cout << " is degenerated "<<std::endl<<std::endl;
#endif #endif
TopoDS_Vertex VV; TopoDS_Vertex VV;
BB.MakeVertex(VV); BB.MakeVertex(VV);
@ -511,7 +511,7 @@ void BRepAlgo_NormalProjection::SetDefaultParams()
} }
else { else {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << " BooleanOperations : no solution " << endl; std::cout << " BooleanOperations : no solution " << std::endl;
#endif #endif
BRepTopAdaptor_FClass2d classifier(TopoDS::Face(Faces->Value(j)), BRepTopAdaptor_FClass2d classifier(TopoDS::Face(Faces->Value(j)),
@ -557,13 +557,13 @@ void BRepAlgo_NormalProjection::SetDefaultParams()
#ifdef OCCT_DEBUG_CHRONO #ifdef OCCT_DEBUG_CHRONO
ResultChron(chr_total,t_total); ResultChron(chr_total,t_total);
cout<<"Build - Total time : "<<t_total<<" includes:" <<endl; std::cout<<"Build - Total time : "<<t_total<<" includes:" <<std::endl;
cout<<"- Projection : "<<t_init<<endl; std::cout<<"- Projection : "<<t_init<<std::endl;
cout<<" -- Initial point search : "<<t_init_point<<endl; std::cout<<" -- Initial point search : "<<t_init_point<<std::endl;
cout<<" -- DichoBound search : "<<t_dicho_bound<<endl; std::cout<<" -- DichoBound search : "<<t_dicho_bound<<std::endl;
cout<<"- Approximation : "<<t_approx<<endl; std::cout<<"- Approximation : "<<t_approx<<std::endl;
cout<<"- Boolean operation : "<<t_booltool<<endl; std::cout<<"- Boolean operation : "<<t_booltool<<std::endl;
cout<<"- Rest of time : "<<t_total-(t_init + t_approx + t_booltool )<<endl<<endl; std::cout<<"- Rest of time : "<<t_total-(t_init + t_approx + t_booltool )<<std::endl<<std::endl;
if (init_count != 0) if (init_count != 0)
t_init /= init_count; t_init /= init_count;
if (init_point_count != 0) if (init_point_count != 0)
@ -575,13 +575,13 @@ void BRepAlgo_NormalProjection::SetDefaultParams()
if (booltool_count != 0) if (booltool_count != 0)
t_booltool /= booltool_count; t_booltool /= booltool_count;
cout<<"Unitary average time : "<<endl; std::cout<<"Unitary average time : "<<std::endl;
cout<<"- Projection : "<<t_init<<endl; std::cout<<"- Projection : "<<t_init<<std::endl;
cout<<" -- Initial point search: "<<t_init_point<<endl; std::cout<<" -- Initial point search: "<<t_init_point<<std::endl;
cout<<" -- DichoBound search : "<<t_dicho_bound<<endl; std::cout<<" -- DichoBound search : "<<t_dicho_bound<<std::endl;
cout<<"- Approximation : "<<t_approx<<endl; std::cout<<"- Approximation : "<<t_approx<<std::endl;
cout<<"- Boolean operation :"<<t_booltool<<endl; std::cout<<"- Boolean operation :"<<t_booltool<<std::endl;
cout<<endl<<"Number of initial point computations is "<<init_point_count<<endl<<endl; std::cout<<std::endl<<"Number of initial point computations is "<<init_point_count<<std::endl<<std::endl;
#endif #endif
} }

@ -91,7 +91,7 @@ TopoDS_Shape BRepAlgo_Tool::Deboucle3D(const TopoDS_Shape& S,
if (NbSub == 0) if (NbSub == 0)
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "No subhape in shape!" << endl; std::cout << "No subhape in shape!" << std::endl;
#endif #endif
SS = TopoDS_Shape(); SS = TopoDS_Shape();
} }

@ -331,7 +331,7 @@ Standard_Boolean BRepBlend_AppFuncRoot::SearchPoint(Blend_AppFunction& Func,
if (!rsnld.IsDone()) { if (!rsnld.IsDone()) {
# ifdef BREPBLEND_DEB # ifdef BREPBLEND_DEB
cout << "AppFunc : RNLD Not done en t = " << Param << endl; std::cout << "AppFunc : RNLD Not done en t = " << Param << std::endl;
# endif # endif
return Standard_False; return Standard_False;
} }
@ -343,8 +343,8 @@ Standard_Boolean BRepBlend_AppFuncRoot::SearchPoint(Blend_AppFunction& Func,
// (4) Insertion of the point if the calculation seems long. // (4) Insertion of the point if the calculation seems long.
if ((!Trouve)&&(rsnld.NbIterations()>3)) { if ((!Trouve)&&(rsnld.NbIterations()>3)) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Evaluation in t = " << Param << "given" << endl; std::cout << "Evaluation in t = " << Param << "given" << std::endl;
rsnld.Dump(cout); rsnld.Dump(std::cout);
#endif #endif
myLine->InsertBefore(Index+1, Pnt); myLine->InsertBefore(Index+1, Pnt);
} }

@ -101,28 +101,28 @@ static void tracederiv(Blend_RstRstFunction& Func,
Standard_Real param2 = BP2.Parameter(); Standard_Real param2 = BP2.Parameter();
Standard_Real scal = 1./ (param1 - param2); Standard_Real scal = 1./ (param1 - param2);
cout<<endl; std::cout<<std::endl;
cout<<"control of derivatives at point : "<<param1<<endl; std::cout<<"control of derivatives at point : "<<param1<<std::endl;
for(i = 1; i <= hp; i++){ for(i = 1; i <= hp; i++){
cout<<endl; std::cout<<std::endl;
cout<<"point : "<<i<<endl; std::cout<<"point : "<<i<<std::endl;
cout<<"dx calculated : "<<TDP1(i).X()<<endl; std::cout<<"dx calculated : "<<TDP1(i).X()<<std::endl;
cout<<"dx estimated : "<<scal*(TP1(i).X()-TP2(i).X())<<endl; std::cout<<"dx estimated : "<<scal*(TP1(i).X()-TP2(i).X())<<std::endl;
cout<<"dy calculated : "<<TDP1(i).Y()<<endl; std::cout<<"dy calculated : "<<TDP1(i).Y()<<std::endl;
cout<<"dy estimated : "<<scal*(TP1(i).Y()-TP2(i).Y())<<endl; std::cout<<"dy estimated : "<<scal*(TP1(i).Y()-TP2(i).Y())<<std::endl;
cout<<"dz calculated : "<<TDP1(i).Z()<<endl; std::cout<<"dz calculated : "<<TDP1(i).Z()<<std::endl;
cout<<"dz estimated : "<<scal*(TP1(i).Z()-TP2(i).Z())<<endl; std::cout<<"dz estimated : "<<scal*(TP1(i).Z()-TP2(i).Z())<<std::endl;
cout<<"dw calculated : "<<TDW1(i)<<endl; std::cout<<"dw calculated : "<<TDW1(i)<<std::endl;
cout<<"dw estimated : "<<scal*(TW1(i)-TW2(i))<<endl; std::cout<<"dw estimated : "<<scal*(TW1(i)-TW2(i))<<std::endl;
} }
for(i = 1; i <= hp2d; i++){ for(i = 1; i <= hp2d; i++){
cout<<endl; std::cout<<std::endl;
cout<<"point 2d : "<<i<<endl; std::cout<<"point 2d : "<<i<<std::endl;
cout<<"dx calculated : "<<TDP2d1(i).X()<<endl; std::cout<<"dx calculated : "<<TDP2d1(i).X()<<std::endl;
cout<<"dx estimated : "<<scal*(TP2d1(i).X()-TP2d2(i).X())<<endl; std::cout<<"dx estimated : "<<scal*(TP2d1(i).X()-TP2d2(i).X())<<std::endl;
cout<<"dy calculated : "<<TDP2d1(i).Y()<<endl; std::cout<<"dy calculated : "<<TDP2d1(i).Y()<<std::endl;
cout<<"dy estimated : "<<scal*(TP2d1(i).Y()-TP2d2(i).Y())<<endl; std::cout<<"dy estimated : "<<scal*(TP2d1(i).Y()-TP2d2(i).Y())<<std::endl;
} }
} }
#endif #endif
@ -825,7 +825,7 @@ void BRepBlend_RstRstLineBuilder::InternalPerform(Blend_RstRstFunction& Func,
else{ else{
// reframing failed. Leave with PointsConfondus // reframing failed. Leave with PointsConfondus
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout<<"reframing failed"<<endl; std::cout<<"reframing failed"<<std::endl;
#endif #endif
State = Blend_SamePoints; State = Blend_SamePoints;
} }
@ -880,7 +880,7 @@ void BRepBlend_RstRstLineBuilder::InternalPerform(Blend_RstRstFunction& Func,
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (line->NbPoints()>=2) { if (line->NbPoints()>=2) {
// Show that there is a stop during processing // Show that there is a stop during processing
cout<<"No more advancement in the processing"<<endl; std::cout<<"No more advancement in the processing"<<std::endl;
} }
#endif #endif
} }
@ -988,7 +988,7 @@ void BRepBlend_RstRstLineBuilder::InternalPerform(Blend_RstRstFunction& Func,
{ {
// Stop // Stop
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << " Mixed points in the processing" << endl; std::cout << " Mixed points in the processing" << std::endl;
#endif #endif
Extrst1.SetValue(previousP.PointOnC1(), Extrst1.SetValue(previousP.PointOnC1(),
previousP.ParameterOnC1(), previousP.ParameterOnC1(),
@ -1039,7 +1039,7 @@ Standard_Boolean BRepBlend_RstRstLineBuilder::Recadre1(Blend_RstRstFunction&
rsnld.Perform(Finv, Solinv, infb, supb); rsnld.Perform(Finv, Solinv, infb, supb);
if (!rsnld.IsDone()) { if (!rsnld.IsDone()) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "RSNLD not done "<< endl << endl; std::cout << "RSNLD not done "<< std::endl << std::endl;
#endif #endif
return Standard_False; return Standard_False;
} }
@ -1121,7 +1121,7 @@ Standard_Boolean BRepBlend_RstRstLineBuilder::Recadre2(Blend_RstRstFunction&
rsnld.Perform(Finv, Solinv, infb, supb); rsnld.Perform(Finv, Solinv, infb, supb);
if (!rsnld.IsDone()) { if (!rsnld.IsDone()) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "RSNLD not done "<< endl << endl; std::cout << "RSNLD not done "<< std::endl << std::endl;
#endif #endif
return Standard_False; return Standard_False;
} }
@ -1207,7 +1207,7 @@ Standard_Boolean BRepBlend_RstRstLineBuilder::Recadre1(Blend_CurvPointFuncInv&
rsnld.Perform(FinvP, Solinv, infb, supb); rsnld.Perform(FinvP, Solinv, infb, supb);
if (!rsnld.IsDone()) { if (!rsnld.IsDone()) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "RSNLD not done "<< endl << endl; std::cout << "RSNLD not done "<< std::endl << std::endl;
#endif #endif
return Standard_False; return Standard_False;
} }
@ -1275,7 +1275,7 @@ Standard_Boolean BRepBlend_RstRstLineBuilder::Recadre2(Blend_CurvPointFuncInv&
rsnld.Perform(FinvP, Solinv, infb, supb); rsnld.Perform(FinvP, Solinv, infb, supb);
if (!rsnld.IsDone()) { if (!rsnld.IsDone()) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "RSNLD not done "<< endl << endl; std::cout << "RSNLD not done "<< std::endl << std::endl;
#endif #endif
return Standard_False; return Standard_False;
} }

@ -921,7 +921,7 @@ Standard_Boolean BRepBlend_SurfRstConstRad::Section
if (norm < Eps) { if (norm < Eps) {
norm = 1; // Not enough, but it is not necessary to stop norm = 1; // Not enough, but it is not necessary to stop
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << " SurfRstConstRad : Singular Surface " << endl; std::cout << " SurfRstConstRad : Singular Surface " << std::endl;
#endif #endif
} }

@ -934,7 +934,7 @@ TColStd_Array1OfReal& DWeigths)
if (norm < Eps) { if (norm < Eps) {
norm = 1; // Not enough, but it is not necessary to stop norm = 1; // Not enough, but it is not necessary to stop
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << " SurfRstEvolRad : Surface single " << endl; std::cout << " SurfRstEvolRad : Surface single " << std::endl;
#endif #endif
} }

@ -96,28 +96,28 @@ static void tracederiv(Blend_SurfRstFunction& Func,
Standard_Real param2 = BP2.Parameter(); Standard_Real param2 = BP2.Parameter();
Standard_Real scal = 1./(param1-param2); Standard_Real scal = 1./(param1-param2);
cout<<endl; std::cout<<std::endl;
cout<<"control derivatives at point : "<<param1<<endl; std::cout<<"control derivatives at point : "<<param1<<std::endl;
for(i = 1; i <= hp; i++){ for(i = 1; i <= hp; i++){
cout<<endl; std::cout<<std::endl;
cout<<"point : "<<i<<endl; std::cout<<"point : "<<i<<std::endl;
cout<<"dx calculated : "<<TDP1(i).X()<<endl; std::cout<<"dx calculated : "<<TDP1(i).X()<<std::endl;
cout<<"dx estimated : "<<scal*(TP1(i).X()-TP2(i).X())<<endl; std::cout<<"dx estimated : "<<scal*(TP1(i).X()-TP2(i).X())<<std::endl;
cout<<"dy calculated : "<<TDP1(i).Y()<<endl; std::cout<<"dy calculated : "<<TDP1(i).Y()<<std::endl;
cout<<"dy estimated : "<<scal*(TP1(i).Y()-TP2(i).Y())<<endl; std::cout<<"dy estimated : "<<scal*(TP1(i).Y()-TP2(i).Y())<<std::endl;
cout<<"dz calculated : "<<TDP1(i).Z()<<endl; std::cout<<"dz calculated : "<<TDP1(i).Z()<<std::endl;
cout<<"dz estimated : "<<scal*(TP1(i).Z()-TP2(i).Z())<<endl; std::cout<<"dz estimated : "<<scal*(TP1(i).Z()-TP2(i).Z())<<std::endl;
cout<<"dw calculated : "<<TDW1(i)<<endl; std::cout<<"dw calculated : "<<TDW1(i)<<std::endl;
cout<<"dw estimated : "<<scal*(TW1(i)-TW2(i))<<endl; std::cout<<"dw estimated : "<<scal*(TW1(i)-TW2(i))<<std::endl;
} }
for(i = 1; i <= hp2d; i++){ for(i = 1; i <= hp2d; i++){
cout<<endl; std::cout<<std::endl;
cout<<"point 2d : "<<i<<endl; std::cout<<"point 2d : "<<i<<std::endl;
cout<<"dx calculated : "<<TDP2d1(i).X()<<endl; std::cout<<"dx calculated : "<<TDP2d1(i).X()<<std::endl;
cout<<"dx estimated : "<<scal*(TP2d1(i).X()-TP2d2(i).X())<<endl; std::cout<<"dx estimated : "<<scal*(TP2d1(i).X()-TP2d2(i).X())<<std::endl;
cout<<"dy calculated : "<<TDP2d1(i).Y()<<endl; std::cout<<"dy calculated : "<<TDP2d1(i).Y()<<std::endl;
cout<<"dy estimated : "<<scal*(TP2d1(i).Y()-TP2d2(i).Y())<<endl; std::cout<<"dy estimated : "<<scal*(TP2d1(i).Y()-TP2d2(i).Y())<<std::endl;
} }
} }
#endif #endif
@ -717,7 +717,7 @@ void BRepBlend_SurfRstLineBuilder::InternalPerform(Blend_SurfRstFunction& Func,
else{ else{
// Failed reframing. Leave with PointsConfondus // Failed reframing. Leave with PointsConfondus
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout<<"SurfRstLineBuilder : failed reframing"<<endl; std::cout<<"SurfRstLineBuilder : failed reframing"<<std::endl;
#endif #endif
State = Blend_SamePoints; State = Blend_SamePoints;
} }
@ -772,7 +772,7 @@ void BRepBlend_SurfRstLineBuilder::InternalPerform(Blend_SurfRstFunction& Func,
if (line->NbPoints()>=2) { if (line->NbPoints()>=2) {
// Indicate that one stops during the processing // Indicate that one stops during the processing
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout<<"SurfRstLineBuilder : No advancement in the processing"<<endl; std::cout<<"SurfRstLineBuilder : No advancement in the processing"<<std::endl;
#endif #endif
} }
} }
@ -878,7 +878,7 @@ void BRepBlend_SurfRstLineBuilder::InternalPerform(Blend_SurfRstFunction& Func,
{ {
// Stop // Stop
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "SurfRstLineBuilder Points mixed in the processing" << endl; std::cout << "SurfRstLineBuilder Points mixed in the processing" << std::endl;
#endif #endif
previousP.ParametersOnS(U,V); previousP.ParametersOnS(U,V);
Exts.SetValue(previousP.PointOnS(),U,V, Exts.SetValue(previousP.PointOnS(),U,V,
@ -951,7 +951,7 @@ Standard_Boolean BRepBlend_SurfRstLineBuilder::Recadre(Blend_SurfCurvFuncInv&
if (!rsnld.IsDone()) { if (!rsnld.IsDone()) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "SurfRstLineBuilder : RSNLD not done "<< endl << endl; std::cout << "SurfRstLineBuilder : RSNLD not done "<< std::endl << std::endl;
#endif #endif
} }
else { else {
@ -990,7 +990,7 @@ Standard_Boolean BRepBlend_SurfRstLineBuilder::Recadre(Blend_SurfCurvFuncInv&
if (!aRsnld.IsDone()) { if (!aRsnld.IsDone()) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "SurfRstLineBuilder : RSNLD not done "<< endl << endl; std::cout << "SurfRstLineBuilder : RSNLD not done "<< std::endl << std::endl;
#endif #endif
} }
else { else {
@ -1051,7 +1051,7 @@ Standard_Boolean BRepBlend_SurfRstLineBuilder::Recadre(Blend_SurfRstFunction&
rsnld.Perform(Finv,Solinv,infb,supb); rsnld.Perform(Finv,Solinv,infb,supb);
if (!rsnld.IsDone()) { if (!rsnld.IsDone()) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "SurfRstLineBuilder :RSNLD not done "<< endl; std::cout << "SurfRstLineBuilder :RSNLD not done "<< std::endl;
#endif #endif
return Standard_False; return Standard_False;
} }
@ -1135,7 +1135,7 @@ Standard_Boolean BRepBlend_SurfRstLineBuilder::Recadre(Blend_SurfPointFuncInv&
rsnld.Perform(FinvP,Solinv,infb,supb); rsnld.Perform(FinvP,Solinv,infb,supb);
if (!rsnld.IsDone()) { if (!rsnld.IsDone()) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "SurfRstLineBuilder :RSNLD not done "<< endl; std::cout << "SurfRstLineBuilder :RSNLD not done "<< std::endl;
#endif #endif
return Standard_False; return Standard_False;
} }

@ -330,7 +330,7 @@ void BRepBuilderAPI_FastSewing::Perform(void)
{ {
SetStatus(FS_Exception); SetStatus(FS_Exception);
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
//Standard_Failure::Caught()->Print(cout); //Standard_Failure::Caught()->Print(std::cout);
#endif #endif
return; return;
} }

@ -145,8 +145,8 @@ Handle(Geom2d_Curve) BRepBuilderAPI_Sewing::SameRange(const Handle(Geom2d_Curve)
} }
catch (Standard_Failure const& anException) { catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Exception in BRepBuilderAPI_Sewing::SameRange: "; std::cout << "Exception in BRepBuilderAPI_Sewing::SameRange: ";
anException.Print(cout); cout << endl; anException.Print(std::cout); std::cout << std::endl;
#endif #endif
(void)anException; (void)anException;
} }
@ -318,8 +318,8 @@ void BRepBuilderAPI_Sewing::SameParameter(const TopoDS_Edge& edge) const
} }
catch (Standard_Failure const& anException) { catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Exception in BRepBuilderAPI_Sewing::SameParameter: "; std::cout << "Exception in BRepBuilderAPI_Sewing::SameParameter: ";
anException.Print(cout); cout << endl; anException.Print(std::cout); std::cout << std::endl;
#endif #endif
(void)anException; (void)anException;
} }
@ -1827,7 +1827,7 @@ void BRepBuilderAPI_Sewing::Perform(const Handle(Message_ProgressIndicator)& the
if (myAnalysis) if (myAnalysis)
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Begin face analysis..." << endl; std::cout << "Begin face analysis..." << std::endl;
chr_local.Reset(); chr_local.Reset();
chr_local.Start(); chr_local.Start();
#endif #endif
@ -1838,7 +1838,7 @@ void BRepBuilderAPI_Sewing::Perform(const Handle(Message_ProgressIndicator)& the
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
chr_local.Stop(); chr_local.Stop();
chr_local.Show(t_analysis); chr_local.Show(t_analysis);
cout << "Face analysis finished after " << t_analysis << " s" << endl; std::cout << "Face analysis finished after " << t_analysis << " s" << std::endl;
#endif #endif
} }
@ -1851,7 +1851,7 @@ void BRepBuilderAPI_Sewing::Perform(const Handle(Message_ProgressIndicator)& the
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Begin vertices assembling..." << endl; std::cout << "Begin vertices assembling..." << std::endl;
chr_local.Reset(); chr_local.Reset();
chr_local.Start(); chr_local.Start();
#endif #endif
@ -1862,12 +1862,12 @@ void BRepBuilderAPI_Sewing::Perform(const Handle(Message_ProgressIndicator)& the
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
chr_local.Stop(); chr_local.Stop();
chr_local.Show(t_assembling); chr_local.Show(t_assembling);
cout << "Vertices assembling finished after " << t_assembling << " s" << endl; std::cout << "Vertices assembling finished after " << t_assembling << " s" << std::endl;
#endif #endif
if (myCutting) if (myCutting)
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Begin cutting..." << endl; std::cout << "Begin cutting..." << std::endl;
chr_local.Reset(); chr_local.Reset();
chr_local.Start(); chr_local.Start();
#endif #endif
@ -1878,11 +1878,11 @@ void BRepBuilderAPI_Sewing::Perform(const Handle(Message_ProgressIndicator)& the
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
chr_local.Stop(); chr_local.Stop();
chr_local.Show(t_cutting); chr_local.Show(t_cutting);
cout << "Cutting finished after " << t_cutting << " s" << endl; std::cout << "Cutting finished after " << t_cutting << " s" << std::endl;
#endif #endif
} }
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Begin merging..." << endl; std::cout << "Begin merging..." << std::endl;
chr_local.Reset(); chr_local.Reset();
chr_local.Start(); chr_local.Start();
#endif #endif
@ -1893,7 +1893,7 @@ void BRepBuilderAPI_Sewing::Perform(const Handle(Message_ProgressIndicator)& the
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
chr_local.Stop(); chr_local.Stop();
chr_local.Show(t_merging); chr_local.Show(t_merging);
cout << "Merging finished after " << t_merging << " s" << endl; std::cout << "Merging finished after " << t_merging << " s" << std::endl;
#endif #endif
} }
else else
@ -1910,7 +1910,7 @@ void BRepBuilderAPI_Sewing::Perform(const Handle(Message_ProgressIndicator)& the
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Creating sewed shape..." << endl; std::cout << "Creating sewed shape..." << std::endl;
#endif #endif
// examine the multiple edges if any and process sameparameter for edges if necessary // examine the multiple edges if any and process sameparameter for edges if necessary
EdgeProcessing (thePI); EdgeProcessing (thePI);
@ -1933,7 +1933,7 @@ void BRepBuilderAPI_Sewing::Perform(const Handle(Message_ProgressIndicator)& the
return; return;
} }
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Sewed shape created" << endl; std::cout << "Sewed shape created" << std::endl;
#endif #endif
} }
@ -1948,12 +1948,12 @@ void BRepBuilderAPI_Sewing::Perform(const Handle(Message_ProgressIndicator)& the
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
chr_total.Stop(); chr_total.Stop();
chr_total.Show(t_total); chr_total.Show(t_total);
cout << "Sewing finished!" << endl; std::cout << "Sewing finished!" << std::endl;
cout << " analysis time : " << t_analysis << " s" << endl; std::cout << " analysis time : " << t_analysis << " s" << std::endl;
cout << " assembling time : " << t_assembling << " s" << endl; std::cout << " assembling time : " << t_assembling << " s" << std::endl;
cout << " cutting time : " << t_cutting << " s" << endl; std::cout << " cutting time : " << t_cutting << " s" << std::endl;
cout << " merging time : " << t_merging << " s" << endl; std::cout << " merging time : " << t_merging << " s" << std::endl;
cout << "Total time : " << t_total << " s" << endl; std::cout << "Total time : " << t_total << " s" << std::endl;
#endif #endif
} }
@ -2205,23 +2205,23 @@ void BRepBuilderAPI_Sewing::Dump() const
mapVertices.Add(V2); mapVertices.Add(V2);
} }
} }
cout << " " << endl; std::cout << " " << std::endl;
cout << " Informations " << endl; std::cout << " Informations " << std::endl;
cout << " ===========================================================" << endl; std::cout << " ===========================================================" << std::endl;
cout << " " << endl; std::cout << " " << std::endl;
cout << " Number of input shapes : " << myOldShapes.Extent() << endl; std::cout << " Number of input shapes : " << myOldShapes.Extent() << std::endl;
cout << " Number of actual shapes : " << myNbShapes << endl; std::cout << " Number of actual shapes : " << myNbShapes << std::endl;
cout << " Number of Bounds : " << NbBounds << endl; std::cout << " Number of Bounds : " << NbBounds << std::endl;
cout << " Number of Sections : " << NbSections << endl; std::cout << " Number of Sections : " << NbSections << std::endl;
cout << " Number of Edges : " << mapEdges.Extent() << endl; std::cout << " Number of Edges : " << mapEdges.Extent() << std::endl;
cout << " Number of Vertices : " << myNbVertices << endl; std::cout << " Number of Vertices : " << myNbVertices << std::endl;
cout << " Number of Nodes : " << mapVertices.Extent() << endl; std::cout << " Number of Nodes : " << mapVertices.Extent() << std::endl;
cout << " Number of Free Edges : " << myFreeEdges.Extent() << endl; std::cout << " Number of Free Edges : " << myFreeEdges.Extent() << std::endl;
cout << " Number of Contigous Edges : " << myContigousEdges.Extent() << endl; std::cout << " Number of Contigous Edges : " << myContigousEdges.Extent() << std::endl;
cout << " Number of Multiple Edges : " << myMultipleEdges.Extent() << endl; std::cout << " Number of Multiple Edges : " << myMultipleEdges.Extent() << std::endl;
cout << " Number of Degenerated Edges : " << myDegenerated.Extent() << endl; std::cout << " Number of Degenerated Edges : " << myDegenerated.Extent() << std::endl;
cout << " ===========================================================" << endl; std::cout << " ===========================================================" << std::endl;
cout << " " << endl; std::cout << " " << std::endl;
} }
//======================================================================= //=======================================================================
@ -2297,7 +2297,7 @@ void BRepBuilderAPI_Sewing::FaceAnalysis(const Handle(Message_ProgressIndicator)
Handle(Geom_Curve) c3d = BRep_Tool::Curve(edge,first,last); Handle(Geom_Curve) c3d = BRep_Tool::Curve(edge,first,last);
if (c3d.IsNull()) { if (c3d.IsNull()) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Warning: Possibly small edge can be sewed: No 3D curve" << endl; std::cout << "Warning: Possibly small edge can be sewed: No 3D curve" << std::endl;
#endif #endif
} }
else { else {
@ -2318,8 +2318,8 @@ void BRepBuilderAPI_Sewing::FaceAnalysis(const Handle(Message_ProgressIndicator)
} }
catch (Standard_Failure) { catch (Standard_Failure) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Warning: Possibly small edge can be sewed: "; std::cout << "Warning: Possibly small edge can be sewed: ";
Standard_Failure::Caught()->Print(cout); cout << endl; Standard_Failure::Caught()->Print(std::cout); std::cout << std::endl;
#endif #endif
}*/ }*/
} }
@ -2377,7 +2377,7 @@ void BRepBuilderAPI_Sewing::FaceAnalysis(const Handle(Message_ProgressIndicator)
// Replace small edge // Replace small edge
if (isSmall) { if (isSmall) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Warning: Small edge made degenerated by FaceAnalysis" << endl; std::cout << "Warning: Small edge made degenerated by FaceAnalysis" << std::endl;
#endif #endif
nbSmall++; nbSmall++;
// Create new degenerated edge // Create new degenerated edge
@ -2414,7 +2414,7 @@ void BRepBuilderAPI_Sewing::FaceAnalysis(const Handle(Message_ProgressIndicator)
// Remove small face // Remove small face
if (nbSmall == nbEdges) { if (nbSmall == nbEdges) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Warning: Small face removed by FaceAnalysis" << endl; std::cout << "Warning: Small face removed by FaceAnalysis" << std::endl;
#endif #endif
myLittleFace.Add(face); myLittleFace.Add(face);
myReShape->Remove(face); myReShape->Remove(face);
@ -2801,7 +2801,7 @@ static Standard_Boolean GlueVertices(TopTools_IndexedDataMapOfShapeShape& aVerte
} }
Standard_Integer nbNodes = NodeVertices.Extent(); Standard_Integer nbNodes = NodeVertices.Extent();
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Glueing " << nbNodes << " nodes..." << endl; std::cout << "Glueing " << nbNodes << " nodes..." << std::endl;
#endif #endif
// Merge nearest nodes // Merge nearest nodes
TopTools_IndexedDataMapOfShapeShape NodeNearestNode; TopTools_IndexedDataMapOfShapeShape NodeNearestNode;
@ -2962,7 +2962,7 @@ void BRepBuilderAPI_Sewing::VerticesAssembling(const Handle(Message_ProgressIndi
// Glue vertices // Glue vertices
if (nbVert) { if (nbVert) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Assemble " << nbVert << " vertices on faces..." << endl; std::cout << "Assemble " << nbVert << " vertices on faces..." << std::endl;
#endif #endif
while (GlueVertices(myVertexNode,myNodeSections,myBoundFaces,myTolerance, thePI)); while (GlueVertices(myVertexNode,myNodeSections,myBoundFaces,myTolerance, thePI));
} }
@ -2971,7 +2971,7 @@ void BRepBuilderAPI_Sewing::VerticesAssembling(const Handle(Message_ProgressIndi
aPS.Next(); aPS.Next();
if (nbVertFree) { if (nbVertFree) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Assemble " << nbVertFree << " vertices on floating edges..." << endl; std::cout << "Assemble " << nbVertFree << " vertices on floating edges..." << std::endl;
#endif #endif
while (GlueVertices(myVertexNodeFree,myNodeSections,myBoundFaces,myTolerance, thePI)); while (GlueVertices(myVertexNodeFree,myNodeSections,myBoundFaces,myTolerance, thePI));
} }
@ -3737,8 +3737,8 @@ void BRepBuilderAPI_Sewing::Cutting(const Handle(Message_ProgressIndicator)& the
} }
} }
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "From " << nbBounds << " bounds " << myBoundSections.Extent() std::cout << "From " << nbBounds << " bounds " << myBoundSections.Extent()
<< " were cut into " << mySectionBound.Extent() << " sections" << endl; << " were cut into " << mySectionBound.Extent() << " sections" << std::endl;
#endif #endif
} }
@ -4364,8 +4364,8 @@ void BRepBuilderAPI_Sewing::ProjectPointsOnCurve(const TColgp_Array1OfPnt& arrPn
} }
catch (Standard_Failure const& anException) { catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Exception in BRepBuilderAPI_Sewing::ProjectPointsOnCurve: "; std::cout << "Exception in BRepBuilderAPI_Sewing::ProjectPointsOnCurve: ";
anException.Print(cout); cout << endl; anException.Print(std::cout); std::cout << std::endl;
#endif #endif
(void)anException; (void)anException;
worktol = MinTolerance(); worktol = MinTolerance();
@ -4704,8 +4704,8 @@ void BRepBuilderAPI_Sewing::CreateSections(const TopoDS_Shape& section,
//} //}
/*catch (Standard_Failure) { /*catch (Standard_Failure) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Exception in CreateSections: segment [" << par1 << "," << par2 << "]: "; std::cout << "Exception in CreateSections: segment [" << par1 << "," << par2 << "]: ";
Standard_Failure::Caught()->Print(cout); cout << endl; Standard_Failure::Caught()->Print(std::cout); std::cout << std::endl;
#endif #endif
Handle(Geom2d_TrimmedCurve) c2dT = new Geom2d_TrimmedCurve(c2dNew,Max(first2d,par1),Min(par2,last2d)); Handle(Geom2d_TrimmedCurve) c2dT = new Geom2d_TrimmedCurve(c2dNew,Max(first2d,par1),Min(par2,last2d));
c2dNew = c2dT; c2dNew = c2dT;
@ -4746,7 +4746,7 @@ void BRepBuilderAPI_Sewing::SameParameterShape()
} }
catch (Standard_Failure const&) { catch (Standard_Failure const&) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Fail: BRepBuilderAPI_Sewing::SameParameterShape exception in BRepLib::SameParameter" << endl; std::cout << "Fail: BRepBuilderAPI_Sewing::SameParameterShape exception in BRepLib::SameParameter" << std::endl;
#endif #endif
continue; continue;
} }

@ -135,9 +135,9 @@ void BRepCheck_Analyzer::Perform(const TopoDS_Shape& S)
} }
catch(Standard_Failure const& anException) { catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout<<"BRepCheck_Analyzer : "; std::cout<<"BRepCheck_Analyzer : ";
anException.Print(cout); anException.Print(std::cout);
cout<<endl; std::cout<<std::endl;
#endif #endif
(void)anException; (void)anException;
if ( ! myMap(S).IsNull() ) if ( ! myMap(S).IsNull() )
@ -164,9 +164,9 @@ void BRepCheck_Analyzer::Perform(const TopoDS_Shape& S)
} }
catch(Standard_Failure const& anException) { catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout<<"BRepCheck_Analyzer : "; std::cout<<"BRepCheck_Analyzer : ";
anException.Print(cout); anException.Print(std::cout);
cout<<endl; std::cout<<std::endl;
#endif #endif
(void)anException; (void)anException;
if ( ! myMap(S).IsNull() ) if ( ! myMap(S).IsNull() )
@ -202,9 +202,9 @@ void BRepCheck_Analyzer::Perform(const TopoDS_Shape& S)
} }
catch(Standard_Failure const& anException) { catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout<<"BRepCheck_Analyzer : "; std::cout<<"BRepCheck_Analyzer : ";
anException.Print(cout); anException.Print(std::cout);
cout<<endl; std::cout<<std::endl;
#endif #endif
(void)anException; (void)anException;
if ( ! myMap(S).IsNull() ) if ( ! myMap(S).IsNull() )
@ -262,9 +262,9 @@ void BRepCheck_Analyzer::Perform(const TopoDS_Shape& S)
} }
catch(Standard_Failure const& anException) { catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout<<"BRepCheck_Analyzer : "; std::cout<<"BRepCheck_Analyzer : ";
anException.Print(cout); anException.Print(std::cout);
cout<<endl; std::cout<<std::endl;
#endif #endif
(void)anException; (void)anException;
if ( ! myMap(S).IsNull() ) if ( ! myMap(S).IsNull() )
@ -315,9 +315,9 @@ void BRepCheck_Analyzer::Perform(const TopoDS_Shape& S)
} }
catch(Standard_Failure const& anException) { catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout<<"BRepCheck_Analyzer : "; std::cout<<"BRepCheck_Analyzer : ";
anException.Print(cout); anException.Print(std::cout);
cout<<endl; std::cout<<std::endl;
#endif #endif
(void)anException; (void)anException;
if ( ! myMap(S).IsNull() ) if ( ! myMap(S).IsNull() )
@ -362,9 +362,9 @@ void BRepCheck_Analyzer::Perform(const TopoDS_Shape& S)
} }
catch(Standard_Failure const& anException) { catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout<<"BRepCheck_Analyzer : "; std::cout<<"BRepCheck_Analyzer : ";
anException.Print(cout); anException.Print(std::cout);
cout<<endl; std::cout<<std::endl;
#endif #endif
(void)anException; (void)anException;
if ( ! myMap(S).IsNull() ) if ( ! myMap(S).IsNull() )
@ -403,9 +403,9 @@ void BRepCheck_Analyzer::Perform(const TopoDS_Shape& S)
} }
catch(Standard_Failure const& anException) { catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout<<"BRepCheck_Analyzer : "; std::cout<<"BRepCheck_Analyzer : ";
anException.Print(cout); anException.Print(std::cout);
cout<<endl; std::cout<<std::endl;
#endif #endif
(void)anException; (void)anException;
if ( ! myMap(S).IsNull() ) if ( ! myMap(S).IsNull() )

@ -920,10 +920,10 @@ void PrintProblematicPoint(const gp_Pnt& problematic_point,
const Standard_Real Error, const Standard_Real Error,
const Standard_Real Tol) const Standard_Real Tol)
{ {
cout << " **** probleme de SameParameter au point :" << endl; std::cout << " **** probleme de SameParameter au point :" << std::endl;
cout << " " << problematic_point.Coord(1) << " " std::cout << " " << problematic_point.Coord(1) << " "
<< problematic_point.Coord(2) << " " << problematic_point.Coord(3) << endl ; << problematic_point.Coord(2) << " " << problematic_point.Coord(3) << std::endl ;
cout << " Erreur detectee :" << Error << " Tolerance :" << Tol << endl; std::cout << " Erreur detectee :" << Error << " Tolerance :" << Tol << std::endl;
} }
#else #else
void PrintProblematicPoint(const gp_Pnt&, void PrintProblematicPoint(const gp_Pnt&,

@ -477,11 +477,11 @@ BRepCheck_Status BRepCheck_Shell::Orientation(const Standard_Boolean Update)
if (BRepCheck_Trace(0) > 1) { if (BRepCheck_Trace(0) > 1) {
TopTools_DataMapIteratorOfDataMapOfShapeInteger itt(MapOfShapeOrientation); TopTools_DataMapIteratorOfDataMapOfShapeInteger itt(MapOfShapeOrientation);
Standard_Integer upper = MapOfShapeOrientation.NbBuckets(); Standard_Integer upper = MapOfShapeOrientation.NbBuckets();
cout << "La map shape Orientation :" << endl; std::cout << "La map shape Orientation :" << std::endl;
for (; itt.More(); itt.Next()) { for (; itt.More(); itt.Next()) {
PrintShape(itt.Key(), upper); PrintShape(itt.Key(), upper);
} }
cout << endl; std::cout << std::endl;
} }
#endif #endif
@ -666,7 +666,7 @@ BRepCheck_Status BRepCheck_Shell::Orientation(const Standard_Boolean Update)
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (BRepCheck_Trace(0) > 3) { if (BRepCheck_Trace(0) > 3) {
cout << "Fref : " ; std::cout << "Fref : " ;
PrintShape(Fref, MapOfShapeOrientation.NbBuckets()); PrintShape(Fref, MapOfShapeOrientation.NbBuckets());
} }
#endif #endif
@ -709,7 +709,7 @@ BRepCheck_Status BRepCheck_Shell::Orientation(const Standard_Boolean Update)
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (BRepCheck_Trace(0) > 3) { if (BRepCheck_Trace(0) > 3) {
cout << " Fcur : " ; std::cout << " Fcur : " ;
PrintShape(Fcur, MapOfShapeOrientation.NbBuckets()); PrintShape(Fcur, MapOfShapeOrientation.NbBuckets());
} }
#endif #endif
@ -731,8 +731,8 @@ BRepCheck_Status BRepCheck_Shell::Orientation(const Standard_Boolean Update)
if (BRepCheck_Trace(0) > 3) { if (BRepCheck_Trace(0) > 3) {
orf = (TopAbs_Orientation)MapOfShapeOrientation.Find(Fcur); orf = (TopAbs_Orientation)MapOfShapeOrientation.Find(Fcur);
Fcur.Orientation(orf); Fcur.Orientation(orf);
cout << " Error : this face has been already examined " << endl; std::cout << " Error : this face has been already examined " << std::endl;
cout << " Imposible to return it "; std::cout << " Imposible to return it ";
PrintShape(Fcur, MapOfShapeOrientation.NbBuckets()); PrintShape(Fcur, MapOfShapeOrientation.NbBuckets());
} }
#endif #endif
@ -746,7 +746,7 @@ BRepCheck_Status BRepCheck_Shell::Orientation(const Standard_Boolean Update)
if (BRepCheck_Trace(0) > 3) { if (BRepCheck_Trace(0) > 3) {
orf = (TopAbs_Orientation)MapOfShapeOrientation.Find(Fcur); orf = (TopAbs_Orientation)MapOfShapeOrientation.Find(Fcur);
Fcur.Orientation(orf); Fcur.Orientation(orf);
cout << " Resulting Fcur is returned : " ; std::cout << " Resulting Fcur is returned : " ;
PrintShape(Fcur, MapOfShapeOrientation.NbBuckets()); PrintShape(Fcur, MapOfShapeOrientation.NbBuckets());
} }
#endif #endif

@ -380,13 +380,13 @@ Standard_Boolean IsDistanceIn3DTolerance (const gp_Pnt& thePnt_f,
return Standard_True; return Standard_True;
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << endl; std::cout << std::endl;
cout << "--------Function IsDistanceIn3DTolerance(...)----------" << endl; std::cout << "--------Function IsDistanceIn3DTolerance(...)----------" << std::endl;
cout << "--- BRepCheck Wire: Closed3d -> Error" << endl; std::cout << "--- BRepCheck Wire: Closed3d -> Error" << std::endl;
cout << "--- Dist (" << Dist << ") > Tol3d (" << aTol3d << ")" << endl; std::cout << "--- Dist (" << Dist << ") > Tol3d (" << aTol3d << ")" << std::endl;
cout << "Pnt1(" << thePnt_f.X() << "; " << thePnt_f.Y() << "; " << thePnt_f.Z() << ")" << endl; std::cout << "Pnt1(" << thePnt_f.X() << "; " << thePnt_f.Y() << "; " << thePnt_f.Z() << ")" << std::endl;
cout << "Pnt2(" << thePnt_l.X() << "; " << thePnt_l.Y() << "; " << thePnt_l.Z() << ")" << endl; std::cout << "Pnt2(" << thePnt_l.X() << "; " << thePnt_l.Y() << "; " << thePnt_l.Z() << ")" << std::endl;
cout << "------------------------------------------------------" << endl; std::cout << "------------------------------------------------------" << std::endl;
#endif #endif
return Standard_False; return Standard_False;
@ -418,19 +418,19 @@ Standard_Boolean IsDistanceIn2DTolerance (const BRepAdaptor_Surface& aFaceSurfac
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if(PrintWarnings) if(PrintWarnings)
{ {
cout << endl; std::cout << std::endl;
cout << "--------Function IsDistanceIn2DTolerance(...)----------" << endl; std::cout << "--------Function IsDistanceIn2DTolerance(...)----------" << std::endl;
cout << "--- BRepCheck Wire: Not closed in 2D" << endl; std::cout << "--- BRepCheck Wire: Not closed in 2D" << std::endl;
cout << "*****************************************************" << endl; std::cout << "*****************************************************" << std::endl;
cout << "*dumin = " << dumin << "; dumax = " << dumax << endl; std::cout << "*dumin = " << dumin << "; dumax = " << dumax << std::endl;
cout << "* dvmin = " << dvmin << "; dvmax = " << dvmax << endl; std::cout << "* dvmin = " << dvmin << "; dvmax = " << dvmax << std::endl;
cout << "* (dumin > dumax) or (dvmin > dvmax)." << endl; std::cout << "* (dumin > dumax) or (dvmin > dvmax)." << std::endl;
cout << "*****************************************************" << endl; std::cout << "*****************************************************" << std::endl;
cout << endl; std::cout << std::endl;
cout << "UFirst = " << aFaceSurface.FirstUParameter(); std::cout << "UFirst = " << aFaceSurface.FirstUParameter();
cout << "; ULast = " << aFaceSurface.LastUParameter() << endl; std::cout << "; ULast = " << aFaceSurface.LastUParameter() << std::endl;
cout << "VFirst = " << aFaceSurface.FirstVParameter(); std::cout << "VFirst = " << aFaceSurface.FirstVParameter();
cout << "; VLast = " << aFaceSurface.LastVParameter() << endl; std::cout << "; VLast = " << aFaceSurface.LastVParameter() << std::endl;
} }
#endif #endif
dumax = aFaceSurface.UResolution(aTol3d); dumax = aFaceSurface.UResolution(aTol3d);
@ -454,9 +454,9 @@ Standard_Boolean IsDistanceIn2DTolerance (const BRepAdaptor_Surface& aFaceSurfac
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if(PrintWarnings) if(PrintWarnings)
{ {
cout << "aTol3d = " << aTol3d <<"; URes = " << dumax << "; VRes = " << dvmax << endl; std::cout << "aTol3d = " << aTol3d <<"; URes = " << dumax << "; VRes = " << dvmax << std::endl;
cout << "thePnt(" << thePnt.X() << "; " << thePnt.Y() << ")" << endl; std::cout << "thePnt(" << thePnt.X() << "; " << thePnt.Y() << ")" << std::endl;
cout << "thePntRef(" << thePntRef.X() << "; " << thePntRef.Y() << ")" << endl; std::cout << "thePntRef(" << thePntRef.X() << "; " << thePntRef.Y() << ")" << std::endl;
} }
#endif #endif
@ -465,8 +465,8 @@ Standard_Boolean IsDistanceIn2DTolerance (const BRepAdaptor_Surface& aFaceSurfac
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if((aTol2d <= 0.0) && (PrintWarnings)) if((aTol2d <= 0.0) && (PrintWarnings))
{ {
cout<<"BRepCheck_Wire : UResolution and VResolution = 0.0 (Face too small ?)"<<endl; std::cout<<"BRepCheck_Wire : UResolution and VResolution = 0.0 (Face too small ?)"<<std::endl;
cout.flush(); std::cout.flush();
} }
#endif #endif
@ -478,15 +478,15 @@ Standard_Boolean IsDistanceIn2DTolerance (const BRepAdaptor_Surface& aFaceSurfac
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if(PrintWarnings) if(PrintWarnings)
{ {
cout << endl; std::cout << std::endl;
cout << "--------Function IsDistanceIn2DTolerance(...)----------" << endl; std::cout << "--------Function IsDistanceIn2DTolerance(...)----------" << std::endl;
cout << "--- BRepCheck Wire: Not closed in 2d" << endl; std::cout << "--- BRepCheck Wire: Not closed in 2d" << std::endl;
cout << "*****************************************************" << endl; std::cout << "*****************************************************" << std::endl;
cout << "* Dist = " << Dist << " > Tol2d = " << aTol2d << endl; std::cout << "* Dist = " << Dist << " > Tol2d = " << aTol2d << std::endl;
cout << "*****************************************************" << endl; std::cout << "*****************************************************" << std::endl;
cout << "aTol3d = " << aTol3d <<"; URes = " << dumax << "; VRes = " << dvmax << endl; std::cout << "aTol3d = " << aTol3d <<"; URes = " << dumax << "; VRes = " << dvmax << std::endl;
cout << "thePnt(" << thePnt.X() << "; " << thePnt.Y() << ")" << endl; std::cout << "thePnt(" << thePnt.X() << "; " << thePnt.Y() << ")" << std::endl;
cout << "thePntRef(" << thePntRef.X() << "; " << thePntRef.Y() << ")" << endl; std::cout << "thePntRef(" << thePntRef.X() << "; " << thePntRef.Y() << ")" << std::endl;
} }
#endif #endif
@ -1071,7 +1071,7 @@ BRepCheck_Status BRepCheck_Wire::SelfIntersect(const TopoDS_Face& F,
delete [] tabDom; delete [] tabDom;
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
static Standard_Integer numpoint=0; static Standard_Integer numpoint=0;
cout<<"point p"<<++numpoint<<" "<<P3d.X()<<" "<<P3d.Y()<<" "<<P3d.Z()<<endl;cout.flush(); std::cout<<"point p"<<++numpoint<<" "<<P3d.X()<<" "<<P3d.Y()<<" "<<P3d.Z()<<std::endl;std::cout.flush();
#endif #endif
return(BRepCheck_SelfIntersectingWire); return(BRepCheck_SelfIntersectingWire);
} }
@ -1103,7 +1103,7 @@ BRepCheck_Status BRepCheck_Wire::SelfIntersect(const TopoDS_Face& F,
else { else {
delete [] tabDom; delete [] tabDom;
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout<<"BRepCheck_NoCurveOnSurface or BRepCheck_InvalidRange"<<endl;cout.flush(); std::cout<<"BRepCheck_NoCurveOnSurface or BRepCheck_InvalidRange"<<std::endl;std::cout.flush();
#endif #endif
if(tabCur(j).IsNull()) { if(tabCur(j).IsNull()) {
return(BRepCheck_NoCurveOnSurface); return(BRepCheck_NoCurveOnSurface);
@ -1225,8 +1225,8 @@ BRepCheck_Status BRepCheck_Wire::SelfIntersect(const TopoDS_Face& F,
//-- the point of intersection with vertex (if exists) //-- the point of intersection with vertex (if exists)
if (localok == Standard_False && !CommonVertices.IsEmpty()) { if (localok == Standard_False && !CommonVertices.IsEmpty()) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "\n------------------------------------------------------\n" <<endl; std::cout << "\n------------------------------------------------------\n" <<std::endl;
cout << "\n--- BRepCheck Wire: AutoIntersection Phase1 -> Erreur \n" <<endl; std::cout << "\n--- BRepCheck Wire: AutoIntersection Phase1 -> Erreur \n" <<std::endl;
#endif #endif
Standard_Real distauvtxleplusproche,VParaOnEdge1,VParaOnEdge2; Standard_Real distauvtxleplusproche,VParaOnEdge1,VParaOnEdge2;
@ -1356,8 +1356,8 @@ BRepCheck_Status BRepCheck_Wire::SelfIntersect(const TopoDS_Face& F,
} }
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
static Standard_Integer numpoint1=0; static Standard_Integer numpoint1=0;
cout<<"point p"<<++numpoint1<<" "<<P3d.X()<<" "<<P3d.Y()<<" "<<P3d.Z()<<endl; std::cout<<"point p"<<++numpoint1<<" "<<P3d.X()<<" "<<P3d.Y()<<" "<<P3d.Z()<<std::endl;
cout.flush(); std::cout.flush();
#endif #endif
delete [] tabDom; delete [] tabDom;
return(BRepCheck_SelfIntersectingWire); return(BRepCheck_SelfIntersectingWire);
@ -1490,8 +1490,8 @@ BRepCheck_Status BRepCheck_Wire::SelfIntersect(const TopoDS_Face& F,
} }
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
static Standard_Integer numpoint1=0; static Standard_Integer numpoint1=0;
cout<<"point p"<<++numpoint1<<" "<<P3d.X()<<" "<<P3d.Y()<<" "<<P3d.Z()<<endl; std::cout<<"point p"<<++numpoint1<<" "<<P3d.X()<<" "<<P3d.Y()<<" "<<P3d.Z()<<std::endl;
cout.flush(); std::cout.flush();
#endif #endif
delete [] tabDom; delete [] tabDom;
return(BRepCheck_SelfIntersectingWire); return(BRepCheck_SelfIntersectingWire);

@ -443,7 +443,7 @@ void BRepClass3d_SClassifier::Perform(BRepClass3d_SolidExplorer& SolidExplorer,
if (tran == IntCurveSurface_Tangent) if (tran == IntCurveSurface_Tangent)
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout<<"*Problem ds BRepClass3d_SClassifier.cxx"<<endl; std::cout<<"*Problem ds BRepClass3d_SClassifier.cxx"<<std::endl;
#endif #endif
continue; // ignore this point continue; // ignore this point
} }

@ -655,7 +655,7 @@ Standard_Integer BRepClass3d_SolidExplorer::OtherSegment(const gp_Pnt& P,
_Par=0.0; _Par=0.0;
myReject=Standard_True; myReject=Standard_True;
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout<<"\nWARNING : BRepClass3d_SolidExplorer.cxx (Solid without face)"<<endl; std::cout<<"\nWARNING : BRepClass3d_SolidExplorer.cxx (Solid without face)"<<std::endl;
#endif #endif
return 0; return 0;
} }
@ -853,7 +853,7 @@ void BRepClass3d_SolidExplorer::InitShape(const TopoDS_Shape& S)
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if(myReject) { if(myReject) {
cout<<"\nWARNING : BRepClass3d_SolidExplorer.cxx (Solid without face)"<<endl; std::cout<<"\nWARNING : BRepClass3d_SolidExplorer.cxx (Solid without face)"<<std::endl;
} }
#endif #endif

@ -533,18 +533,18 @@ void BRepExtrema_DistShapeShape::Dump(Standard_OStream& o) const
Standard_Integer i; Standard_Integer i;
Standard_Real r1,r2; Standard_Real r1,r2;
o<< "the distance value is : " << Value()<<endl; o<< "the distance value is : " << Value()<<std::endl;
o<< "the number of solutions is :"<<NbSolution()<<endl; o<< "the number of solutions is :"<<NbSolution()<<std::endl;
o<<endl; o<<std::endl;
for (i=1;i<=NbSolution();i++) for (i=1;i<=NbSolution();i++)
{ {
o<<"solution number "<<i<<": "<< endl; o<<"solution number "<<i<<": "<< std::endl;
o<<"the type of the solution on the first shape is " <<Standard_Integer( SupportTypeShape1(i)) <<endl; o<<"the type of the solution on the first shape is " <<Standard_Integer( SupportTypeShape1(i)) <<std::endl;
o<<"the type of the solution on the second shape is "<<Standard_Integer( SupportTypeShape2(i))<< endl; o<<"the type of the solution on the second shape is "<<Standard_Integer( SupportTypeShape2(i))<< std::endl;
o<< "the coordinates of the point on the first shape are: "<<endl; o<< "the coordinates of the point on the first shape are: "<<std::endl;
o<<"X=" <<PointOnShape1(i).X()<<" Y=" <<PointOnShape1(i).Y()<<" Z="<<PointOnShape1(i).Z()<<endl; o<<"X=" <<PointOnShape1(i).X()<<" Y=" <<PointOnShape1(i).Y()<<" Z="<<PointOnShape1(i).Z()<<std::endl;
o<< "the coordinates of the point on the second shape are: "<<endl; o<< "the coordinates of the point on the second shape are: "<<std::endl;
o<<"X="<< PointOnShape2(i).X()<< " Y="<<PointOnShape2(i).Y()<<" Z="<< PointOnShape2(i).Z()<<endl; o<<"X="<< PointOnShape2(i).X()<< " Y="<<PointOnShape2(i).Y()<<" Z="<< PointOnShape2(i).Z()<<std::endl;
switch (SupportTypeShape1(i)) switch (SupportTypeShape1(i))
{ {
@ -552,11 +552,11 @@ void BRepExtrema_DistShapeShape::Dump(Standard_OStream& o) const
break; break;
case BRepExtrema_IsOnEdge: case BRepExtrema_IsOnEdge:
ParOnEdgeS1(i,r1); ParOnEdgeS1(i,r1);
o << "parameter on the first edge : t= " << r1 << endl; o << "parameter on the first edge : t= " << r1 << std::endl;
break; break;
case BRepExtrema_IsInFace: case BRepExtrema_IsInFace:
ParOnFaceS1(i,r1,r2); ParOnFaceS1(i,r1,r2);
o << "parameters on the first face : u= " << r1 << " v=" << r2 << endl; o << "parameters on the first face : u= " << r1 << " v=" << r2 << std::endl;
break; break;
} }
switch (SupportTypeShape2(i)) switch (SupportTypeShape2(i))
@ -565,13 +565,13 @@ void BRepExtrema_DistShapeShape::Dump(Standard_OStream& o) const
break; break;
case BRepExtrema_IsOnEdge: case BRepExtrema_IsOnEdge:
ParOnEdgeS2(i,r1); ParOnEdgeS2(i,r1);
o << "parameter on the second edge : t=" << r1 << endl; o << "parameter on the second edge : t=" << r1 << std::endl;
break; break;
case BRepExtrema_IsInFace: case BRepExtrema_IsInFace:
ParOnFaceS2(i,r1,r2); ParOnFaceS2(i,r1,r2);
o << "parameters on the second face : u= " << r1 << " v=" << r2 << endl; o << "parameters on the second face : u= " << r1 << " v=" << r2 << std::endl;
break; break;
} }
o<<endl; o<<std::endl;
} }
} }

@ -74,13 +74,13 @@ static void Descendants(const TopoDS_Shape&,
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_Form::GlobalPerform ()" << endl; if (trc) std::cout << "BRepFeat_Form::GlobalPerform ()" << std::endl;
#endif #endif
if (!mySbOK || !myGSOK || !mySFOK || !mySUOK || !myGFOK || if (!mySbOK || !myGSOK || !mySFOK || !mySUOK || !myGFOK ||
!mySkOK || !myPSOK) { !mySkOK || !myPSOK) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " Fields not initialized in BRepFeat_Form" << endl; if (trc) std::cout << " Fields not initialized in BRepFeat_Form" << std::endl;
#endif #endif
myStatusError = BRepFeat_NotInitialized; myStatusError = BRepFeat_NotInitialized;
NotDone(); NotDone();
@ -94,7 +94,7 @@ static void Descendants(const TopoDS_Shape&,
if(myJustFeat && !myFuse) { if(myJustFeat && !myFuse) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " Invalid option : myJustFeat + Cut" << endl; if (trc) std::cout << " Invalid option : myJustFeat + Cut" << std::endl;
#endif #endif
myStatusError = BRepFeat_InvOption; myStatusError = BRepFeat_InvOption;
NotDone(); NotDone();
@ -124,7 +124,7 @@ static void Descendants(const TopoDS_Shape&,
if (!exp.More()) { if (!exp.More()) {
FromInShape = Standard_False; FromInShape = Standard_False;
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " From not in Shape" << endl; if (trc) std::cout << " From not in Shape" << std::endl;
#endif #endif
break; break;
} }
@ -143,7 +143,7 @@ static void Descendants(const TopoDS_Shape&,
if (!exp.More()) { if (!exp.More()) {
UntilInShape = Standard_False; UntilInShape = Standard_False;
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " Until not in Shape" << endl; if (trc) std::cout << " Until not in Shape" << std::endl;
#endif #endif
break; break;
} }
@ -292,7 +292,7 @@ static void Descendants(const TopoDS_Shape&,
if (theOpe == 1) { if (theOpe == 1) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " Gluer" << endl; if (trc) std::cout << " Gluer" << std::endl;
#endif #endif
Standard_Boolean Collage = Standard_True; Standard_Boolean Collage = Standard_True;
// cut by FFrom && FUntil // cut by FFrom && FUntil
@ -499,7 +499,7 @@ static void Descendants(const TopoDS_Shape&,
if (theOpe == 1) { if (theOpe == 1) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " still Gluer" << endl; if (trc) std::cout << " still Gluer" << std::endl;
#endif #endif
theGlue.Perform(); theGlue.Perform();
if (theGlue.IsDone()) { if (theGlue.IsDone()) {
@ -510,7 +510,7 @@ static void Descendants(const TopoDS_Shape&,
myNewEdges = theGlue.Edges(); myNewEdges = theGlue.Edges();
myTgtEdges = theGlue.TgtEdges(); myTgtEdges = theGlue.TgtEdges();
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " Gluer result" << endl; if (trc) std::cout << " Gluer result" << std::endl;
#endif #endif
Done(); Done();
myShape = theGlue.ResultingShape(); myShape = theGlue.ResultingShape();
@ -531,7 +531,7 @@ static void Descendants(const TopoDS_Shape&,
if (theOpe == 2 && ChangeOpe && myJustGluer) { if (theOpe == 2 && ChangeOpe && myJustGluer) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " Gluer failure" << endl; if (trc) std::cout << " Gluer failure" << std::endl;
#endif #endif
myJustGluer = Standard_False; myJustGluer = Standard_False;
theOpe = 0; theOpe = 0;
@ -543,12 +543,12 @@ static void Descendants(const TopoDS_Shape&,
if (theOpe == 2) { if (theOpe == 2) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " No Gluer" << endl; if (trc) std::cout << " No Gluer" << std::endl;
#endif #endif
TopoDS_Shape theGShape = myGShape; TopoDS_Shape theGShape = myGShape;
if (ChangeOpe) { if (ChangeOpe) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " Passage to topological operations" << endl; if (trc) std::cout << " Passage to topological operations" << std::endl;
#endif #endif
} }
@ -946,7 +946,7 @@ static void Descendants(const TopoDS_Shape&,
// Case when no part of the tool is preserved // Case when no part of the tool is preserved
if (!KeepParts) { if (!KeepParts) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " No parts of tool kept" << endl; if (trc) std::cout << " No parts of tool kept" << std::endl;
#endif #endif
myStatusError = BRepFeat_NoParts; myStatusError = BRepFeat_NoParts;
NotDone(); NotDone();
@ -1170,7 +1170,7 @@ Standard_Boolean BRepFeat_Form::TransformShapeFU(const Standard_Integer flag)
TopExp_Explorer exp(shapefu, TopAbs_FACE); TopExp_Explorer exp(shapefu, TopAbs_FACE);
if (!exp.More()) { // no faces... It is necessary to return an error if (!exp.More()) { // no faces... It is necessary to return an error
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " BRepFeat_Form::TransformShapeFU : invalid Shape" << endl; if (trc) std::cout << " BRepFeat_Form::TransformShapeFU : invalid Shape" << std::endl;
#endif #endif
return Trf; return Trf;
} }
@ -1228,8 +1228,8 @@ Standard_Boolean BRepFeat_Form::TransformShapeFU(const Standard_Integer flag)
} }
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) { if (trc) {
if (Trf && (flag == 0)) cout << " TransformShapeFU From" << endl; if (Trf && (flag == 0)) std::cout << " TransformShapeFU From" << std::endl;
if (Trf && (flag == 1)) cout << " TransformShapeFU Until" << endl; if (Trf && (flag == 1)) std::cout << " TransformShapeFU Until" << std::endl;
} }
#endif #endif
return Trf; return Trf;

@ -100,7 +100,7 @@ void BRepFeat_MakeCylindricalHole::Perform(const Standard_Real Radius)
myBotFace = theCylinder.BottomFace(); myBotFace = theCylinder.BottomFace();
myValidate = Standard_False; myValidate = Standard_False;
// BRepTools::Dump(theTool,cout); // BRepTools::Dump(theTool,std::cout);
Standard_Boolean Fuse = Standard_False; Standard_Boolean Fuse = Standard_False;
// //
AddTool(theTool); AddTool(theTool);
@ -524,7 +524,7 @@ void BRepFeat_MakeCylindricalHole::PerformBlind(const Standard_Real Radius,
myTopFace = theCylinder.TopFace(); myTopFace = theCylinder.TopFace();
myBotFace.Nullify(); myBotFace.Nullify();
// BRepTools::Dump(theTool,cout); // BRepTools::Dump(theTool,std::cout);
Standard_Boolean Fuse = Standard_False; Standard_Boolean Fuse = Standard_False;
//myBuilder.Perform(theTool,theList,Fuse); //myBuilder.Perform(theTool,theList,Fuse);
//myBuilder.BuildPartsOfTool(); //myBuilder.BuildPartsOfTool();

@ -99,7 +99,7 @@ void BRepFeat_MakeDPrism::Init(const TopoDS_Shape& Sbase,
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakeDPrism::Init" << endl; if (trc) std::cout << "BRepFeat_MakeDPrism::Init" << std::endl;
#endif #endif
mySkface = Skface; mySkface = Skface;
SketchFaceValid(); SketchFaceValid();
@ -144,11 +144,11 @@ void BRepFeat_MakeDPrism::Init(const TopoDS_Shape& Sbase,
myAngle = Angle; myAngle = Angle;
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) { if (trc) {
if (myJustFeat) cout << " Just Feature" << endl; if (myJustFeat) std::cout << " Just Feature" << std::endl;
if (myFuse) cout << " Fuse" << endl; if (myFuse) std::cout << " Fuse" << std::endl;
if (!myFuse) cout << " Cut" << endl; if (!myFuse) std::cout << " Cut" << std::endl;
if (!myModify) cout << " Modify = 0" << endl; if (!myModify) std::cout << " Modify = 0" << std::endl;
// cout <<" Angle = " << myAngle << endl; // std::cout <<" Angle = " << myAngle << std::endl;
} }
#endif #endif
} }
@ -164,7 +164,7 @@ void BRepFeat_MakeDPrism::Add(const TopoDS_Edge& E,
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakeDPrism::Add(Edge,face)" << endl; if (trc) std::cout << "BRepFeat_MakeDPrism::Add(Edge,face)" << std::endl;
#endif #endif
TopExp_Explorer exp; TopExp_Explorer exp;
for (exp.Init(mySbase,TopAbs_FACE);exp.More();exp.Next()) { for (exp.Init(mySbase,TopAbs_FACE);exp.More();exp.Next()) {
@ -210,7 +210,7 @@ void BRepFeat_MakeDPrism::Perform(const Standard_Real Height)
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakeDPrism::Perform(Height)" << endl; if (trc) std::cout << "BRepFeat_MakeDPrism::Perform(Height)" << std::endl;
#endif #endif
mySFrom.Nullify(); mySFrom.Nullify();
ShapeFromValid(); ShapeFromValid();
@ -281,7 +281,7 @@ void BRepFeat_MakeDPrism::Perform(const TopoDS_Shape& Until)
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakeDPrism::Perform(Until)" << endl; if (trc) std::cout << "BRepFeat_MakeDPrism::Perform(Until)" << std::endl;
#endif #endif
if (Until.IsNull()) { if (Until.IsNull()) {
throw Standard_ConstructionError(); throw Standard_ConstructionError();
@ -403,7 +403,7 @@ void BRepFeat_MakeDPrism::Perform(const TopoDS_Shape& From,
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakeDPrism::Perform(From,Until)" << endl; if (trc) std::cout << "BRepFeat_MakeDPrism::Perform(From,Until)" << std::endl;
#endif #endif
if (From.IsNull() || Until.IsNull()) { if (From.IsNull() || Until.IsNull()) {
throw Standard_ConstructionError(); throw Standard_ConstructionError();
@ -574,7 +574,7 @@ void BRepFeat_MakeDPrism::PerformUntilEnd()
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakeDPrism::PerformUntilEnd()" << endl; if (trc) std::cout << "BRepFeat_MakeDPrism::PerformUntilEnd()" << std::endl;
#endif #endif
myPerfSelection = BRepFeat_SelectionSh; myPerfSelection = BRepFeat_SelectionSh;
PerfSelectionValid(); PerfSelectionValid();
@ -608,7 +608,7 @@ void BRepFeat_MakeDPrism::PerformFromEnd(const TopoDS_Shape& Until)
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakeDPrism::PerformFromEnd(From,Until)" << endl; if (trc) std::cout << "BRepFeat_MakeDPrism::PerformFromEnd(From,Until)" << std::endl;
#endif #endif
if (Until.IsNull()) { if (Until.IsNull()) {
throw Standard_ConstructionError(); throw Standard_ConstructionError();
@ -754,7 +754,7 @@ void BRepFeat_MakeDPrism::PerformThruAll()
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakeDPrism::PerformThruAll()" << endl; if (trc) std::cout << "BRepFeat_MakeDPrism::PerformThruAll()" << std::endl;
#endif #endif
mySUntil.Nullify(); mySUntil.Nullify();
ShapeUntilValid(); ShapeUntilValid();
@ -806,7 +806,7 @@ void BRepFeat_MakeDPrism::PerformUntilHeight(const TopoDS_Shape& Until,
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakeDPrism::PerformUntilHeight(Until,Height)" << endl; if (trc) std::cout << "BRepFeat_MakeDPrism::PerformUntilHeight(Until,Height)" << std::endl;
#endif #endif
if (Until.IsNull()) { if (Until.IsNull()) {
Perform(Height); Perform(Height);
@ -924,7 +924,7 @@ void BRepFeat_MakeDPrism::BossEdges (const Standard_Integer signature)
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakeDPrism::BossEdges (integer)" << endl; if (trc) std::cout << "BRepFeat_MakeDPrism::BossEdges (integer)" << std::endl;
#endif #endif
TopTools_ListOfShape theLastShape; TopTools_ListOfShape theLastShape;
theLastShape.Clear(); theLastShape.Clear();
@ -1073,7 +1073,7 @@ static Standard_Real HeightMax(const TopoDS_Shape& theSbase, // shape initial
// Standard_Real par = Max( Max( abs(c[1] - c[0]), abs(c[3] - c[2]) ), abs(c[5] - c[4]) ); // Standard_Real par = Max( Max( abs(c[1] - c[0]), abs(c[3] - c[2]) ), abs(c[5] - c[4]) );
//#endif //#endif
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Height = > " << par << endl; std::cout << "Height = > " << par << std::endl;
#endif #endif
return par; return par;
} }

@ -109,7 +109,7 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakeLinearForm::Init" << endl; if (trc) std::cout << "BRepFeat_MakeLinearForm::Init" << std::endl;
#endif #endif
Standard_Boolean RevolRib = Standard_False; Standard_Boolean RevolRib = Standard_False;
Done(); Done();
@ -146,8 +146,8 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
myFuse = Standard_True; myFuse = Standard_True;
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) { if (trc) {
if (myFuse) cout << " Fuse" << endl; if (myFuse) std::cout << " Fuse" << std::endl;
if (!myFuse) cout << " Cut" << endl; if (!myFuse) std::cout << " Cut" << std::endl;
} }
#endif #endif
@ -177,7 +177,7 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
Standard_Real ang = myDir1.Angle(myDir); Standard_Real ang = myDir1.Angle(myDir);
if(ang != M_PI) { if(ang != M_PI) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " Directions must be opposite" << endl; if (trc) std::cout << " Directions must be opposite" << std::endl;
#endif #endif
myStatusError = BRepFeat_BadDirect; myStatusError = BRepFeat_BadDirect;
NotDone(); NotDone();
@ -188,7 +188,7 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
// Rib is centre in the middle of translation // Rib is centre in the middle of translation
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " Rib is centre" << endl; if (trc) std::cout << " Rib is centre" << std::endl;
#endif #endif
const gp_Vec& DirTranslation = (Direc + Direc1) * 0.5; const gp_Vec& DirTranslation = (Direc + Direc1) * 0.5;
gp_Trsf T; gp_Trsf T;
@ -251,7 +251,7 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
if(!Data) { if(!Data) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " No Extreme faces" << endl; if (trc) std::cout << " No Extreme faces" << std::endl;
#endif #endif
myStatusError = BRepFeat_NoExtFace; myStatusError = BRepFeat_NoExtFace;
NotDone(); NotDone();
@ -277,7 +277,7 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
if(Sliding) { // sliding if(Sliding) { // sliding
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " Sliding" << endl; if (trc) std::cout << " Sliding" << std::endl;
#endif #endif
Sliding = Standard_False; Sliding = Standard_False;
Handle(Geom_Surface) s = BRep_Tool::Surface(FirstFace); Handle(Geom_Surface) s = BRep_Tool::Surface(FirstFace);
@ -353,7 +353,7 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
// ---case of sliding : construction of the profile face // ---case of sliding : construction of the profile face
if(Sliding) { if(Sliding) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " still Sliding" << endl; if (trc) std::cout << " still Sliding" << std::endl;
#endif #endif
TopoDS_Face Prof; TopoDS_Face Prof;
Standard_Boolean ProfileOK; Standard_Boolean ProfileOK;
@ -365,8 +365,8 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) if (trc)
{ {
cout << "Not computable" << endl; std::cout << "Not computable" << std::endl;
cout << "Face profile not computable" << endl; std::cout << "Face profile not computable" << std::endl;
} }
#endif #endif
myStatusError = BRepFeat_NoFaceProf; myStatusError = BRepFeat_NoFaceProf;
@ -382,7 +382,7 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
// Control if there is everything required to have the material at the proper side // Control if there is everything required to have the material at the proper side
if(falseside == Standard_False) { if(falseside == Standard_False) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Verify plane and wire orientation" << endl; std::cout << "Verify plane and wire orientation" << std::endl;
#endif #endif
myStatusError = BRepFeat_FalseSide; myStatusError = BRepFeat_FalseSide;
NotDone(); NotDone();
@ -683,8 +683,8 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
if(!Sliding) { if(!Sliding) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) { if (trc) {
if (Modify) cout << " Sliding failure" << endl; if (Modify) std::cout << " Sliding failure" << std::endl;
cout << " no Sliding" << endl; std::cout << " no Sliding" << std::endl;
} }
#endif #endif
TopoDS_Face Prof; TopoDS_Face Prof;
@ -698,8 +698,8 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) if (trc)
{ {
cout << "Not computable" << endl; std::cout << "Not computable" << std::endl;
cout << " Face profile not computable" << endl; std::cout << " Face profile not computable" << std::endl;
} }
#endif #endif
myStatusError = BRepFeat_NoFaceProf; myStatusError = BRepFeat_NoFaceProf;
@ -715,7 +715,7 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
// Control if there is everything required to have the material at the proper side // Control if there is everything required to have the material at the proper side
if(falseside == Standard_False) { if(falseside == Standard_False) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Verify plane and wire orientation" << endl; std::cout << "Verify plane and wire orientation" << std::endl;
#endif #endif
myStatusError = BRepFeat_FalseSide; myStatusError = BRepFeat_FalseSide;
NotDone(); NotDone();
@ -763,7 +763,7 @@ void BRepFeat_MakeLinearForm::Add(const TopoDS_Edge& E,
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakeLinearForm::Add" << endl; if (trc) std::cout << "BRepFeat_MakeLinearForm::Add" << std::endl;
#endif #endif
if(mySlface.IsEmpty()) { if(mySlface.IsEmpty()) {
TopExp_Explorer exp; TopExp_Explorer exp;
@ -803,11 +803,11 @@ void BRepFeat_MakeLinearForm::Perform()
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakeLinearForm::Perform()" << endl; if (trc) std::cout << "BRepFeat_MakeLinearForm::Perform()" << std::endl;
#endif #endif
if(mySbase.IsNull() || mySkface.IsNull() || myPbase.IsNull()) { if(mySbase.IsNull() || mySkface.IsNull() || myPbase.IsNull()) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " Fields not initialized" << endl; if (trc) std::cout << " Fields not initialized" << std::endl;
#endif #endif
myStatusError = BRepFeat_NotInitialized; myStatusError = BRepFeat_NotInitialized;
NotDone(); NotDone();
@ -846,7 +846,7 @@ void BRepFeat_MakeLinearForm::Perform()
const TopoDS_Edge& e = TopoDS::Edge(exx.Current()); const TopoDS_Edge& e = TopoDS::Edge(exx.Current());
if(!myMap.IsBound(e)) { if(!myMap.IsBound(e)) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " Sliding face not in Base shape" << endl; if (trc) std::cout << " Sliding face not in Base shape" << std::endl;
#endif #endif
myStatusError = BRepFeat_IncSlidFace; myStatusError = BRepFeat_IncSlidFace;
NotDone(); NotDone();
@ -861,8 +861,8 @@ void BRepFeat_MakeLinearForm::Perform()
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) if (trc)
{ {
cout << "The case is not computable" << endl; std::cout << "The case is not computable" << std::endl;
cout << " Glued faces not empty and Until shape not null" << endl; std::cout << " Glued faces not empty and Until shape not null" << std::endl;
} }
#endif #endif
myStatusError = BRepFeat_InvShape; myStatusError = BRepFeat_InvShape;
@ -922,7 +922,7 @@ void BRepFeat_MakeLinearForm::Perform()
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEATRIB(); Standard_Boolean trc = BRepFeat_GettraceFEATRIB();
if (trc) cout << "BRepFeat_MakeLinearForm::Propagate" << endl; if (trc) std::cout << "BRepFeat_MakeLinearForm::Propagate" << std::endl;
#endif #endif
gp_Pnt Firstpoint = Firstpnt; gp_Pnt Firstpoint = Firstpnt;
gp_Pnt Lastpoint = Lastpnt; gp_Pnt Lastpoint = Lastpnt;
@ -1181,7 +1181,7 @@ static void SetGluedFaces(const TopTools_DataMapOfShapeListOfShape& theSlmap,
const TopTools_ListOfShape& gfac = thePrism.Shapes(it.Value()); const TopTools_ListOfShape& gfac = thePrism.Shapes(it.Value());
if (gfac.Extent() != 1) { if (gfac.Extent() != 1) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Pb SetGluedFace" << endl; std::cout << "Pb SetGluedFace" << std::endl;
#endif #endif
} }
theMap.Bind(gfac.First(),fac); theMap.Bind(gfac.First(),fac);

@ -68,7 +68,7 @@ void BRepFeat_MakePipe::Init(const TopoDS_Shape& Sbase,
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakePipe::Init" << endl; if (trc) std::cout << "BRepFeat_MakePipe::Init" << std::endl;
#endif #endif
mySbase = Sbase; mySbase = Sbase;
BasisShapeValid(); BasisShapeValid();
@ -111,10 +111,10 @@ void BRepFeat_MakePipe::Init(const TopoDS_Shape& Sbase,
} }
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) { if (trc) {
if (myJustFeat) cout << " Just Feature" << endl; if (myJustFeat) std::cout << " Just Feature" << std::endl;
if (myFuse) cout << " Fuse" << endl; if (myFuse) std::cout << " Fuse" << std::endl;
if (!myFuse) cout << " Cut" << endl; if (!myFuse) std::cout << " Cut" << std::endl;
if (!myModify) cout << " Modify = 0" << endl; if (!myModify) std::cout << " Modify = 0" << std::endl;
} }
#endif #endif
} }
@ -130,7 +130,7 @@ void BRepFeat_MakePipe::Add(const TopoDS_Edge& E,
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakePipe::Add(Edge,face)" << endl; if (trc) std::cout << "BRepFeat_MakePipe::Add(Edge,face)" << std::endl;
#endif #endif
TopExp_Explorer exp; TopExp_Explorer exp;
for (exp.Init(mySbase,TopAbs_FACE);exp.More();exp.Next()) { for (exp.Init(mySbase,TopAbs_FACE);exp.More();exp.Next()) {
@ -176,7 +176,7 @@ void BRepFeat_MakePipe::Perform()
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakePipe::Perform()" << endl; if (trc) std::cout << "BRepFeat_MakePipe::Perform()" << std::endl;
#endif #endif
mySFrom.Nullify(); mySFrom.Nullify();
ShapeFromValid(); ShapeFromValid();
@ -232,7 +232,7 @@ void BRepFeat_MakePipe::Perform(const TopoDS_Shape& Until)
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakePipe::Perform(Until)" << endl; if (trc) std::cout << "BRepFeat_MakePipe::Perform(Until)" << std::endl;
#endif #endif
if (Until.IsNull()) { if (Until.IsNull()) {
throw Standard_ConstructionError(); throw Standard_ConstructionError();
@ -276,7 +276,7 @@ void BRepFeat_MakePipe::Perform(const TopoDS_Shape& From,
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakePipe::Perform(From,Until)" << endl; if (trc) std::cout << "BRepFeat_MakePipe::Perform(From,Until)" << std::endl;
#endif #endif
if (From.IsNull() || Until.IsNull()) { if (From.IsNull() || Until.IsNull()) {
throw Standard_ConstructionError(); throw Standard_ConstructionError();

@ -98,7 +98,7 @@ void BRepFeat_MakePrism::Init(const TopoDS_Shape& Sbase,
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakePrism::Init" << endl; if (trc) std::cout << "BRepFeat_MakePrism::Init" << std::endl;
#endif #endif
mySkface = Skface; mySkface = Skface;
SketchFaceValid(); SketchFaceValid();
@ -144,10 +144,10 @@ void BRepFeat_MakePrism::Init(const TopoDS_Shape& Sbase,
} }
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) { if (trc) {
if (myJustFeat) cout << " Just Feature" << endl; if (myJustFeat) std::cout << " Just Feature" << std::endl;
if (myFuse) cout << " Fuse" << endl; if (myFuse) std::cout << " Fuse" << std::endl;
if (!myFuse) cout << " Cut" << endl; if (!myFuse) std::cout << " Cut" << std::endl;
if (!myModify) cout << " Modify = 0" << endl; if (!myModify) std::cout << " Modify = 0" << std::endl;
} }
#endif #endif
} }
@ -163,7 +163,7 @@ void BRepFeat_MakePrism::Add(const TopoDS_Edge& E,
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakePrism::Add(Edge,face)" << endl; if (trc) std::cout << "BRepFeat_MakePrism::Add(Edge,face)" << std::endl;
#endif #endif
TopExp_Explorer exp; TopExp_Explorer exp;
for (exp.Init(mySbase,TopAbs_FACE);exp.More();exp.Next()) { for (exp.Init(mySbase,TopAbs_FACE);exp.More();exp.Next()) {
@ -210,7 +210,7 @@ void BRepFeat_MakePrism::Perform(const Standard_Real Length)
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakePrism::Perform(Length)" << endl; if (trc) std::cout << "BRepFeat_MakePrism::Perform(Length)" << std::endl;
#endif #endif
mySFrom.Nullify(); mySFrom.Nullify();
ShapeFromValid(); ShapeFromValid();
@ -310,7 +310,7 @@ void BRepFeat_MakePrism::Perform(const TopoDS_Shape& Until)
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakePrism::Perform(Until)" << endl; if (trc) std::cout << "BRepFeat_MakePrism::Perform(Until)" << std::endl;
#endif #endif
if (Until.IsNull()) { if (Until.IsNull()) {
throw Standard_ConstructionError(); throw Standard_ConstructionError();
@ -407,7 +407,7 @@ void BRepFeat_MakePrism::Perform(const TopoDS_Shape& From,
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakePrism::Perform(From,Until)" << endl; if (trc) std::cout << "BRepFeat_MakePrism::Perform(From,Until)" << std::endl;
#endif #endif
if (From.IsNull() || Until.IsNull()) { if (From.IsNull() || Until.IsNull()) {
throw Standard_ConstructionError(); throw Standard_ConstructionError();
@ -587,7 +587,7 @@ void BRepFeat_MakePrism::PerformUntilEnd()
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakePrism::PerformUntilEnd()" << endl; if (trc) std::cout << "BRepFeat_MakePrism::PerformUntilEnd()" << std::endl;
#endif #endif
myPerfSelection = BRepFeat_SelectionSh; myPerfSelection = BRepFeat_SelectionSh;
PerfSelectionValid(); PerfSelectionValid();
@ -632,7 +632,7 @@ void BRepFeat_MakePrism::PerformFromEnd(const TopoDS_Shape& Until)
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakePrism::PerformFromEnd(From,Until)" << endl; if (trc) std::cout << "BRepFeat_MakePrism::PerformFromEnd(From,Until)" << std::endl;
#endif #endif
if (Until.IsNull()) { if (Until.IsNull()) {
throw Standard_ConstructionError(); throw Standard_ConstructionError();
@ -764,7 +764,7 @@ void BRepFeat_MakePrism::PerformThruAll()
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakePrism::PerformThruAll()" << endl; if (trc) std::cout << "BRepFeat_MakePrism::PerformThruAll()" << std::endl;
#endif #endif
mySUntil.Nullify(); mySUntil.Nullify();
ShapeUntilValid(); ShapeUntilValid();
@ -815,7 +815,7 @@ void BRepFeat_MakePrism::PerformUntilHeight(const TopoDS_Shape& Until,
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakePrism::PerformUntilHeight(Until,Length)" << endl; if (trc) std::cout << "BRepFeat_MakePrism::PerformUntilHeight(Until,Length)" << std::endl;
#endif #endif
if (Until.IsNull()) { if (Until.IsNull()) {
Perform(Length); Perform(Length);

@ -104,7 +104,7 @@ void BRepFeat_MakeRevol::Init(const TopoDS_Shape& Sbase,
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakeRevol::Init" << endl; if (trc) std::cout << "BRepFeat_MakeRevol::Init" << std::endl;
#endif #endif
myAxis = Axis; myAxis = Axis;
myPbase = Pbase; myPbase = Pbase;
@ -148,10 +148,10 @@ void BRepFeat_MakeRevol::Init(const TopoDS_Shape& Sbase,
} }
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) { if (trc) {
if (myJustFeat) cout << " Just Feature" << endl; if (myJustFeat) std::cout << " Just Feature" << std::endl;
if (myFuse) cout << " Fuse" << endl; if (myFuse) std::cout << " Fuse" << std::endl;
if (!myFuse) cout << " Cut" << endl; if (!myFuse) std::cout << " Cut" << std::endl;
if (!myModify) cout << " Modify = 0" << endl; if (!myModify) std::cout << " Modify = 0" << std::endl;
} }
#endif #endif
} }
@ -167,7 +167,7 @@ void BRepFeat_MakeRevol::Add(const TopoDS_Edge& E,
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakeRevol::Add(Edge,face)" << endl; if (trc) std::cout << "BRepFeat_MakeRevol::Add(Edge,face)" << std::endl;
#endif #endif
TopExp_Explorer exp; TopExp_Explorer exp;
for (exp.Init(mySbase,TopAbs_FACE);exp.More();exp.Next()) { for (exp.Init(mySbase,TopAbs_FACE);exp.More();exp.Next()) {
@ -213,7 +213,7 @@ void BRepFeat_MakeRevol::Perform(const Standard_Real Angle)
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakeRevol::Perform(Angle)" << endl; if (trc) std::cout << "BRepFeat_MakeRevol::Perform(Angle)" << std::endl;
#endif #endif
mySFrom.Nullify(); mySFrom.Nullify();
ShapeFromValid(); ShapeFromValid();
@ -329,7 +329,7 @@ void BRepFeat_MakeRevol::Perform(const TopoDS_Shape& Until)
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakeRevol::Perform(Until)" << endl; if (trc) std::cout << "BRepFeat_MakeRevol::Perform(Until)" << std::endl;
#endif #endif
Standard_Real Angle = 0.; Standard_Real Angle = 0.;
Standard_Boolean TourComplet = Standard_False; Standard_Boolean TourComplet = Standard_False;
@ -360,7 +360,7 @@ void BRepFeat_MakeRevol::Perform(const TopoDS_Shape& Until)
if(!TourComplet) { if(!TourComplet) {
Angle = 2.*M_PI- 3*M_PI/180.; Angle = 2.*M_PI- 3*M_PI/180.;
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " No complete Revolution" << endl; if (trc) std::cout << " No complete Revolution" << std::endl;
#endif #endif
} }
theRevol.Perform(myPbase, myAxis, Angle); theRevol.Perform(myPbase, myAxis, Angle);
@ -449,7 +449,7 @@ void BRepFeat_MakeRevol::Perform(const TopoDS_Shape& From,
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakeRevol::Perform(From,Until)" << endl; if (trc) std::cout << "BRepFeat_MakeRevol::Perform(From,Until)" << std::endl;
#endif #endif
if (From.IsNull() || Until.IsNull()) { if (From.IsNull() || Until.IsNull()) {
throw Standard_ConstructionError(); throw Standard_ConstructionError();
@ -601,7 +601,7 @@ void BRepFeat_MakeRevol::PerformThruAll()
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakeRevol::PerformThruAll()" << endl; if (trc) std::cout << "BRepFeat_MakeRevol::PerformThruAll()" << std::endl;
#endif #endif
Perform(2.*M_PI); Perform(2.*M_PI);
} }
@ -616,7 +616,7 @@ void BRepFeat_MakeRevol::PerformUntilAngle(const TopoDS_Shape& Until,
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakeRevol::PerformUntilAngle(Until,Angle)" << endl; if (trc) std::cout << "BRepFeat_MakeRevol::PerformUntilAngle(Until,Angle)" << std::endl;
#endif #endif
if (Until.IsNull()) { if (Until.IsNull()) {
Perform(Angle); Perform(Angle);
@ -790,7 +790,7 @@ static void VerifGluedFaces(const TopoDS_Face& theSkface,
if (!GluedFaces) { if (!GluedFaces) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << " Intersection Revol/skface : no gluing" << endl; if (trc) std::cout << " Intersection Revol/skface : no gluing" << std::endl;
#endif #endif
theMap.Clear(); theMap.Clear();
} }

@ -125,7 +125,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakeRevolutionForm::Init" << endl; if (trc) std::cout << "BRepFeat_MakeRevolutionForm::Init" << std::endl;
#endif #endif
Standard_Boolean RevolRib = Standard_True; Standard_Boolean RevolRib = Standard_True;
Done(); Done();
@ -174,7 +174,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
GeomAPI_ProjectPointOnCurve proj2(p2, Line); GeomAPI_ProjectPointOnCurve proj2(p2, Line);
if(proj1.NbPoints() < 1 || proj2.NbPoints() < 1) { if(proj1.NbPoints() < 1 || proj2.NbPoints() < 1) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " No projection points" << endl; if (trc) std::cout << " No projection points" << std::endl;
#endif #endif
myStatusError = BRepFeat_NoProjPt; myStatusError = BRepFeat_NoProjPt;
NotDone(); NotDone();
@ -208,8 +208,8 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
myFuse = Standard_True; myFuse = Standard_True;
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) { if (trc) {
if (myFuse) cout << " Fuse" << endl; if (myFuse) std::cout << " Fuse" << std::endl;
if (!myFuse) cout << " Cut" << endl; if (!myFuse) std::cout << " Cut" << std::endl;
} }
#endif #endif
@ -294,7 +294,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
if(!Data) { if(!Data) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " No Extreme faces" << endl; if (trc) std::cout << " No Extreme faces" << std::endl;
#endif #endif
myStatusError = BRepFeat_NoExtFace; myStatusError = BRepFeat_NoExtFace;
NotDone(); NotDone();
@ -320,7 +320,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
if(Sliding) { // sliding if(Sliding) { // sliding
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " Sliding" << endl; if (trc) std::cout << " Sliding" << std::endl;
#endif #endif
Handle(Geom_Surface) s = BRep_Tool::Surface(FirstFace); Handle(Geom_Surface) s = BRep_Tool::Surface(FirstFace);
if (s->DynamicType() == if (s->DynamicType() ==
@ -360,7 +360,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
GeomAPI_ProjectPointOnCurve proj(myFirstPnt, Line); GeomAPI_ProjectPointOnCurve proj(myFirstPnt, Line);
if(proj.NbPoints() < 1) { if(proj.NbPoints() < 1) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " No First Point projection" << endl; if (trc) std::cout << " No First Point projection" << std::endl;
#endif #endif
myStatusError = BRepFeat_NoProjPt; myStatusError = BRepFeat_NoProjPt;
NotDone(); NotDone();
@ -372,7 +372,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
GeomAPI_ProjectPointOnCurve proj1(myLastPnt, Line); GeomAPI_ProjectPointOnCurve proj1(myLastPnt, Line);
if(proj.NbPoints() < 1) { if(proj.NbPoints() < 1) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " No Last Point projection" << endl; if (trc) std::cout << " No Last Point projection" << std::endl;
#endif #endif
myStatusError = BRepFeat_NoProjPt; myStatusError = BRepFeat_NoProjPt;
NotDone(); NotDone();
@ -474,7 +474,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
// ---case of sliding : construction of the face profile // ---case of sliding : construction of the face profile
if(Sliding) { if(Sliding) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " still Sliding" << endl; if (trc) std::cout << " still Sliding" << std::endl;
#endif #endif
TopoDS_Face Prof; TopoDS_Face Prof;
Standard_Boolean ProfileOK; Standard_Boolean ProfileOK;
@ -486,8 +486,8 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) if (trc)
{ {
cout << "Not computable" << endl; std::cout << "Not computable" << std::endl;
cout << "Face profile not computable" << endl; std::cout << "Face profile not computable" << std::endl;
} }
#endif #endif
myStatusError = BRepFeat_NoFaceProf; myStatusError = BRepFeat_NoFaceProf;
@ -503,7 +503,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
// Control if there is everything required to have the material at the proper side // Control if there is everything required to have the material at the proper side
if(falseside == Standard_False) { if(falseside == Standard_False) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << " Verify plane and wire orientation" << endl; std::cout << " Verify plane and wire orientation" << std::endl;
#endif #endif
myStatusError = BRepFeat_FalseSide; myStatusError = BRepFeat_FalseSide;
NotDone(); NotDone();
@ -800,8 +800,8 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
if(!Sliding) { if(!Sliding) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) { if (trc) {
if (Modify) cout << " Sliding failure" << endl; if (Modify) std::cout << " Sliding failure" << std::endl;
cout << " no Sliding" << endl; std::cout << " no Sliding" << std::endl;
} }
#endif #endif
TopExp_Explorer explo1(BndFace, TopAbs_WIRE); TopExp_Explorer explo1(BndFace, TopAbs_WIRE);
@ -891,7 +891,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
if(!BRepAlgo::IsValid(NewBndFace)) { if(!BRepAlgo::IsValid(NewBndFace)) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Invalid new bounding face" << endl; std::cout << "Invalid new bounding face" << std::endl;
#endif #endif
myStatusError = BRepFeat_InvShape; myStatusError = BRepFeat_InvShape;
NotDone(); NotDone();
@ -912,8 +912,8 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) if (trc)
{ {
cout << "Not computable" << endl; std::cout << "Not computable" << std::endl;
cout << " Face profile not computable" << endl; std::cout << " Face profile not computable" << std::endl;
} }
#endif #endif
myStatusError = BRepFeat_NoFaceProf; myStatusError = BRepFeat_NoFaceProf;
@ -929,7 +929,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
// Control if there is everything required to have the material at the proper side // Control if there is everything required to have the material at the proper side
if(falseside == Standard_False) { if(falseside == Standard_False) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << " Verify plane and wire orientation" << endl; std::cout << " Verify plane and wire orientation" << std::endl;
#endif #endif
myStatusError = BRepFeat_FalseSide; myStatusError = BRepFeat_FalseSide;
NotDone(); NotDone();
@ -978,7 +978,7 @@ void BRepFeat_MakeRevolutionForm::Add(const TopoDS_Edge& E,
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakeRevolutionForm::Add" << endl; if (trc) std::cout << "BRepFeat_MakeRevolutionForm::Add" << std::endl;
#endif #endif
if(mySlface.IsEmpty()) { if(mySlface.IsEmpty()) {
TopExp_Explorer exp; TopExp_Explorer exp;
@ -1018,11 +1018,11 @@ void BRepFeat_MakeRevolutionForm::Perform()
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_MakeRevolutionForm::Perform()" << endl; if (trc) std::cout << "BRepFeat_MakeRevolutionForm::Perform()" << std::endl;
#endif #endif
if(mySbase.IsNull() || mySkface.IsNull() || myPbase.IsNull()) { if(mySbase.IsNull() || mySkface.IsNull() || myPbase.IsNull()) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " Fields not initialized" << endl; if (trc) std::cout << " Fields not initialized" << std::endl;
#endif #endif
myStatusError = BRepFeat_NotInitialized; myStatusError = BRepFeat_NotInitialized;
NotDone(); NotDone();
@ -1124,7 +1124,7 @@ void BRepFeat_MakeRevolutionForm::Perform()
if(!ASI1.IsDone() || !ASI2.IsDone() || if(!ASI1.IsDone() || !ASI2.IsDone() ||
ASI1.NbPoints(1) != 1 || ASI2.NbPoints(1) != 1) { ASI1.NbPoints(1) != 1 || ASI2.NbPoints(1) != 1) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " Intersection failure" << endl; if (trc) std::cout << " Intersection failure" << std::endl;
#endif #endif
myStatusError = BRepFeat_BadIntersect; myStatusError = BRepFeat_BadIntersect;
NotDone(); NotDone();
@ -1217,7 +1217,7 @@ void BRepFeat_MakeRevolutionForm::Perform()
const TopoDS_Edge& e = TopoDS::Edge(exx.Current()); const TopoDS_Edge& e = TopoDS::Edge(exx.Current());
if(!myMap.IsBound(e)) { if(!myMap.IsBound(e)) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " Sliding face not in Base shape" << endl; if (trc) std::cout << " Sliding face not in Base shape" << std::endl;
#endif #endif
myStatusError = BRepFeat_IncSlidFace; myStatusError = BRepFeat_IncSlidFace;
NotDone(); NotDone();
@ -1231,8 +1231,8 @@ void BRepFeat_MakeRevolutionForm::Perform()
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) if (trc)
{ {
cout << "The case is not computable" << endl; std::cout << "The case is not computable" << std::endl;
cout << " Glued faces not empty and Until shape not null" << endl; std::cout << " Glued faces not empty and Until shape not null" << std::endl;
} }
#endif #endif
myStatusError = BRepFeat_InvShape; myStatusError = BRepFeat_InvShape;
@ -1258,7 +1258,7 @@ Standard_Boolean BRepFeat_MakeRevolutionForm::Propagate(TopTools_ListOfShape& Sl
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEATRIB(); Standard_Boolean trc = BRepFeat_GettraceFEATRIB();
if (trc) cout << "BRepFeat_MakeRevolutionForm::Propagate" << endl; if (trc) std::cout << "BRepFeat_MakeRevolutionForm::Propagate" << std::endl;
#endif #endif
gp_Pnt Firstpoint = Firstpnt; gp_Pnt Firstpoint = Firstpnt;
gp_Pnt Lastpoint = Lastpnt; gp_Pnt Lastpoint = Lastpnt;
@ -1703,7 +1703,7 @@ static void SetGluedFaces(const TopTools_DataMapOfShapeListOfShape& theSlmap,
const TopTools_ListOfShape& gfac = thePrism.Shapes(it.Value()); const TopTools_ListOfShape& gfac = thePrism.Shapes(it.Value());
if (gfac.Extent() != 1) { if (gfac.Extent() != 1) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Pb SetGluedFace" << endl; std::cout << "Pb SetGluedFace" << std::endl;
#endif #endif
} }
TopTools_DataMapIteratorOfDataMapOfShapeListOfShape iterm(SlidingMap); TopTools_DataMapIteratorOfDataMapOfShapeListOfShape iterm(SlidingMap);

@ -95,13 +95,13 @@ void BRepFeat_RibSlot::LFPerform()
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_RibSlot::LFPerform()" << endl; if (trc) std::cout << "BRepFeat_RibSlot::LFPerform()" << std::endl;
#endif #endif
if (mySbase.IsNull() || myPbase.IsNull() || mySkface.IsNull() if (mySbase.IsNull() || myPbase.IsNull() || mySkface.IsNull()
|| myGShape.IsNull() || myLFMap.IsEmpty()) { || myGShape.IsNull() || myLFMap.IsEmpty()) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Topological reconstruction is impossible" << endl; std::cout << "Topological reconstruction is impossible" << std::endl;
if (trc) cout << " Fields not initialized" << endl; if (trc) std::cout << " Fields not initialized" << std::endl;
#endif #endif
myStatusError = BRepFeat_NotInitialized; myStatusError = BRepFeat_NotInitialized;
NotDone(); NotDone();
@ -175,7 +175,7 @@ void BRepFeat_RibSlot::LFPerform()
(!Collage)) { (!Collage)) {
theOpe = 2; theOpe = 2;
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Passage to topological operations" << endl; std::cout << "Passage to topological operations" << std::endl;
#endif #endif
} }
} }
@ -196,7 +196,7 @@ void BRepFeat_RibSlot::LFPerform()
else { else {
theOpe = 2; theOpe = 2;
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Passage to topologic operation" << endl; std::cout << "Passage to topologic operation" << std::endl;
#endif #endif
} }
} }
@ -264,7 +264,7 @@ const TopTools_ListOfShape& BRepFeat_RibSlot::Modified
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_RibSlot::Modified" << endl; if (trc) std::cout << "BRepFeat_RibSlot::Modified" << std::endl;
#endif #endif
if (myMap.IsBound(F)) { if (myMap.IsBound(F)) {
static TopTools_ListOfShape list; static TopTools_ListOfShape list;
@ -290,7 +290,7 @@ const TopTools_ListOfShape& BRepFeat_RibSlot::Generated
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_RibSlot::Generated" << endl; if (trc) std::cout << "BRepFeat_RibSlot::Generated" << std::endl;
#endif #endif
if(S.ShapeType() != TopAbs_FACE) { if(S.ShapeType() != TopAbs_FACE) {
myGenerated.Clear(); myGenerated.Clear();
@ -441,7 +441,7 @@ gp_Pnt BRepFeat_RibSlot::CheckPoint(const TopoDS_Edge& e,
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEATRIB(); Standard_Boolean trc = BRepFeat_GettraceFEATRIB();
if (trc) cout << "BRepFeat_RibSlot::CheckPoint" << endl; if (trc) std::cout << "BRepFeat_RibSlot::CheckPoint" << std::endl;
#endif #endif
// Vector product : normal to plane X direction Wire // Vector product : normal to plane X direction Wire
// -> gives the material side // -> gives the material side
@ -474,7 +474,7 @@ gp_Dir BRepFeat_RibSlot::Normal(const TopoDS_Face& F,const gp_Pnt& P)
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEATRIB(); Standard_Boolean trc = BRepFeat_GettraceFEATRIB();
if (trc) cout << "BRepFeat_RibSlot::Normal" << endl; if (trc) std::cout << "BRepFeat_RibSlot::Normal" << std::endl;
#endif #endif
Standard_Real U, V; Standard_Real U, V;
gp_Pnt pt; gp_Pnt pt;
@ -561,7 +561,7 @@ void BRepFeat_RibSlot::EdgeExtention(TopoDS_Edge& e,
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_RibSlot::EdgeExtention" << endl; if (trc) std::cout << "BRepFeat_RibSlot::EdgeExtention" << std::endl;
#endif #endif
Standard_Real f, l; Standard_Real f, l;
Handle(Geom_Curve) cu = BRep_Tool::Curve(e, f, l); Handle(Geom_Curve) cu = BRep_Tool::Curve(e, f, l);
@ -624,7 +624,7 @@ TopoDS_Face BRepFeat_RibSlot::ChoiceOfFaces(TopTools_ListOfShape& faces,
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEATRIB(); Standard_Boolean trc = BRepFeat_GettraceFEATRIB();
if (trc) cout << "BRepFeat_RibSlot::ChoiceOfFaces" << endl; if (trc) std::cout << "BRepFeat_RibSlot::ChoiceOfFaces" << std::endl;
#endif #endif
TopoDS_Face FFF; TopoDS_Face FFF;
@ -682,7 +682,7 @@ Standard_Real BRepFeat_RibSlot::HeightMax(const TopoDS_Shape& theSbase,
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEATRIB(); Standard_Boolean trc = BRepFeat_GettraceFEATRIB();
if (trc) cout << "BRepFeat_RibSlot::HeightMax" << endl; if (trc) std::cout << "BRepFeat_RibSlot::HeightMax" << std::endl;
#endif #endif
Bnd_Box Box; Bnd_Box Box;
BRepBndLib::Add(theSbase,Box); BRepBndLib::Add(theSbase,Box);
@ -724,7 +724,7 @@ Standard_Boolean BRepFeat_RibSlot::ExtremeFaces(const Standard_Boolean RevolRib,
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_RibSlot::ExtremeFaces" << endl; if (trc) std::cout << "BRepFeat_RibSlot::ExtremeFaces" << std::endl;
#endif #endif
Standard_Boolean Data = Standard_True; Standard_Boolean Data = Standard_True;
FirstFace.Nullify(); FirstFace.Nullify();
@ -752,7 +752,7 @@ Standard_Boolean BRepFeat_RibSlot::ExtremeFaces(const Standard_Boolean RevolRib,
// ---the wire includes only one edge // ---the wire includes only one edge
if(NumberOfEdges == 1) { if(NumberOfEdges == 1) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " One Edge" << endl; if (trc) std::cout << " One Edge" << std::endl;
#endif #endif
exp.ReInit(); exp.ReInit();
Standard_Real f, l;//, f1, l1, temp; Standard_Real f, l;//, f1, l1, temp;
@ -898,7 +898,7 @@ Standard_Boolean BRepFeat_RibSlot::ExtremeFaces(const Standard_Boolean RevolRib,
//--- FirstFace or LastFace was not found //--- FirstFace or LastFace was not found
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " FirstFace or LastFace null" << endl; if (trc) std::cout << " FirstFace or LastFace null" << std::endl;
#endif #endif
LocOpe_CSIntersector ASI(mySbase); LocOpe_CSIntersector ASI(mySbase);
TColGeom_SequenceOfCurve scur; TColGeom_SequenceOfCurve scur;
@ -940,7 +940,7 @@ Standard_Boolean BRepFeat_RibSlot::ExtremeFaces(const Standard_Boolean RevolRib,
} }
else { else {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " Less than 2 intersection points" << endl; if (trc) std::cout << " Less than 2 intersection points" << std::endl;
#endif #endif
Data = Standard_False; Data = Standard_False;
return Data; return Data;
@ -960,13 +960,13 @@ Standard_Boolean BRepFeat_RibSlot::ExtremeFaces(const Standard_Boolean RevolRib,
if(FirstFace.IsNull() || LastFace.IsNull()) { if(FirstFace.IsNull() || LastFace.IsNull()) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " First or Last Faces still null" << endl; if (trc) std::cout << " First or Last Faces still null" << std::endl;
#endif #endif
Data = Standard_False; Data = Standard_False;
} }
else { else {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " FirstFace and LastFace OK" << endl; if (trc) std::cout << " FirstFace and LastFace OK" << std::endl;
#endif #endif
Data = Standard_True; Data = Standard_True;
} }
@ -976,7 +976,7 @@ Standard_Boolean BRepFeat_RibSlot::ExtremeFaces(const Standard_Boolean RevolRib,
// ---The wire consists of several edges // ---The wire consists of several edges
else { else {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " Multiple Edges" << endl; if (trc) std::cout << " Multiple Edges" << std::endl;
#endif #endif
BRepTools_WireExplorer ex(myWire); BRepTools_WireExplorer ex(myWire);
for(; ex.More(); ex.Next()) { for(; ex.More(); ex.Next()) {
@ -1156,7 +1156,7 @@ Standard_Boolean BRepFeat_RibSlot::ExtremeFaces(const Standard_Boolean RevolRib,
} }
else { else {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " First or Last not OK" << endl; if (trc) std::cout << " First or Last not OK" << std::endl;
#endif #endif
return Standard_False; return Standard_False;
} }
@ -1183,7 +1183,7 @@ void BRepFeat_RibSlot::PtOnEdgeVertex(const Standard_Boolean RevolRib,
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEATRIB(); Standard_Boolean trc = BRepFeat_GettraceFEATRIB();
if (trc) cout << "BRepFeat_RibSlot::PtOnEdgeVertex" << endl; if (trc) std::cout << "BRepFeat_RibSlot::PtOnEdgeVertex" << std::endl;
#endif #endif
Standard_Boolean TestOK; Standard_Boolean TestOK;
// PtOnEdge = Standard_False; // PtOnEdge = Standard_False;
@ -1258,7 +1258,7 @@ Standard_Boolean BRepFeat_RibSlot::SlidingProfile(TopoDS_Face& Prof,
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_RibSlot::SlidingProfile" << endl; if (trc) std::cout << "BRepFeat_RibSlot::SlidingProfile" << std::endl;
#endif #endif
Standard_Boolean ProfileOK = Standard_True; Standard_Boolean ProfileOK = Standard_True;
// --case of sliding : construction of the wire of the profile // --case of sliding : construction of the wire of the profile
@ -1375,7 +1375,7 @@ Standard_Boolean BRepFeat_RibSlot::SlidingProfile(TopoDS_Face& Prof,
if(BndEdge1.IsNull() || BndEdge2.IsNull()) { if(BndEdge1.IsNull() || BndEdge2.IsNull()) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " Null bounding edge" << endl; if (trc) std::cout << " Null bounding edge" << std::endl;
#endif #endif
ProfileOK = Standard_False; ProfileOK = Standard_False;
return ProfileOK; return ProfileOK;
@ -1504,7 +1504,7 @@ Standard_Boolean BRepFeat_RibSlot::SlidingProfile(TopoDS_Face& Prof,
if (!BRepAlgo::IsValid(fac)) { if (!BRepAlgo::IsValid(fac)) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " Invalid Face" << endl; if (trc) std::cout << " Invalid Face" << std::endl;
#endif #endif
ProfileOK = Standard_False; ProfileOK = Standard_False;
return ProfileOK; return ProfileOK;
@ -1538,7 +1538,7 @@ Standard_Boolean BRepFeat_RibSlot::SlidingProfile(TopoDS_Face& Prof,
if (!BRepAlgo::IsValid(Prof)) { if (!BRepAlgo::IsValid(Prof)) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " Invalid Face Profile" << endl; if (trc) std::cout << " Invalid Face Profile" << std::endl;
#endif #endif
ProfileOK = Standard_False; ProfileOK = Standard_False;
return ProfileOK; return ProfileOK;
@ -1570,7 +1570,7 @@ Standard_Boolean BRepFeat_RibSlot::NoSlidingProfile(TopoDS_Face& Prof,
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT(); Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) cout << "BRepFeat_RibSlot::NoSlidingProfile" << endl; if (trc) std::cout << "BRepFeat_RibSlot::NoSlidingProfile" << std::endl;
#endif #endif
Standard_Boolean ProfileOK = Standard_True; Standard_Boolean ProfileOK = Standard_True;
@ -1707,7 +1707,7 @@ Standard_Boolean BRepFeat_RibSlot::NoSlidingProfile(TopoDS_Face& Prof,
if(BndEdge1.IsNull() || BndEdge2.IsNull()) { if(BndEdge1.IsNull() || BndEdge2.IsNull()) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " Null bounding edge" << endl; if (trc) std::cout << " Null bounding edge" << std::endl;
#endif #endif
ProfileOK = Standard_False; ProfileOK = Standard_False;
return ProfileOK; return ProfileOK;
@ -2197,7 +2197,7 @@ Standard_Boolean BRepFeat_RibSlot::NoSlidingProfile(TopoDS_Face& Prof,
if (!BRepAlgo::IsValid(fac)) { if (!BRepAlgo::IsValid(fac)) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " Invalid Face" << endl; if (trc) std::cout << " Invalid Face" << std::endl;
#endif #endif
ProfileOK = Standard_False; ProfileOK = Standard_False;
return ProfileOK; return ProfileOK;
@ -2227,7 +2227,7 @@ Standard_Boolean BRepFeat_RibSlot::NoSlidingProfile(TopoDS_Face& Prof,
if (!BRepAlgo::IsValid(Prof)) { if (!BRepAlgo::IsValid(Prof)) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (trc) cout << " Invalid Face Profile" << endl; if (trc) std::cout << " Invalid Face Profile" << std::endl;
#endif #endif
ProfileOK = Standard_False; ProfileOK = Standard_False;
return ProfileOK; return ProfileOK;

@ -53,7 +53,7 @@ Standard_EXPORT void BRepFeat_SetcontextCHRONO(const Standard_Boolean b)
{ BRepFeat_contextCHRONO = b; } { BRepFeat_contextCHRONO = b; }
Standard_EXPORT Standard_Boolean BRepFeat_GetcontextCHRONO() { Standard_EXPORT Standard_Boolean BRepFeat_GetcontextCHRONO() {
Standard_Boolean b = BRepFeat_contextCHRONO; Standard_Boolean b = BRepFeat_contextCHRONO;
if (b) cout<<"context (BRepFeat) CHRONO actif"<<endl; if (b) std::cout<<"context (BRepFeat) CHRONO actif"<<std::endl;
return b; return b;
} }

@ -861,7 +861,7 @@ void BRepFill::SearchOrigin(TopoDS_Wire & W,
} }
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
else { else {
cout << "BRepFill::SearchOrigine : Echec Distance" << endl; std::cout << "BRepFill::SearchOrigine : Echec Distance" << std::endl;
} }
#endif #endif

@ -99,9 +99,9 @@ void BRepFill_ApproxSeewing::Perform(const BRepFill_MultiLine& ML)
#ifdef DUMP_ML #ifdef DUMP_ML
i = 1; i = 1;
cout << "--Point " << i << endl; std::cout << "--Point " << i << std::endl;
cout << "P3d: " << P3d.X() << " " << P3d.Y() << " " << P3d.Z() << endl; std::cout << "P3d: " << P3d.X() << " " << P3d.Y() << " " << P3d.Z() << std::endl;
cout << "P2d1;2: " << PF1.X() << " " << PF1.Y() << " ; " << PF2.X() << " " << PF2.Y() << endl; std::cout << "P2d1;2: " << PF1.X() << " " << PF1.Y() << " ; " << PF2.X() << " " << PF2.Y() << std::endl;
#endif #endif
@ -116,9 +116,9 @@ void BRepFill_ApproxSeewing::Perform(const BRepFill_MultiLine& ML)
AppDef_MultiPointConstraint MPC( 1, 2); AppDef_MultiPointConstraint MPC( 1, 2);
ML.Value3dOnF1OnF2(U,P3d,PF1,PF2); ML.Value3dOnF1OnF2(U,P3d,PF1,PF2);
#ifdef DUMP_ML #ifdef DUMP_ML
cout << "--Point " << i << endl; std::cout << "--Point " << i << std::endl;
cout << "P3d: " << P3d.X() << " " << P3d.Y() << " " << P3d.Z() << endl; std::cout << "P3d: " << P3d.X() << " " << P3d.Y() << " " << P3d.Z() << std::endl;
cout << "P2d1;2: " << PF1.X() << " " << PF1.Y() << " ; " << PF2.X() << " " << PF2.Y() << endl; std::cout << "P2d1;2: " << PF1.X() << " " << PF1.Y() << " ; " << PF2.X() << " " << PF2.Y() << std::endl;
#endif #endif
MPC.SetPoint (1, P3d); MPC.SetPoint (1, P3d);
MPC.SetPoint2d(2, PF1); MPC.SetPoint2d(2, PF1);
@ -130,9 +130,9 @@ void BRepFill_ApproxSeewing::Perform(const BRepFill_MultiLine& ML)
ML.Value3dOnF1OnF2(U2,P3d,PF1,PF2); ML.Value3dOnF1OnF2(U2,P3d,PF1,PF2);
#ifdef DUMP_ML #ifdef DUMP_ML
i = NbPoints; i = NbPoints;
cout << "--Point " << i << endl; std::cout << "--Point " << i << std::endl;
cout << "P3d: " << P3d.X() << " " << P3d.Y() << " " << P3d.Z() << endl; std::cout << "P3d: " << P3d.X() << " " << P3d.Y() << " " << P3d.Z() << std::endl;
cout << "P2d1;2: " << PF1.X() << " " << PF1.Y() << " ; " << PF2.X() << " " << PF2.Y() << endl; std::cout << "P2d1;2: " << PF1.X() << " " << PF1.Y() << " ; " << PF2.X() << " " << PF2.Y() << std::endl;
#endif #endif
MPE.SetPoint (1, P3d); MPE.SetPoint (1, P3d);
MPE.SetPoint2d(2, PF1); MPE.SetPoint2d(2, PF1);
@ -146,7 +146,7 @@ void BRepFill_ApproxSeewing::Perform(const BRepFill_MultiLine& ML)
if ( NbCurves == 0) { if ( NbCurves == 0) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << " TrimSurfaceTool : Approx echoue, on met les polygones" << endl; std::cout << " TrimSurfaceTool : Approx echoue, on met les polygones" << std::endl;
#endif #endif
TColStd_Array1OfReal Knots(1,NbPoints); TColStd_Array1OfReal Knots(1,NbPoints);

@ -263,14 +263,14 @@ static Standard_Boolean GoodOrientation(const Bnd_Box& B,
} }
else { else {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Error in MakeWire" << endl; std::cout << "Error in MakeWire" << std::endl;
#endif #endif
throw Standard_ConstructionError("BRepFill_Draft"); throw Standard_ConstructionError("BRepFill_Draft");
} }
} }
else { else {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "No Free Borders !" << endl; std::cout << "No Free Borders !" << std::endl;
#endif #endif
throw Standard_ConstructionError("BRepFill_Draft"); throw Standard_ConstructionError("BRepFill_Draft");
} }
@ -899,7 +899,7 @@ static Standard_Boolean GoodOrientation(const Bnd_Box& B,
} }
} }
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
else cout << "Draft : No assembly !" << endl; else std::cout << "Draft : No assembly !" << std::endl;
#endif #endif
return Ok; return Ok;
} }

@ -747,7 +747,7 @@ void BRepFill_Evolved::ElementaryPerform (const TopoDS_Face& Sp,
#ifdef DRAW #ifdef DRAW
if (AffichEdge) { if (AffichEdge) {
cout << " End Construction of geometric primitives"<<endl; std::cout << " End Construction of geometric primitives"<<std::endl;
} }
#endif #endif
@ -1056,7 +1056,7 @@ void BRepFill_Evolved::ElementaryPerform (const TopoDS_Face& Sp,
#ifdef DRAW #ifdef DRAW
if (AffichEdge) { 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 #endif
@ -1169,7 +1169,7 @@ void BRepFill_Evolved::ElementaryPerform (const TopoDS_Face& Sp,
#ifdef DRAW #ifdef DRAW
if (AffichEdge) { if (AffichEdge) {
cout <<" End Construction of parallel edges "<<endl; std::cout <<" End Construction of parallel edges "<<std::endl;
} }
#endif #endif
@ -1240,7 +1240,7 @@ void BRepFill_Evolved::ElementaryPerform (const TopoDS_Face& Sp,
#ifdef DRAW #ifdef DRAW
if (AffichEdge) { 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]; char name[100];
sprintf(name,"VEVO_%d",++NbVEVOS); sprintf(name,"VEVO_%d",++NbVEVOS);
DBRep::Set(name,myShape); DBRep::Set(name,myShape);
@ -2598,8 +2598,8 @@ void TrimFace(const TopoDS_Face& Face,
Standard_Integer NB = TheEdges.Length(); Standard_Integer NB = TheEdges.Length();
if ( AffichEdge) { if ( AffichEdge) {
char name[100]; char name[100];
cout << " TrimFace " << ++NbTRIMFACES; std::cout << " TrimFace " << ++NbTRIMFACES;
cout << " : " << NB << " edges within the restriction" << endl; std::cout << " : " << NB << " edges within the restriction" << std::endl;
for ( Standard_Integer j = 1; j <= NB; j++) { for ( Standard_Integer j = 1; j <= NB; j++) {
sprintf(name,"TRIMEDGE_%d_%d",NbTRIMFACES,j); sprintf(name,"TRIMEDGE_%d_%d",NbTRIMFACES,j);
DBRep::Set(name,TopoDS::Edge(TheEdges.Value(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 ); //????????????? GeomPlate_MakeApprox Approx( GPlate, myTol3d, myMaxSegments, myMaxDeg, dmax, 0 ); //?????????????
//GeomConvert_ApproxSurface Approx( GPlate, myTol3d, GeomAbs_C1, GeomAbs_C1, myMaxDeg, myMaxDeg, myMaxSegments, 1 ); //GeomConvert_ApproxSurface Approx( GPlate, myTol3d, GeomAbs_C1, GeomAbs_C1, myMaxDeg, myMaxDeg, myMaxSegments, 1 );
//Approx.Dump( cout ); //Approx.Dump( std::cout );
Surface = Approx.Surface(); Surface = Approx.Surface();
} }

@ -183,13 +183,13 @@ void BRepFill_LocationLaw::BiNormalIsMain()
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (N2.Dot(T1) > 1.e-9) { if (N2.Dot(T1) > 1.e-9) {
cout << "Inprecision in TransformInCompatibleLaw" << endl; std::cout << "Inprecision in TransformInCompatibleLaw" << std::endl;
cout << "--- T1.R(N2) = " << N2.Dot(T1) << endl; std::cout << "--- T1.R(N2) = " << N2.Dot(T1) << std::endl;
gp_Vec tt; gp_Vec tt;
tt = T1; tt = T1;
tt.Rotate(axe, alpha); tt.Rotate(axe, alpha);
cout << "--- T1.R(T2) = " << tt.Dot(T1) << endl; std::cout << "--- T1.R(T2) = " << tt.Dot(T1) << std::endl;
cout << "--- R(N2).R(T2) = " << N2.Dot(tt) << endl; std::cout << "--- R(N2).R(T2) = " << N2.Dot(tt) << std::endl;
} }
#endif #endif
Angle = N2.AngleWithRef(N1, T1); Angle = N2.AngleWithRef(N1, T1);
@ -620,8 +620,8 @@ void BRepFill_LocationLaw::CurvilinearBounds(const Standard_Integer Index,
else { else {
W.Nullify(); W.Nullify();
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "BRepFill_LocationLaw::D0 : Attention position out of limits" std::cout << "BRepFill_LocationLaw::D0 : Attention position out of limits"
<< endl; << std::endl;
#endif #endif
} }
} }

@ -612,8 +612,8 @@ static gp_Pnt2d ValueOnFace(const Standard_Real U,
} }
else { else {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "MultiLine : D1 = D2 and the Curve is not a circle" << endl; std::cout << "MultiLine : D1 = D2 and the Curve is not a circle" << std::endl;
cout << " ---> ValueOnFace failed at parameter U = " << U << endl; std::cout << " ---> ValueOnFace failed at parameter U = " << U << std::endl;
#endif #endif
throw Standard_ConstructionError("BRepFill_MultiLine: ValueOnFace"); throw Standard_ConstructionError("BRepFill_MultiLine: ValueOnFace");
} }
@ -665,8 +665,8 @@ static gp_Pnt2d ValueOnFace(const Standard_Real U,
if ( !Intersector.IsDone()) { if ( !Intersector.IsDone()) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Intersector not done" << endl; std::cout << "Intersector not done" << std::endl;
cout << " ---> ValueonFace failed at parameter U = " << U << endl; std::cout << " ---> ValueonFace failed at parameter U = " << U << std::endl;
#endif #endif
return gp_Pnt2d(0.,0.); return gp_Pnt2d(0.,0.);
} }
@ -685,8 +685,8 @@ static gp_Pnt2d ValueOnFace(const Standard_Real U,
} }
else { else {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Intersector done, but no points found" << endl; std::cout << "Intersector done, but no points found" << std::endl;
cout << " ---> ValueonFace failed at parameter U = " << U << endl; std::cout << " ---> ValueonFace failed at parameter U = " << U << std::endl;
#endif #endif
if (Abs(Dist - PL.Y()) < Abs(Dist - PF.Y())) if (Abs(Dist - PL.Y()) < Abs(Dist - PF.Y()))
VV = TheV.LastParameter(); VV = TheV.LastParameter();

@ -521,7 +521,7 @@ void BRepFill_OffsetWire::Perform (const Standard_Real Offset,
if(!BadEdges.IsEmpty()) if(!BadEdges.IsEmpty())
{ {
// Modification of myWorkSpine; // Modification of myWorkSpine;
//cout << "Modification of myWorkSpine : " << BadEdges.Extent() << endl; //std::cout << "Modification of myWorkSpine : " << BadEdges.Extent() << std::endl;
BRepTools_Substitution aSubst; BRepTools_Substitution aSubst;
TopTools_ListIteratorOfListOfShape it(BadEdges); TopTools_ListIteratorOfListOfShape it(BadEdges);
TopTools_ListOfShape aL; TopTools_ListOfShape aL;
@ -548,7 +548,7 @@ void BRepFill_OffsetWire::Perform (const Standard_Real Offset,
Standard_Integer NPnts = Points.Length(); Standard_Integer NPnts = Points.Length();
if(NPnts > 2) if(NPnts > 2)
{ {
//cout << NPnts << " points " << endl; //std::cout << NPnts << " points " << std::endl;
TopoDS_Vertex FV = Vf; TopoDS_Vertex FV = Vf;
TopoDS_Vertex LV; TopoDS_Vertex LV;
TopoDS_Edge newE; TopoDS_Edge newE;
@ -566,7 +566,7 @@ void BRepFill_OffsetWire::Perform (const Standard_Real Offset,
} }
else else
{ {
//cout << " 2 points " << endl; //std::cout << " 2 points " << std::endl;
TopoDS_Edge newE = BRepLib_MakeEdge(Vf, Vl); TopoDS_Edge newE = BRepLib_MakeEdge(Vf, Vl);
aL.Append(newE); aL.Append(newE);
} }
@ -642,9 +642,9 @@ void BRepFill_OffsetWire::Perform (const Standard_Real Offset,
} }
catch (Standard_Failure const& anException) { catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout<<"An exception was caught in BRepFill_OffsetWire::Perform : "; std::cout<<"An exception was caught in BRepFill_OffsetWire::Perform : ";
anException.Print(cout); anException.Print(std::cout);
cout<<endl; std::cout<<std::endl;
#endif #endif
(void)anException; (void)anException;
myShape.Nullify(); myShape.Nullify();
@ -831,7 +831,7 @@ void BRepFill_OffsetWire::PerformWithBiLo
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
#ifdef DRAW #ifdef DRAW
if (AffichEdge) { if (AffichEdge) {
cout << " End Construction of geometric primitives "<<endl; std::cout << " End Construction of geometric primitives "<<std::endl;
} }
#endif #endif
#endif #endif
@ -1019,7 +1019,7 @@ void BRepFill_OffsetWire::PerformWithBiLo
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
#ifdef DRAW #ifdef DRAW
if (AffichEdge) { if (AffichEdge) {
cout << " End Construction of vertices on offsets"<<endl; std::cout << " End Construction of vertices on offsets"<<std::endl;
} }
#endif #endif
#endif #endif
@ -1469,7 +1469,7 @@ void BRepFill_OffsetWire::MakeWires()
if (!End) { if (!End) {
if (MVE.FindFromKey(CV).Extent() > 2) { 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()) { for ( itl.Initialize(MVE.FindFromKey(CV)); itl.More(); itl.Next()) {
if (itl.Value().IsSame(CE)) { if (itl.Value().IsSame(CE)) {
@ -2521,7 +2521,7 @@ static void CheckBadEdges(const TopoDS_Face& Spine, const Standard_Real Offset,
if (aMap.Contains(SE)) { if (aMap.Contains(SE)) {
//cout << "Edge is treated second time" << endl; //std::cout << "Edge is treated second time" << std::endl;
continue; continue;
} }

@ -300,8 +300,8 @@ BRepFill_SectionPlacement(const Handle(BRepFill_LocationLaw)& Law,
if (myDebug) { if (myDebug) {
gp_Pnt P_Path; gp_Pnt P_Path;
P_Path = adpPath->Value(theParam); P_Path = adpPath->Value(theParam);
cout << "Point on Path" << P_Path.X() << ", " std::cout << "Point on Path" << P_Path.X() << ", "
<< P_Path.Y() << ", " << P_Path.Z() << ", " << endl; << P_Path.Y() << ", " << P_Path.Z() << ", " << std::endl;
} }
#endif #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 ? // Is the law closed by U ?
uclosed = W.Closed(); uclosed = W.Closed();
@ -372,8 +372,8 @@ void BRepFill_ShapeLaw::Init(const Standard_Boolean Build)
Standard_True, Standard_False, 20); Standard_True, Standard_False, 20);
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (!Bof) if (!Bof)
cout << "BRepFill_ShapeLaw::ConcatenedLaw INCOMPLET !!!" std::cout << "BRepFill_ShapeLaw::ConcatenedLaw INCOMPLET !!!"
<< endl; << std::endl;
#endif #endif
} }
Composite = Concat.BSplineCurve(); Composite = Concat.BSplineCurve();

@ -347,7 +347,7 @@ static Standard_Boolean SameParameter(TopoDS_Edge& E,
if(sp.IsDone() && !sp.IsSameParameter()) Pcurv = sp.Curve2d(); if(sp.IsDone() && !sp.IsSameParameter()) Pcurv = sp.Curve2d();
else if(!sp.IsDone() && !sp.IsSameParameter()){ else if(!sp.IsDone() && !sp.IsSameParameter()){
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout<<"echec SameParameter"<<endl; std::cout<<"echec SameParameter"<<std::endl;
#endif #endif
return Standard_False; return Standard_False;
} }
@ -355,8 +355,8 @@ static Standard_Boolean SameParameter(TopoDS_Edge& E,
ResTol = sp.TolReached(); ResTol = sp.TolReached();
if(ResTol > tolreached ){ if(ResTol > tolreached ){
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout<<"SameParameter : Tolerance not reached!"<<endl; std::cout<<"SameParameter : Tolerance not reached!"<<std::endl;
cout<<"tol visee : "<<tol3d<<" tol obtained : "<<ResTol<<endl; std::cout<<"tol visee : "<<tol3d<<" tol obtained : "<<ResTol<<std::endl;
#endif #endif
return Standard_False; return Standard_False;
} }
@ -647,7 +647,7 @@ static void BuildFace(const Handle(Geom_Surface)& S,
if (MkF.Error() != BRepLib_FaceDone) { if (MkF.Error() != BRepLib_FaceDone) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
BRepLib_FaceError Err = MkF.Error(); BRepLib_FaceError Err = MkF.Error();
cout << "Planar Face Error :" << Err << endl; std::cout << "Planar Face Error :" << Err << std::endl;
#endif #endif
} }
else { else {
@ -1110,13 +1110,13 @@ static Standard_Boolean Filling(const TopoDS_Shape& EF,
8, 8, 2*NbInt, 0); 8, 8, 2*NbInt, 0);
if (!App.HasResult()) { if (!App.HasResult()) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Filling_Approx : Pas de resultat" << endl; std::cout << "Filling_Approx : Pas de resultat" << std::endl;
#endif #endif
return Standard_False; return Standard_False;
} }
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Filling_Approx Error 3d = " << std::cout << "Filling_Approx Error 3d = " <<
App.MaxError() << endl; App.MaxError() << std::endl;
#endif #endif
Surf = App.Surface(); Surf = App.Surface();
Tol3d = App.MaxError(); Tol3d = App.MaxError();
@ -1331,7 +1331,7 @@ static void SetCommonEdgeInFace(BRepTools_Substitution& aSubstitute,
} }
} }
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (!done) cout << "Substitution of Edge failed" << endl; if (!done) std::cout << "Substitution of Edge failed" << std::endl;
#endif #endif
} }
*/ */
@ -1884,7 +1884,7 @@ BRepFill_Sweep::BRepFill_Sweep(const Handle(BRepFill_SectionLaw)& Section,
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (!issame) 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 #endif
} }
@ -2564,7 +2564,7 @@ BRepFill_Sweep::BRepFill_Sweep(const Handle(BRepFill_SectionLaw)& Section,
} }
if (Degenerated(isec, ipath)) { if (Degenerated(isec, ipath)) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Sweep : Degenerated case" << endl; std::cout << "Sweep : Degenerated case" << std::endl;
#endif #endif
hasdegen = Standard_True; hasdegen = Standard_True;
// Particular construction of edges // Particular construction of edges
@ -3223,7 +3223,7 @@ TopoDS_Shape BRepFill_Sweep::Tape(const Standard_Integer Index) const
if (t1.Angle(t2) < myAngMin) { if (t1.Angle(t2) < myAngMin) {
#ifdef OCCT_DEBUG #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 #endif
return; return;
} }
@ -3333,7 +3333,7 @@ TopoDS_Shape BRepFill_Sweep::Tape(const Standard_Integer Index) const
else if ((TheTransition == BRepFill_Right) || else if ((TheTransition == BRepFill_Right) ||
aTrim.HasSection() ) { aTrim.HasSection() ) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Fail of TrimCorner" << endl; std::cout << "Fail of TrimCorner" << std::endl;
#endif #endif
return; // Nothing is touched return; // Nothing is touched
} }
@ -3411,7 +3411,7 @@ TopoDS_Shape BRepFill_Sweep::Tape(const Standard_Integer Index) const
} }
} }
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
else cout << "PerformCorner : Unsymmetry of free border" << endl; else std::cout << "PerformCorner : Unsymmetry of free border" << std::endl;
#endif #endif
} }
} }

@ -442,7 +442,7 @@ void BRepFill_TrimEdgeTool::IntersectWith(const TopoDS_Edge& Edge1,
(Points2.Length() == 0 && Params.Length() == 0) ) ) { (Points2.Length() == 0 && Params.Length() == 0) ) ) {
#ifdef OCCT_DEBUG #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 #endif
Params.Clear(); Params.Clear();
@ -456,16 +456,16 @@ void BRepFill_TrimEdgeTool::IntersectWith(const TopoDS_Edge& Edge1,
} }
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if(SeanceDeRattrapage != 0) cout << "SeanceDeRattrapage = " << SeanceDeRattrapage << endl; if(SeanceDeRattrapage != 0) std::cout << "SeanceDeRattrapage = " << SeanceDeRattrapage << std::endl;
if(SeanceDeRattrapage == nn) { if(SeanceDeRattrapage == nn) {
cout << "BRepFill_TrimEdgeTool: incoherent intersection" << endl; std::cout << "BRepFill_TrimEdgeTool: incoherent intersection" << std::endl;
} }
#endif #endif
if(Params.Length() == 0 && Points2.Length() == 1) { 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 dmin, dmax = 0.25*myOffset*myOffset;
Standard_Real tBis = Points2(1).X(); Standard_Real tBis = Points2(1).X();
gp_Pnt2d PBis = myBis.Value(tBis); 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) { 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 dmin, dmax = 0.25*myOffset*myOffset;
Standard_Real tBis = Params(1).X(); Standard_Real tBis = Params(1).X();
gp_Pnt2d PBis = myBis.Value(tBis); gp_Pnt2d PBis = myBis.Value(tBis);
@ -529,7 +529,7 @@ void BRepFill_TrimEdgeTool::IntersectWith(const TopoDS_Edge& Edge1,
Standard_Integer NbPoints = Params.Length(); Standard_Integer NbPoints = Params.Length();
if(NbPoints == 1 && Points2.Length() == 1) { 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++) { for ( i = 1; i <= NbPoints; i++) {
PSeq = Params(i); PSeq = Params(i);
PSeq.SetZ((Points2.Value(i)).Y()); PSeq.SetZ((Points2.Value(i)).Y());
@ -546,11 +546,11 @@ void BRepFill_TrimEdgeTool::IntersectWith(const TopoDS_Edge& Edge1,
if ( P1xP2x > Tol ) { if ( P1xP2x > Tol ) {
#ifdef OCCT_DEBUG #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 #endif
if(P1xP2x>TolInit) { if(P1xP2x>TolInit) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "BRepFill_TrimEdgeTool: Continue somehow" << endl; std::cout << "BRepFill_TrimEdgeTool: Continue somehow" << std::endl;
#endif #endif
i++; i++;
} }
@ -690,7 +690,7 @@ void BRepFill_TrimEdgeTool::AddOrConfuse(const Standard_Boolean Start,
if (ToProj) { if (ToProj) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << " project extremity bissectrice on parallel."<<endl; std::cout << " project extremity bissectrice on parallel."<<std::endl;
#endif #endif
// Project point on parallels and add in Params // Project point on parallels and add in Params
@ -704,25 +704,25 @@ void BRepFill_TrimEdgeTool::AddOrConfuse(const Standard_Boolean Start,
if (Projector1.NbPoints() == 0) { if (Projector1.NbPoints() == 0) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Failed projection in BRepFill_TrimEdgeTool::AddOrConfuse"<<endl; std::cout << "Failed projection in BRepFill_TrimEdgeTool::AddOrConfuse"<<std::endl;
#endif #endif
return; return;
} }
if (!Projector1.NearestPoint().IsEqual(PBis,Tol)) { if (!Projector1.NearestPoint().IsEqual(PBis,Tol)) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout <<"Incorrect solution in BRepFill_TrimEdgeTool::AddOrConfuse"<<endl; std::cout <<"Incorrect solution in BRepFill_TrimEdgeTool::AddOrConfuse"<<std::endl;
#endif #endif
return; return;
} }
if (Projector2.NbPoints() == 0) { if (Projector2.NbPoints() == 0) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Failed projection in BRepFill_TrimEdgeTool::AddOrConfuse"<<endl; std::cout << "Failed projection in BRepFill_TrimEdgeTool::AddOrConfuse"<<std::endl;
#endif #endif
return; return;
} }
if (!Projector2.NearestPoint().IsEqual(PBis,Tol)) { if (!Projector2.NearestPoint().IsEqual(PBis,Tol)) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout <<" Mauvaisesolution dans BRepFill_TrimEdgeTool::AddOrConfuse"<<endl; std::cout <<" Mauvaisesolution dans BRepFill_TrimEdgeTool::AddOrConfuse"<<std::endl;
#endif #endif
return; return;
} }

@ -103,7 +103,7 @@ myFace1(Face1),
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if ( Affich) { if ( Affich) {
NBCALL++; NBCALL++;
cout << " ---------->TrimSurfaceTool : NBCALL = " << NBCALL << endl; std::cout << " ---------->TrimSurfaceTool : NBCALL = " << NBCALL << std::endl;
#ifdef DRAW #ifdef DRAW
char name[256]; char name[256];
@ -279,8 +279,8 @@ static void EvalParameters(const TopoDS_Edge& Edge,
if (NbSegments > 0) { if (NbSegments > 0) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << " IntersectWith : " << NbSegments std::cout << " IntersectWith : " << NbSegments
<< " Segments of intersection" << endl; << " Segments of intersection" << std::endl;
#endif #endif
IntRes2d_IntersectionSegment Seg; IntRes2d_IntersectionSegment Seg;
for ( Standard_Integer i = 1; i <= NbSegments; i++) { for ( Standard_Integer i = 1; i <= NbSegments; i++) {
@ -305,7 +305,7 @@ static void EvalParameters(const TopoDS_Edge& Edge,
P1 = Seq.Value(i); P1 = Seq.Value(i);
P2 = Seq.Value(i+1); P2 = Seq.Value(i+1);
if ( P2.X()-P1.X() < Tol ) { if ( P2.X()-P1.X() < Tol ) {
// cout<<"REMOVE "<<P1.X()<<endl; // std::cout<<"REMOVE "<<P1.X()<<std::endl;
Seq.Remove(i--); Seq.Remove(i--);
NbPoints--; NbPoints--;
} }
@ -432,7 +432,7 @@ void BRepFill_TrimSurfaceTool::IntersectWith
PSeq = Points(i); PSeq = Points(i);
PSeq.SetZ((Points2.Value(i)).Y()); PSeq.SetZ((Points2.Value(i)).Y());
Points.SetValue(i,PSeq); 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 #ifdef OCCT_DEBUG
Standard_Real Dist = Projector.LowerDistance(); Standard_Real Dist = Projector.LowerDistance();
if ( Dist > Precision::Confusion() ) { if ( Dist > Precision::Confusion() ) {
cout << " *** WARNING TrimSurfaceTool: *** " << endl; std::cout << " *** WARNING TrimSurfaceTool: *** " << std::endl;
cout << " --> the point is not on the edge" <<endl; std::cout << " --> the point is not on the edge" <<std::endl;
cout << " distance = " << Dist << endl; std::cout << " distance = " << Dist << std::endl;
} }
#endif #endif

@ -186,12 +186,12 @@ static Standard_Real surfaceProperties(const TopoDS_Shape& S, GProp_GProps& Prop
} }
Props.Add(G); Props.Add(G);
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if(AffichEps) cout<<"\n"<<i<<":\tEpsArea = "<< G.GetEpsilon(); if(AffichEps) std::cout<<"\n"<<i<<":\tEpsArea = "<< G.GetEpsilon();
#endif #endif
} }
} }
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if(AffichEps) cout<<"\n-----------------\n"<<iErrorMax<<":\tMaxError = "<<ErrorMax<<"\n"; if(AffichEps) std::cout<<"\n-----------------\n"<<iErrorMax<<":\tMaxError = "<<ErrorMax<<"\n";
#endif #endif
return ErrorMax; return ErrorMax;
} }
@ -300,13 +300,13 @@ static Standard_Real volumeProperties(const TopoDS_Shape& S, GProp_GProps& Props
} }
Props.Add(G); Props.Add(G);
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if(AffichEps) cout<<"\n"<<i<<":\tEpsVolume = "<< G.GetEpsilon(); if(AffichEps) std::cout<<"\n"<<i<<":\tEpsVolume = "<< G.GetEpsilon();
#endif #endif
} }
} }
} }
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if(AffichEps) cout<<"\n-----------------\n"<<iErrorMax<<":\tMaxError = "<<ErrorMax<<"\n"; if(AffichEps) std::cout<<"\n-----------------\n"<<iErrorMax<<":\tMaxError = "<<ErrorMax<<"\n";
#endif #endif
return ErrorMax; return ErrorMax;
} }
@ -367,7 +367,7 @@ Standard_Real BRepGProp::VolumeProperties(const TopoDS_Shape& S, GProp_GProps& P
} }
} else ErrorMax = volumeProperties(S,Props,Eps,SkipShared, Standard_False); } else ErrorMax = volumeProperties(S,Props,Eps,SkipShared, Standard_False);
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if(AffichEps) cout<<"\n\n==================="<<iErrorMax<<":\tMaxEpsVolume = "<<ErrorMax<<"\n"; if(AffichEps) std::cout<<"\n\n==================="<<iErrorMax<<":\tMaxEpsVolume = "<<ErrorMax<<"\n";
#endif #endif
return ErrorMax; return ErrorMax;
} }

@ -149,7 +149,7 @@ Standard_Boolean BRepGProp_TFunction::Value(const Standard_Real X,
F += anIntegral.Value(); F += anIntegral.Value();
aLocalErr += anIntegral.AbsolutError(); aLocalErr += anIntegral.AbsolutError();
//cout << " TFunction : " << anIntegral.NbIterReached() << " " << anIntegral.AbsolutError() << endl; //std::cout << " TFunction : " << anIntegral.NbIterReached() << " " << anIntegral.AbsolutError() << std::endl;
} }
F *= aCoeff; F *= aCoeff;

@ -403,7 +403,7 @@ Standard_Real BRepGProp_VinertGK::PrivatePerform
Standard_Real err1 = 0.; Standard_Real err1 = 0.;
while (i < iU) { while (i < iU) {
//cout << "-------------- Span " << i << " nbp: " << aNbPnts << endl; //std::cout << "-------------- Span " << i << " nbp: " << aNbPnts << std::endl;
Standard_Real aT1 = aTKnots->Value(i++); Standard_Real aT1 = aTKnots->Value(i++);
Standard_Real aT2 = aTKnots->Value(i); Standard_Real aT2 = aTKnots->Value(i);
@ -422,9 +422,9 @@ Standard_Real BRepGProp_VinertGK::PrivatePerform
aLocalValue(k) += anIntegral.Value(); aLocalValue(k) += anIntegral.Value();
err1 = aTFunc.AbsolutError()*(aT2 - aT1); err1 = aTFunc.AbsolutError()*(aT2 - aT1);
//cout << "Errors: " << anIntegral.NbIterReached() << " " << anIntegral.AbsolutError() << " " << err1 << endl; //std::cout << "Errors: " << anIntegral.NbIterReached() << " " << anIntegral.AbsolutError() << " " << err1 << std::endl;
aLocalTolReached(k) += anIntegral.AbsolutError() + err1; aLocalTolReached(k) += anIntegral.AbsolutError() + err1;
//cout << "--- Errors: " << anIntegral.NbIterReached() << " " << anIntegral.AbsolutError() << " " << err1 << endl; //std::cout << "--- Errors: " << anIntegral.NbIterReached() << " " << anIntegral.AbsolutError() << " " << err1 << std::endl;
} }
aValue(k) += aLocalValue(k); aValue(k) += aLocalValue(k);

@ -2233,9 +2233,9 @@ static void EncodeRegularity(const TopoDS_Shape& theShape,
} }
catch (Standard_Failure const& anException) { catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Warning: Exception in BRepLib::EncodeRegularity(): "; std::cout << "Warning: Exception in BRepLib::EncodeRegularity(): ";
anException.Print(cout); anException.Print(std::cout);
cout << endl; std::cout << std::endl;
#endif #endif
(void)anException; (void)anException;
} }
@ -2300,7 +2300,7 @@ void BRepLib::EncodeRegularity(TopoDS_Edge& E,
catch(Standard_Failure const&) catch(Standard_Failure const&)
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Failure: Exception in BRepLib::EncodeRegularity" << endl; std::cout << "Failure: Exception in BRepLib::EncodeRegularity" << std::endl;
#endif #endif
} }
} }
@ -2351,7 +2351,7 @@ Standard_Boolean BRepLib::
if(!aSLP.IsNormalDefined()) if(!aSLP.IsNormalDefined())
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "BRepLib::EnsureNormalConsistency(): Cannot find normal!" << endl; std::cout << "BRepLib::EnsureNormalConsistency(): Cannot find normal!" << std::endl;
#endif #endif
} }
else else

@ -357,7 +357,7 @@ void BRepLib_MakeWire::Add(const TopoDS_Edge& E, Standard_Boolean IsCheckGeomet
else if (V2.IsSame(myVertex)) VRef = V1; else if (V2.IsSame(myVertex)) VRef = V1;
else { else {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "MakeWire : There is a PROBLEM !!" << endl; std::cout << "MakeWire : There is a PROBLEM !!" << std::endl;
#endif #endif
myError = BRepLib_NonManifoldWire; myError = BRepLib_NonManifoldWire;
} }
@ -366,7 +366,7 @@ void BRepLib_MakeWire::Add(const TopoDS_Edge& E, Standard_Boolean IsCheckGeomet
// Particular case: it is required to control the orientation // Particular case: it is required to control the orientation
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (!VF.IsSame(myVertex)) if (!VF.IsSame(myVertex))
cout << "MakeWire : There is a PROBLEM !!" << endl; std::cout << "MakeWire : There is a PROBLEM !!" << std::endl;
#endif #endif
} }
@ -375,7 +375,7 @@ void BRepLib_MakeWire::Add(const TopoDS_Edge& E, Standard_Boolean IsCheckGeomet
else if (VL.IsSame(myVertex)) VL = VRef; else if (VL.IsSame(myVertex)) VL = VRef;
else { else {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "MakeWire : Y A UN PROBLEME !!" << endl; std::cout << "MakeWire : Y A UN PROBLEME !!" << std::endl;
#endif #endif
myError = BRepLib_NonManifoldWire; myError = BRepLib_NonManifoldWire;
} }

@ -472,14 +472,14 @@ void BRepMesh_DataStructureOfDelaun::Statistics(Standard_OStream& theStream) con
{ {
theStream << " Map of nodes : \n"; theStream << " Map of nodes : \n";
myNodes->Statistics(theStream); myNodes->Statistics(theStream);
theStream << "\n Deleted nodes : " << myNodes->GetListOfDelNodes().Extent() << endl; theStream << "\n Deleted nodes : " << myNodes->GetListOfDelNodes().Extent() << std::endl;
theStream << "\n\n Map of Links : \n"; theStream << "\n\n Map of Links : \n";
myLinks.Statistics(theStream); myLinks.Statistics(theStream);
theStream << "\n Deleted links : " << myDelLinks.Extent() << endl; theStream << "\n Deleted links : " << myDelLinks.Extent() << std::endl;
theStream << "\n\n Map of elements : \n"; theStream << "\n\n Map of elements : \n";
theStream << "\n Elements : " << myElements.Size() << endl; theStream << "\n Elements : " << myElements.Size() << std::endl;
} }
//======================================================================= //=======================================================================

@ -190,7 +190,7 @@ void BRepOffset_Analyse::Perform (const TopoDS_Shape& S,
} }
else { else {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout <<"edge shared by more than two faces"<<endl; std::cout <<"edge shared by more than two faces"<<std::endl;
#endif #endif
} }
} }
@ -577,7 +577,7 @@ BRepOffset_Type DefineConnectType(const TopoDS_Edge& E,
else { else {
//Mixed not finished! //Mixed not finished!
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout <<" faces locally mixed"<<endl; std::cout <<" faces locally mixed"<<std::endl;
#endif #endif
return BRepOffset_Convex; return BRepOffset_Convex;
} }

@ -347,7 +347,7 @@ static void EdgeInter(const TopoDS_Face& F,
if (Precision::IsInfinite(aT1) || Precision::IsInfinite(aT2)) if (Precision::IsInfinite(aT1) || Precision::IsInfinite(aT2))
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Inter2d : Solution rejected due to infinite parameter"<<endl; std::cout << "Inter2d : Solution rejected due to infinite parameter"<<std::endl;
#endif #endif
continue; continue;
} }
@ -370,22 +370,22 @@ static void EdgeInter(const TopoDS_Face& F,
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (aT1 < f[1]-Tol || aT1 > l[1]+Tol) if (aT1 < f[1]-Tol || aT1 > l[1]+Tol)
{ {
cout << "out of limit"<<endl; std::cout << "out of limit"<<std::endl;
cout<<"aT1 = "<<aT1<<", f[1] = "<<f[1]<<", l[1] = "<<l[1]<<endl; std::cout<<"aT1 = "<<aT1<<", f[1] = "<<f[1]<<", l[1] = "<<l[1]<<std::endl;
} }
if (aT2 < f[2]-Tol || aT2 > l[2]+Tol) if (aT2 < f[2]-Tol || aT2 > l[2]+Tol)
{ {
cout << "out of limit"<<endl; std::cout << "out of limit"<<std::endl;
cout<<"aT2 = "<<aT2<<", f[2] = "<<f[2]<<", l[2] = "<<l[2]<<endl; std::cout<<"aT2 = "<<aT2<<", f[2] = "<<f[2]<<", l[2] = "<<l[2]<<std::endl;
} }
Standard_Real MilTol2 = 1000*Tol*Tol; Standard_Real MilTol2 = 1000*Tol*Tol;
if (P1.SquareDistance(P) > MilTol2 || P2.SquareDistance(P) > MilTol2 || P1.Distance(P2) > 2.*Tol) if (P1.SquareDistance(P) > MilTol2 || P2.SquareDistance(P) > MilTol2 || P1.Distance(P2) > 2.*Tol)
{ {
cout << "Inter2d : Solution rejected "<<endl; std::cout << "Inter2d : Solution rejected "<<std::endl;
cout<<"P = "<<P.X()<<" "<<P.Y()<<" "<<P.Z()<<endl; std::cout<<"P = "<<P.X()<<" "<<P.Y()<<" "<<P.Z()<<std::endl;
cout<<"P1 = "<<P1.X()<<" "<<P1.Y()<<" "<<P1.Z()<<endl; std::cout<<"P1 = "<<P1.X()<<" "<<P1.Y()<<" "<<P1.Z()<<std::endl;
cout<<"P2 = "<<P2.X()<<" "<<P2.Y()<<" "<<P2.Z()<<endl; std::cout<<"P2 = "<<P2.X()<<" "<<P2.Y()<<" "<<P2.Z()<<std::endl;
cout<<"MaxDist = "<<dist1<<endl; std::cout<<"MaxDist = "<<dist1<<std::endl;
} }
#endif #endif
//define the orientation of a new vertex //define the orientation of a new vertex
@ -405,7 +405,7 @@ static void EdgeInter(const TopoDS_Face& F,
Standard_Real CrossProd = V2or ^ V1; Standard_Real CrossProd = V2or ^ V1;
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (Abs(CrossProd) <= gp::Resolution()) if (Abs(CrossProd) <= gp::Resolution())
cout<<endl<<"CrossProd = "<<CrossProd<<endl; std::cout<<std::endl<<"CrossProd = "<<CrossProd<<std::endl;
#endif #endif
if (CrossProd > 0.) if (CrossProd > 0.)
OO1 = TopAbs_FORWARD; OO1 = TopAbs_FORWARD;
@ -489,7 +489,7 @@ static void EdgeInter(const TopoDS_Face& F,
// Modified by skv - Thu Jan 22 18:19:05 2004 OCC4455 End // Modified by skv - Thu Jan 22 18:19:05 2004 OCC4455 End
LV1.Remove(it1LV1); LV1.Remove(it1LV1);
LV2.Remove(it1LV2); LV2.Remove(it1LV2);
if (AffichPurge) cout <<"Doubles removed in EdgeInter."<<endl; if (AffichPurge) std::cout <<"Doubles removed in EdgeInter."<<std::endl;
Purge = Standard_True; Purge = Standard_True;
break; break;
} }
@ -616,7 +616,7 @@ static void RefEdgeInter(const TopoDS_Face& F,
if (Precision::IsInfinite(aT1) || Precision::IsInfinite(aT2)) if (Precision::IsInfinite(aT1) || Precision::IsInfinite(aT2))
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << "Inter2d : Solution rejected due to infinite parameter"<<endl; std::cout << "Inter2d : Solution rejected due to infinite parameter"<<std::endl;
#endif #endif
continue; continue;
} }
@ -639,22 +639,22 @@ static void RefEdgeInter(const TopoDS_Face& F,
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (aT1 < f[1]-Tol || aT1 > l[1]+Tol) if (aT1 < f[1]-Tol || aT1 > l[1]+Tol)
{ {
cout << "out of limit"<<endl; std::cout << "out of limit"<<std::endl;
cout<<"aT1 = "<<aT1<<", f[1] = "<<f[1]<<", l[1] = "<<l[1]<<endl; std::cout<<"aT1 = "<<aT1<<", f[1] = "<<f[1]<<", l[1] = "<<l[1]<<std::endl;
} }
if (aT2 < f[2]-Tol || aT2 > l[2]+Tol) if (aT2 < f[2]-Tol || aT2 > l[2]+Tol)
{ {
cout << "out of limit"<<endl; std::cout << "out of limit"<<std::endl;
cout<<"aT2 = "<<aT2<<", f[2] = "<<f[2]<<", l[2] = "<<l[2]<<endl; std::cout<<"aT2 = "<<aT2<<", f[2] = "<<f[2]<<", l[2] = "<<l[2]<<std::endl;
} }
Standard_Real MilTol2 = 1000*Tol*Tol; Standard_Real MilTol2 = 1000*Tol*Tol;
if (P1.SquareDistance(P) > MilTol2 || P2.SquareDistance(P) > MilTol2 || P1.Distance(P2) > 2.*Tol) if (P1.SquareDistance(P) > MilTol2 || P2.SquareDistance(P) > MilTol2 || P1.Distance(P2) > 2.*Tol)
{ {
cout << "Inter2d : Solution rejected"<<endl; std::cout << "Inter2d : Solution rejected"<<std::endl;
cout<<"P = "<<P.X()<<" "<<P.Y()<<" "<<P.Z()<<endl; std::cout<<"P = "<<P.X()<<" "<<P.Y()<<" "<<P.Z()<<std::endl;
cout<<"P1 = "<<P1.X()<<" "<<P1.Y()<<" "<<P1.Z()<<endl; std::cout<<"P1 = "<<P1.X()<<" "<<P1.Y()<<" "<<P1.Z()<<std::endl;
cout<<"P2 = "<<P2.X()<<" "<<P2.Y()<<" "<<P2.Z()<<endl; std::cout<<"P2 = "<<P2.X()<<" "<<P2.Y()<<" "<<P2.Z()<<std::endl;
cout<<"MaxDist = "<<dist1<<endl; std::cout<<"MaxDist = "<<dist1<<std::endl;
} }
#endif #endif
//define the orientation of a new vertex //define the orientation of a new vertex
@ -674,7 +674,7 @@ static void RefEdgeInter(const TopoDS_Face& F,
Standard_Real CrossProd = V2or ^ V1; Standard_Real CrossProd = V2or ^ V1;
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (Abs(CrossProd) <= gp::Resolution()) if (Abs(CrossProd) <= gp::Resolution())
cout<<endl<<"CrossProd = "<<CrossProd<<endl; std::cout<<std::endl<<"CrossProd = "<<CrossProd<<std::endl;
#endif #endif
if (CrossProd > 0.) if (CrossProd > 0.)
OO1 = TopAbs_FORWARD; OO1 = TopAbs_FORWARD;
@ -746,7 +746,7 @@ static void RefEdgeInter(const TopoDS_Face& F,
if (P1.IsEqual(P2,10*Tol)) { if (P1.IsEqual(P2,10*Tol)) {
LV1.Remove(it1LV1); LV1.Remove(it1LV1);
LV2.Remove(it1LV2); LV2.Remove(it1LV2);
if (AffichPurge) cout <<"Doubles removed in EdgeInter."<<endl; if (AffichPurge) std::cout <<"Doubles removed in EdgeInter."<<std::endl;
Purge = Standard_True; Purge = Standard_True;
break; break;
} }
@ -762,7 +762,7 @@ static void RefEdgeInter(const TopoDS_Face& F,
//--------------------------------- //---------------------------------
////----------------------------------------------------- ////-----------------------------------------------------
if(LV1.Extent() > 1) { if(LV1.Extent() > 1) {
//cout << "IFV - RefEdgeInter: remove vertex" << endl; //std::cout << "IFV - RefEdgeInter: remove vertex" << std::endl;
Standard_Real dmin = RealLast(); Standard_Real dmin = RealLast();
TopoDS_Vertex Vmin; TopoDS_Vertex Vmin;
for (it1LV1.Initialize(LV1); it1LV1.More(); it1LV1.Next()) { for (it1LV1.Initialize(LV1); it1LV1.More(); it1LV1.Next()) {
@ -1135,7 +1135,7 @@ void BRepOffset_Inter2d::ExtentEdge(const TopoDS_Edge& E,TopoDS_Edge& NE, const
f = Projector.LowerDistanceParameter(); f = Projector.LowerDistanceParameter();
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
else else
cout<<"ProjectPointOnCurve not done"<<endl; std::cout<<"ProjectPointOnCurve not done"<<std::endl;
#endif #endif
} }
if (!Precision::IsInfinite(LastParOnPC)) if (!Precision::IsInfinite(LastParOnPC))
@ -1148,7 +1148,7 @@ void BRepOffset_Inter2d::ExtentEdge(const TopoDS_Edge& E,TopoDS_Edge& NE, const
l = Projector.LowerDistanceParameter(); l = Projector.LowerDistanceParameter();
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
else else
cout<<"ProjectPointOnCurve not done"<<endl; std::cout<<"ProjectPointOnCurve not done"<<std::endl;
#endif #endif
} }
} }

@ -159,7 +159,7 @@ static void DEBVerticesControl (const TopTools_IndexedMapOfShape& NewEdges,
for (it1LE.Initialize(AsDes->Descendant(NE)); it1LE.More(); it1LE.Next()) { for (it1LE.Initialize(AsDes->Descendant(NE)); it1LE.More(); it1LE.Next()) {
if (AsDes->Ascendant(it1LE.Value()).Extent() < 3) { if (AsDes->Ascendant(it1LE.Value()).Extent() < 3) {
LVP.Append(it1LE.Value()); LVP.Append(it1LE.Value());
cout <<"Vertex on at least 3 edges."<<endl; std::cout <<"Vertex on at least 3 edges."<<std::endl;
#ifdef DRAW #ifdef DRAW
if (AffichInt2d) { if (AffichInt2d) {
sprintf (name,"VP_%d",NVP++); sprintf (name,"VP_%d",NVP++);
@ -168,7 +168,7 @@ static void DEBVerticesControl (const TopTools_IndexedMapOfShape& NewEdges,
#endif #endif
} }
else if (AsDes->Ascendant(it1LE.Value()).Extent() > 3) { else if (AsDes->Ascendant(it1LE.Value()).Extent() > 3) {
cout <<"Vertex on more than 3 edges."<<endl; std::cout <<"Vertex on more than 3 edges."<<std::endl;
#ifdef DRAW #ifdef DRAW
if (AffichInt2d) { if (AffichInt2d) {
sprintf (name,"VM_%d",NVM++); sprintf (name,"VM_%d",NVM++);
@ -235,7 +235,7 @@ static void DEBVerticesControl (const TopTools_IndexedMapOfShape& NewEdges,
j++; j++;
} }
i++; i++;
cout <<" distmin between VP : "<<distmin<<endl; std::cout <<" distmin between VP : "<<distmin<<std::endl;
} }
} }
#endif #endif
@ -953,14 +953,14 @@ void BRepOffset_MakeOffset::MakeThickSolid()
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if(YaResult == 0) if(YaResult == 0)
{ {
cout << "OffsetShape does not contain a FACES." << endl; std::cout << "OffsetShape does not contain a FACES." << std::endl;
} }
#endif #endif
} }
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
else else
{ {
cout << "OffsetShape is null!" << endl; std::cout << "OffsetShape is null!" << std::endl;
} }
#endif #endif
@ -1089,7 +1089,7 @@ void BRepOffset_MakeOffset::BuildOffsetByInter()
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if ( ChronBuild) { if ( ChronBuild) {
cout << " CONSTRUCTION OF OFFSETS :" << endl; std::cout << " CONSTRUCTION OF OFFSETS :" << std::endl;
Clock.Reset(); Clock.Reset();
Clock.Start(); Clock.Start();
} }
@ -1445,7 +1445,7 @@ void BRepOffset_MakeOffset::BuildOffsetByArc()
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if ( ChronBuild) { if ( ChronBuild) {
cout << " CONSTRUCTION OF OFFSETS :" << endl; std::cout << " CONSTRUCTION OF OFFSETS :" << std::endl;
Clock.Reset(); Clock.Reset();
Clock.Start(); Clock.Start();
} }
@ -1654,7 +1654,7 @@ void BRepOffset_MakeOffset::SelfInter(TopTools_MapOfShape& /*Modif*/)
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if ( ChronBuild) { if ( ChronBuild) {
cout << " AUTODEBOUCLAGE:" << endl; std::cout << " AUTODEBOUCLAGE:" << std::endl;
Clock.Reset(); Clock.Reset();
Clock.Start(); Clock.Start();
} }
@ -2290,7 +2290,7 @@ void BRepOffset_MakeOffset::Intersection3D(BRepOffset_Inter3d& Inter)
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (ChronBuild) { if (ChronBuild) {
cout << " INTERSECTION 3D:" << endl; std::cout << " INTERSECTION 3D:" << std::endl;
Clock.Reset(); Clock.Reset();
Clock.Start(); Clock.Start();
} }
@ -2350,7 +2350,7 @@ void BRepOffset_MakeOffset::Intersection2D(const TopTools_IndexedMapOfShape& Mod
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (ChronBuild) { if (ChronBuild) {
cout << " INTERSECTION 2D:" << endl; std::cout << " INTERSECTION 2D:" << std::endl;
Clock.Reset(); Clock.Reset();
Clock.Start(); Clock.Start();
} }
@ -2390,7 +2390,7 @@ void BRepOffset_MakeOffset::MakeLoops(TopTools_IndexedMapOfShape& Modif)
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (ChronBuild) { if (ChronBuild) {
cout << " DEBOUCLAGE 2D:" << endl; std::cout << " DEBOUCLAGE 2D:" << std::endl;
Clock.Reset(); Clock.Reset();
Clock.Start(); Clock.Start();
} }
@ -2438,7 +2438,7 @@ void BRepOffset_MakeOffset::MakeFaces(TopTools_IndexedMapOfShape& /*Modif*/)
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (ChronBuild) { if (ChronBuild) {
cout << " RECONSTRUCTION OF FACES:" << endl; std::cout << " RECONSTRUCTION OF FACES:" << std::endl;
Clock.Reset(); Clock.Reset();
Clock.Start(); Clock.Start();
} }
@ -2946,7 +2946,7 @@ void BRepOffset_MakeOffset::MakeShells ()
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (ChronBuild) { if (ChronBuild) {
cout << " RECONSTRUCTION OF SHELLS:" << endl; std::cout << " RECONSTRUCTION OF SHELLS:" << std::endl;
Clock.Reset(); Clock.Reset();
Clock.Start(); Clock.Start();
} }
@ -3200,7 +3200,7 @@ void BRepOffset_MakeOffset::EncodeRegularity ()
{ {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (ChronBuild) { if (ChronBuild) {
cout << " CODING OF REGULARITIES:" << endl; std::cout << " CODING OF REGULARITIES:" << std::endl;
Clock.Reset(); Clock.Reset();
Clock.Start(); Clock.Start();
} }
@ -3227,7 +3227,7 @@ void BRepOffset_MakeOffset::EncodeRegularity ()
if (LofOF.Extent() != 2) { if (LofOF.Extent() != 2) {
#ifdef OCCT_DEBUG_VERB #ifdef OCCT_DEBUG_VERB
cout << " Edge shared by " << LofOF.Extent() << " Faces" << endl; std::cout << " Edge shared by " << LofOF.Extent() << " Faces" << std::endl;
#endif #endif
continue; continue;
} }

@ -871,7 +871,7 @@ void BuildSplitsOfFaces(const TopTools_ListOfShape& theLF,
BRepAlgoAPI_Check aChecker(aCE); BRepAlgoAPI_Check aChecker(aCE);
if (!aChecker.IsValid()) if (!aChecker.IsValid())
{ {
cout << "Offset_i_c Error: set of edges to build faces is self-intersecting\n"; std::cout << "Offset_i_c Error: set of edges to build faces is self-intersecting\n";
} }
#endif #endif
// build splits // build splits

@ -941,7 +941,7 @@ void BRepOffset_Offset::Init(const TopoDS_Face& Face,
P2d = C2d->Value(l); TheSurf->D0(P2d.X(),P2d.Y(),P2); P2d = C2d->Value(l); TheSurf->D0(P2d.X(),P2d.Y(),P2);
Standard_Real Tol = BRep_Tool::Tolerance(V1); Standard_Real Tol = BRep_Tool::Tolerance(V1);
if (!P1.IsEqual(P2,Tol)) { if (!P1.IsEqual(P2,Tol)) {
cout <<"BRepOffset_Offset : E degenerated -> OE not degenerated"<<endl; std::cout <<"BRepOffset_Offset : E degenerated -> OE not degenerated"<<std::endl;
} }
#endif #endif
*/ */
@ -1241,7 +1241,7 @@ void BRepOffset_Offset::Init(const TopoDS_Edge& Path,
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
// si firstedge n est pas nul, il faut que les vertex soient partages // si firstedge n est pas nul, il faut que les vertex soient partages
if ( !VVf.IsSame(V1f) && !VVf.IsSame(V2f) ) { if ( !VVf.IsSame(V1f) && !VVf.IsSame(V2f) ) {
cout << "Attention Vertex non partages !!!!!!" << endl; std::cout << "Attention Vertex non partages !!!!!!" << std::endl;
} }
#endif #endif
if ( !VVf.IsSame(V1f) && !VVf.IsSame(V2f) ) { if ( !VVf.IsSame(V1f) && !VVf.IsSame(V2f) ) {
@ -1305,7 +1305,7 @@ void BRepOffset_Offset::Init(const TopoDS_Edge& Path,
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
// si lastedge n est pas nul, il faut que les vertex soient partages // si lastedge n est pas nul, il faut que les vertex soient partages
if ( !VVf.IsSame(V1l) && !VVf.IsSame(V2l) ) { if ( !VVf.IsSame(V1l) && !VVf.IsSame(V2l) ) {
cout << "Attention Vertex non partages !!!!!!" << endl; std::cout << "Attention Vertex non partages !!!!!!" << std::endl;
} }
#endif #endif
if ( !VVf.IsSame(V1l) && !VVf.IsSame(V2l) ) { if ( !VVf.IsSame(V1l) && !VVf.IsSame(V2l) ) {

@ -1754,7 +1754,7 @@ void BRepOffset_Tool::Inter3D(const TopoDS_Face& F1,
BRepLib::SameParameter(anEdge, aSameParTol, Standard_True); BRepLib::SameParameter(anEdge, aSameParTol, Standard_True);
Standard_Real EdgeTol = BRep_Tool::Tolerance(anEdge); Standard_Real EdgeTol = BRep_Tool::Tolerance(anEdge);
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout<<"Tolerance of glued E = "<<EdgeTol<<endl; std::cout<<"Tolerance of glued E = "<<EdgeTol<<std::endl;
#endif #endif
if (EdgeTol > 1.e-2) if (EdgeTol > 1.e-2)
continue; continue;
@ -1764,7 +1764,7 @@ void BRepOffset_Tool::Inter3D(const TopoDS_Face& F1,
ReconstructPCurves(anEdge); ReconstructPCurves(anEdge);
BRepLib::SameParameter(anEdge, aSameParTol, Standard_True); BRepLib::SameParameter(anEdge, aSameParTol, Standard_True);
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout<<"After projection tol of E = "<<BRep_Tool::Tolerance(anEdge)<<endl; std::cout<<"After projection tol of E = "<<BRep_Tool::Tolerance(anEdge)<<std::endl;
#endif #endif
} }
@ -2087,16 +2087,16 @@ static Standard_Boolean ProjectVertexOnEdge(TopoDS_Vertex& V,
if (AffichExtent) { if (AffichExtent) {
Standard_Real Dist = P.Distance(C.Value(U)); Standard_Real Dist = P.Distance(C.Value(U));
if (Dist > TolConf) { if (Dist > TolConf) {
cout << " ProjectVertexOnEdge :distance vertex edge :"<<Dist<<endl; std::cout << " ProjectVertexOnEdge :distance vertex edge :"<<Dist<<std::endl;
} }
if (U < f - Precision::Confusion() || if (U < f - Precision::Confusion() ||
U > l + Precision::Confusion()) { U > l + Precision::Confusion()) {
cout << " ProjectVertexOnEdge : hors borne :"<<endl; std::cout << " ProjectVertexOnEdge : hors borne :"<<std::endl;
cout << " f = "<<f<<" l ="<<l<< " U ="<<U<<endl; std::cout << " f = "<<f<<" l ="<<l<< " U ="<<U<<std::endl;
} }
} }
if (!found) { if (!found) {
cout <<"BRepOffset_Tool::ProjectVertexOnEdge Parameter no found"<<endl; std::cout <<"BRepOffset_Tool::ProjectVertexOnEdge Parameter no found"<<std::endl;
if (Abs(f) < Precision::Infinite() && if (Abs(f) < Precision::Infinite() &&
Abs(l) < Precision::Infinite()) { Abs(l) < Precision::Infinite()) {
#ifdef DRAW #ifdef DRAW
@ -2187,7 +2187,7 @@ void BRepOffset_Tool::Inter2d (const TopoDS_Face& F,
// F,fl2[0],fl2[1]); // F,fl2[0],fl2[1]);
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (C1.IsNull() || C2.IsNull()) { if (C1.IsNull() || C2.IsNull()) {
cout <<"Inter2d : Pas de pcurve"<<endl; std::cout <<"Inter2d : Pas de pcurve"<<std::endl;
#ifdef DRAW #ifdef DRAW
DBRep::Set("E1",E1); DBRep::Set("E1",E1);
DBRep::Set("E2",E2); DBRep::Set("E2",E2);
@ -2304,11 +2304,11 @@ void BRepOffset_Tool::Inter2d (const TopoDS_Face& F,
Standard_Real U2on1 = IntP1.ParamOnSecond(); Standard_Real U2on1 = IntP1.ParamOnSecond();
Standard_Real U2on2 = IntP2.ParamOnSecond(); Standard_Real U2on2 = IntP2.ParamOnSecond();
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout << " BRepOffset_Tool::Inter2d SEGMENT d intersection" << endl; std::cout << " BRepOffset_Tool::Inter2d SEGMENT d intersection" << std::endl;
cout << " ===> Parametres sur Curve1 : "; std::cout << " ===> Parametres sur Curve1 : ";
cout << U1on1 << " " << U1on2 << endl; std::cout << U1on1 << " " << U1on2 << std::endl;
cout << " ===> Parametres sur Curve2 : "; std::cout << " ===> Parametres sur Curve2 : ";
cout << U2on1 << " " << U2on2 << endl; std::cout << U2on1 << " " << U2on2 << std::endl;
#endif #endif
U1 = (U1on1 + U1on2)/2.; U1 = (U1on1 + U1on2)/2.;
U2 = (U2on1 + U2on2)/2.; U2 = (U2on1 + U2on2)/2.;
@ -2363,7 +2363,7 @@ void BRepOffset_Tool::Inter2d (const TopoDS_Face& F,
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
if (!YaSol) { if (!YaSol) {
cout <<"Inter2d : Pas de solution"<<endl; std::cout <<"Inter2d : Pas de solution"<<std::endl;
#ifdef DRAW #ifdef DRAW
DBRep::Set("E1",E1); DBRep::Set("E1",E1);
DBRep::Set("E2",E2); DBRep::Set("E2",E2);

@ -356,9 +356,9 @@ void BRepOffsetAPI_MakeOffset::Perform(const Standard_Real Offset,
} }
catch(Standard_Failure const& anException) { catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG #ifdef OCCT_DEBUG
cout<<"An exception was caught in BRepOffsetAPI_MakeOffset::Perform : "; std::cout<<"An exception was caught in BRepOffsetAPI_MakeOffset::Perform : ";
anException.Print(cout); anException.Print(std::cout);
cout<<endl; std::cout<<std::endl;
#endif #endif
(void)anException; (void)anException;
NotDone(); NotDone();

Some files were not shown because too many files have changed in this diff Show More