"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.
aFileName += "\\points.dat";
// open file
- ifstream aFile;
- aFile.open(aFileName.ToCString(), ios::failbit);
+ std::ifstream aFile;
+ aFile.open(aFileName.ToCString(), std::ios::failbit);
if(!aFile)
{
aFileName += " was not found. The sample can not be shown.";
//Filling plate
Plate_Plate myPlate;
- cout<<" * Nunber of points = "<< nbPnt << endl;
+ std::cout<<" * Nunber of points = "<< nbPnt << std::endl;
for (i=1; i<= nbPnt; i++) {
gp_Pnt ptProj(seqOfXYZ.Value(i).X(), seqOfXYZ.Value(i).Y(), 0. );
gp_Vec aVec( ptProj, seqOfXYZ.Value(i));
}
myPlate.SolveTI(2, 1.);// resolution
if (!myPlate.IsDone()) {
- cout<<" plate computation has failed"<< endl;
+ std::cout<<" plate computation has failed"<< std::endl;
myIsDone=Standard_False;
}
Standard_Integer nbPnt=0;
// Read points from the file
- filebuf fic;
- istream in(&fic);
+ std::filebuf fic;
+ std::istream in(&fic);
- if (!fic.open(aGroundName,ios::in)){
- cout << " impossible to open a file : "<<aGroundName<<endl;
+ if (!fic.open(aGroundName,std::ios::in)){
+ std::cout << " impossible to open a file : "<<aGroundName<<std::endl;
myIsDone = Standard_False;
return 0;
}
Handle(ISession_Direction) aDirection2 = new ISession_Direction(gp_Pnt(0,0,0),D2,3);
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 Message3 (ang/M_PI/180);
SetCursor(AfxGetApp()->LoadStandardCursor(IDC_WAIT));
CString filename = dlg.GetPathName();
- filebuf fic;
- istream in(&fic);
- if (!fic.open (filename, ios::in))
+ std::filebuf fic;
+ std::istream in(&fic);
+ if (!fic.open (filename, std::ios::in))
MessageBoxW (AfxGetApp()->m_pMainWnd->m_hWnd, L"Error : Unable to open file", L"CasCade Error", MB_ICONERROR);
TColgp_SequenceOfXYZ seqOfXYZ;
std::filebuf 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.";
myCResultDialog.SetText (initfile);
((OCC_MainFrame*)AfxGetMainWnd())->SetStatusMessage("Building the tangent surface...");
SetCursor(AfxGetApp()->LoadStandardCursor(IDC_WAIT));
CString filename = dlg.GetPathName();
- filebuf fic;
- istream in(&fic);
- if (!fic.open(filename, ios::in))
+ std::filebuf fic;
+ std::istream in(&fic);
+ if (!fic.open(filename, std::ios::in))
MessageBoxW (AfxGetApp()->m_pMainWnd->m_hWnd, L"Error : Unable to open file", L"CasCade Error", MB_ICONERROR);
Standard_Real x,y,z;
BRep_Builder B;
std::filebuf 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");
return;
std::filebuf 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.";
getDocument()->UpdateResultMessageDlg ("Textured Shape", initfile);
catch (Standard_Failure const& anException)
{
Standard_SStream aSStream;
- aSStream << "An exception was caught: " << anException << ends;
+ aSStream << "An exception was caught: " << anException << std::ends;
CString aMsg = aSStream.str().c_str();
AfxMessageBox (aMsg);
}
CWaitCursor aWaitCursor;
CString CSPath = dlg.GetPathName();
- cout << "Save As " << CSPath << endl;
+ std::cout << "Save As " << CSPath << std::endl;
PathName=CSPath;
const wchar_t* SPath = CSPath;
TCollection_ExtendedString TPath (SPath);
*/
TCollection_AsciiString 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);
if (log->IsModified(OriginalRef->Get())) return Standard_True; // Original shape.
std::filebuf 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.";
GetDocument()->PocessTextInDialog ("Compute the triangulation on a shape", initfile);
catch (Standard_Failure const& anException)
{
Standard_SStream aSStream;
- aSStream << "An exception was caught: " << anException << ends;
+ aSStream << "An exception was caught: " << anException << std::ends;
CString aMsg = aSStream.str().c_str();
// aSStream.rdbuf()->freeze(0); // allow deletion of dynamic array
AfxMessageBox (aMsg);
std::filebuf aFileBuf;
std::istream aStream (&aFileBuf);
CString aPathCrankArm = aDataDirPath + "\\CrankArm.rle";
- if (aFileBuf.open (aPathCrankArm, ios::in))
+ if (aFileBuf.open (aPathCrankArm, std::ios::in))
{
BRepTools::Read (CrankArm, aStream, B);
aFileBuf.close();
}
CString aPathCylinderHead = aDataDirPath + "\\CylinderHead.rle";
- if (aFileBuf.open (aPathCylinderHead, ios::in))
+ if (aFileBuf.open (aPathCylinderHead, std::ios::in))
{
BRepTools::Read (CylinderHead, aStream, B);
aFileBuf.close();
}
CString aPathPropeller = aDataDirPath + "\\Propeller.rle";
- if (aFileBuf.open (aPathPropeller, ios::in))
+ if (aFileBuf.open (aPathPropeller, std::ios::in))
{
BRepTools::Read (Propeller, aStream, B);
aFileBuf.close();
}
CString aPathPiston = aDataDirPath + "\\Piston.rle";
- if (aFileBuf.open (aPathPiston, ios::in))
+ if (aFileBuf.open (aPathPiston, std::ios::in))
{
BRepTools::Read (Piston, aStream, B);
aFileBuf.close();
}
CString aPathEngineBlock = aDataDirPath + "\\EngineBlock.rle";
- if (aFileBuf.open (aPathEngineBlock, ios::in))
+ if (aFileBuf.open (aPathEngineBlock, std::ios::in))
{
BRepTools::Read (EngineBlock, aStream, B);
aFileBuf.close();
if (fp)
{
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);
}
}
- cout << "Deltax = " << Deltax << endl;
- cout << "Deltay = " << Deltay << endl;
+ std::cout << "Deltax = " << Deltax << std::endl;
+ std::cout << "Deltay = " << Deltay << std::endl;
fclose(fp);
}
else
{
- cout << "cannot open file : " << FileName << endl;
+ std::cout << "cannot open file : " << FileName << std::endl;
}
return H;
}
catch (Standard_Failure const& anException)
{
Standard_SStream aSStream;
- aSStream << "An exception was caught: " << anException << ends;
+ aSStream << "An exception was caught: " << anException << std::ends;
CString aMsg = aSStream.str().c_str();
AfxMessageBox (aMsg);
}
std::filebuf aFileBuf;
std::istream aStream (&aFileBuf);
- if (!aFileBuf.open (aFileName, ios::in))
+ if (!aFileBuf.open (aFileName, std::ios::in))
{
return Standard_False;
}
{
std::filebuf aFileBuf;
std::ostream aStream (&aFileBuf);
- if (!aFileBuf.open (aFileName, ios::out))
+ if (!aFileBuf.open (aFileName, std::ios::out))
{
return Standard_False;
}
} // iterator of shapes
// Call VRML writer
- ofstream writer(aFileName);
+ std::ofstream writer(aFileName);
writer<<scene;
writer.close();
// This triangulation is computed with the deflection myDeflection.
#ifdef DEBUG
- cout <<"Deflection = " << myDeflection << "\n" << endl;
+ std::cout <<"Deflection = " << myDeflection << "\n" << std::endl;
#endif
Standard_Integer NumFace;
TopLoc_Location myLocation = myFace.Location();
#ifdef DEBUG
- cout << "J\'explore actuellement la face " << NumFace << "\n" << endl;
+ std::cout << "J\'explore actuellement la face " << NumFace << "\n" << std::endl;
#endif
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.
if (myT.IsNull())
{
#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
return;
}
TopLoc_Location myLocation = myFace.Location();
#ifdef DEBUG
- cout << "J\'explore actuellement la face " << NumFace << "\n" << endl;
+ std::cout << "J\'explore actuellement la face " << NumFace << "\n" << std::endl;
#endif
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.
if (myT.IsNull())
{
#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
return;
}
for (nt = 1; nt <= nnn; nt++)
{
#ifdef DEBUG
- cout << "On traite actuellement le triangle : "<< nt <<"\n";
+ std::cout << "On traite actuellement le triangle : "<< nt <<"\n";
#endif
if (myFace.Orientation() == TopAbs_REVERSED) // si la face est "reversed"
triangles(nt).Get(n1,n3,n2); // le triangle est n1,n3,n2
// int i = setvbuf( stdout, NULL, _IONBF, 0 );
// filebuf ff(hCrt);
// 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
Standard_Boolean isverified = constraint->Verified();
if( !isverified ) {
- cout << "Constraint is not valid" << endl;
+ std::cout << "Constraint is not valid" << std::endl;
}
BRepAlgo_Cut mkCUT (OBJECT, TOOL);
if (!mkCUT.IsDone()) {
- cout << "CUT: Algorithm failed" << endl;
+ std::cout << "CUT: Algorithm failed" << std::endl;
return;
} else
{
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;
} else
{
Handle(TPrsStd_NamedShapeDriver) driver;
if( table->FindDriver(driverguid, driver) )
- cout << "Driver was found " << endl;
+ std::cout << "Driver was found " << std::endl;
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
}
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).
redrawGraph();
filter.append( "\t" );
}
- cout << filter.toLatin1().constData() << endl;
+ std::cout << filter.toLatin1().constData() << std::endl;
QStringList filters = filter.split( "\t" );
myDlg->setNameFilters ( filters );
std::filebuf 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";
return Standard_False;
}
std::filebuf 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";
return Standard_False;
}
std::filebuf 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";
return Standard_False;
}
myArrowSize = fabs (myVal/10.0);
if (myArrowSize > 30.) myArrowSize = 30.;
if (myArrowSize < 15.) myArrowSize = 15.;
- //cout<<"AIS_OffsetDimension::AIS_OffsetDimension " << myArrowSize << " myArrowSize"<<endl;
+ //std::cout<<"AIS_OffsetDimension::AIS_OffsetDimension " << myArrowSize << " myArrowSize"<<std::endl;
}
//=======================================================================
myArrowSize = fabs (myVal/10.0);
if (myArrowSize > 30.) myArrowSize = 30.;
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 surf2(TopoDS::Face(mySShape));
myArrowSize = fabs (myVal/10.0);
if (myArrowSize > 30.) myArrowSize = 30.;
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 myTSAttach = mySAttach.Transformed (myRelativePos);
gp_Dir myTDirAttach = myDirAttach.Transformed (myRelativePos);
Handle(Prs3d_DimensionAspect) la = myDrawer->DimensionAspect();
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 = la->ArrowAspect();
arr->SetLength(myArrowSize);
Handle(Prs3d_DimensionAspect) la = myDrawer->DimensionAspect();
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 = la->ArrowAspect();
arr->SetLength(myArrowSize);
void AdvApp2Var_ApproxAFunc2Var::Dump(Standard_OStream& o) const
{
Standard_Integer iesp=1,NbKU,NbKV,ik;
- o<<endl;
- if (!myHasResult) { o<<"No result"<<endl; }
+ o<<std::endl;
+ if (!myHasResult) { o<<"No result"<<std::endl; }
else {
o<<"There is a result";
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)) {
- o<<" WITHOUT the requested tolerance "<<my3DTolerances->Value(iesp)<<endl;
+ o<<" WITHOUT the requested tolerance "<<my3DTolerances->Value(iesp)<<std::endl;
}
else {
- o<<" WITHOUT the requested continuities "<<endl;
+ o<<" WITHOUT the requested continuities "<<std::endl;
}
- o<<endl;
- o<<"Result max error :"<<my3DMaxError->Value(iesp)<<endl;
- o<<"Result average error :"<<my3DAverageError->Value(iesp)<<endl;
- o<<"Result max error on U frontiers :"<<my3DUFrontError->Value(iesp)<<endl;
- o<<"Result max error on V frontiers :"<<my3DVFrontError->Value(iesp)<<endl;
- o<<endl;
+ o<<std::endl;
+ o<<"Result max error :"<<my3DMaxError->Value(iesp)<<std::endl;
+ o<<"Result average error :"<<my3DAverageError->Value(iesp)<<std::endl;
+ o<<"Result max error on U frontiers :"<<my3DUFrontError->Value(iesp)<<std::endl;
+ o<<"Result max error on V frontiers :"<<my3DVFrontError->Value(iesp)<<std::endl;
+ o<<std::endl;
o<<"Degree of Bezier patches in U : "<<myDegreeInU
- <<" in V : "<<myDegreeInV<<endl;
- o<<endl;
+ <<" in V : "<<myDegreeInV<<std::endl;
+ o<<std::endl;
Handle(Geom_BSplineSurface) S
= Handle(Geom_BSplineSurface)::DownCast(mySurfaces->Value(iesp));
o<<"Number of poles in U : "<<S->NbUPoles()
- <<" in V : "<<S->NbVPoles()<<endl;
- o<<endl;
+ <<" in V : "<<S->NbVPoles()<<std::endl;
+ o<<std::endl;
NbKU = S->NbUKnots();
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++) {
- o<<" "<<ik<<" : "<<S->UKnot(ik)<<" mult : "<<S->UMultiplicity(ik)<<endl;
+ o<<" "<<ik<<" : "<<S->UKnot(ik)<<" mult : "<<S->UMultiplicity(ik)<<std::endl;
}
- o<<endl;
- o<<"Number of knots in V : "<<NbKV<<endl;
+ o<<std::endl;
+ o<<"Number of knots in V : "<<NbKV<<std::endl;
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;
}
}
else {
nbpnts = 50;
#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
}
if ( (Diff-Der).Norm() > eps * (Der.Norm()+1) ) {
- cout << " Debug Ft au parametre t+ = " << t << endl;
- cout << " Positionement sur la derive "<< OrdreDer
- << " : " << Der << endl;
- cout << " Erreur estime : " << (Der-Diff) << endl;
+ std::cout << " Debug Ft au parametre t+ = " << t << std::endl;
+ std::cout << " Positionement sur la derive "<< OrdreDer
+ << " : " << Der << std::endl;
+ std::cout << " Erreur estime : " << (Der-Diff) << std::endl;
}
// Verif a la fin
if ( (Diff-Der).Norm() > eps * (Der.Norm()+1) ) {
- cout << " Debug Ft au parametre t- = " << t << endl;
- cout << " Positionement sur la derive "<< OrdreDer
- << " : " << Der << endl;
- cout << " Erreur estime : " << (Der-Diff) << endl;
+ std::cout << " Debug Ft au parametre t- = " << t << std::endl;
+ std::cout << " Positionement sur la derive "<< OrdreDer
+ << " : " << Der << std::endl;
+ std::cout << " Erreur estime : " << (Der-Diff) << std::endl;
}
}
}
void AdvApprox_ApproxAFunction::Dump(Standard_OStream& o) const
{
Standard_Integer ii;
- o << "Dump of ApproxAFunction" << endl;
+ o << "Dump of ApproxAFunction" << std::endl;
if (myNumSubSpaces[0] > 0) {
- o << "Error(s) 1d = " << endl;
+ o << "Error(s) 1d = " << std::endl;
for (ii=1; ii <= myNumSubSpaces[0]; ii++) {
- o << " " << MaxError(1, ii) << endl;
+ o << " " << MaxError(1, ii) << std::endl;
}
}
if (myNumSubSpaces[1] > 0) {
- o << "Error(s) 2d = " << endl;
+ o << "Error(s) 2d = " << std::endl;
for (ii=1; ii <= myNumSubSpaces[1]; ii++) {
- o << " " << MaxError(2, ii) << endl;
+ o << " " << MaxError(2, ii) << std::endl;
}
}
if (myNumSubSpaces[2] > 0) {
- o << "Error(s) 3d = " << endl;
+ o << "Error(s) 3d = " << std::endl;
for (ii=1; ii <= myNumSubSpaces[2]; ii++) {
- o << " " << MaxError(3, ii) << endl;
+ o << " " << MaxError(3, ii) << std::endl;
}
}
}
}
}
// 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
TColStd_Array1OfReal JacCoeff(0, myTotalDimension*(myWorkDegree+1)-1);
void AdvApprox_SimpleApprox::Dump(Standard_OStream& o) const
{
Standard_Integer ii;
- o << "Dump of SimpleApprox " << endl;
+ o << "Dump of SimpleApprox " << std::endl;
for (ii=1; ii <= myTotalNumSS; ii++) {
- o << "Error " << MaxError(ii) << endl;
+ o << "Error " << MaxError(ii) << std::endl;
}
}
mytol2d = Max(TheTol2d, mytol2d);
}
#ifdef OCCT_DEBUG
- cout << " Tolerances obtenues --> 3d : "<< mytol3d << endl;
- cout << " --> 2d : "<< mytol2d << endl;
+ std::cout << " Tolerances obtenues --> 3d : "<< mytol3d << std::endl;
+ std::cout << " --> 2d : "<< mytol2d << std::endl;
#endif
multC = theapprox.SplineValue();
}
theapprox.Perform(multL);
theapprox.Error(mytol3d,mytol2d);
#ifdef OCCT_DEBUG
- cout << " Tolerances obtenues --> 3d : "<< mytol3d << endl;
- cout << " --> 2d : "<< mytol2d << endl;
+ std::cout << " Tolerances obtenues --> 3d : "<< mytol3d << std::endl;
+ std::cout << " --> 2d : "<< mytol2d << std::endl;
#endif
tol3dreached = mytol3d;
tol2dreached = mytol2d;
mytol3d = Variation.MaxError();
mytol2d = 0.;
#ifdef OCCT_DEBUG
- cout << " Tolerances obtenues --> 3d : "<< mytol3d << endl;
- cout << " --> 2d : "<< mytol2d << endl;
+ std::cout << " Tolerances obtenues --> 3d : "<< mytol3d << std::endl;
+ std::cout << " --> 2d : "<< mytol2d << std::endl;
#endif
tol3dreached = mytol3d;
tol2dreached = mytol2d;
// modified by EAP Thu Jan 3 15:45:27 2002 ___END___
}
#ifdef OCCT_DEBUG
- cout << " Tolerances obtenues --> 3d : "<< mytol3d << endl;
- cout << " --> 2d : "<< mytol2d << endl;
+ std::cout << " Tolerances obtenues --> 3d : "<< mytol3d << std::endl;
+ std::cout << " --> 2d : "<< mytol2d << std::endl;
#endif
tol3dreached = mytol3d;
tol2dreached = mytol2d;
tabVKnots->ChangeArray1()
);
#ifdef OCCT_DEBUG
- cout << "Warning: AppBlend_AppSurf::Perform(), bad length of aParamSeq: " <<
- aParamSeq.Length() << " instead of " << tabVKnots->Length() << endl;
+ std::cout << "Warning: AppBlend_AppSurf::Perform(), bad length of aParamSeq: " <<
+ aParamSeq.Length() << " instead of " << tabVKnots->Length() << std::endl;
#endif
}
else
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);
- o << "It contains " << tabMult->Length() << " MultiPointConstraint"<< endl;
-// o << MP->NbPoints() << " 3d and " << MP->NbPoints2d() << endl;
+ o << "It contains " << tabMult->Length() << " MultiPointConstraint"<< std::endl;
+// o << MP->NbPoints() << " 3d and " << MP->NbPoints2d() << std::endl;
}
void AppDef_MultiPointConstraint::Dump(Standard_OStream& o) const
{
- o << "AppDef_MultiPointConstraint dump:" << endl;
+ o << "AppDef_MultiPointConstraint dump:" << std::endl;
}
{
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++));
- // 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++));
- // 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++));
TabP3d.SetValue(jp3d,P3d);
}
//
void AppDef_Variational::Dump(Standard_OStream& o) const
{
- o << " \nVariational Smoothing " << endl;
- o << " Number of multipoints " << myNbPoints << endl;
- o << " Number of 2d par multipoint " << myNbP2d << endl;
- o << " Nombre of 3d par multipoint " << myNbP3d << endl;
- o << " Number of PassagePoint " << myNbPassPoints << endl;
- o << " Number of TangencyPoints " << myNbTangPoints << endl;
- o << " Number of CurvaturePoints " << myNbCurvPoints << endl;
- o << " \nTolerance " << o.setf(ios::scientific) << setprecision(3) << setw(9) << myTolerance;
- if ( WithMinMax()) { o << " as Max Error." << endl;}
- else { o << " as size Error." << endl;}
+ o << " \nVariational Smoothing " << std::endl;
+ o << " Number of multipoints " << myNbPoints << std::endl;
+ o << " Number of 2d par multipoint " << myNbP2d << std::endl;
+ o << " Nombre of 3d par multipoint " << myNbP3d << std::endl;
+ o << " Number of PassagePoint " << myNbPassPoints << std::endl;
+ o << " Number of TangencyPoints " << myNbTangPoints << std::endl;
+ o << " Number of CurvaturePoints " << myNbCurvPoints << std::endl;
+ o << " \nTolerance " << o.setf(std::ios::scientific) << std::setprecision(3) << std::setw(9) << myTolerance;
+ if ( WithMinMax()) { o << " as Max Error." << std::endl;}
+ else { o << " as size Error." << std::endl;}
o << "CriteriumWeights : " << myPercent[0] << " , "
- << myPercent[1] << " , " << myPercent[2] << endl;
+ << myPercent[1] << " , " << myPercent[2] << std::endl;
if (myIsDone ) {
- o << " MaxError " << setprecision(3) << setw(9) << myMaxError << endl;
- o << " Index of MaxError " << myMaxErrorIndex << endl;
- o << " Average Error " << setprecision(3) << setw(9) << myAverageError << endl;
- o << " Quadratic Error " << setprecision(3) << setw(9) << myCriterium[0] << endl;
- o << " Tension Criterium " << setprecision(3) << setw(9) << myCriterium[1] << endl;
- o << " Flexion Criterium " << setprecision(3) << setw(9) << myCriterium[2] << endl;
- o << " Jerk Criterium " << setprecision(3) << setw(9) << myCriterium[3] << endl;
- o << " NbSegments " << myKnots->Length()-1 << endl;
+ o << " MaxError " << std::setprecision(3) << std::setw(9) << myMaxError << std::endl;
+ o << " Index of MaxError " << myMaxErrorIndex << std::endl;
+ o << " Average Error " << std::setprecision(3) << std::setw(9) << myAverageError << std::endl;
+ o << " Quadratic Error " << std::setprecision(3) << std::setw(9) << myCriterium[0] << std::endl;
+ o << " Tension Criterium " << std::setprecision(3) << std::setw(9) << myCriterium[1] << std::endl;
+ o << " Flexion Criterium " << std::setprecision(3) << std::setw(9) << myCriterium[2] << std::endl;
+ o << " Jerk Criterium " << std::setprecision(3) << std::setw(9) << myCriterium[3] << std::endl;
+ o << " NbSegments " << myKnots->Length()-1 << std::endl;
}
else
- { if (myIsOverConstr) o << "The probleme is overconstraint " << endl;
- else o << " Erreur dans l''approximation" << endl;
+ { if (myIsOverConstr) o << "The probleme is overconstraint " << std::endl;
+ else o << " Erreur dans l''approximation" << std::endl;
}
}
//
TColStd_Array1OfReal& Ecarts)
{
- // cout << "=========== Adjusting =============" << endl;
+ // std::cout << "=========== Adjusting =============" << std::endl;
/* Initialized data */
void AppParCurves_MultiBSpCurve::Dump(Standard_OStream& o) const
{
- o << "AppParCurves_MultiBSpCurve dump:" << endl;
- o << " It contains " << NbCurves() << " BSpline curves "<< endl;
- o << " The poles are: " << endl;
+ o << "AppParCurves_MultiBSpCurve dump:" << std::endl;
+ o << " It contains " << NbCurves() << " BSpline curves "<< std::endl;
+ o << " The poles are: " << std::endl;
/* for (Standard_Integer i = 1; i <= NbCurves(); i++) {
- o << " Curve No. " << i << endl;
+ o << " Curve No. " << i << std::endl;
if (Dimension(i) == 3) {
for (Standard_Integer j = 1; j <= tabPoint->Length(); j++) {
- o << " Pole No. " << j << ": " << endl;
- o << " Pole x = " << (tabPoint->Value(j)->Point(i)).X() << endl;
- o << " Pole y = " << (tabPoint->Value(j)->Point(i)).Y() << endl;
- o << " Pole z = " << (tabPoint->Value(j)->Point(i)).Z() << endl;
+ o << " Pole No. " << j << ": " << std::endl;
+ o << " Pole x = " << (tabPoint->Value(j)->Point(i)).X() << std::endl;
+ o << " Pole y = " << (tabPoint->Value(j)->Point(i)).Y() << std::endl;
+ o << " Pole z = " << (tabPoint->Value(j)->Point(i)).Z() << std::endl;
}
}
else {
for (Standard_Integer j = 1; j <= tabPoint->Length(); j++) {
- o << " Pole No. " << j << ": " << endl;
- o << " Pole x = " << (tabPoint->Value(j)->Point2d(i)).X() << endl;
- o << " Pole y = " << (tabPoint->Value(j)->Point2d(i)).Y() << endl;
+ o << " Pole No. " << j << ": " << std::endl;
+ o << " Pole x = " << (tabPoint->Value(j)->Point2d(i)).X() << std::endl;
+ o << " Pole y = " << (tabPoint->Value(j)->Point2d(i)).Y() << std::endl;
}
}
}
void AppParCurves_MultiCurve::Dump(Standard_OStream& o) const
{
- o << "AppParCurves_MultiCurve dump:" << endl;
- o << " It contains " << NbCurves() << " Bezier curves of degree " << tabPoint->Length()-1 << endl;
- o << " The poles are: " << endl;
+ o << "AppParCurves_MultiCurve dump:" << std::endl;
+ o << " It contains " << NbCurves() << " Bezier curves of degree " << tabPoint->Length()-1 << std::endl;
+ o << " The poles are: " << std::endl;
/* for (Standard_Integer i = 1; i <= NbCurves(); i++) {
- o << " Curve No. " << i << endl;
+ o << " Curve No. " << i << std::endl;
if (Dimension(i) == 3) {
for (Standard_Integer j = 1; j <= tabPoint->Length(); j++) {
- o << " Pole No. " << j << ": " << endl;
- o << " Pole x = " << (tabPoint->Value(j)->Point(i)).X() << endl;
- o << " Pole y = " << (tabPoint->Value(j)->Point(i)).Y() << endl;
- o << " Pole z = " << (tabPoint->Value(j)->Point(i)).Z() << endl;
+ o << " Pole No. " << j << ": " << std::endl;
+ o << " Pole x = " << (tabPoint->Value(j)->Point(i)).X() << std::endl;
+ o << " Pole y = " << (tabPoint->Value(j)->Point(i)).Y() << std::endl;
+ o << " Pole z = " << (tabPoint->Value(j)->Point(i)).Z() << std::endl;
}
}
else {
for (Standard_Integer j = 1; j <= tabPoint->Length(); j++) {
- o << " Pole No. " << j << ": " << endl;
- o << " Pole x = " << (tabPoint->Value(j)->Point2d(i)).X() << endl;
- o << " Pole y = " << (tabPoint->Value(j)->Point2d(i)).Y() << endl;
+ o << " Pole No. " << j << ": " << std::endl;
+ o << " Pole x = " << (tabPoint->Value(j)->Point2d(i)).X() << std::endl;
+ o << " Pole y = " << (tabPoint->Value(j)->Point2d(i)).Y() << std::endl;
}
}
}
void AppParCurves_MultiPoint::Dump(Standard_OStream& o) const
{
- o << "AppParCurves_MultiPoint dump:" << endl;
+ o << "AppParCurves_MultiPoint dump:" << std::endl;
const Standard_Integer aNbPnts3D = NbPoints(),
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)
{
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 y = " << (tabPoint->Value(i)/*->Point(j)*/).Y() << endl;
- o << " Pole z = " << (tabPoint->Value(i)/*->Point(j)*/).Z() << endl;
+ o << " Pole x = " << (tabPoint->Value(i)/*->Point(j)*/).X() << std::endl;
+ o << " Pole y = " << (tabPoint->Value(i)/*->Point(j)*/).Y() << std::endl;
+ o << " Pole z = " << (tabPoint->Value(i)/*->Point(j)*/).Z() << std::endl;
}
}
{
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 y = " << (tabPoint2d->Value(i)/*->Point2d(j)*/).Y() << endl;
+ o << " Pole x = " << (tabPoint2d->Value(i)/*->Point2d(j)*/).X() << std::endl;
+ o << " Pole y = " << (tabPoint2d->Value(i)/*->Point2d(j)*/).Y() << std::endl;
}
}
}
TColgp_Array1OfPnt tabP(1, mynbP3d);
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++) {
if (nbP3d != 0 && nbP2d != 0) LineTool::Value(Line, i, tabP, tabP2d);
else if (nbP2d != 0) LineTool::Value(Line, i, tabP2d);
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++) {
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++) {
P12d = tabP2d(j);
- cout <<P12d.X()<<" "<<P12d.Y()<<endl;
+ std::cout <<P12d.X()<<" "<<P12d.Y()<<std::endl;
}
}
if (ScalProd < MinScalProd)
{
#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
LoopFound = Standard_True;
break;
if (ScalProd < MinScalProd)
{
#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
LoopFound = Standard_True;
break;
#ifdef OCCT_DEBUG
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
AppParCurves_MultiCurve mySCU(mydegremin+1);
void Approx_Curve3d::Dump(Standard_OStream& o) const
{
- o << "******* Dump of ApproxCurve *******" << endl;
- o << "*******Degree " << Curve()->Degree() << endl;
- o << "*******NbSegments " << Curve()->NbKnots() - 1 << endl;
- o << "*******Error " << MaxError() << endl;
+ o << "******* Dump of ApproxCurve *******" << std::endl;
+ o << "*******Degree " << Curve()->Degree() << std::endl;
+ o << "*******NbSegments " << Curve()->NbKnots() - 1 << std::endl;
+ o << "*******Error " << MaxError() << std::endl;
}
#ifdef OCCT_DEBUG_CHRONO
ResultChron(chr_total, t_total);
- cout<<" total reparametrization time = "<<t_total<<endl;
- cout<<"initialization time = "<<t_init<<endl;
- cout<<"approximation time = "<<t_approx<<endl;
- cout<<"total time for uparam computation = "<<t_uparam<<endl;
- cout<<"number uparam calles = "<<uparam_count<<endl;
+ std::cout<<" total reparametrization time = "<<t_total<<std::endl;
+ std::cout<<"initialization time = "<<t_init<<std::endl;
+ std::cout<<"approximation time = "<<t_approx<<std::endl;
+ std::cout<<"total time for uparam computation = "<<t_uparam<<std::endl;
+ std::cout<<"number uparam calles = "<<uparam_count<<std::endl;
#endif
}
#ifdef OCCT_DEBUG_CHRONO
ResultChron(chr_total, t_total);
- cout<<" total reparametrization time = "<<t_total<<endl;
- cout<<"initialization time = "<<t_init<<endl;
- cout<<"approximation time = "<<t_approx<<endl;
- cout<<"total time for uparam computation = "<<t_uparam<<endl;
- cout<<"number uparam calles = "<<uparam_count<<endl;
+ std::cout<<" total reparametrization time = "<<t_total<<std::endl;
+ std::cout<<"initialization time = "<<t_init<<std::endl;
+ std::cout<<"approximation time = "<<t_approx<<std::endl;
+ std::cout<<"total time for uparam computation = "<<t_uparam<<std::endl;
+ std::cout<<"number uparam calles = "<<uparam_count<<std::endl;
#endif
}
#ifdef OCCT_DEBUG_CHRONO
ResultChron(chr_total, t_total);
- cout<<" total reparametrization time = "<<t_total<<endl;
- cout<<"initialization time = "<<t_init<<endl;
- cout<<"approximation time = "<<t_approx<<endl;
- cout<<"total time for uparam computation = "<<t_uparam<<endl;
- cout<<"number uparam calles = "<<uparam_count<<endl;
+ std::cout<<" total reparametrization time = "<<t_total<<std::endl;
+ std::cout<<"initialization time = "<<t_init<<std::endl;
+ std::cout<<"approximation time = "<<t_approx<<std::endl;
+ std::cout<<"total time for uparam computation = "<<t_uparam<<std::endl;
+ std::cout<<"number uparam calles = "<<uparam_count<<std::endl;
#endif
}
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)
- o << "myMaxError2d1 = " << myMaxError2d1 << endl;
+ o << "myMaxError2d1 = " << myMaxError2d1 << std::endl;
if (myCase==3)
- o << "myMaxError2d2 = " << myMaxError2d2 << endl;
- o << "myMaxError3d = " << myMaxError3d << endl;
+ o << "myMaxError2d2 = " << myMaxError2d2 << std::endl;
+ o << "myMaxError3d = " << myMaxError3d << std::endl;
}
//=======================================================================
TolW = Tol / (4.*Max_dS_dw);
#ifdef OCCT_DEBUG
- cout << "TolV = " << TolV << endl;
- cout << "TolW = " << TolW << endl;
+ std::cout << "TolV = " << TolV << std::endl;
+ std::cout << "TolW = " << TolW << std::endl;
#endif
}
TColgp_Array1OfPnt2d Poles2d(1, nbpoles);
for (i = 1; i <= nbcu; i++) {
- cout << " Curve No. " << i << endl;
+ std::cout << " Curve No. " << i << std::endl;
if (MC.Dimension(i) == 3) {
MC.Curve(i, Poles);
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 {
MC.Curve(i, Poles2d);
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;
}
}
}
{
//Projector
#ifdef OCCT_DEBUG
- cout << "Projection not done" << endl;
+ std::cout << "Projection not done" << std::endl;
#endif
}
}
// If not already SameP and tangent to mill, abandon.
mySameParameter = Standard_False;
#ifdef OCCT_DEBUG
- cout<<"SameParameter problem : zero tangent to extremities"<<endl;
+ std::cout<<"SameParameter problem : zero tangent to extremities"<<std::endl;
#endif
return;
}
}
else {
#ifdef OCCT_DEBUG
- cout << "Projection not done" << endl;
+ std::cout << "Projection not done" << std::endl;
#endif
}
}
if (Precision::IsInfinite(algtol)) {
mySameParameter = Standard_False;
#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
return;
}
}
else {
#ifdef OCCT_DEBUG
- cout << "Projection not done" << endl;
+ std::cout << "Projection not done" << std::endl;
#endif
}
}
void Approx_SweepApproximation::Dump(Standard_OStream& o) const
{
- o << "Dump of SweepApproximation" << endl;
+ o << "Dump of SweepApproximation" << std::endl;
if (done) {
- o << "Error 3d = " << MaxErrorOnSurf() << endl;
+ o << "Error 3d = " << MaxErrorOnSurf() << std::endl;
if (Num2DSS>0) {
o << "Error 2d = ";
for (Standard_Integer ii=1; ii<=Num2DSS; 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;
}
}
#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)
{
- cout << i << " " << aCurv(i) << endl;
+ std::cout << i << " " << aCurv(i) << std::endl;
}
#endif
#if defined(APPROXINT_KNOTTOOLS_DEBUG)
{
- cout << "Feature indices new: " << endl;
+ std::cout << "Feature indices new: " << std::endl;
i;
for(i = theInds.Lower(); i <= theInds.Upper(); ++i)
{
- cout << i << " : " << theInds(i) << endl;
+ std::cout << i << " : " << theInds(i) << std::endl;
}
}
#endif
ComputeKnotInds(aCoords, aDim, thePars, aKnots);
#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)
{
- cout << i << " : " << aKnots(i) << endl;
+ std::cout << i << " : " << aKnots(i) << std::endl;
}
#endif
FilterKnots(aKnots, theMinNbPnts, theKnots);
#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)
{
- cout << i << " : " << theKnots(i) << endl;
+ std::cout << i << " : " << theKnots(i) << std::endl;
}
#endif
#include <math_FunctionSetRoot.hxx>
#include <Precision.hxx>
-#define Debug(expr) cout<<" expr :"<<expr;
+#define Debug(expr) std::cout<<" expr :"<<expr;
#define MySurf1 MyIntersectionOn2S.Function().AuxillarSurface1()
#define MySurf2 MyIntersectionOn2S.Function().AuxillarSurface2()
//
const BOPDS_MapOfPair& aMPK=aDS.Interferences();
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- using namespace std;
- vector <BOPTest_Interf> aVec;
- vector <BOPTest_Interf>::iterator aIt;
+ std::vector <BOPTest_Interf> aVec;
+ std::vector <BOPTest_Interf>::iterator aIt;
BOPTest_Interf aBInterf;
//
aItMPK.Initialize(aMPK);
aVec.push_back(aBInterf);
}
//
- sort( aVec.begin(), aVec.end(), less<BOPTest_Interf>());
+ sort( aVec.begin(), aVec.end(), std::less<BOPTest_Interf>());
//
iCnt=0;
for (aIt=aVec.begin(); aIt!=aVec.end(); aIt++) {
aDN1, aDBF, theContext, aProjPL, aDt3D);
if (!bIsComputed) {
#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
}
//
aDBF2, theContext, aProjPL, aDt3D);
if (!bIsComputed) {
#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
}
//Angle
}
myBuilderCanWork = (esp || tede) ;
#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
if (!myBuilderCanWork) return;
Vertex2.Append(Ex.Current()); nbv2++;
}
- //-- cout<<"Solids1: "<<nbs1<<" Faces1: "<<nbf1<<" Edges1:"<<nbe1<<" Vtx1:"<<nbv1<<endl;
- //-- cout<<"Solids2: "<<nbs2<<" Faces2: "<<nbf2<<" Edges2:"<<nbe2<<" Vtx2:"<<nbv2<<endl;
+ //-- std::cout<<"Solids1: "<<nbs1<<" Faces1: "<<nbf1<<" Edges1:"<<nbe1<<" Vtx1:"<<nbv1<<std::endl;
+ //-- std::cout<<"Solids2: "<<nbs2<<" Faces2: "<<nbf2<<" Edges2:"<<nbe2<<" Vtx2:"<<nbv2<<std::endl;
//==
// Standard_Boolean Correct = Standard_True;
if( (nbs1 && nbs2==0 && St1==TopAbs_OUT && St2==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();
return;
}
if( (nbs1 && nbs2==0 && St1==TopAbs_OUT && St2==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();
return;
}
if( (nbs1>0 && nbs2>0)
&& (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();
return;
}
if (!VB[0].IsSame(VB[1])) {
#ifdef OCCT_DEBUG_ALGO
if (AffichLoop)
- cout <<"Two different vertices on the closing vertex"<<endl;
+ std::cout <<"Two different vertices on the closing vertex"<<std::endl;
#endif
}
else {
#ifdef OCCT_DEBUG_ALGO
if (AffichLoop) {
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
#ifdef OCCT_DEBUG_ALGO
if (AffichLoop) {
- cout <<"NewLoop"<<endl;
+ std::cout <<"NewLoop"<<std::endl;
NbLoops++;
#ifdef DRAW
sprintf(name,"FLoop_%d",NbLoops);
#ifdef DRAW
if (AffichLoop) {
- cout <<"NewLoop"<<endl;
+ std::cout <<"NewLoop"<<std::endl;
Standard_Integer NbEdges = 1;
TopTools_MapOfShape Done;
for (Standard_Integer iV = 1; iV <= MVE.Extent(); iV++) {
}
#ifdef OCCT_DEBUG_ALGO
else {
- cout <<"BRepAlgo_Loop: Open Wire"<<endl;
+ std::cout <<"BRepAlgo_Loop: Open Wire"<<std::endl;
if (AffichLoop)
- cout << "OpenWire is : NW_"<<NbLoops<<"_"<<NbWires<<endl;
+ std::cout << "OpenWire is : NW_"<<NbLoops<<"_"<<NbWires<<std::endl;
}
#endif
#ifdef DRAW
for(k = 1; k <= Projector.NbCurves(); k++){
if(Projector.IsSinglePnt(k, P2d)){
#ifdef OCCT_DEBUG
- cout << "Projection of edge "<<i<<" on face "<<j;
- cout << " is punctual"<<endl<<endl;
+ std::cout << "Projection of edge "<<i<<" on face "<<j;
+ std::cout << " is punctual"<<std::endl<<std::endl;
#endif
Projector.GetSurface()->D0(P2d.X(), P2d.Y(), P);
prj = BRepLib_MakeVertex(P).Shape();
/**************************************************************/
if (Projector.IsUIso(k, UIso)) {
#ifdef OCCT_DEBUG
- cout << "Projection of edge "<<i<<" on face "<<j;
- cout << " is U-isoparametric"<<endl<<endl;
+ std::cout << "Projection of edge "<<i<<" on face "<<j;
+ std::cout << " is U-isoparametric"<<std::endl<<std::endl;
#endif
Projector.D0(Udeb, Pdeb);
Projector.D0(Ufin, Pfin);
}
else if (Projector.IsVIso(k, VIso)) {
#ifdef OCCT_DEBUG
- cout << "Projection of edge "<<i<<" on face "<<j;
- cout << " is V-isoparametric"<<endl<<endl;
+ std::cout << "Projection of edge "<<i<<" on face "<<j;
+ std::cout << " is V-isoparametric"<<std::endl<<std::endl;
#endif
Projector.D0(Udeb, Pdeb);
Projector.D0(Ufin, Pfin);
ResultChron(chr_approx,t_approx);
approx_count++;
- cout<<"Approximation.IsDone = "<<appr.IsDone()<<endl;
+ std::cout<<"Approximation.IsDone = "<<appr.IsDone()<<std::endl;
if(!Only2d)
- cout<<"MaxError3d = "<<appr.MaxError3d()<<endl<<endl;
+ std::cout<<"MaxError3d = "<<appr.MaxError3d()<<std::endl<<std::endl;
if(!Only3d) {
- cout<<"MaxError2dU = "<<appr.MaxError2dU()<<endl;
- cout<<"MaxError2dV = "<<appr.MaxError2dV()<<endl<<endl;
+ std::cout<<"MaxError2dU = "<<appr.MaxError2dU()<<std::endl;
+ std::cout<<"MaxError2dV = "<<appr.MaxError2dV()<<std::endl<<std::endl;
}
#endif
}
if (Degenerated) {
#ifdef OCCT_DEBUG
- cout << "Projection of edge "<<i<<" on face "<<j;
- cout << " is degenerated "<<endl<<endl;
+ std::cout << "Projection of edge "<<i<<" on face "<<j;
+ std::cout << " is degenerated "<<std::endl<<std::endl;
#endif
TopoDS_Vertex VV;
BB.MakeVertex(VV);
}
else {
#ifdef OCCT_DEBUG
- cout << " BooleanOperations : no solution " << endl;
+ std::cout << " BooleanOperations : no solution " << std::endl;
#endif
BRepTopAdaptor_FClass2d classifier(TopoDS::Face(Faces->Value(j)),
#ifdef OCCT_DEBUG_CHRONO
ResultChron(chr_total,t_total);
- cout<<"Build - Total time : "<<t_total<<" includes:" <<endl;
- cout<<"- Projection : "<<t_init<<endl;
- cout<<" -- Initial point search : "<<t_init_point<<endl;
- cout<<" -- DichoBound search : "<<t_dicho_bound<<endl;
- cout<<"- Approximation : "<<t_approx<<endl;
- cout<<"- Boolean operation : "<<t_booltool<<endl;
- cout<<"- Rest of time : "<<t_total-(t_init + t_approx + t_booltool )<<endl<<endl;
+ std::cout<<"Build - Total time : "<<t_total<<" includes:" <<std::endl;
+ std::cout<<"- Projection : "<<t_init<<std::endl;
+ std::cout<<" -- Initial point search : "<<t_init_point<<std::endl;
+ std::cout<<" -- DichoBound search : "<<t_dicho_bound<<std::endl;
+ std::cout<<"- Approximation : "<<t_approx<<std::endl;
+ std::cout<<"- Boolean operation : "<<t_booltool<<std::endl;
+ std::cout<<"- Rest of time : "<<t_total-(t_init + t_approx + t_booltool )<<std::endl<<std::endl;
if (init_count != 0)
t_init /= init_count;
if (init_point_count != 0)
if (booltool_count != 0)
t_booltool /= booltool_count;
- cout<<"Unitary average time : "<<endl;
- cout<<"- Projection : "<<t_init<<endl;
- cout<<" -- Initial point search: "<<t_init_point<<endl;
- cout<<" -- DichoBound search : "<<t_dicho_bound<<endl;
- cout<<"- Approximation : "<<t_approx<<endl;
- cout<<"- Boolean operation :"<<t_booltool<<endl;
- cout<<endl<<"Number of initial point computations is "<<init_point_count<<endl<<endl;
+ std::cout<<"Unitary average time : "<<std::endl;
+ std::cout<<"- Projection : "<<t_init<<std::endl;
+ std::cout<<" -- Initial point search: "<<t_init_point<<std::endl;
+ std::cout<<" -- DichoBound search : "<<t_dicho_bound<<std::endl;
+ std::cout<<"- Approximation : "<<t_approx<<std::endl;
+ std::cout<<"- Boolean operation :"<<t_booltool<<std::endl;
+ std::cout<<std::endl<<"Number of initial point computations is "<<init_point_count<<std::endl<<std::endl;
#endif
}
if (NbSub == 0)
{
#ifdef OCCT_DEBUG
- cout << "No subhape in shape!" << endl;
+ std::cout << "No subhape in shape!" << std::endl;
#endif
SS = TopoDS_Shape();
}
if (!rsnld.IsDone()) {
# ifdef BREPBLEND_DEB
- cout << "AppFunc : RNLD Not done en t = " << Param << endl;
+ std::cout << "AppFunc : RNLD Not done en t = " << Param << std::endl;
# endif
return Standard_False;
}
// (4) Insertion of the point if the calculation seems long.
if ((!Trouve)&&(rsnld.NbIterations()>3)) {
#ifdef OCCT_DEBUG
- cout << "Evaluation in t = " << Param << "given" << endl;
- rsnld.Dump(cout);
+ std::cout << "Evaluation in t = " << Param << "given" << std::endl;
+ rsnld.Dump(std::cout);
#endif
myLine->InsertBefore(Index+1, Pnt);
}
Standard_Real param2 = BP2.Parameter();
Standard_Real scal = 1./ (param1 - param2);
- cout<<endl;
- cout<<"control of derivatives at point : "<<param1<<endl;
+ std::cout<<std::endl;
+ std::cout<<"control of derivatives at point : "<<param1<<std::endl;
for(i = 1; i <= hp; i++){
- cout<<endl;
- cout<<"point : "<<i<<endl;
- cout<<"dx calculated : "<<TDP1(i).X()<<endl;
- cout<<"dx estimated : "<<scal*(TP1(i).X()-TP2(i).X())<<endl;
- cout<<"dy calculated : "<<TDP1(i).Y()<<endl;
- cout<<"dy estimated : "<<scal*(TP1(i).Y()-TP2(i).Y())<<endl;
- cout<<"dz calculated : "<<TDP1(i).Z()<<endl;
- cout<<"dz estimated : "<<scal*(TP1(i).Z()-TP2(i).Z())<<endl;
- cout<<"dw calculated : "<<TDW1(i)<<endl;
- cout<<"dw estimated : "<<scal*(TW1(i)-TW2(i))<<endl;
+ std::cout<<std::endl;
+ std::cout<<"point : "<<i<<std::endl;
+ std::cout<<"dx calculated : "<<TDP1(i).X()<<std::endl;
+ std::cout<<"dx estimated : "<<scal*(TP1(i).X()-TP2(i).X())<<std::endl;
+ std::cout<<"dy calculated : "<<TDP1(i).Y()<<std::endl;
+ std::cout<<"dy estimated : "<<scal*(TP1(i).Y()-TP2(i).Y())<<std::endl;
+ std::cout<<"dz calculated : "<<TDP1(i).Z()<<std::endl;
+ std::cout<<"dz estimated : "<<scal*(TP1(i).Z()-TP2(i).Z())<<std::endl;
+ std::cout<<"dw calculated : "<<TDW1(i)<<std::endl;
+ std::cout<<"dw estimated : "<<scal*(TW1(i)-TW2(i))<<std::endl;
}
for(i = 1; i <= hp2d; i++){
- cout<<endl;
- cout<<"point 2d : "<<i<<endl;
- cout<<"dx calculated : "<<TDP2d1(i).X()<<endl;
- cout<<"dx estimated : "<<scal*(TP2d1(i).X()-TP2d2(i).X())<<endl;
- cout<<"dy calculated : "<<TDP2d1(i).Y()<<endl;
- cout<<"dy estimated : "<<scal*(TP2d1(i).Y()-TP2d2(i).Y())<<endl;
+ std::cout<<std::endl;
+ std::cout<<"point 2d : "<<i<<std::endl;
+ std::cout<<"dx calculated : "<<TDP2d1(i).X()<<std::endl;
+ std::cout<<"dx estimated : "<<scal*(TP2d1(i).X()-TP2d2(i).X())<<std::endl;
+ std::cout<<"dy calculated : "<<TDP2d1(i).Y()<<std::endl;
+ std::cout<<"dy estimated : "<<scal*(TP2d1(i).Y()-TP2d2(i).Y())<<std::endl;
}
}
#endif
else{
// reframing failed. Leave with PointsConfondus
#ifdef OCCT_DEBUG
- cout<<"reframing failed"<<endl;
+ std::cout<<"reframing failed"<<std::endl;
#endif
State = Blend_SamePoints;
}
#ifdef OCCT_DEBUG
if (line->NbPoints()>=2) {
// 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
}
{
// Stop
#ifdef OCCT_DEBUG
- cout << " Mixed points in the processing" << endl;
+ std::cout << " Mixed points in the processing" << std::endl;
#endif
Extrst1.SetValue(previousP.PointOnC1(),
previousP.ParameterOnC1(),
rsnld.Perform(Finv, Solinv, infb, supb);
if (!rsnld.IsDone()) {
#ifdef OCCT_DEBUG
- cout << "RSNLD not done "<< endl << endl;
+ std::cout << "RSNLD not done "<< std::endl << std::endl;
#endif
return Standard_False;
}
rsnld.Perform(Finv, Solinv, infb, supb);
if (!rsnld.IsDone()) {
#ifdef OCCT_DEBUG
- cout << "RSNLD not done "<< endl << endl;
+ std::cout << "RSNLD not done "<< std::endl << std::endl;
#endif
return Standard_False;
}
rsnld.Perform(FinvP, Solinv, infb, supb);
if (!rsnld.IsDone()) {
#ifdef OCCT_DEBUG
- cout << "RSNLD not done "<< endl << endl;
+ std::cout << "RSNLD not done "<< std::endl << std::endl;
#endif
return Standard_False;
}
rsnld.Perform(FinvP, Solinv, infb, supb);
if (!rsnld.IsDone()) {
#ifdef OCCT_DEBUG
- cout << "RSNLD not done "<< endl << endl;
+ std::cout << "RSNLD not done "<< std::endl << std::endl;
#endif
return Standard_False;
}
if (norm < Eps) {
norm = 1; // Not enough, but it is not necessary to stop
#ifdef OCCT_DEBUG
- cout << " SurfRstConstRad : Singular Surface " << endl;
+ std::cout << " SurfRstConstRad : Singular Surface " << std::endl;
#endif
}
if (norm < Eps) {
norm = 1; // Not enough, but it is not necessary to stop
#ifdef OCCT_DEBUG
- cout << " SurfRstEvolRad : Surface single " << endl;
+ std::cout << " SurfRstEvolRad : Surface single " << std::endl;
#endif
}
Standard_Real param2 = BP2.Parameter();
Standard_Real scal = 1./(param1-param2);
- cout<<endl;
- cout<<"control derivatives at point : "<<param1<<endl;
+ std::cout<<std::endl;
+ std::cout<<"control derivatives at point : "<<param1<<std::endl;
for(i = 1; i <= hp; i++){
- cout<<endl;
- cout<<"point : "<<i<<endl;
- cout<<"dx calculated : "<<TDP1(i).X()<<endl;
- cout<<"dx estimated : "<<scal*(TP1(i).X()-TP2(i).X())<<endl;
- cout<<"dy calculated : "<<TDP1(i).Y()<<endl;
- cout<<"dy estimated : "<<scal*(TP1(i).Y()-TP2(i).Y())<<endl;
- cout<<"dz calculated : "<<TDP1(i).Z()<<endl;
- cout<<"dz estimated : "<<scal*(TP1(i).Z()-TP2(i).Z())<<endl;
- cout<<"dw calculated : "<<TDW1(i)<<endl;
- cout<<"dw estimated : "<<scal*(TW1(i)-TW2(i))<<endl;
+ std::cout<<std::endl;
+ std::cout<<"point : "<<i<<std::endl;
+ std::cout<<"dx calculated : "<<TDP1(i).X()<<std::endl;
+ std::cout<<"dx estimated : "<<scal*(TP1(i).X()-TP2(i).X())<<std::endl;
+ std::cout<<"dy calculated : "<<TDP1(i).Y()<<std::endl;
+ std::cout<<"dy estimated : "<<scal*(TP1(i).Y()-TP2(i).Y())<<std::endl;
+ std::cout<<"dz calculated : "<<TDP1(i).Z()<<std::endl;
+ std::cout<<"dz estimated : "<<scal*(TP1(i).Z()-TP2(i).Z())<<std::endl;
+ std::cout<<"dw calculated : "<<TDW1(i)<<std::endl;
+ std::cout<<"dw estimated : "<<scal*(TW1(i)-TW2(i))<<std::endl;
}
for(i = 1; i <= hp2d; i++){
- cout<<endl;
- cout<<"point 2d : "<<i<<endl;
- cout<<"dx calculated : "<<TDP2d1(i).X()<<endl;
- cout<<"dx estimated : "<<scal*(TP2d1(i).X()-TP2d2(i).X())<<endl;
- cout<<"dy calculated : "<<TDP2d1(i).Y()<<endl;
- cout<<"dy estimated : "<<scal*(TP2d1(i).Y()-TP2d2(i).Y())<<endl;
+ std::cout<<std::endl;
+ std::cout<<"point 2d : "<<i<<std::endl;
+ std::cout<<"dx calculated : "<<TDP2d1(i).X()<<std::endl;
+ std::cout<<"dx estimated : "<<scal*(TP2d1(i).X()-TP2d2(i).X())<<std::endl;
+ std::cout<<"dy calculated : "<<TDP2d1(i).Y()<<std::endl;
+ std::cout<<"dy estimated : "<<scal*(TP2d1(i).Y()-TP2d2(i).Y())<<std::endl;
}
}
#endif
else{
// Failed reframing. Leave with PointsConfondus
#ifdef OCCT_DEBUG
- cout<<"SurfRstLineBuilder : failed reframing"<<endl;
+ std::cout<<"SurfRstLineBuilder : failed reframing"<<std::endl;
#endif
State = Blend_SamePoints;
}
if (line->NbPoints()>=2) {
// Indicate that one stops during the processing
#ifdef OCCT_DEBUG
- cout<<"SurfRstLineBuilder : No advancement in the processing"<<endl;
+ std::cout<<"SurfRstLineBuilder : No advancement in the processing"<<std::endl;
#endif
}
}
{
// Stop
#ifdef OCCT_DEBUG
- cout << "SurfRstLineBuilder Points mixed in the processing" << endl;
+ std::cout << "SurfRstLineBuilder Points mixed in the processing" << std::endl;
#endif
previousP.ParametersOnS(U,V);
Exts.SetValue(previousP.PointOnS(),U,V,
if (!rsnld.IsDone()) {
#ifdef OCCT_DEBUG
- cout << "SurfRstLineBuilder : RSNLD not done "<< endl << endl;
+ std::cout << "SurfRstLineBuilder : RSNLD not done "<< std::endl << std::endl;
#endif
}
else {
if (!aRsnld.IsDone()) {
#ifdef OCCT_DEBUG
- cout << "SurfRstLineBuilder : RSNLD not done "<< endl << endl;
+ std::cout << "SurfRstLineBuilder : RSNLD not done "<< std::endl << std::endl;
#endif
}
else {
rsnld.Perform(Finv,Solinv,infb,supb);
if (!rsnld.IsDone()) {
#ifdef OCCT_DEBUG
- cout << "SurfRstLineBuilder :RSNLD not done "<< endl;
+ std::cout << "SurfRstLineBuilder :RSNLD not done "<< std::endl;
#endif
return Standard_False;
}
rsnld.Perform(FinvP,Solinv,infb,supb);
if (!rsnld.IsDone()) {
#ifdef OCCT_DEBUG
- cout << "SurfRstLineBuilder :RSNLD not done "<< endl;
+ std::cout << "SurfRstLineBuilder :RSNLD not done "<< std::endl;
#endif
return Standard_False;
}
{
SetStatus(FS_Exception);
#ifdef OCCT_DEBUG
- //Standard_Failure::Caught()->Print(cout);
+ //Standard_Failure::Caught()->Print(std::cout);
#endif
return;
}
}
catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Exception in BRepBuilderAPI_Sewing::SameRange: ";
- anException.Print(cout); cout << endl;
+ std::cout << "Exception in BRepBuilderAPI_Sewing::SameRange: ";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
}
}
catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Exception in BRepBuilderAPI_Sewing::SameParameter: ";
- anException.Print(cout); cout << endl;
+ std::cout << "Exception in BRepBuilderAPI_Sewing::SameParameter: ";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
}
if (myAnalysis)
{
#ifdef OCCT_DEBUG
- cout << "Begin face analysis..." << endl;
+ std::cout << "Begin face analysis..." << std::endl;
chr_local.Reset();
chr_local.Start();
#endif
#ifdef OCCT_DEBUG
chr_local.Stop();
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
}
{
#ifdef OCCT_DEBUG
- cout << "Begin vertices assembling..." << endl;
+ std::cout << "Begin vertices assembling..." << std::endl;
chr_local.Reset();
chr_local.Start();
#endif
#ifdef OCCT_DEBUG
chr_local.Stop();
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
if (myCutting)
{
#ifdef OCCT_DEBUG
- cout << "Begin cutting..." << endl;
+ std::cout << "Begin cutting..." << std::endl;
chr_local.Reset();
chr_local.Start();
#endif
#ifdef OCCT_DEBUG
chr_local.Stop();
chr_local.Show(t_cutting);
- cout << "Cutting finished after " << t_cutting << " s" << endl;
+ std::cout << "Cutting finished after " << t_cutting << " s" << std::endl;
#endif
}
#ifdef OCCT_DEBUG
- cout << "Begin merging..." << endl;
+ std::cout << "Begin merging..." << std::endl;
chr_local.Reset();
chr_local.Start();
#endif
#ifdef OCCT_DEBUG
chr_local.Stop();
chr_local.Show(t_merging);
- cout << "Merging finished after " << t_merging << " s" << endl;
+ std::cout << "Merging finished after " << t_merging << " s" << std::endl;
#endif
}
else
{
#ifdef OCCT_DEBUG
- cout << "Creating sewed shape..." << endl;
+ std::cout << "Creating sewed shape..." << std::endl;
#endif
// examine the multiple edges if any and process sameparameter for edges if necessary
EdgeProcessing (thePI);
return;
}
#ifdef OCCT_DEBUG
- cout << "Sewed shape created" << endl;
+ std::cout << "Sewed shape created" << std::endl;
#endif
}
#ifdef OCCT_DEBUG
chr_total.Stop();
chr_total.Show(t_total);
- cout << "Sewing finished!" << endl;
- cout << " analysis time : " << t_analysis << " s" << endl;
- cout << " assembling time : " << t_assembling << " s" << endl;
- cout << " cutting time : " << t_cutting << " s" << endl;
- cout << " merging time : " << t_merging << " s" << endl;
- cout << "Total time : " << t_total << " s" << endl;
+ std::cout << "Sewing finished!" << std::endl;
+ std::cout << " analysis time : " << t_analysis << " s" << std::endl;
+ std::cout << " assembling time : " << t_assembling << " s" << std::endl;
+ std::cout << " cutting time : " << t_cutting << " s" << std::endl;
+ std::cout << " merging time : " << t_merging << " s" << std::endl;
+ std::cout << "Total time : " << t_total << " s" << std::endl;
#endif
}
mapVertices.Add(V2);
}
}
- cout << " " << endl;
- cout << " Informations " << endl;
- cout << " ===========================================================" << endl;
- cout << " " << endl;
- cout << " Number of input shapes : " << myOldShapes.Extent() << endl;
- cout << " Number of actual shapes : " << myNbShapes << endl;
- cout << " Number of Bounds : " << NbBounds << endl;
- cout << " Number of Sections : " << NbSections << endl;
- cout << " Number of Edges : " << mapEdges.Extent() << endl;
- cout << " Number of Vertices : " << myNbVertices << endl;
- cout << " Number of Nodes : " << mapVertices.Extent() << endl;
- cout << " Number of Free Edges : " << myFreeEdges.Extent() << endl;
- cout << " Number of Contigous Edges : " << myContigousEdges.Extent() << endl;
- cout << " Number of Multiple Edges : " << myMultipleEdges.Extent() << endl;
- cout << " Number of Degenerated Edges : " << myDegenerated.Extent() << endl;
- cout << " ===========================================================" << endl;
- cout << " " << endl;
+ std::cout << " " << std::endl;
+ std::cout << " Informations " << std::endl;
+ std::cout << " ===========================================================" << std::endl;
+ std::cout << " " << std::endl;
+ std::cout << " Number of input shapes : " << myOldShapes.Extent() << std::endl;
+ std::cout << " Number of actual shapes : " << myNbShapes << std::endl;
+ std::cout << " Number of Bounds : " << NbBounds << std::endl;
+ std::cout << " Number of Sections : " << NbSections << std::endl;
+ std::cout << " Number of Edges : " << mapEdges.Extent() << std::endl;
+ std::cout << " Number of Vertices : " << myNbVertices << std::endl;
+ std::cout << " Number of Nodes : " << mapVertices.Extent() << std::endl;
+ std::cout << " Number of Free Edges : " << myFreeEdges.Extent() << std::endl;
+ std::cout << " Number of Contigous Edges : " << myContigousEdges.Extent() << std::endl;
+ std::cout << " Number of Multiple Edges : " << myMultipleEdges.Extent() << std::endl;
+ std::cout << " Number of Degenerated Edges : " << myDegenerated.Extent() << std::endl;
+ std::cout << " ===========================================================" << std::endl;
+ std::cout << " " << std::endl;
}
//=======================================================================
Handle(Geom_Curve) c3d = BRep_Tool::Curve(edge,first,last);
if (c3d.IsNull()) {
#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
}
else {
}
catch (Standard_Failure) {
#ifdef OCCT_DEBUG
- cout << "Warning: Possibly small edge can be sewed: ";
- Standard_Failure::Caught()->Print(cout); cout << endl;
+ std::cout << "Warning: Possibly small edge can be sewed: ";
+ Standard_Failure::Caught()->Print(std::cout); std::cout << std::endl;
#endif
}*/
}
// Replace small edge
if (isSmall) {
#ifdef OCCT_DEBUG
- cout << "Warning: Small edge made degenerated by FaceAnalysis" << endl;
+ std::cout << "Warning: Small edge made degenerated by FaceAnalysis" << std::endl;
#endif
nbSmall++;
// Create new degenerated edge
// Remove small face
if (nbSmall == nbEdges) {
#ifdef OCCT_DEBUG
- cout << "Warning: Small face removed by FaceAnalysis" << endl;
+ std::cout << "Warning: Small face removed by FaceAnalysis" << std::endl;
#endif
myLittleFace.Add(face);
myReShape->Remove(face);
}
Standard_Integer nbNodes = NodeVertices.Extent();
#ifdef OCCT_DEBUG
- cout << "Glueing " << nbNodes << " nodes..." << endl;
+ std::cout << "Glueing " << nbNodes << " nodes..." << std::endl;
#endif
// Merge nearest nodes
TopTools_IndexedDataMapOfShapeShape NodeNearestNode;
// Glue vertices
if (nbVert) {
#ifdef OCCT_DEBUG
- cout << "Assemble " << nbVert << " vertices on faces..." << endl;
+ std::cout << "Assemble " << nbVert << " vertices on faces..." << std::endl;
#endif
while (GlueVertices(myVertexNode,myNodeSections,myBoundFaces,myTolerance, thePI));
}
aPS.Next();
if (nbVertFree) {
#ifdef OCCT_DEBUG
- cout << "Assemble " << nbVertFree << " vertices on floating edges..." << endl;
+ std::cout << "Assemble " << nbVertFree << " vertices on floating edges..." << std::endl;
#endif
while (GlueVertices(myVertexNodeFree,myNodeSections,myBoundFaces,myTolerance, thePI));
}
}
}
#ifdef OCCT_DEBUG
- cout << "From " << nbBounds << " bounds " << myBoundSections.Extent()
- << " were cut into " << mySectionBound.Extent() << " sections" << endl;
+ std::cout << "From " << nbBounds << " bounds " << myBoundSections.Extent()
+ << " were cut into " << mySectionBound.Extent() << " sections" << std::endl;
#endif
}
}
catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Exception in BRepBuilderAPI_Sewing::ProjectPointsOnCurve: ";
- anException.Print(cout); cout << endl;
+ std::cout << "Exception in BRepBuilderAPI_Sewing::ProjectPointsOnCurve: ";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
worktol = MinTolerance();
//}
/*catch (Standard_Failure) {
#ifdef OCCT_DEBUG
- cout << "Exception in CreateSections: segment [" << par1 << "," << par2 << "]: ";
- Standard_Failure::Caught()->Print(cout); cout << endl;
+ std::cout << "Exception in CreateSections: segment [" << par1 << "," << par2 << "]: ";
+ Standard_Failure::Caught()->Print(std::cout); std::cout << std::endl;
#endif
Handle(Geom2d_TrimmedCurve) c2dT = new Geom2d_TrimmedCurve(c2dNew,Max(first2d,par1),Min(par2,last2d));
c2dNew = c2dT;
}
catch (Standard_Failure const&) {
#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
continue;
}
}
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout<<"BRepCheck_Analyzer : ";
- anException.Print(cout);
- cout<<endl;
+ std::cout<<"BRepCheck_Analyzer : ";
+ anException.Print(std::cout);
+ std::cout<<std::endl;
#endif
(void)anException;
if ( ! myMap(S).IsNull() )
}
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout<<"BRepCheck_Analyzer : ";
- anException.Print(cout);
- cout<<endl;
+ std::cout<<"BRepCheck_Analyzer : ";
+ anException.Print(std::cout);
+ std::cout<<std::endl;
#endif
(void)anException;
if ( ! myMap(S).IsNull() )
}
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout<<"BRepCheck_Analyzer : ";
- anException.Print(cout);
- cout<<endl;
+ std::cout<<"BRepCheck_Analyzer : ";
+ anException.Print(std::cout);
+ std::cout<<std::endl;
#endif
(void)anException;
if ( ! myMap(S).IsNull() )
}
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout<<"BRepCheck_Analyzer : ";
- anException.Print(cout);
- cout<<endl;
+ std::cout<<"BRepCheck_Analyzer : ";
+ anException.Print(std::cout);
+ std::cout<<std::endl;
#endif
(void)anException;
if ( ! myMap(S).IsNull() )
}
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout<<"BRepCheck_Analyzer : ";
- anException.Print(cout);
- cout<<endl;
+ std::cout<<"BRepCheck_Analyzer : ";
+ anException.Print(std::cout);
+ std::cout<<std::endl;
#endif
(void)anException;
if ( ! myMap(S).IsNull() )
}
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout<<"BRepCheck_Analyzer : ";
- anException.Print(cout);
- cout<<endl;
+ std::cout<<"BRepCheck_Analyzer : ";
+ anException.Print(std::cout);
+ std::cout<<std::endl;
#endif
(void)anException;
if ( ! myMap(S).IsNull() )
}
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout<<"BRepCheck_Analyzer : ";
- anException.Print(cout);
- cout<<endl;
+ std::cout<<"BRepCheck_Analyzer : ";
+ anException.Print(std::cout);
+ std::cout<<std::endl;
#endif
(void)anException;
if ( ! myMap(S).IsNull() )
const Standard_Real Error,
const Standard_Real Tol)
{
- cout << " **** probleme de SameParameter au point :" << endl;
- cout << " " << problematic_point.Coord(1) << " "
- << problematic_point.Coord(2) << " " << problematic_point.Coord(3) << endl ;
- cout << " Erreur detectee :" << Error << " Tolerance :" << Tol << endl;
+ std::cout << " **** probleme de SameParameter au point :" << std::endl;
+ std::cout << " " << problematic_point.Coord(1) << " "
+ << problematic_point.Coord(2) << " " << problematic_point.Coord(3) << std::endl ;
+ std::cout << " Erreur detectee :" << Error << " Tolerance :" << Tol << std::endl;
}
#else
void PrintProblematicPoint(const gp_Pnt&,
if (BRepCheck_Trace(0) > 1) {
TopTools_DataMapIteratorOfDataMapOfShapeInteger itt(MapOfShapeOrientation);
Standard_Integer upper = MapOfShapeOrientation.NbBuckets();
- cout << "La map shape Orientation :" << endl;
+ std::cout << "La map shape Orientation :" << std::endl;
for (; itt.More(); itt.Next()) {
PrintShape(itt.Key(), upper);
}
- cout << endl;
+ std::cout << std::endl;
}
#endif
#ifdef OCCT_DEBUG
if (BRepCheck_Trace(0) > 3) {
- cout << "Fref : " ;
+ std::cout << "Fref : " ;
PrintShape(Fref, MapOfShapeOrientation.NbBuckets());
}
#endif
#ifdef OCCT_DEBUG
if (BRepCheck_Trace(0) > 3) {
- cout << " Fcur : " ;
+ std::cout << " Fcur : " ;
PrintShape(Fcur, MapOfShapeOrientation.NbBuckets());
}
#endif
if (BRepCheck_Trace(0) > 3) {
orf = (TopAbs_Orientation)MapOfShapeOrientation.Find(Fcur);
Fcur.Orientation(orf);
- cout << " Error : this face has been already examined " << endl;
- cout << " Imposible to return it ";
+ std::cout << " Error : this face has been already examined " << std::endl;
+ std::cout << " Imposible to return it ";
PrintShape(Fcur, MapOfShapeOrientation.NbBuckets());
}
#endif
if (BRepCheck_Trace(0) > 3) {
orf = (TopAbs_Orientation)MapOfShapeOrientation.Find(Fcur);
Fcur.Orientation(orf);
- cout << " Resulting Fcur is returned : " ;
+ std::cout << " Resulting Fcur is returned : " ;
PrintShape(Fcur, MapOfShapeOrientation.NbBuckets());
}
#endif
return Standard_True;
#ifdef OCCT_DEBUG
- cout << endl;
- cout << "--------Function IsDistanceIn3DTolerance(...)----------" << endl;
- cout << "--- BRepCheck Wire: Closed3d -> Error" << endl;
- cout << "--- Dist (" << Dist << ") > Tol3d (" << aTol3d << ")" << endl;
- cout << "Pnt1(" << thePnt_f.X() << "; " << thePnt_f.Y() << "; " << thePnt_f.Z() << ")" << endl;
- cout << "Pnt2(" << thePnt_l.X() << "; " << thePnt_l.Y() << "; " << thePnt_l.Z() << ")" << endl;
- cout << "------------------------------------------------------" << endl;
+ std::cout << std::endl;
+ std::cout << "--------Function IsDistanceIn3DTolerance(...)----------" << std::endl;
+ std::cout << "--- BRepCheck Wire: Closed3d -> Error" << std::endl;
+ std::cout << "--- Dist (" << Dist << ") > Tol3d (" << aTol3d << ")" << std::endl;
+ std::cout << "Pnt1(" << thePnt_f.X() << "; " << thePnt_f.Y() << "; " << thePnt_f.Z() << ")" << std::endl;
+ std::cout << "Pnt2(" << thePnt_l.X() << "; " << thePnt_l.Y() << "; " << thePnt_l.Z() << ")" << std::endl;
+ std::cout << "------------------------------------------------------" << std::endl;
#endif
return Standard_False;
#ifdef OCCT_DEBUG
if(PrintWarnings)
{
- cout << endl;
- cout << "--------Function IsDistanceIn2DTolerance(...)----------" << endl;
- cout << "--- BRepCheck Wire: Not closed in 2D" << endl;
- cout << "*****************************************************" << endl;
- cout << "*dumin = " << dumin << "; dumax = " << dumax << endl;
- cout << "* dvmin = " << dvmin << "; dvmax = " << dvmax << endl;
- cout << "* (dumin > dumax) or (dvmin > dvmax)." << endl;
- cout << "*****************************************************" << endl;
- cout << endl;
- cout << "UFirst = " << aFaceSurface.FirstUParameter();
- cout << "; ULast = " << aFaceSurface.LastUParameter() << endl;
- cout << "VFirst = " << aFaceSurface.FirstVParameter();
- cout << "; VLast = " << aFaceSurface.LastVParameter() << endl;
+ std::cout << std::endl;
+ std::cout << "--------Function IsDistanceIn2DTolerance(...)----------" << std::endl;
+ std::cout << "--- BRepCheck Wire: Not closed in 2D" << std::endl;
+ std::cout << "*****************************************************" << std::endl;
+ std::cout << "*dumin = " << dumin << "; dumax = " << dumax << std::endl;
+ std::cout << "* dvmin = " << dvmin << "; dvmax = " << dvmax << std::endl;
+ std::cout << "* (dumin > dumax) or (dvmin > dvmax)." << std::endl;
+ std::cout << "*****************************************************" << std::endl;
+ std::cout << std::endl;
+ std::cout << "UFirst = " << aFaceSurface.FirstUParameter();
+ std::cout << "; ULast = " << aFaceSurface.LastUParameter() << std::endl;
+ std::cout << "VFirst = " << aFaceSurface.FirstVParameter();
+ std::cout << "; VLast = " << aFaceSurface.LastVParameter() << std::endl;
}
#endif
dumax = aFaceSurface.UResolution(aTol3d);
#ifdef OCCT_DEBUG
if(PrintWarnings)
{
- cout << "aTol3d = " << aTol3d <<"; URes = " << dumax << "; VRes = " << dvmax << endl;
- cout << "thePnt(" << thePnt.X() << "; " << thePnt.Y() << ")" << endl;
- cout << "thePntRef(" << thePntRef.X() << "; " << thePntRef.Y() << ")" << endl;
+ std::cout << "aTol3d = " << aTol3d <<"; URes = " << dumax << "; VRes = " << dvmax << std::endl;
+ std::cout << "thePnt(" << thePnt.X() << "; " << thePnt.Y() << ")" << std::endl;
+ std::cout << "thePntRef(" << thePntRef.X() << "; " << thePntRef.Y() << ")" << std::endl;
}
#endif
#ifdef OCCT_DEBUG
if((aTol2d <= 0.0) && (PrintWarnings))
{
- cout<<"BRepCheck_Wire : UResolution and VResolution = 0.0 (Face too small ?)"<<endl;
- cout.flush();
+ std::cout<<"BRepCheck_Wire : UResolution and VResolution = 0.0 (Face too small ?)"<<std::endl;
+ std::cout.flush();
}
#endif
#ifdef OCCT_DEBUG
if(PrintWarnings)
{
- cout << endl;
- cout << "--------Function IsDistanceIn2DTolerance(...)----------" << endl;
- cout << "--- BRepCheck Wire: Not closed in 2d" << endl;
- cout << "*****************************************************" << endl;
- cout << "* Dist = " << Dist << " > Tol2d = " << aTol2d << endl;
- cout << "*****************************************************" << endl;
- cout << "aTol3d = " << aTol3d <<"; URes = " << dumax << "; VRes = " << dvmax << endl;
- cout << "thePnt(" << thePnt.X() << "; " << thePnt.Y() << ")" << endl;
- cout << "thePntRef(" << thePntRef.X() << "; " << thePntRef.Y() << ")" << endl;
+ std::cout << std::endl;
+ std::cout << "--------Function IsDistanceIn2DTolerance(...)----------" << std::endl;
+ std::cout << "--- BRepCheck Wire: Not closed in 2d" << std::endl;
+ std::cout << "*****************************************************" << std::endl;
+ std::cout << "* Dist = " << Dist << " > Tol2d = " << aTol2d << std::endl;
+ std::cout << "*****************************************************" << std::endl;
+ std::cout << "aTol3d = " << aTol3d <<"; URes = " << dumax << "; VRes = " << dvmax << std::endl;
+ std::cout << "thePnt(" << thePnt.X() << "; " << thePnt.Y() << ")" << std::endl;
+ std::cout << "thePntRef(" << thePntRef.X() << "; " << thePntRef.Y() << ")" << std::endl;
}
#endif
delete [] tabDom;
#ifdef OCCT_DEBUG
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
return(BRepCheck_SelfIntersectingWire);
}
else {
delete [] tabDom;
#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
if(tabCur(j).IsNull()) {
return(BRepCheck_NoCurveOnSurface);
//-- the point of intersection with vertex (if exists)
if (localok == Standard_False && !CommonVertices.IsEmpty()) {
#ifdef OCCT_DEBUG
- cout << "\n------------------------------------------------------\n" <<endl;
- cout << "\n--- BRepCheck Wire: AutoIntersection Phase1 -> Erreur \n" <<endl;
+ std::cout << "\n------------------------------------------------------\n" <<std::endl;
+ std::cout << "\n--- BRepCheck Wire: AutoIntersection Phase1 -> Erreur \n" <<std::endl;
#endif
Standard_Real distauvtxleplusproche,VParaOnEdge1,VParaOnEdge2;
}
#ifdef OCCT_DEBUG
static Standard_Integer numpoint1=0;
- cout<<"point p"<<++numpoint1<<" "<<P3d.X()<<" "<<P3d.Y()<<" "<<P3d.Z()<<endl;
- cout.flush();
+ std::cout<<"point p"<<++numpoint1<<" "<<P3d.X()<<" "<<P3d.Y()<<" "<<P3d.Z()<<std::endl;
+ std::cout.flush();
#endif
delete [] tabDom;
return(BRepCheck_SelfIntersectingWire);
}
#ifdef OCCT_DEBUG
static Standard_Integer numpoint1=0;
- cout<<"point p"<<++numpoint1<<" "<<P3d.X()<<" "<<P3d.Y()<<" "<<P3d.Z()<<endl;
- cout.flush();
+ std::cout<<"point p"<<++numpoint1<<" "<<P3d.X()<<" "<<P3d.Y()<<" "<<P3d.Z()<<std::endl;
+ std::cout.flush();
#endif
delete [] tabDom;
return(BRepCheck_SelfIntersectingWire);
if (tran == IntCurveSurface_Tangent)
{
#ifdef OCCT_DEBUG
- cout<<"*Problem ds BRepClass3d_SClassifier.cxx"<<endl;
+ std::cout<<"*Problem ds BRepClass3d_SClassifier.cxx"<<std::endl;
#endif
continue; // ignore this point
}
_Par=0.0;
myReject=Standard_True;
#ifdef OCCT_DEBUG
- cout<<"\nWARNING : BRepClass3d_SolidExplorer.cxx (Solid without face)"<<endl;
+ std::cout<<"\nWARNING : BRepClass3d_SolidExplorer.cxx (Solid without face)"<<std::endl;
#endif
return 0;
}
#ifdef OCCT_DEBUG
if(myReject) {
- cout<<"\nWARNING : BRepClass3d_SolidExplorer.cxx (Solid without face)"<<endl;
+ std::cout<<"\nWARNING : BRepClass3d_SolidExplorer.cxx (Solid without face)"<<std::endl;
}
#endif
Standard_Integer i;
Standard_Real r1,r2;
- o<< "the distance value is : " << Value()<<endl;
- o<< "the number of solutions is :"<<NbSolution()<<endl;
- o<<endl;
+ o<< "the distance value is : " << Value()<<std::endl;
+ o<< "the number of solutions is :"<<NbSolution()<<std::endl;
+ o<<std::endl;
for (i=1;i<=NbSolution();i++)
{
- o<<"solution number "<<i<<": "<< 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 second shape is "<<Standard_Integer( SupportTypeShape2(i))<< endl;
- o<< "the coordinates of the point on the first shape are: "<<endl;
- o<<"X=" <<PointOnShape1(i).X()<<" Y=" <<PointOnShape1(i).Y()<<" Z="<<PointOnShape1(i).Z()<<endl;
- o<< "the coordinates of the point on the second shape are: "<<endl;
- o<<"X="<< PointOnShape2(i).X()<< " Y="<<PointOnShape2(i).Y()<<" Z="<< PointOnShape2(i).Z()<<endl;
+ o<<"solution number "<<i<<": "<< std::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))<< std::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()<<std::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()<<std::endl;
switch (SupportTypeShape1(i))
{
break;
case BRepExtrema_IsOnEdge:
ParOnEdgeS1(i,r1);
- o << "parameter on the first edge : t= " << r1 << endl;
+ o << "parameter on the first edge : t= " << r1 << std::endl;
break;
case BRepExtrema_IsInFace:
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;
}
switch (SupportTypeShape2(i))
break;
case BRepExtrema_IsOnEdge:
ParOnEdgeS2(i,r1);
- o << "parameter on the second edge : t=" << r1 << endl;
+ o << "parameter on the second edge : t=" << r1 << std::endl;
break;
case BRepExtrema_IsInFace:
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;
}
- o<<endl;
+ o<<std::endl;
}
}
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT();
- if (trc) cout << "BRepFeat_Form::GlobalPerform ()" << endl;
+ if (trc) std::cout << "BRepFeat_Form::GlobalPerform ()" << std::endl;
#endif
if (!mySbOK || !myGSOK || !mySFOK || !mySUOK || !myGFOK ||
!mySkOK || !myPSOK) {
#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
myStatusError = BRepFeat_NotInitialized;
NotDone();
if(myJustFeat && !myFuse) {
#ifdef OCCT_DEBUG
- if (trc) cout << " Invalid option : myJustFeat + Cut" << endl;
+ if (trc) std::cout << " Invalid option : myJustFeat + Cut" << std::endl;
#endif
myStatusError = BRepFeat_InvOption;
NotDone();
if (!exp.More()) {
FromInShape = Standard_False;
#ifdef OCCT_DEBUG
- if (trc) cout << " From not in Shape" << endl;
+ if (trc) std::cout << " From not in Shape" << std::endl;
#endif
break;
}
if (!exp.More()) {
UntilInShape = Standard_False;
#ifdef OCCT_DEBUG
- if (trc) cout << " Until not in Shape" << endl;
+ if (trc) std::cout << " Until not in Shape" << std::endl;
#endif
break;
}
if (theOpe == 1) {
#ifdef OCCT_DEBUG
- if (trc) cout << " Gluer" << endl;
+ if (trc) std::cout << " Gluer" << std::endl;
#endif
Standard_Boolean Collage = Standard_True;
// cut by FFrom && FUntil
if (theOpe == 1) {
#ifdef OCCT_DEBUG
- if (trc) cout << " still Gluer" << endl;
+ if (trc) std::cout << " still Gluer" << std::endl;
#endif
theGlue.Perform();
if (theGlue.IsDone()) {
myNewEdges = theGlue.Edges();
myTgtEdges = theGlue.TgtEdges();
#ifdef OCCT_DEBUG
- if (trc) cout << " Gluer result" << endl;
+ if (trc) std::cout << " Gluer result" << std::endl;
#endif
Done();
myShape = theGlue.ResultingShape();
if (theOpe == 2 && ChangeOpe && myJustGluer) {
#ifdef OCCT_DEBUG
- if (trc) cout << " Gluer failure" << endl;
+ if (trc) std::cout << " Gluer failure" << std::endl;
#endif
myJustGluer = Standard_False;
theOpe = 0;
if (theOpe == 2) {
#ifdef OCCT_DEBUG
- if (trc) cout << " No Gluer" << endl;
+ if (trc) std::cout << " No Gluer" << std::endl;
#endif
TopoDS_Shape theGShape = myGShape;
if (ChangeOpe) {
#ifdef OCCT_DEBUG
- if (trc) cout << " Passage to topological operations" << endl;
+ if (trc) std::cout << " Passage to topological operations" << std::endl;
#endif
}
// Case when no part of the tool is preserved
if (!KeepParts) {
#ifdef OCCT_DEBUG
- if (trc) cout << " No parts of tool kept" << endl;
+ if (trc) std::cout << " No parts of tool kept" << std::endl;
#endif
myStatusError = BRepFeat_NoParts;
NotDone();
TopExp_Explorer exp(shapefu, TopAbs_FACE);
if (!exp.More()) { // no faces... It is necessary to return an error
#ifdef OCCT_DEBUG
- if (trc) cout << " BRepFeat_Form::TransformShapeFU : invalid Shape" << endl;
+ if (trc) std::cout << " BRepFeat_Form::TransformShapeFU : invalid Shape" << std::endl;
#endif
return Trf;
}
}
#ifdef OCCT_DEBUG
if (trc) {
- if (Trf && (flag == 0)) cout << " TransformShapeFU From" << endl;
- if (Trf && (flag == 1)) cout << " TransformShapeFU Until" << endl;
+ if (Trf && (flag == 0)) std::cout << " TransformShapeFU From" << std::endl;
+ if (Trf && (flag == 1)) std::cout << " TransformShapeFU Until" << std::endl;
}
#endif
return Trf;
myBotFace = theCylinder.BottomFace();
myValidate = Standard_False;
-// BRepTools::Dump(theTool,cout);
+// BRepTools::Dump(theTool,std::cout);
Standard_Boolean Fuse = Standard_False;
//
AddTool(theTool);
myTopFace = theCylinder.TopFace();
myBotFace.Nullify();
- // BRepTools::Dump(theTool,cout);
+ // BRepTools::Dump(theTool,std::cout);
Standard_Boolean Fuse = Standard_False;
//myBuilder.Perform(theTool,theList,Fuse);
//myBuilder.BuildPartsOfTool();
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT();
- if (trc) cout << "BRepFeat_MakeDPrism::Init" << endl;
+ if (trc) std::cout << "BRepFeat_MakeDPrism::Init" << std::endl;
#endif
mySkface = Skface;
SketchFaceValid();
myAngle = Angle;
#ifdef OCCT_DEBUG
if (trc) {
- if (myJustFeat) cout << " Just Feature" << endl;
- if (myFuse) cout << " Fuse" << endl;
- if (!myFuse) cout << " Cut" << endl;
- if (!myModify) cout << " Modify = 0" << endl;
- // cout <<" Angle = " << myAngle << endl;
+ if (myJustFeat) std::cout << " Just Feature" << std::endl;
+ if (myFuse) std::cout << " Fuse" << std::endl;
+ if (!myFuse) std::cout << " Cut" << std::endl;
+ if (!myModify) std::cout << " Modify = 0" << std::endl;
+ // std::cout <<" Angle = " << myAngle << std::endl;
}
#endif
}
{
#ifdef OCCT_DEBUG
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
TopExp_Explorer exp;
for (exp.Init(mySbase,TopAbs_FACE);exp.More();exp.Next()) {
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT();
- if (trc) cout << "BRepFeat_MakeDPrism::Perform(Height)" << endl;
+ if (trc) std::cout << "BRepFeat_MakeDPrism::Perform(Height)" << std::endl;
#endif
mySFrom.Nullify();
ShapeFromValid();
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT();
- if (trc) cout << "BRepFeat_MakeDPrism::Perform(Until)" << endl;
+ if (trc) std::cout << "BRepFeat_MakeDPrism::Perform(Until)" << std::endl;
#endif
if (Until.IsNull()) {
throw Standard_ConstructionError();
{
#ifdef OCCT_DEBUG
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
if (From.IsNull() || Until.IsNull()) {
throw Standard_ConstructionError();
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT();
- if (trc) cout << "BRepFeat_MakeDPrism::PerformUntilEnd()" << endl;
+ if (trc) std::cout << "BRepFeat_MakeDPrism::PerformUntilEnd()" << std::endl;
#endif
myPerfSelection = BRepFeat_SelectionSh;
PerfSelectionValid();
{
#ifdef OCCT_DEBUG
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
if (Until.IsNull()) {
throw Standard_ConstructionError();
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT();
- if (trc) cout << "BRepFeat_MakeDPrism::PerformThruAll()" << endl;
+ if (trc) std::cout << "BRepFeat_MakeDPrism::PerformThruAll()" << std::endl;
#endif
mySUntil.Nullify();
ShapeUntilValid();
{
#ifdef OCCT_DEBUG
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
if (Until.IsNull()) {
Perform(Height);
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT();
- if (trc) cout << "BRepFeat_MakeDPrism::BossEdges (integer)" << endl;
+ if (trc) std::cout << "BRepFeat_MakeDPrism::BossEdges (integer)" << std::endl;
#endif
TopTools_ListOfShape theLastShape;
theLastShape.Clear();
// Standard_Real par = Max( Max( abs(c[1] - c[0]), abs(c[3] - c[2]) ), abs(c[5] - c[4]) );
//#endif
#ifdef OCCT_DEBUG
- cout << "Height = > " << par << endl;
+ std::cout << "Height = > " << par << std::endl;
#endif
return par;
}
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT();
- if (trc) cout << "BRepFeat_MakeLinearForm::Init" << endl;
+ if (trc) std::cout << "BRepFeat_MakeLinearForm::Init" << std::endl;
#endif
Standard_Boolean RevolRib = Standard_False;
Done();
myFuse = Standard_True;
#ifdef OCCT_DEBUG
if (trc) {
- if (myFuse) cout << " Fuse" << endl;
- if (!myFuse) cout << " Cut" << endl;
+ if (myFuse) std::cout << " Fuse" << std::endl;
+ if (!myFuse) std::cout << " Cut" << std::endl;
}
#endif
Standard_Real ang = myDir1.Angle(myDir);
if(ang != M_PI) {
#ifdef OCCT_DEBUG
- if (trc) cout << " Directions must be opposite" << endl;
+ if (trc) std::cout << " Directions must be opposite" << std::endl;
#endif
myStatusError = BRepFeat_BadDirect;
NotDone();
// Rib is centre in the middle of translation
#ifdef OCCT_DEBUG
- if (trc) cout << " Rib is centre" << endl;
+ if (trc) std::cout << " Rib is centre" << std::endl;
#endif
const gp_Vec& DirTranslation = (Direc + Direc1) * 0.5;
gp_Trsf T;
if(!Data) {
#ifdef OCCT_DEBUG
- if (trc) cout << " No Extreme faces" << endl;
+ if (trc) std::cout << " No Extreme faces" << std::endl;
#endif
myStatusError = BRepFeat_NoExtFace;
NotDone();
if(Sliding) { // sliding
#ifdef OCCT_DEBUG
- if (trc) cout << " Sliding" << endl;
+ if (trc) std::cout << " Sliding" << std::endl;
#endif
Sliding = Standard_False;
Handle(Geom_Surface) s = BRep_Tool::Surface(FirstFace);
// ---case of sliding : construction of the profile face
if(Sliding) {
#ifdef OCCT_DEBUG
- if (trc) cout << " still Sliding" << endl;
+ if (trc) std::cout << " still Sliding" << std::endl;
#endif
TopoDS_Face Prof;
Standard_Boolean ProfileOK;
#ifdef OCCT_DEBUG
if (trc)
{
- cout << "Not computable" << endl;
- cout << "Face profile not computable" << endl;
+ std::cout << "Not computable" << std::endl;
+ std::cout << "Face profile not computable" << std::endl;
}
#endif
myStatusError = BRepFeat_NoFaceProf;
// Control if there is everything required to have the material at the proper side
if(falseside == Standard_False) {
#ifdef OCCT_DEBUG
- cout << "Verify plane and wire orientation" << endl;
+ std::cout << "Verify plane and wire orientation" << std::endl;
#endif
myStatusError = BRepFeat_FalseSide;
NotDone();
if(!Sliding) {
#ifdef OCCT_DEBUG
if (trc) {
- if (Modify) cout << " Sliding failure" << endl;
- cout << " no Sliding" << endl;
+ if (Modify) std::cout << " Sliding failure" << std::endl;
+ std::cout << " no Sliding" << std::endl;
}
#endif
TopoDS_Face Prof;
#ifdef OCCT_DEBUG
if (trc)
{
- cout << "Not computable" << endl;
- cout << " Face profile not computable" << endl;
+ std::cout << "Not computable" << std::endl;
+ std::cout << " Face profile not computable" << std::endl;
}
#endif
myStatusError = BRepFeat_NoFaceProf;
// Control if there is everything required to have the material at the proper side
if(falseside == Standard_False) {
#ifdef OCCT_DEBUG
- cout << "Verify plane and wire orientation" << endl;
+ std::cout << "Verify plane and wire orientation" << std::endl;
#endif
myStatusError = BRepFeat_FalseSide;
NotDone();
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT();
- if (trc) cout << "BRepFeat_MakeLinearForm::Add" << endl;
+ if (trc) std::cout << "BRepFeat_MakeLinearForm::Add" << std::endl;
#endif
if(mySlface.IsEmpty()) {
TopExp_Explorer exp;
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT();
- if (trc) cout << "BRepFeat_MakeLinearForm::Perform()" << endl;
+ if (trc) std::cout << "BRepFeat_MakeLinearForm::Perform()" << std::endl;
#endif
if(mySbase.IsNull() || mySkface.IsNull() || myPbase.IsNull()) {
#ifdef OCCT_DEBUG
- if (trc) cout << " Fields not initialized" << endl;
+ if (trc) std::cout << " Fields not initialized" << std::endl;
#endif
myStatusError = BRepFeat_NotInitialized;
NotDone();
const TopoDS_Edge& e = TopoDS::Edge(exx.Current());
if(!myMap.IsBound(e)) {
#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
myStatusError = BRepFeat_IncSlidFace;
NotDone();
#ifdef OCCT_DEBUG
if (trc)
{
- cout << "The case is not computable" << endl;
- cout << " Glued faces not empty and Until shape not null" << endl;
+ std::cout << "The case is not computable" << std::endl;
+ std::cout << " Glued faces not empty and Until shape not null" << std::endl;
}
#endif
myStatusError = BRepFeat_InvShape;
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEATRIB();
- if (trc) cout << "BRepFeat_MakeLinearForm::Propagate" << endl;
+ if (trc) std::cout << "BRepFeat_MakeLinearForm::Propagate" << std::endl;
#endif
gp_Pnt Firstpoint = Firstpnt;
gp_Pnt Lastpoint = Lastpnt;
const TopTools_ListOfShape& gfac = thePrism.Shapes(it.Value());
if (gfac.Extent() != 1) {
#ifdef OCCT_DEBUG
- cout << "Pb SetGluedFace" << endl;
+ std::cout << "Pb SetGluedFace" << std::endl;
#endif
}
theMap.Bind(gfac.First(),fac);
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT();
- if (trc) cout << "BRepFeat_MakePipe::Init" << endl;
+ if (trc) std::cout << "BRepFeat_MakePipe::Init" << std::endl;
#endif
mySbase = Sbase;
BasisShapeValid();
}
#ifdef OCCT_DEBUG
if (trc) {
- if (myJustFeat) cout << " Just Feature" << endl;
- if (myFuse) cout << " Fuse" << endl;
- if (!myFuse) cout << " Cut" << endl;
- if (!myModify) cout << " Modify = 0" << endl;
+ if (myJustFeat) std::cout << " Just Feature" << std::endl;
+ if (myFuse) std::cout << " Fuse" << std::endl;
+ if (!myFuse) std::cout << " Cut" << std::endl;
+ if (!myModify) std::cout << " Modify = 0" << std::endl;
}
#endif
}
{
#ifdef OCCT_DEBUG
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
TopExp_Explorer exp;
for (exp.Init(mySbase,TopAbs_FACE);exp.More();exp.Next()) {
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT();
- if (trc) cout << "BRepFeat_MakePipe::Perform()" << endl;
+ if (trc) std::cout << "BRepFeat_MakePipe::Perform()" << std::endl;
#endif
mySFrom.Nullify();
ShapeFromValid();
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT();
- if (trc) cout << "BRepFeat_MakePipe::Perform(Until)" << endl;
+ if (trc) std::cout << "BRepFeat_MakePipe::Perform(Until)" << std::endl;
#endif
if (Until.IsNull()) {
throw Standard_ConstructionError();
{
#ifdef OCCT_DEBUG
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
if (From.IsNull() || Until.IsNull()) {
throw Standard_ConstructionError();
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT();
- if (trc) cout << "BRepFeat_MakePrism::Init" << endl;
+ if (trc) std::cout << "BRepFeat_MakePrism::Init" << std::endl;
#endif
mySkface = Skface;
SketchFaceValid();
}
#ifdef OCCT_DEBUG
if (trc) {
- if (myJustFeat) cout << " Just Feature" << endl;
- if (myFuse) cout << " Fuse" << endl;
- if (!myFuse) cout << " Cut" << endl;
- if (!myModify) cout << " Modify = 0" << endl;
+ if (myJustFeat) std::cout << " Just Feature" << std::endl;
+ if (myFuse) std::cout << " Fuse" << std::endl;
+ if (!myFuse) std::cout << " Cut" << std::endl;
+ if (!myModify) std::cout << " Modify = 0" << std::endl;
}
#endif
}
{
#ifdef OCCT_DEBUG
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
TopExp_Explorer exp;
for (exp.Init(mySbase,TopAbs_FACE);exp.More();exp.Next()) {
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT();
- if (trc) cout << "BRepFeat_MakePrism::Perform(Length)" << endl;
+ if (trc) std::cout << "BRepFeat_MakePrism::Perform(Length)" << std::endl;
#endif
mySFrom.Nullify();
ShapeFromValid();
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT();
- if (trc) cout << "BRepFeat_MakePrism::Perform(Until)" << endl;
+ if (trc) std::cout << "BRepFeat_MakePrism::Perform(Until)" << std::endl;
#endif
if (Until.IsNull()) {
throw Standard_ConstructionError();
{
#ifdef OCCT_DEBUG
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
if (From.IsNull() || Until.IsNull()) {
throw Standard_ConstructionError();
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT();
- if (trc) cout << "BRepFeat_MakePrism::PerformUntilEnd()" << endl;
+ if (trc) std::cout << "BRepFeat_MakePrism::PerformUntilEnd()" << std::endl;
#endif
myPerfSelection = BRepFeat_SelectionSh;
PerfSelectionValid();
{
#ifdef OCCT_DEBUG
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
if (Until.IsNull()) {
throw Standard_ConstructionError();
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT();
- if (trc) cout << "BRepFeat_MakePrism::PerformThruAll()" << endl;
+ if (trc) std::cout << "BRepFeat_MakePrism::PerformThruAll()" << std::endl;
#endif
mySUntil.Nullify();
ShapeUntilValid();
{
#ifdef OCCT_DEBUG
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
if (Until.IsNull()) {
Perform(Length);
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT();
- if (trc) cout << "BRepFeat_MakeRevol::Init" << endl;
+ if (trc) std::cout << "BRepFeat_MakeRevol::Init" << std::endl;
#endif
myAxis = Axis;
myPbase = Pbase;
}
#ifdef OCCT_DEBUG
if (trc) {
- if (myJustFeat) cout << " Just Feature" << endl;
- if (myFuse) cout << " Fuse" << endl;
- if (!myFuse) cout << " Cut" << endl;
- if (!myModify) cout << " Modify = 0" << endl;
+ if (myJustFeat) std::cout << " Just Feature" << std::endl;
+ if (myFuse) std::cout << " Fuse" << std::endl;
+ if (!myFuse) std::cout << " Cut" << std::endl;
+ if (!myModify) std::cout << " Modify = 0" << std::endl;
}
#endif
}
{
#ifdef OCCT_DEBUG
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
TopExp_Explorer exp;
for (exp.Init(mySbase,TopAbs_FACE);exp.More();exp.Next()) {
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT();
- if (trc) cout << "BRepFeat_MakeRevol::Perform(Angle)" << endl;
+ if (trc) std::cout << "BRepFeat_MakeRevol::Perform(Angle)" << std::endl;
#endif
mySFrom.Nullify();
ShapeFromValid();
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT();
- if (trc) cout << "BRepFeat_MakeRevol::Perform(Until)" << endl;
+ if (trc) std::cout << "BRepFeat_MakeRevol::Perform(Until)" << std::endl;
#endif
Standard_Real Angle = 0.;
Standard_Boolean TourComplet = Standard_False;
if(!TourComplet) {
Angle = 2.*M_PI- 3*M_PI/180.;
#ifdef OCCT_DEBUG
- if (trc) cout << " No complete Revolution" << endl;
+ if (trc) std::cout << " No complete Revolution" << std::endl;
#endif
}
theRevol.Perform(myPbase, myAxis, Angle);
{
#ifdef OCCT_DEBUG
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
if (From.IsNull() || Until.IsNull()) {
throw Standard_ConstructionError();
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT();
- if (trc) cout << "BRepFeat_MakeRevol::PerformThruAll()" << endl;
+ if (trc) std::cout << "BRepFeat_MakeRevol::PerformThruAll()" << std::endl;
#endif
Perform(2.*M_PI);
}
{
#ifdef OCCT_DEBUG
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
if (Until.IsNull()) {
Perform(Angle);
if (!GluedFaces) {
#ifdef OCCT_DEBUG
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
theMap.Clear();
}
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT();
- if (trc) cout << "BRepFeat_MakeRevolutionForm::Init" << endl;
+ if (trc) std::cout << "BRepFeat_MakeRevolutionForm::Init" << std::endl;
#endif
Standard_Boolean RevolRib = Standard_True;
Done();
GeomAPI_ProjectPointOnCurve proj2(p2, Line);
if(proj1.NbPoints() < 1 || proj2.NbPoints() < 1) {
#ifdef OCCT_DEBUG
- if (trc) cout << " No projection points" << endl;
+ if (trc) std::cout << " No projection points" << std::endl;
#endif
myStatusError = BRepFeat_NoProjPt;
NotDone();
myFuse = Standard_True;
#ifdef OCCT_DEBUG
if (trc) {
- if (myFuse) cout << " Fuse" << endl;
- if (!myFuse) cout << " Cut" << endl;
+ if (myFuse) std::cout << " Fuse" << std::endl;
+ if (!myFuse) std::cout << " Cut" << std::endl;
}
#endif
if(!Data) {
#ifdef OCCT_DEBUG
- if (trc) cout << " No Extreme faces" << endl;
+ if (trc) std::cout << " No Extreme faces" << std::endl;
#endif
myStatusError = BRepFeat_NoExtFace;
NotDone();
if(Sliding) { // sliding
#ifdef OCCT_DEBUG
- if (trc) cout << " Sliding" << endl;
+ if (trc) std::cout << " Sliding" << std::endl;
#endif
Handle(Geom_Surface) s = BRep_Tool::Surface(FirstFace);
if (s->DynamicType() ==
GeomAPI_ProjectPointOnCurve proj(myFirstPnt, Line);
if(proj.NbPoints() < 1) {
#ifdef OCCT_DEBUG
- if (trc) cout << " No First Point projection" << endl;
+ if (trc) std::cout << " No First Point projection" << std::endl;
#endif
myStatusError = BRepFeat_NoProjPt;
NotDone();
GeomAPI_ProjectPointOnCurve proj1(myLastPnt, Line);
if(proj.NbPoints() < 1) {
#ifdef OCCT_DEBUG
- if (trc) cout << " No Last Point projection" << endl;
+ if (trc) std::cout << " No Last Point projection" << std::endl;
#endif
myStatusError = BRepFeat_NoProjPt;
NotDone();
// ---case of sliding : construction of the face profile
if(Sliding) {
#ifdef OCCT_DEBUG
- if (trc) cout << " still Sliding" << endl;
+ if (trc) std::cout << " still Sliding" << std::endl;
#endif
TopoDS_Face Prof;
Standard_Boolean ProfileOK;
#ifdef OCCT_DEBUG
if (trc)
{
- cout << "Not computable" << endl;
- cout << "Face profile not computable" << endl;
+ std::cout << "Not computable" << std::endl;
+ std::cout << "Face profile not computable" << std::endl;
}
#endif
myStatusError = BRepFeat_NoFaceProf;
// Control if there is everything required to have the material at the proper side
if(falseside == Standard_False) {
#ifdef OCCT_DEBUG
- cout << " Verify plane and wire orientation" << endl;
+ std::cout << " Verify plane and wire orientation" << std::endl;
#endif
myStatusError = BRepFeat_FalseSide;
NotDone();
if(!Sliding) {
#ifdef OCCT_DEBUG
if (trc) {
- if (Modify) cout << " Sliding failure" << endl;
- cout << " no Sliding" << endl;
+ if (Modify) std::cout << " Sliding failure" << std::endl;
+ std::cout << " no Sliding" << std::endl;
}
#endif
TopExp_Explorer explo1(BndFace, TopAbs_WIRE);
if(!BRepAlgo::IsValid(NewBndFace)) {
#ifdef OCCT_DEBUG
- cout << "Invalid new bounding face" << endl;
+ std::cout << "Invalid new bounding face" << std::endl;
#endif
myStatusError = BRepFeat_InvShape;
NotDone();
#ifdef OCCT_DEBUG
if (trc)
{
- cout << "Not computable" << endl;
- cout << " Face profile not computable" << endl;
+ std::cout << "Not computable" << std::endl;
+ std::cout << " Face profile not computable" << std::endl;
}
#endif
myStatusError = BRepFeat_NoFaceProf;
// Control if there is everything required to have the material at the proper side
if(falseside == Standard_False) {
#ifdef OCCT_DEBUG
- cout << " Verify plane and wire orientation" << endl;
+ std::cout << " Verify plane and wire orientation" << std::endl;
#endif
myStatusError = BRepFeat_FalseSide;
NotDone();
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT();
- if (trc) cout << "BRepFeat_MakeRevolutionForm::Add" << endl;
+ if (trc) std::cout << "BRepFeat_MakeRevolutionForm::Add" << std::endl;
#endif
if(mySlface.IsEmpty()) {
TopExp_Explorer exp;
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT();
- if (trc) cout << "BRepFeat_MakeRevolutionForm::Perform()" << endl;
+ if (trc) std::cout << "BRepFeat_MakeRevolutionForm::Perform()" << std::endl;
#endif
if(mySbase.IsNull() || mySkface.IsNull() || myPbase.IsNull()) {
#ifdef OCCT_DEBUG
- if (trc) cout << " Fields not initialized" << endl;
+ if (trc) std::cout << " Fields not initialized" << std::endl;
#endif
myStatusError = BRepFeat_NotInitialized;
NotDone();
if(!ASI1.IsDone() || !ASI2.IsDone() ||
ASI1.NbPoints(1) != 1 || ASI2.NbPoints(1) != 1) {
#ifdef OCCT_DEBUG
- if (trc) cout << " Intersection failure" << endl;
+ if (trc) std::cout << " Intersection failure" << std::endl;
#endif
myStatusError = BRepFeat_BadIntersect;
NotDone();
const TopoDS_Edge& e = TopoDS::Edge(exx.Current());
if(!myMap.IsBound(e)) {
#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
myStatusError = BRepFeat_IncSlidFace;
NotDone();
#ifdef OCCT_DEBUG
if (trc)
{
- cout << "The case is not computable" << endl;
- cout << " Glued faces not empty and Until shape not null" << endl;
+ std::cout << "The case is not computable" << std::endl;
+ std::cout << " Glued faces not empty and Until shape not null" << std::endl;
}
#endif
myStatusError = BRepFeat_InvShape;
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEATRIB();
- if (trc) cout << "BRepFeat_MakeRevolutionForm::Propagate" << endl;
+ if (trc) std::cout << "BRepFeat_MakeRevolutionForm::Propagate" << std::endl;
#endif
gp_Pnt Firstpoint = Firstpnt;
gp_Pnt Lastpoint = Lastpnt;
const TopTools_ListOfShape& gfac = thePrism.Shapes(it.Value());
if (gfac.Extent() != 1) {
#ifdef OCCT_DEBUG
- cout << "Pb SetGluedFace" << endl;
+ std::cout << "Pb SetGluedFace" << std::endl;
#endif
}
TopTools_DataMapIteratorOfDataMapOfShapeListOfShape iterm(SlidingMap);
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT();
- if (trc) cout << "BRepFeat_RibSlot::LFPerform()" << endl;
+ if (trc) std::cout << "BRepFeat_RibSlot::LFPerform()" << std::endl;
#endif
if (mySbase.IsNull() || myPbase.IsNull() || mySkface.IsNull()
|| myGShape.IsNull() || myLFMap.IsEmpty()) {
#ifdef OCCT_DEBUG
- cout << "Topological reconstruction is impossible" << endl;
- if (trc) cout << " Fields not initialized" << endl;
+ std::cout << "Topological reconstruction is impossible" << std::endl;
+ if (trc) std::cout << " Fields not initialized" << std::endl;
#endif
myStatusError = BRepFeat_NotInitialized;
NotDone();
(!Collage)) {
theOpe = 2;
#ifdef OCCT_DEBUG
- cout << "Passage to topological operations" << endl;
+ std::cout << "Passage to topological operations" << std::endl;
#endif
}
}
else {
theOpe = 2;
#ifdef OCCT_DEBUG
- cout << "Passage to topologic operation" << endl;
+ std::cout << "Passage to topologic operation" << std::endl;
#endif
}
}
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT();
- if (trc) cout << "BRepFeat_RibSlot::Modified" << endl;
+ if (trc) std::cout << "BRepFeat_RibSlot::Modified" << std::endl;
#endif
if (myMap.IsBound(F)) {
static TopTools_ListOfShape list;
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT();
- if (trc) cout << "BRepFeat_RibSlot::Generated" << endl;
+ if (trc) std::cout << "BRepFeat_RibSlot::Generated" << std::endl;
#endif
if(S.ShapeType() != TopAbs_FACE) {
myGenerated.Clear();
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEATRIB();
- if (trc) cout << "BRepFeat_RibSlot::CheckPoint" << endl;
+ if (trc) std::cout << "BRepFeat_RibSlot::CheckPoint" << std::endl;
#endif
// Vector product : normal to plane X direction Wire
// -> gives the material side
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEATRIB();
- if (trc) cout << "BRepFeat_RibSlot::Normal" << endl;
+ if (trc) std::cout << "BRepFeat_RibSlot::Normal" << std::endl;
#endif
Standard_Real U, V;
gp_Pnt pt;
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT();
- if (trc) cout << "BRepFeat_RibSlot::EdgeExtention" << endl;
+ if (trc) std::cout << "BRepFeat_RibSlot::EdgeExtention" << std::endl;
#endif
Standard_Real f, l;
Handle(Geom_Curve) cu = BRep_Tool::Curve(e, f, l);
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEATRIB();
- if (trc) cout << "BRepFeat_RibSlot::ChoiceOfFaces" << endl;
+ if (trc) std::cout << "BRepFeat_RibSlot::ChoiceOfFaces" << std::endl;
#endif
TopoDS_Face FFF;
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEATRIB();
- if (trc) cout << "BRepFeat_RibSlot::HeightMax" << endl;
+ if (trc) std::cout << "BRepFeat_RibSlot::HeightMax" << std::endl;
#endif
Bnd_Box Box;
BRepBndLib::Add(theSbase,Box);
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT();
- if (trc) cout << "BRepFeat_RibSlot::ExtremeFaces" << endl;
+ if (trc) std::cout << "BRepFeat_RibSlot::ExtremeFaces" << std::endl;
#endif
Standard_Boolean Data = Standard_True;
FirstFace.Nullify();
// ---the wire includes only one edge
if(NumberOfEdges == 1) {
#ifdef OCCT_DEBUG
- if (trc) cout << " One Edge" << endl;
+ if (trc) std::cout << " One Edge" << std::endl;
#endif
exp.ReInit();
Standard_Real f, l;//, f1, l1, temp;
//--- FirstFace or LastFace was not found
#ifdef OCCT_DEBUG
- if (trc) cout << " FirstFace or LastFace null" << endl;
+ if (trc) std::cout << " FirstFace or LastFace null" << std::endl;
#endif
LocOpe_CSIntersector ASI(mySbase);
TColGeom_SequenceOfCurve scur;
}
else {
#ifdef OCCT_DEBUG
- if (trc) cout << " Less than 2 intersection points" << endl;
+ if (trc) std::cout << " Less than 2 intersection points" << std::endl;
#endif
Data = Standard_False;
return Data;
if(FirstFace.IsNull() || LastFace.IsNull()) {
#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
Data = Standard_False;
}
else {
#ifdef OCCT_DEBUG
- if (trc) cout << " FirstFace and LastFace OK" << endl;
+ if (trc) std::cout << " FirstFace and LastFace OK" << std::endl;
#endif
Data = Standard_True;
}
// ---The wire consists of several edges
else {
#ifdef OCCT_DEBUG
- if (trc) cout << " Multiple Edges" << endl;
+ if (trc) std::cout << " Multiple Edges" << std::endl;
#endif
BRepTools_WireExplorer ex(myWire);
for(; ex.More(); ex.Next()) {
}
else {
#ifdef OCCT_DEBUG
- if (trc) cout << " First or Last not OK" << endl;
+ if (trc) std::cout << " First or Last not OK" << std::endl;
#endif
return Standard_False;
}
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEATRIB();
- if (trc) cout << "BRepFeat_RibSlot::PtOnEdgeVertex" << endl;
+ if (trc) std::cout << "BRepFeat_RibSlot::PtOnEdgeVertex" << std::endl;
#endif
Standard_Boolean TestOK;
// PtOnEdge = Standard_False;
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT();
- if (trc) cout << "BRepFeat_RibSlot::SlidingProfile" << endl;
+ if (trc) std::cout << "BRepFeat_RibSlot::SlidingProfile" << std::endl;
#endif
Standard_Boolean ProfileOK = Standard_True;
// --case of sliding : construction of the wire of the profile
if(BndEdge1.IsNull() || BndEdge2.IsNull()) {
#ifdef OCCT_DEBUG
- if (trc) cout << " Null bounding edge" << endl;
+ if (trc) std::cout << " Null bounding edge" << std::endl;
#endif
ProfileOK = Standard_False;
return ProfileOK;
if (!BRepAlgo::IsValid(fac)) {
#ifdef OCCT_DEBUG
- if (trc) cout << " Invalid Face" << endl;
+ if (trc) std::cout << " Invalid Face" << std::endl;
#endif
ProfileOK = Standard_False;
return ProfileOK;
if (!BRepAlgo::IsValid(Prof)) {
#ifdef OCCT_DEBUG
- if (trc) cout << " Invalid Face Profile" << endl;
+ if (trc) std::cout << " Invalid Face Profile" << std::endl;
#endif
ProfileOK = Standard_False;
return ProfileOK;
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT();
- if (trc) cout << "BRepFeat_RibSlot::NoSlidingProfile" << endl;
+ if (trc) std::cout << "BRepFeat_RibSlot::NoSlidingProfile" << std::endl;
#endif
Standard_Boolean ProfileOK = Standard_True;
if(BndEdge1.IsNull() || BndEdge2.IsNull()) {
#ifdef OCCT_DEBUG
- if (trc) cout << " Null bounding edge" << endl;
+ if (trc) std::cout << " Null bounding edge" << std::endl;
#endif
ProfileOK = Standard_False;
return ProfileOK;
if (!BRepAlgo::IsValid(fac)) {
#ifdef OCCT_DEBUG
- if (trc) cout << " Invalid Face" << endl;
+ if (trc) std::cout << " Invalid Face" << std::endl;
#endif
ProfileOK = Standard_False;
return ProfileOK;
if (!BRepAlgo::IsValid(Prof)) {
#ifdef OCCT_DEBUG
- if (trc) cout << " Invalid Face Profile" << endl;
+ if (trc) std::cout << " Invalid Face Profile" << std::endl;
#endif
ProfileOK = Standard_False;
return ProfileOK;
{ BRepFeat_contextCHRONO = b; }
Standard_EXPORT Standard_Boolean BRepFeat_GetcontextCHRONO() {
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;
}
}
#ifdef OCCT_DEBUG
else {
- cout << "BRepFill::SearchOrigine : Echec Distance" << endl;
+ std::cout << "BRepFill::SearchOrigine : Echec Distance" << std::endl;
}
#endif
#ifdef DUMP_ML
i = 1;
- cout << "--Point " << i << endl;
- cout << "P3d: " << P3d.X() << " " << P3d.Y() << " " << P3d.Z() << endl;
- cout << "P2d1;2: " << PF1.X() << " " << PF1.Y() << " ; " << PF2.X() << " " << PF2.Y() << endl;
+ std::cout << "--Point " << i << std::endl;
+ std::cout << "P3d: " << P3d.X() << " " << P3d.Y() << " " << P3d.Z() << std::endl;
+ std::cout << "P2d1;2: " << PF1.X() << " " << PF1.Y() << " ; " << PF2.X() << " " << PF2.Y() << std::endl;
#endif
AppDef_MultiPointConstraint MPC( 1, 2);
ML.Value3dOnF1OnF2(U,P3d,PF1,PF2);
#ifdef DUMP_ML
- cout << "--Point " << i << endl;
- cout << "P3d: " << P3d.X() << " " << P3d.Y() << " " << P3d.Z() << endl;
- cout << "P2d1;2: " << PF1.X() << " " << PF1.Y() << " ; " << PF2.X() << " " << PF2.Y() << endl;
+ std::cout << "--Point " << i << std::endl;
+ std::cout << "P3d: " << P3d.X() << " " << P3d.Y() << " " << P3d.Z() << std::endl;
+ std::cout << "P2d1;2: " << PF1.X() << " " << PF1.Y() << " ; " << PF2.X() << " " << PF2.Y() << std::endl;
#endif
MPC.SetPoint (1, P3d);
MPC.SetPoint2d(2, PF1);
ML.Value3dOnF1OnF2(U2,P3d,PF1,PF2);
#ifdef DUMP_ML
i = NbPoints;
- cout << "--Point " << i << endl;
- cout << "P3d: " << P3d.X() << " " << P3d.Y() << " " << P3d.Z() << endl;
- cout << "P2d1;2: " << PF1.X() << " " << PF1.Y() << " ; " << PF2.X() << " " << PF2.Y() << endl;
+ std::cout << "--Point " << i << std::endl;
+ std::cout << "P3d: " << P3d.X() << " " << P3d.Y() << " " << P3d.Z() << std::endl;
+ std::cout << "P2d1;2: " << PF1.X() << " " << PF1.Y() << " ; " << PF2.X() << " " << PF2.Y() << std::endl;
#endif
MPE.SetPoint (1, P3d);
MPE.SetPoint2d(2, PF1);
if ( NbCurves == 0) {
#ifdef OCCT_DEBUG
- cout << " TrimSurfaceTool : Approx echoue, on met les polygones" << endl;
+ std::cout << " TrimSurfaceTool : Approx echoue, on met les polygones" << std::endl;
#endif
TColStd_Array1OfReal Knots(1,NbPoints);
}
else {
#ifdef OCCT_DEBUG
- cout << "Error in MakeWire" << endl;
+ std::cout << "Error in MakeWire" << std::endl;
#endif
throw Standard_ConstructionError("BRepFill_Draft");
}
}
else {
#ifdef OCCT_DEBUG
- cout << "No Free Borders !" << endl;
+ std::cout << "No Free Borders !" << std::endl;
#endif
throw Standard_ConstructionError("BRepFill_Draft");
}
}
}
#ifdef OCCT_DEBUG
- else cout << "Draft : No assembly !" << endl;
+ else std::cout << "Draft : No assembly !" << std::endl;
#endif
return Ok;
}
#ifdef DRAW
if (AffichEdge) {
- cout << " End Construction of geometric primitives"<<endl;
+ std::cout << " End Construction of geometric primitives"<<std::endl;
}
#endif
#ifdef DRAW
if (AffichEdge) {
- cout << " End of Construction of edges and vertices on bissectrices"<<endl;
+ std::cout << " End of Construction of edges and vertices on bissectrices"<<std::endl;
}
#endif
#ifdef DRAW
if (AffichEdge) {
- cout <<" End Construction of parallel edges "<<endl;
+ std::cout <<" End Construction of parallel edges "<<std::endl;
}
#endif
#ifdef DRAW
if (AffichEdge) {
- cout <<" End of construction of an elementary volevo."<<endl;
+ std::cout <<" End of construction of an elementary volevo."<<std::endl;
char name[100];
sprintf(name,"VEVO_%d",++NbVEVOS);
DBRep::Set(name,myShape);
Standard_Integer NB = TheEdges.Length();
if ( AffichEdge) {
char name[100];
- cout << " TrimFace " << ++NbTRIMFACES;
- cout << " : " << NB << " edges within the restriction" << endl;
+ std::cout << " TrimFace " << ++NbTRIMFACES;
+ std::cout << " : " << NB << " edges within the restriction" << std::endl;
for ( Standard_Integer j = 1; j <= NB; j++) {
sprintf(name,"TRIMEDGE_%d_%d",NbTRIMFACES,j);
DBRep::Set(name,TopoDS::Edge(TheEdges.Value(j)));
{
GeomPlate_MakeApprox Approx( GPlate, myTol3d, myMaxSegments, myMaxDeg, dmax, 0 ); //?????????????
//GeomConvert_ApproxSurface Approx( GPlate, myTol3d, GeomAbs_C1, GeomAbs_C1, myMaxDeg, myMaxDeg, myMaxSegments, 1 );
- //Approx.Dump( cout );
+ //Approx.Dump( std::cout );
Surface = Approx.Surface();
}
#ifdef OCCT_DEBUG
if (N2.Dot(T1) > 1.e-9) {
- cout << "Inprecision in TransformInCompatibleLaw" << endl;
- cout << "--- T1.R(N2) = " << N2.Dot(T1) << endl;
+ std::cout << "Inprecision in TransformInCompatibleLaw" << std::endl;
+ std::cout << "--- T1.R(N2) = " << N2.Dot(T1) << std::endl;
gp_Vec tt;
tt = T1;
tt.Rotate(axe, alpha);
- cout << "--- T1.R(T2) = " << tt.Dot(T1) << endl;
- cout << "--- R(N2).R(T2) = " << N2.Dot(tt) << endl;
+ std::cout << "--- T1.R(T2) = " << tt.Dot(T1) << std::endl;
+ std::cout << "--- R(N2).R(T2) = " << N2.Dot(tt) << std::endl;
}
#endif
Angle = N2.AngleWithRef(N1, T1);
else {
W.Nullify();
#ifdef OCCT_DEBUG
- cout << "BRepFill_LocationLaw::D0 : Attention position out of limits"
- << endl;
+ std::cout << "BRepFill_LocationLaw::D0 : Attention position out of limits"
+ << std::endl;
#endif
}
}
}
else {
#ifdef OCCT_DEBUG
- cout << "MultiLine : D1 = D2 and the Curve is not a circle" << endl;
- cout << " ---> ValueOnFace failed at parameter U = " << U << endl;
+ std::cout << "MultiLine : D1 = D2 and the Curve is not a circle" << std::endl;
+ std::cout << " ---> ValueOnFace failed at parameter U = " << U << std::endl;
#endif
throw Standard_ConstructionError("BRepFill_MultiLine: ValueOnFace");
}
if ( !Intersector.IsDone()) {
#ifdef OCCT_DEBUG
- cout << "Intersector not done" << endl;
- cout << " ---> ValueonFace failed at parameter U = " << U << endl;
+ std::cout << "Intersector not done" << std::endl;
+ std::cout << " ---> ValueonFace failed at parameter U = " << U << std::endl;
#endif
return gp_Pnt2d(0.,0.);
}
}
else {
#ifdef OCCT_DEBUG
- cout << "Intersector done, but no points found" << endl;
- cout << " ---> ValueonFace failed at parameter U = " << U << endl;
+ std::cout << "Intersector done, but no points found" << std::endl;
+ std::cout << " ---> ValueonFace failed at parameter U = " << U << std::endl;
#endif
if (Abs(Dist - PL.Y()) < Abs(Dist - PF.Y()))
VV = TheV.LastParameter();
if(!BadEdges.IsEmpty())
{
// Modification of myWorkSpine;
- //cout << "Modification of myWorkSpine : " << BadEdges.Extent() << endl;
+ //std::cout << "Modification of myWorkSpine : " << BadEdges.Extent() << std::endl;
BRepTools_Substitution aSubst;
TopTools_ListIteratorOfListOfShape it(BadEdges);
TopTools_ListOfShape aL;
Standard_Integer NPnts = Points.Length();
if(NPnts > 2)
{
- //cout << NPnts << " points " << endl;
+ //std::cout << NPnts << " points " << std::endl;
TopoDS_Vertex FV = Vf;
TopoDS_Vertex LV;
TopoDS_Edge newE;
}
else
{
- //cout << " 2 points " << endl;
+ //std::cout << " 2 points " << std::endl;
TopoDS_Edge newE = BRepLib_MakeEdge(Vf, Vl);
aL.Append(newE);
}
}
catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout<<"An exception was caught in BRepFill_OffsetWire::Perform : ";
- anException.Print(cout);
- cout<<endl;
+ std::cout<<"An exception was caught in BRepFill_OffsetWire::Perform : ";
+ anException.Print(std::cout);
+ std::cout<<std::endl;
#endif
(void)anException;
myShape.Nullify();
#ifdef OCCT_DEBUG
#ifdef DRAW
if (AffichEdge) {
- cout << " End Construction of geometric primitives "<<endl;
+ std::cout << " End Construction of geometric primitives "<<std::endl;
}
#endif
#endif
#ifdef OCCT_DEBUG
#ifdef DRAW
if (AffichEdge) {
- cout << " End Construction of vertices on offsets"<<endl;
+ std::cout << " End Construction of vertices on offsets"<<std::endl;
}
#endif
#endif
if (!End) {
if (MVE.FindFromKey(CV).Extent() > 2) {
- //cout <<"vertex on more that 2 edges in a face."<<endl;
+ //std::cout <<"vertex on more that 2 edges in a face."<<std::endl;
}
for ( itl.Initialize(MVE.FindFromKey(CV)); itl.More(); itl.Next()) {
if (itl.Value().IsSame(CE)) {
if (aMap.Contains(SE)) {
- //cout << "Edge is treated second time" << endl;
+ //std::cout << "Edge is treated second time" << std::endl;
continue;
}
if (myDebug) {
gp_Pnt P_Path;
P_Path = adpPath->Value(theParam);
- cout << "Point on Path" << P_Path.X() << ", "
- << P_Path.Y() << ", " << P_Path.Z() << ", " << endl;
+ std::cout << "Point on Path" << P_Path.X() << ", "
+ << P_Path.Y() << ", " << P_Path.Z() << ", " << std::endl;
}
#endif
}
}
-// cout << "new law" << endl;
+// std::cout << "new law" << std::endl;
// Is the law closed by U ?
uclosed = W.Closed();
Standard_True, Standard_False, 20);
#ifdef OCCT_DEBUG
if (!Bof)
- cout << "BRepFill_ShapeLaw::ConcatenedLaw INCOMPLET !!!"
- << endl;
+ std::cout << "BRepFill_ShapeLaw::ConcatenedLaw INCOMPLET !!!"
+ << std::endl;
#endif
}
Composite = Concat.BSplineCurve();
if(sp.IsDone() && !sp.IsSameParameter()) Pcurv = sp.Curve2d();
else if(!sp.IsDone() && !sp.IsSameParameter()){
#ifdef OCCT_DEBUG
- cout<<"echec SameParameter"<<endl;
+ std::cout<<"echec SameParameter"<<std::endl;
#endif
return Standard_False;
}
ResTol = sp.TolReached();
if(ResTol > tolreached ){
#ifdef OCCT_DEBUG
- cout<<"SameParameter : Tolerance not reached!"<<endl;
- cout<<"tol visee : "<<tol3d<<" tol obtained : "<<ResTol<<endl;
+ std::cout<<"SameParameter : Tolerance not reached!"<<std::endl;
+ std::cout<<"tol visee : "<<tol3d<<" tol obtained : "<<ResTol<<std::endl;
#endif
return Standard_False;
}
if (MkF.Error() != BRepLib_FaceDone) {
#ifdef OCCT_DEBUG
BRepLib_FaceError Err = MkF.Error();
- cout << "Planar Face Error :" << Err << endl;
+ std::cout << "Planar Face Error :" << Err << std::endl;
#endif
}
else {
8, 8, 2*NbInt, 0);
if (!App.HasResult()) {
#ifdef OCCT_DEBUG
- cout << "Filling_Approx : Pas de resultat" << endl;
+ std::cout << "Filling_Approx : Pas de resultat" << std::endl;
#endif
return Standard_False;
}
#ifdef OCCT_DEBUG
- cout << "Filling_Approx Error 3d = " <<
- App.MaxError() << endl;
+ std::cout << "Filling_Approx Error 3d = " <<
+ App.MaxError() << std::endl;
#endif
Surf = App.Surface();
Tol3d = App.MaxError();
}
}
#ifdef OCCT_DEBUG
- if (!done) cout << "Substitution of Edge failed" << endl;
+ if (!done) std::cout << "Substitution of Edge failed" << std::endl;
#endif
}
*/
#ifdef OCCT_DEBUG
if (!issame)
- cout<<"Sweep Warning : Edge not SameRange in the limits"<<endl;
+ std::cout<<"Sweep Warning : Edge not SameRange in the limits"<<std::endl;
#endif
}
}
if (Degenerated(isec, ipath)) {
#ifdef OCCT_DEBUG
- cout << "Sweep : Degenerated case" << endl;
+ std::cout << "Sweep : Degenerated case" << std::endl;
#endif
hasdegen = Standard_True;
// Particular construction of edges
if (t1.Angle(t2) < myAngMin) {
#ifdef OCCT_DEBUG
- cout << "BRepFill_Sweep::PerformCorner : This is not a corner !" << endl;
+ std::cout << "BRepFill_Sweep::PerformCorner : This is not a corner !" << std::endl;
#endif
return;
}
else if ((TheTransition == BRepFill_Right) ||
aTrim.HasSection() ) {
#ifdef OCCT_DEBUG
- cout << "Fail of TrimCorner" << endl;
+ std::cout << "Fail of TrimCorner" << std::endl;
#endif
return; // Nothing is touched
}
}
}
#ifdef OCCT_DEBUG
- else cout << "PerformCorner : Unsymmetry of free border" << endl;
+ else std::cout << "PerformCorner : Unsymmetry of free border" << std::endl;
#endif
}
}
(Points2.Length() == 0 && Params.Length() == 0) ) ) {
#ifdef OCCT_DEBUG
- cout << "BRepFill_TrimEdgeTool: incoherent intersection. Try with a greater tolerance" << endl;
+ std::cout << "BRepFill_TrimEdgeTool: incoherent intersection. Try with a greater tolerance" << std::endl;
#endif
Params.Clear();
}
#ifdef OCCT_DEBUG
- if(SeanceDeRattrapage != 0) cout << "SeanceDeRattrapage = " << SeanceDeRattrapage << endl;
+ if(SeanceDeRattrapage != 0) std::cout << "SeanceDeRattrapage = " << SeanceDeRattrapage << std::endl;
if(SeanceDeRattrapage == nn) {
- cout << "BRepFill_TrimEdgeTool: incoherent intersection" << endl;
+ std::cout << "BRepFill_TrimEdgeTool: incoherent intersection" << std::endl;
}
#endif
if(Params.Length() == 0 && Points2.Length() == 1) {
- //cout << "Params.Length() == 0 && Points2.Length() == 1" << endl;
+ //std::cout << "Params.Length() == 0 && Points2.Length() == 1" << std::endl;
Standard_Real dmin, dmax = 0.25*myOffset*myOffset;
Standard_Real tBis = Points2(1).X();
gp_Pnt2d PBis = myBis.Value(tBis);
}
else if(Params.Length() == 1 && Points2.Length() == 0) {
- //cout << "Params.Length() == 1 && Points2.Length() == 0" << endl;
+ //std::cout << "Params.Length() == 1 && Points2.Length() == 0" << std::endl;
Standard_Real dmin, dmax = 0.25*myOffset*myOffset;
Standard_Real tBis = Params(1).X();
gp_Pnt2d PBis = myBis.Value(tBis);
Standard_Integer NbPoints = Params.Length();
if(NbPoints == 1 && Points2.Length() == 1) {
- //cout << "NbPoints == 1 && Points2.Length() == 1" << endl;
+ //std::cout << "NbPoints == 1 && Points2.Length() == 1" << std::endl;
for ( i = 1; i <= NbPoints; i++) {
PSeq = Params(i);
PSeq.SetZ((Points2.Value(i)).Y());
if ( P1xP2x > Tol ) {
#ifdef OCCT_DEBUG
- cout << "BRepFill_TrimEdgeTool: no same parameter on the bissectrice" << endl;
+ std::cout << "BRepFill_TrimEdgeTool: no same parameter on the bissectrice" << std::endl;
#endif
if(P1xP2x>TolInit) {
#ifdef OCCT_DEBUG
- cout << "BRepFill_TrimEdgeTool: Continue somehow" << endl;
+ std::cout << "BRepFill_TrimEdgeTool: Continue somehow" << std::endl;
#endif
i++;
}
if (ToProj) {
#ifdef OCCT_DEBUG
- cout << " project extremity bissectrice on parallel."<<endl;
+ std::cout << " project extremity bissectrice on parallel."<<std::endl;
#endif
// Project point on parallels and add in Params
if (Projector1.NbPoints() == 0) {
#ifdef OCCT_DEBUG
- cout << "Failed projection in BRepFill_TrimEdgeTool::AddOrConfuse"<<endl;
+ std::cout << "Failed projection in BRepFill_TrimEdgeTool::AddOrConfuse"<<std::endl;
#endif
return;
}
if (!Projector1.NearestPoint().IsEqual(PBis,Tol)) {
#ifdef OCCT_DEBUG
- cout <<"Incorrect solution in BRepFill_TrimEdgeTool::AddOrConfuse"<<endl;
+ std::cout <<"Incorrect solution in BRepFill_TrimEdgeTool::AddOrConfuse"<<std::endl;
#endif
return;
}
if (Projector2.NbPoints() == 0) {
#ifdef OCCT_DEBUG
- cout << "Failed projection in BRepFill_TrimEdgeTool::AddOrConfuse"<<endl;
+ std::cout << "Failed projection in BRepFill_TrimEdgeTool::AddOrConfuse"<<std::endl;
#endif
return;
}
if (!Projector2.NearestPoint().IsEqual(PBis,Tol)) {
#ifdef OCCT_DEBUG
- cout <<" Mauvaisesolution dans BRepFill_TrimEdgeTool::AddOrConfuse"<<endl;
+ std::cout <<" Mauvaisesolution dans BRepFill_TrimEdgeTool::AddOrConfuse"<<std::endl;
#endif
return;
}
#ifdef OCCT_DEBUG
if ( Affich) {
NBCALL++;
- cout << " ---------->TrimSurfaceTool : NBCALL = " << NBCALL << endl;
+ std::cout << " ---------->TrimSurfaceTool : NBCALL = " << NBCALL << std::endl;
#ifdef DRAW
char name[256];
if (NbSegments > 0) {
#ifdef OCCT_DEBUG
- cout << " IntersectWith : " << NbSegments
- << " Segments of intersection" << endl;
+ std::cout << " IntersectWith : " << NbSegments
+ << " Segments of intersection" << std::endl;
#endif
IntRes2d_IntersectionSegment Seg;
for ( Standard_Integer i = 1; i <= NbSegments; i++) {
P1 = Seq.Value(i);
P2 = Seq.Value(i+1);
if ( P2.X()-P1.X() < Tol ) {
- // cout<<"REMOVE "<<P1.X()<<endl;
+ // std::cout<<"REMOVE "<<P1.X()<<std::endl;
Seq.Remove(i--);
NbPoints--;
}
PSeq = Points(i);
PSeq.SetZ((Points2.Value(i)).Y());
Points.SetValue(i,PSeq);
- // cout<<"BisPar "<<PSeq.X()<<endl;
+ // std::cout<<"BisPar "<<PSeq.X()<<std::endl;
}
}
#ifdef OCCT_DEBUG
Standard_Real Dist = Projector.LowerDistance();
if ( Dist > Precision::Confusion() ) {
- cout << " *** WARNING TrimSurfaceTool: *** " << endl;
- cout << " --> the point is not on the edge" <<endl;
- cout << " distance = " << Dist << endl;
+ std::cout << " *** WARNING TrimSurfaceTool: *** " << std::endl;
+ std::cout << " --> the point is not on the edge" <<std::endl;
+ std::cout << " distance = " << Dist << std::endl;
}
#endif
}
Props.Add(G);
#ifdef OCCT_DEBUG
- if(AffichEps) cout<<"\n"<<i<<":\tEpsArea = "<< G.GetEpsilon();
+ if(AffichEps) std::cout<<"\n"<<i<<":\tEpsArea = "<< G.GetEpsilon();
#endif
}
}
#ifdef OCCT_DEBUG
- if(AffichEps) cout<<"\n-----------------\n"<<iErrorMax<<":\tMaxError = "<<ErrorMax<<"\n";
+ if(AffichEps) std::cout<<"\n-----------------\n"<<iErrorMax<<":\tMaxError = "<<ErrorMax<<"\n";
#endif
return ErrorMax;
}
}
Props.Add(G);
#ifdef OCCT_DEBUG
- if(AffichEps) cout<<"\n"<<i<<":\tEpsVolume = "<< G.GetEpsilon();
+ if(AffichEps) std::cout<<"\n"<<i<<":\tEpsVolume = "<< G.GetEpsilon();
#endif
}
}
}
#ifdef OCCT_DEBUG
- if(AffichEps) cout<<"\n-----------------\n"<<iErrorMax<<":\tMaxError = "<<ErrorMax<<"\n";
+ if(AffichEps) std::cout<<"\n-----------------\n"<<iErrorMax<<":\tMaxError = "<<ErrorMax<<"\n";
#endif
return ErrorMax;
}
}
} else ErrorMax = volumeProperties(S,Props,Eps,SkipShared, Standard_False);
#ifdef OCCT_DEBUG
- if(AffichEps) cout<<"\n\n==================="<<iErrorMax<<":\tMaxEpsVolume = "<<ErrorMax<<"\n";
+ if(AffichEps) std::cout<<"\n\n==================="<<iErrorMax<<":\tMaxEpsVolume = "<<ErrorMax<<"\n";
#endif
return ErrorMax;
}
F += anIntegral.Value();
aLocalErr += anIntegral.AbsolutError();
- //cout << " TFunction : " << anIntegral.NbIterReached() << " " << anIntegral.AbsolutError() << endl;
+ //std::cout << " TFunction : " << anIntegral.NbIterReached() << " " << anIntegral.AbsolutError() << std::endl;
}
F *= aCoeff;
Standard_Real err1 = 0.;
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 aT2 = aTKnots->Value(i);
aLocalValue(k) += anIntegral.Value();
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;
- //cout << "--- Errors: " << anIntegral.NbIterReached() << " " << anIntegral.AbsolutError() << " " << err1 << endl;
+ //std::cout << "--- Errors: " << anIntegral.NbIterReached() << " " << anIntegral.AbsolutError() << " " << err1 << std::endl;
}
aValue(k) += aLocalValue(k);
}
catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Warning: Exception in BRepLib::EncodeRegularity(): ";
- anException.Print(cout);
- cout << endl;
+ std::cout << "Warning: Exception in BRepLib::EncodeRegularity(): ";
+ anException.Print(std::cout);
+ std::cout << std::endl;
#endif
(void)anException;
}
catch(Standard_Failure const&)
{
#ifdef OCCT_DEBUG
- cout << "Failure: Exception in BRepLib::EncodeRegularity" << endl;
+ std::cout << "Failure: Exception in BRepLib::EncodeRegularity" << std::endl;
#endif
}
}
if(!aSLP.IsNormalDefined())
{
#ifdef OCCT_DEBUG
- cout << "BRepLib::EnsureNormalConsistency(): Cannot find normal!" << endl;
+ std::cout << "BRepLib::EnsureNormalConsistency(): Cannot find normal!" << std::endl;
#endif
}
else
else if (V2.IsSame(myVertex)) VRef = V1;
else {
#ifdef OCCT_DEBUG
- cout << "MakeWire : There is a PROBLEM !!" << endl;
+ std::cout << "MakeWire : There is a PROBLEM !!" << std::endl;
#endif
myError = BRepLib_NonManifoldWire;
}
// Particular case: it is required to control the orientation
#ifdef OCCT_DEBUG
if (!VF.IsSame(myVertex))
- cout << "MakeWire : There is a PROBLEM !!" << endl;
+ std::cout << "MakeWire : There is a PROBLEM !!" << std::endl;
#endif
}
else if (VL.IsSame(myVertex)) VL = VRef;
else {
#ifdef OCCT_DEBUG
- cout << "MakeWire : Y A UN PROBLEME !!" << endl;
+ std::cout << "MakeWire : Y A UN PROBLEME !!" << std::endl;
#endif
myError = BRepLib_NonManifoldWire;
}
{
theStream << " Map of nodes : \n";
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";
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 Elements : " << myElements.Size() << endl;
+ theStream << "\n Elements : " << myElements.Size() << std::endl;
}
//=======================================================================
}
else {
#ifdef OCCT_DEBUG
- cout <<"edge shared by more than two faces"<<endl;
+ std::cout <<"edge shared by more than two faces"<<std::endl;
#endif
}
}
else {
//Mixed not finished!
#ifdef OCCT_DEBUG
- cout <<" faces locally mixed"<<endl;
+ std::cout <<" faces locally mixed"<<std::endl;
#endif
return BRepOffset_Convex;
}
if (Precision::IsInfinite(aT1) || Precision::IsInfinite(aT2))
{
#ifdef OCCT_DEBUG
- cout << "Inter2d : Solution rejected due to infinite parameter"<<endl;
+ std::cout << "Inter2d : Solution rejected due to infinite parameter"<<std::endl;
#endif
continue;
}
#ifdef OCCT_DEBUG
if (aT1 < f[1]-Tol || aT1 > l[1]+Tol)
{
- cout << "out of limit"<<endl;
- cout<<"aT1 = "<<aT1<<", f[1] = "<<f[1]<<", l[1] = "<<l[1]<<endl;
+ std::cout << "out of limit"<<std::endl;
+ std::cout<<"aT1 = "<<aT1<<", f[1] = "<<f[1]<<", l[1] = "<<l[1]<<std::endl;
}
if (aT2 < f[2]-Tol || aT2 > l[2]+Tol)
{
- cout << "out of limit"<<endl;
- cout<<"aT2 = "<<aT2<<", f[2] = "<<f[2]<<", l[2] = "<<l[2]<<endl;
+ std::cout << "out of limit"<<std::endl;
+ std::cout<<"aT2 = "<<aT2<<", f[2] = "<<f[2]<<", l[2] = "<<l[2]<<std::endl;
}
Standard_Real MilTol2 = 1000*Tol*Tol;
if (P1.SquareDistance(P) > MilTol2 || P2.SquareDistance(P) > MilTol2 || P1.Distance(P2) > 2.*Tol)
{
- cout << "Inter2d : Solution rejected "<<endl;
- cout<<"P = "<<P.X()<<" "<<P.Y()<<" "<<P.Z()<<endl;
- cout<<"P1 = "<<P1.X()<<" "<<P1.Y()<<" "<<P1.Z()<<endl;
- cout<<"P2 = "<<P2.X()<<" "<<P2.Y()<<" "<<P2.Z()<<endl;
- cout<<"MaxDist = "<<dist1<<endl;
+ std::cout << "Inter2d : Solution rejected "<<std::endl;
+ std::cout<<"P = "<<P.X()<<" "<<P.Y()<<" "<<P.Z()<<std::endl;
+ std::cout<<"P1 = "<<P1.X()<<" "<<P1.Y()<<" "<<P1.Z()<<std::endl;
+ std::cout<<"P2 = "<<P2.X()<<" "<<P2.Y()<<" "<<P2.Z()<<std::endl;
+ std::cout<<"MaxDist = "<<dist1<<std::endl;
}
#endif
//define the orientation of a new vertex
Standard_Real CrossProd = V2or ^ V1;
#ifdef OCCT_DEBUG
if (Abs(CrossProd) <= gp::Resolution())
- cout<<endl<<"CrossProd = "<<CrossProd<<endl;
+ std::cout<<std::endl<<"CrossProd = "<<CrossProd<<std::endl;
#endif
if (CrossProd > 0.)
OO1 = TopAbs_FORWARD;
// Modified by skv - Thu Jan 22 18:19:05 2004 OCC4455 End
LV1.Remove(it1LV1);
LV2.Remove(it1LV2);
- if (AffichPurge) cout <<"Doubles removed in EdgeInter."<<endl;
+ if (AffichPurge) std::cout <<"Doubles removed in EdgeInter."<<std::endl;
Purge = Standard_True;
break;
}
if (Precision::IsInfinite(aT1) || Precision::IsInfinite(aT2))
{
#ifdef OCCT_DEBUG
- cout << "Inter2d : Solution rejected due to infinite parameter"<<endl;
+ std::cout << "Inter2d : Solution rejected due to infinite parameter"<<std::endl;
#endif
continue;
}
#ifdef OCCT_DEBUG
if (aT1 < f[1]-Tol || aT1 > l[1]+Tol)
{
- cout << "out of limit"<<endl;
- cout<<"aT1 = "<<aT1<<", f[1] = "<<f[1]<<", l[1] = "<<l[1]<<endl;
+ std::cout << "out of limit"<<std::endl;
+ std::cout<<"aT1 = "<<aT1<<", f[1] = "<<f[1]<<", l[1] = "<<l[1]<<std::endl;
}
if (aT2 < f[2]-Tol || aT2 > l[2]+Tol)
{
- cout << "out of limit"<<endl;
- cout<<"aT2 = "<<aT2<<", f[2] = "<<f[2]<<", l[2] = "<<l[2]<<endl;
+ std::cout << "out of limit"<<std::endl;
+ std::cout<<"aT2 = "<<aT2<<", f[2] = "<<f[2]<<", l[2] = "<<l[2]<<std::endl;
}
Standard_Real MilTol2 = 1000*Tol*Tol;
if (P1.SquareDistance(P) > MilTol2 || P2.SquareDistance(P) > MilTol2 || P1.Distance(P2) > 2.*Tol)
{
- cout << "Inter2d : Solution rejected"<<endl;
- cout<<"P = "<<P.X()<<" "<<P.Y()<<" "<<P.Z()<<endl;
- cout<<"P1 = "<<P1.X()<<" "<<P1.Y()<<" "<<P1.Z()<<endl;
- cout<<"P2 = "<<P2.X()<<" "<<P2.Y()<<" "<<P2.Z()<<endl;
- cout<<"MaxDist = "<<dist1<<endl;
+ std::cout << "Inter2d : Solution rejected"<<std::endl;
+ std::cout<<"P = "<<P.X()<<" "<<P.Y()<<" "<<P.Z()<<std::endl;
+ std::cout<<"P1 = "<<P1.X()<<" "<<P1.Y()<<" "<<P1.Z()<<std::endl;
+ std::cout<<"P2 = "<<P2.X()<<" "<<P2.Y()<<" "<<P2.Z()<<std::endl;
+ std::cout<<"MaxDist = "<<dist1<<std::endl;
}
#endif
//define the orientation of a new vertex
Standard_Real CrossProd = V2or ^ V1;
#ifdef OCCT_DEBUG
if (Abs(CrossProd) <= gp::Resolution())
- cout<<endl<<"CrossProd = "<<CrossProd<<endl;
+ std::cout<<std::endl<<"CrossProd = "<<CrossProd<<std::endl;
#endif
if (CrossProd > 0.)
OO1 = TopAbs_FORWARD;
if (P1.IsEqual(P2,10*Tol)) {
LV1.Remove(it1LV1);
LV2.Remove(it1LV2);
- if (AffichPurge) cout <<"Doubles removed in EdgeInter."<<endl;
+ if (AffichPurge) std::cout <<"Doubles removed in EdgeInter."<<std::endl;
Purge = Standard_True;
break;
}
//---------------------------------
////-----------------------------------------------------
if(LV1.Extent() > 1) {
- //cout << "IFV - RefEdgeInter: remove vertex" << endl;
+ //std::cout << "IFV - RefEdgeInter: remove vertex" << std::endl;
Standard_Real dmin = RealLast();
TopoDS_Vertex Vmin;
for (it1LV1.Initialize(LV1); it1LV1.More(); it1LV1.Next()) {
f = Projector.LowerDistanceParameter();
#ifdef OCCT_DEBUG
else
- cout<<"ProjectPointOnCurve not done"<<endl;
+ std::cout<<"ProjectPointOnCurve not done"<<std::endl;
#endif
}
if (!Precision::IsInfinite(LastParOnPC))
l = Projector.LowerDistanceParameter();
#ifdef OCCT_DEBUG
else
- cout<<"ProjectPointOnCurve not done"<<endl;
+ std::cout<<"ProjectPointOnCurve not done"<<std::endl;
#endif
}
}
for (it1LE.Initialize(AsDes->Descendant(NE)); it1LE.More(); it1LE.Next()) {
if (AsDes->Ascendant(it1LE.Value()).Extent() < 3) {
LVP.Append(it1LE.Value());
- cout <<"Vertex on at least 3 edges."<<endl;
+ std::cout <<"Vertex on at least 3 edges."<<std::endl;
#ifdef DRAW
if (AffichInt2d) {
sprintf (name,"VP_%d",NVP++);
#endif
}
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
if (AffichInt2d) {
sprintf (name,"VM_%d",NVM++);
j++;
}
i++;
- cout <<" distmin between VP : "<<distmin<<endl;
+ std::cout <<" distmin between VP : "<<distmin<<std::endl;
}
}
#endif
#ifdef OCCT_DEBUG
if(YaResult == 0)
{
- cout << "OffsetShape does not contain a FACES." << endl;
+ std::cout << "OffsetShape does not contain a FACES." << std::endl;
}
#endif
}
#ifdef OCCT_DEBUG
else
{
- cout << "OffsetShape is null!" << endl;
+ std::cout << "OffsetShape is null!" << std::endl;
}
#endif
{
#ifdef OCCT_DEBUG
if ( ChronBuild) {
- cout << " CONSTRUCTION OF OFFSETS :" << endl;
+ std::cout << " CONSTRUCTION OF OFFSETS :" << std::endl;
Clock.Reset();
Clock.Start();
}
{
#ifdef OCCT_DEBUG
if ( ChronBuild) {
- cout << " CONSTRUCTION OF OFFSETS :" << endl;
+ std::cout << " CONSTRUCTION OF OFFSETS :" << std::endl;
Clock.Reset();
Clock.Start();
}
{
#ifdef OCCT_DEBUG
if ( ChronBuild) {
- cout << " AUTODEBOUCLAGE:" << endl;
+ std::cout << " AUTODEBOUCLAGE:" << std::endl;
Clock.Reset();
Clock.Start();
}
{
#ifdef OCCT_DEBUG
if (ChronBuild) {
- cout << " INTERSECTION 3D:" << endl;
+ std::cout << " INTERSECTION 3D:" << std::endl;
Clock.Reset();
Clock.Start();
}
{
#ifdef OCCT_DEBUG
if (ChronBuild) {
- cout << " INTERSECTION 2D:" << endl;
+ std::cout << " INTERSECTION 2D:" << std::endl;
Clock.Reset();
Clock.Start();
}
{
#ifdef OCCT_DEBUG
if (ChronBuild) {
- cout << " DEBOUCLAGE 2D:" << endl;
+ std::cout << " DEBOUCLAGE 2D:" << std::endl;
Clock.Reset();
Clock.Start();
}
{
#ifdef OCCT_DEBUG
if (ChronBuild) {
- cout << " RECONSTRUCTION OF FACES:" << endl;
+ std::cout << " RECONSTRUCTION OF FACES:" << std::endl;
Clock.Reset();
Clock.Start();
}
{
#ifdef OCCT_DEBUG
if (ChronBuild) {
- cout << " RECONSTRUCTION OF SHELLS:" << endl;
+ std::cout << " RECONSTRUCTION OF SHELLS:" << std::endl;
Clock.Reset();
Clock.Start();
}
{
#ifdef OCCT_DEBUG
if (ChronBuild) {
- cout << " CODING OF REGULARITIES:" << endl;
+ std::cout << " CODING OF REGULARITIES:" << std::endl;
Clock.Reset();
Clock.Start();
}
if (LofOF.Extent() != 2) {
#ifdef OCCT_DEBUG_VERB
- cout << " Edge shared by " << LofOF.Extent() << " Faces" << endl;
+ std::cout << " Edge shared by " << LofOF.Extent() << " Faces" << std::endl;
#endif
continue;
}
BRepAlgoAPI_Check aChecker(aCE);
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
// build splits
P2d = C2d->Value(l); TheSurf->D0(P2d.X(),P2d.Y(),P2);
Standard_Real Tol = BRep_Tool::Tolerance(V1);
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
*/
#ifdef OCCT_DEBUG
// si firstedge n est pas nul, il faut que les vertex soient partages
if ( !VVf.IsSame(V1f) && !VVf.IsSame(V2f) ) {
- cout << "Attention Vertex non partages !!!!!!" << endl;
+ std::cout << "Attention Vertex non partages !!!!!!" << std::endl;
}
#endif
if ( !VVf.IsSame(V1f) && !VVf.IsSame(V2f) ) {
#ifdef OCCT_DEBUG
// si lastedge n est pas nul, il faut que les vertex soient partages
if ( !VVf.IsSame(V1l) && !VVf.IsSame(V2l) ) {
- cout << "Attention Vertex non partages !!!!!!" << endl;
+ std::cout << "Attention Vertex non partages !!!!!!" << std::endl;
}
#endif
if ( !VVf.IsSame(V1l) && !VVf.IsSame(V2l) ) {
BRepLib::SameParameter(anEdge, aSameParTol, Standard_True);
Standard_Real EdgeTol = BRep_Tool::Tolerance(anEdge);
#ifdef OCCT_DEBUG
- cout<<"Tolerance of glued E = "<<EdgeTol<<endl;
+ std::cout<<"Tolerance of glued E = "<<EdgeTol<<std::endl;
#endif
if (EdgeTol > 1.e-2)
continue;
ReconstructPCurves(anEdge);
BRepLib::SameParameter(anEdge, aSameParTol, Standard_True);
#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
}
if (AffichExtent) {
Standard_Real Dist = P.Distance(C.Value(U));
if (Dist > TolConf) {
- cout << " ProjectVertexOnEdge :distance vertex edge :"<<Dist<<endl;
+ std::cout << " ProjectVertexOnEdge :distance vertex edge :"<<Dist<<std::endl;
}
if (U < f - Precision::Confusion() ||
U > l + Precision::Confusion()) {
- cout << " ProjectVertexOnEdge : hors borne :"<<endl;
- cout << " f = "<<f<<" l ="<<l<< " U ="<<U<<endl;
+ std::cout << " ProjectVertexOnEdge : hors borne :"<<std::endl;
+ std::cout << " f = "<<f<<" l ="<<l<< " U ="<<U<<std::endl;
}
}
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() &&
Abs(l) < Precision::Infinite()) {
#ifdef DRAW
// F,fl2[0],fl2[1]);
#ifdef OCCT_DEBUG
if (C1.IsNull() || C2.IsNull()) {
- cout <<"Inter2d : Pas de pcurve"<<endl;
+ std::cout <<"Inter2d : Pas de pcurve"<<std::endl;
#ifdef DRAW
DBRep::Set("E1",E1);
DBRep::Set("E2",E2);
Standard_Real U2on1 = IntP1.ParamOnSecond();
Standard_Real U2on2 = IntP2.ParamOnSecond();
#ifdef OCCT_DEBUG
- cout << " BRepOffset_Tool::Inter2d SEGMENT d intersection" << endl;
- cout << " ===> Parametres sur Curve1 : ";
- cout << U1on1 << " " << U1on2 << endl;
- cout << " ===> Parametres sur Curve2 : ";
- cout << U2on1 << " " << U2on2 << endl;
+ std::cout << " BRepOffset_Tool::Inter2d SEGMENT d intersection" << std::endl;
+ std::cout << " ===> Parametres sur Curve1 : ";
+ std::cout << U1on1 << " " << U1on2 << std::endl;
+ std::cout << " ===> Parametres sur Curve2 : ";
+ std::cout << U2on1 << " " << U2on2 << std::endl;
#endif
U1 = (U1on1 + U1on2)/2.;
U2 = (U2on1 + U2on2)/2.;
#ifdef OCCT_DEBUG
if (!YaSol) {
- cout <<"Inter2d : Pas de solution"<<endl;
+ std::cout <<"Inter2d : Pas de solution"<<std::endl;
#ifdef DRAW
DBRep::Set("E1",E1);
DBRep::Set("E2",E2);
}
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout<<"An exception was caught in BRepOffsetAPI_MakeOffset::Perform : ";
- anException.Print(cout);
- cout<<endl;
+ std::cout<<"An exception was caught in BRepOffsetAPI_MakeOffset::Perform : ";
+ anException.Print(std::cout);
+ std::cout<<std::endl;
#endif
(void)anException;
NotDone();
Interpol.Perform();
if (!Interpol.IsDone())
{
- cout<<endl<<"Interpolation failed"<<endl;
+ std::cout<<std::endl<<"Interpolation failed"<<std::endl;
}
Handle(Geom_Curve) InterCurve (Interpol.Curve());
MidEdges(i) = BRepLib_MakeEdge(InterCurve);
// const Handle(BRep_CurveRepresentation)& cr = itcr.Value();
// if (cr->IsCurveOnSurface() &&
// cr->IsCurveOnClosedSurface() ) {
-// cout<<"sewing edge"<<endl;
+// std::cout<<"sewing edge"<<std::endl;
// return Standard_False;
// }
// itcr.Next();
// TopoDS_Shape S = DBRep::Get(a[i]);
TopoDS_Shape S = DBRep::Get(a[2]);
if (S.IsNull()) {
- //cout << a[2] << " is not a valid shape" << endl;
+ //std::cout << a[2] << " is not a valid shape" << std::endl;
di << a[2] << " is not a valid shape\n";
}
else {
}
if (n < 3 || (n - iFirst) % 2) {
- cout << "Use: " << a[0] << " [-n(ogeom)] [-m(esh)] shape1 copy1 [shape2 copy2 [...]]" << endl;
- cout << "Option -n forbids copying of geometry (it will be shared)" << endl;
- cout << "Option -m forces copying of mesh (disabled by default)" << endl;
+ std::cout << "Use: " << a[0] << " [-n(ogeom)] [-m(esh)] shape1 copy1 [shape2 copy2 [...]]" << std::endl;
+ std::cout << "Option -n forbids copying of geometry (it will be shared)" << std::endl;
+ std::cout << "Option -m forces copying of mesh (disabled by default)" << std::endl;
return 1;
}
for (Standard_Integer i=0; i<(n-1)/2; i++) {
TopoDS_Shape S = DBRep::Get(a[2*i+2]);
if (S.IsNull()) {
- //cout << a[2*i+2] << " is not a valid shape" << endl;
+ //std::cout << a[2*i+2] << " is not a valid shape" << std::endl;
di << a[2*i+2] << " is not a valid shape\n";
}
else {
BRepBuilderAPI_FindPlane a_plane_finder(S,
tolerance) ;
if (a_plane_finder.Found()) {
- //cout << " a plane is found " ;
+ //std::cout << " a plane is found " ;
di << " a plane is found \n";
const Handle(Geom_Geometry)& aSurf = a_plane_finder.Plane(); // to avoid ambiguity
DrawTrSurf::Set(a[2],aSurf) ;
n--;
if ( n == 0) {
- //cout << " Current Precision = " << BRepBuilderAPI::Precision() << endl;
+ //std::cout << " Current Precision = " << BRepBuilderAPI::Precision() << std::endl;
di << " Current Precision = " << BRepBuilderAPI::Precision() << "\n";
}
else {
const char *id1 = a[1];
TopoDS_Shape TheShape1 = DBRep::Get(id1);
- //cout << "Pick positions with button "<<endl;
+ //std::cout << "Pick positions with button "<<std::endl;
di << "Pick positions with button \n";
Standard_Integer id,X,Y,b;
gp_Trsf T;
Inter.Perform(Axe,-RealLast(),RealLast());
- //cout<<"\n --> ";
+ //std::cout<<"\n --> ";
di <<"\n --> ";
if(Inter.NbPnt()) {
for(Standard_Integer i=1; i<=Inter.NbPnt(); i++) {
ExF.Next(),numface++) {
TopoDS_Face Face=TopoDS::Face(ExF.Current());
if(Face.IsEqual(Inter.Face(i))) {
- //cout<<" "<<a[1]<<"_"<<numface;
+ //std::cout<<" "<<a[1]<<"_"<<numface;
di<<" "<<a[1]<<"_"<<numface;
continue;
}
const gp_Pnt& P = Inter.Pnt(i);
Standard_Real PMin = Inter.WParameter(i);
if(details) {
- //cout<<" w:"<<PMin<<endl;
+ //std::cout<<" w:"<<PMin<<std::endl;
di<<" w:"<<PMin<< "\n";
}
if(Inter.Transition(i) == IntCurveSurface_In) {
}
}
}
- //cout<<endl;
+ //std::cout<<std::endl;
di << "\n";
return(0);
}
sss << "\n## Tolerances on the shape " << a[1] << " (nbFaces:" << nbF
<< " nbEdges:" << nbE << " nbVtx:" << nbV << ")\n" ;
sss.precision(5);
- sss.setf(ios::scientific);
- if(TmF<=TMF) sss << "\n Face : Min " << setw(8) << TmF <<" Max " << setw(8) << TMF << " \n ";
- if(TmE<=TME) sss << "\n Edge : Min " << setw(8) << TmE <<" Max " << setw(8) << TME << " \n ";
- if(TmV<=TMV) sss << "\n Vertex : Min " << setw(8) << TmV <<" Max " << setw(8) << TMV << " \n ";
+ sss.setf(std::ios::scientific);
+ if(TmF<=TMF) sss << "\n Face : Min " << std::setw(8) << TmF <<" Max " << std::setw(8) << TMF << " \n ";
+ if(TmE<=TME) sss << "\n Edge : Min " << std::setw(8) << TmE <<" Max " << std::setw(8) << TME << " \n ";
+ if(TmV<=TMV) sss << "\n Vertex : Min " << std::setw(8) << TmV <<" Max " << std::setw(8) << TMV << " \n ";
theCommands << sss;
return 0;
static Standard_Integer vecdc(Draw_Interpretor& di,Standard_Integer ,const char** ) {
- //cout << "Pick positions with button "<<endl;
+ //std::cout << "Pick positions with button "<<std::endl;
di << "Pick positions with button \n";
Standard_Integer id,X,Y,b;
Handle(Draw_Segment3D) d = new Draw_Segment3D(P1,PP1,Draw_blanc);
dout << d;
dout.Flush();
- //cout<<"\nttran "<<PP1.X()-P1.X()<<" "<<PP1.Y()-P1.Y()<<" "<<PP1.Z()-P1.Z()<<endl;
+ //std::cout<<"\nttran "<<PP1.X()-P1.X()<<" "<<PP1.Y()-P1.Y()<<" "<<PP1.Z()-P1.Z()<<std::endl;
di <<"\nttran "<<PP1.X()-P1.X()<<" "<<PP1.Y()-P1.Y()<<" "<<PP1.Z()-P1.Z()<< "\n";
static Standard_Integer nboxvecdp=0;
- //cout<<"\nbox b"<<++nboxvecdp<<" "<<Min(P1.X(),PP1.X())<<" "<<Min(P1.Y(),PP1.Y())<<" "<<Min(PP1.Z(),P1.Z());
- //cout<<" "<<Abs(PP1.X()-P1.X())<<" "<<Abs(PP1.Y()-P1.Y())<<" "<<Abs(PP1.Z()-P1.Z())<<endl;
+ //std::cout<<"\nbox b"<<++nboxvecdp<<" "<<Min(P1.X(),PP1.X())<<" "<<Min(P1.Y(),PP1.Y())<<" "<<Min(PP1.Z(),P1.Z());
+ //std::cout<<" "<<Abs(PP1.X()-P1.X())<<" "<<Abs(PP1.Y()-P1.Y())<<" "<<Abs(PP1.Z()-P1.Z())<<std::endl;
- //cout<<"\nDistance :"<<sqrt( (PP1.X()-P1.X())*(PP1.X()-P1.X())
+ //std::cout<<"\nDistance :"<<sqrt( (PP1.X()-P1.X())*(PP1.X()-P1.X())
// +(PP1.Y()-P1.Y())*(PP1.Y()-P1.Y())
- // +(PP1.Z()-P1.Z())*(PP1.Z()-P1.Z()))<<endl;
+ // +(PP1.Z()-P1.Z())*(PP1.Z()-P1.Z()))<<std::endl;
di <<"\nbox b"<<++nboxvecdp<<" "<<Min(P1.X(),PP1.X())<<" "<<Min(P1.Y(),PP1.Y())<<" "<<Min(PP1.Z(),P1.Z());
di <<" "<<Abs(PP1.X()-P1.X())<<" "<<Abs(PP1.Y()-P1.Y())<<" "<<Abs(PP1.Z()-P1.Z())<< "\n";
TopTools_ListOfShape Wire;
Standard_Boolean IsWire=OrtProj.BuildWire(Wire);
if (IsWire) {
- //cout << " BuildWire OK " << endl;
+ //std::cout << " BuildWire OK " << std::endl;
di << " BuildWire OK \n";
}
DBRep::Set(a[1], OrtProj.Shape());
// compute the chamfer and display the result
if (aMCh.NbContours() == 0 )
{
- //cout<<"No suitable edges to chamfer"<<endl;
+ //std::cout<<"No suitable edges to chamfer"<<std::endl;
di<<"No suitable edges to chamfer\n";
return 1;
}
return 0;
}
else {
- //cout<<"compute of chamfer failed"<<endl;
+ //std::cout<<"compute of chamfer failed"<<std::endl;
di<<"compute of chamfer failed\n";
return 1;
}
// compute the chamfer and display the result
if (aMCh.NbContours() == 0 )
{
- //cout<<"No suitable edges to chamfer"<<endl;
+ //std::cout<<"No suitable edges to chamfer"<<std::endl;
di<<"No suitable edges to chamfer\n";
return 1;
}
return 0;
}
else {
- //cout<<"compute of chamfer failed"<<endl;
+ //std::cout<<"compute of chamfer failed"<<std::endl;
di<<"compute of chamfer failed\n";
return 1;
}
// compute the chamfer and display the result
if (aMCh.NbContours() == 0 )
{
- //cout<<"No suitable edges to chamfer"<<endl;
+ //std::cout<<"No suitable edges to chamfer"<<std::endl;
di<<"No suitable edges to chamfer\n";
return 1;
}
return 0;
}
else {
- //cout<<"compute of chamfer failed"<<endl;
+ //std::cout<<"compute of chamfer failed"<<std::endl;
di<<"compute of chamfer failed\n";
return 1;
}
Standard_Integer narg, const char** a)
{
if (narg < 2) {
- //cout << "Usage: computetolerance shape" << endl;
+ //std::cout << "Usage: computetolerance shape" << std::endl;
di << "Usage: computetolerance shape\n";
return 1;
}
if (S.ShapeType() == TopAbs_EDGE) {
BRepCheck_Edge bce(TopoDS::Edge(S));
tol=bce.Tolerance();
- //cout<< "Tolerance de " << (void*) &(*S.TShape()) << " : " << tol << endl;
+ //std::cout<< "Tolerance de " << (void*) &(*S.TShape()) << " : " << tol << std::endl;
Standard_SStream aSStream1;
aSStream1<< "Tolerance de " << (void*) &(*S.TShape()) << " : " << tol << "\n";
di << aSStream1;
if (theEdges.Add(exp.Current())) {
BRepCheck_Edge bce(TopoDS::Edge(exp.Current()));
tol=bce.Tolerance();
- //cout<< "Tolerance de " << (void*) &(*exp.Current().TShape()) << " : " << tol << "\n";
+ //std::cout<< "Tolerance de " << (void*) &(*exp.Current().TShape()) << " : " << tol << "\n";
Standard_SStream aSStream2;
aSStream2<< "Tolerance de " << (void*) &(*exp.Current().TShape()) << " : " << tol << "\n";
di << aSStream2;
}
}
- //cout << endl;
+ //std::cout << std::endl;
di << "\n";
}
return 0;
if (!theVertices.Add(exp.Current()))
theVertices.Remove(exp.Current());
}
- //cout << " nb alone Vertices : " << theVertices.Extent() << endl;
+ //std::cout << " nb alone Vertices : " << theVertices.Extent() << std::endl;
di << " nb alone Vertices : " << theVertices.Extent() << "\n";
if (aCompareValue >= 0)
ipp++;
Sprintf(Name,"alone_%d",ipp);
DBRep::Set(Name, itvx.Key());
- //cout << Name << " " ;
+ //std::cout << Name << " " ;
di << Name << " " ;
}
- //cout << endl;
+ //std::cout << std::endl;
di << "\n";
return 0;
}
if (narg==2) {
Standard_Integer bcrtrace=Draw::Atoi(a[narg-1]);
bcrtrace=BRepCheck_Trace(bcrtrace);
- //cout << "BRepCheck_Trace : " << bcrtrace << endl;
+ //std::cout << "BRepCheck_Trace : " << bcrtrace << std::endl;
di << "BRepCheck_Trace : " << bcrtrace << "\n";
- //cout << syntaxe << endl;
+ //std::cout << syntaxe << std::endl;
di << syntaxe << "\n";
return 0;
}
- //cout << syntaxe << endl;
+ //std::cout << syntaxe << std::endl;
di << syntaxe << "\n";
return 1;
}
TopoDS_Shape resu = DBRep::Get(a[narg-1]);
if (resu.IsNull()) {
if (narg < 4) {
- //cout << syntaxe << endl;
+ //std::cout << syntaxe << std::endl;
di << syntaxe << "\n";
return 1;
}
lastArg=narg-3;
if (resu.IsNull()) {
if (narg < 5) {
- //cout << syntaxe << endl;
+ //std::cout << syntaxe << std::endl;
di << syntaxe << "\n";
return 1;
}
resu = DBRep::Get(a[narg-3]);
lastArg=narg-4;
if (resu.IsNull()) {
- //cout << syntaxe << endl;
+ //std::cout << syntaxe << std::endl;
di << syntaxe << "\n";
return 1;
}
}
if (BRepAlgo::IsValid(lesArgs, resu, closedSolid, geomCtrl)) {
- //cout << "Difference is Valid." << endl;
+ //std::cout << "Difference is Valid." << std::endl;
di << "Difference is Valid.\n";
} else {
- //cout << "error : Difference is Not Valid !" << endl;
+ //std::cout << "error : Difference is Not Valid !" << std::endl;
di << "error : Difference is Not Valid !\n";
}
// TopoDS_Shape S = DBRep::Get(a[1]);
// if (S.IsNull()) {
-// cout<<"not a topological shape"<<endl;
+// std::cout<<"not a topological shape"<<std::endl;
// return 1;
// }
// theMap.Clear();
// if (doprint) {
// Print(cout,ana,S);
-// cout<<"\n";
+// std::cout<<"\n";
// theMap.Clear();
// if (nbfaulty !=0)
-// cout<<"Faulty shapes in variables "<<checkfaultyname<<"1 to "<<checkfaultyname<<nbfaulty<<" \n";
-// cout<<endl;
+// std::cout<<"Faulty shapes in variables "<<checkfaultyname<<"1 to "<<checkfaultyname<<nbfaulty<<" \n";
+// std::cout<<std::endl;
// }
// else {
// theCommands<<"This shape has faulty shapes";
Standard_SStream aSStream;
Print(aSStream, theAna, theShape);
theCommands << aSStream;
- //cout<<"\n";
+ //std::cout<<"\n";
theCommands<<"\n";
theMap.Clear();
if (nbfaulty !=0)
theCommands<<"Faulty shapes in variables "<<checkfaultyname<<"1 to "<<checkfaultyname<<nbfaulty<<" \n";
- //cout<<"Faulty shapes in variables "<<checkfaultyname<<"1 to "<<checkfaultyname<<nbfaulty<<" \n";
+ //std::cout<<"Faulty shapes in variables "<<checkfaultyname<<"1 to "<<checkfaultyname<<nbfaulty<<" \n";
- //cout<<endl;
+ //std::cout<<std::endl;
theCommands<<"\n";
}
const TopoDS_Shape &theShape)
{
Standard_Integer i;
- //cout << "StructuralDump" << endl;
- //cout << " -- The Shape " << ShName << " has problems :"<<endl;
- //cout<<" Check Count"<<endl;
- //cout<<" ------------------------------------------------"<<endl;
+ //std::cout << "StructuralDump" << std::endl;
+ //std::cout << " -- The Shape " << ShName << " has problems :"<<std::endl;
+ //std::cout<<" Check Count"<<std::endl;
+ //std::cout<<" ------------------------------------------------"<<std::endl;
theCommands << " -- The Shape " << ShName << " has problems :\n";
theCommands<<" Check Count\n";
theCommands<<" ------------------------------------------------\n";
char aName[20];
Sprintf(aName,"%s_v",Pref);
DBRep::Set(aName,comp);
- //cout<<"VERTEX : "<<(nb > 9 ? "" : " ")<<nb<<" Items -> compound named "<<aName<<endl;
+ //std::cout<<"VERTEX : "<<(nb > 9 ? "" : " ")<<nb<<" Items -> compound named "<<aName<<std::endl;
if (nb > 9)
theCommands<<"VERTEX : "<<nb<<" Items -> compound named "<<aName<<"\n";
else
char aName[20];
Sprintf(aName,"%s_e",Pref);
DBRep::Set(aName,comp);
- //cout<<"EDGE : "<<(nb > 9 ? "" : " ")<<nb<<" Items -> compound named "<<aName<<endl;
+ //std::cout<<"EDGE : "<<(nb > 9 ? "" : " ")<<nb<<" Items -> compound named "<<aName<<std::endl;
if (nb > 9)
theCommands<<"EDGE : "<<nb<<" Items -> compound named "<<aName<<"\n";
else
char aName[20];
Sprintf(aName,"%s_w",Pref);
DBRep::Set(aName,comp);
- //cout<<"WIRE : "<<(nb > 9 ? "" : " ")<<nb<<" Items -> compound named "<<aName<<endl;
+ //std::cout<<"WIRE : "<<(nb > 9 ? "" : " ")<<nb<<" Items -> compound named "<<aName<<std::endl;
if (nb > 9)
theCommands<<"WIRE : "<<nb<<" Items -> compound named "<<aName<<"\n";
else
char aName[20];
Sprintf(aName,"%s_f",Pref);
DBRep::Set(aName,comp);
- //cout<<"FACE : "<<(nb > 9 ? "" : " ")<<nb<<" Items -> compound named "<<aName<<endl;
+ //std::cout<<"FACE : "<<(nb > 9 ? "" : " ")<<nb<<" Items -> compound named "<<aName<<std::endl;
if (nb > 9)
theCommands<<"FACE : "<<nb<<" Items -> compound named "<<aName<<"\n";
else
char aName[20];
Sprintf(aName,"%s_s",Pref);
DBRep::Set(aName,comp);
- //cout<<"SHELL : "<<(nb > 9 ? "" : " ")<<nb<<" Items -> compound named "<<aName<<endl;
+ //std::cout<<"SHELL : "<<(nb > 9 ? "" : " ")<<nb<<" Items -> compound named "<<aName<<std::endl;
if (nb > 9)
theCommands<<"SHELL : "<<nb<<" Items -> compound named "<<aName<<"\n";
else
char aName[20];
Sprintf(aName,"%s_o",Pref);
DBRep::Set(aName,comp);
- //cout<<"SOLID : "<<(nb > 9 ? "" : " ")<<nb<<" Items -> compound named "<<aName<<endl;
+ //std::cout<<"SOLID : "<<(nb > 9 ? "" : " ")<<nb<<" Items -> compound named "<<aName<<std::endl;
if (nb > 9)
theCommands<<"SOLID : "<<nb<<" Items -> compound named "<<aName<<"\n";
else
Standard_Integer narg, const char** a)
{
if (narg == 1) {
- //cout << endl;
- //cout << "Usage : checkshape [-top] shape [result] [-short]" << endl;
- //cout << endl;
- //cout << "Where :" << endl;
- //cout << " -top - check topology only." << endl;
- //cout << " shape - the name of the shape to test." << endl;
- //cout << " result - the prefix of the output shape names. If it is used, structural" << endl;
- //cout << " output style will be used. Otherwise - contextual one." << endl;
- //cout << " -short - short description of check." << endl;
+ //std::cout << std::endl;
+ //std::cout << "Usage : checkshape [-top] shape [result] [-short]" << std::endl;
+ //std::cout << std::endl;
+ //std::cout << "Where :" << std::endl;
+ //std::cout << " -top - check topology only." << std::endl;
+ //std::cout << " shape - the name of the shape to test." << std::endl;
+ //std::cout << " result - the prefix of the output shape names. If it is used, structural" << std::endl;
+ //std::cout << " output style will be used. Otherwise - contextual one." << std::endl;
+ //std::cout << " -short - short description of check." << std::endl;
theCommands << "\n";
theCommands << "Usage : checkshape [-top] shape [result] [-short]\n";
theCommands << "\n";
}
if (narg > 5) {
- //cout << "Invalid number of args!!!" << endl;
- //cout << "No args to have help." << endl;
+ //std::cout << "Invalid number of args!!!" << std::endl;
+ //std::cout << "No args to have help." << std::endl;
theCommands << "Invalid number of args!!!\n";
theCommands << "No args to have help.\n";
}
if (aCurInd > narg - 1) {
- //cout << "Invalid number of args!!!" << endl;
- //cout << "No args to have help." << endl;
+ //std::cout << "Invalid number of args!!!" << std::endl;
+ //std::cout << "No args to have help." << std::endl;
theCommands << "Invalid number of args!!!\n";
theCommands << "No args to have help.\n";
TopoDS_Shape aShape = DBRep::Get(aShapeName);
if (aShape.IsNull()) {
- //cout << a[aCurInd] << " is not a topological shape!!!" << endl;
+ //std::cout << a[aCurInd] << " is not a topological shape!!!" << std::endl;
theCommands << a[aCurInd] << " is not a topological shape!!!\n";
return 1;
}
if (aCurInd < aBackInd - 1) {
- //cout << "Invalid number of args!!!" << endl;
- //cout << "No args to have help." << endl;
+ //std::cout << "Invalid number of args!!!" << std::endl;
+ //std::cout << "No args to have help." << std::endl;
theCommands << "Invalid number of args!!!\n";
theCommands << "No args to have help.\n";
}
while ((nb<nbeval)&& isdone );
- //if (!isdone) { cout<<" Problem in computation "<<endl; return 1;}
+ //if (!isdone) { std::cout<<" Problem in computation "<<std::endl; return 1;}
//if (ISG1)
- // {cout<<" the continuity is G1 "<<endl;}
- //else { cout<<" the continuity is not G1 "<<endl;}
- //cout<<"MaxG0Value :"<< MaxG0Value << endl;
- //cout<<"MaxG1Angle:"<< MaxG1Angle << endl;
+ // {std::cout<<" the continuity is G1 "<<std::endl;}
+ //else { std::cout<<" the continuity is not G1 "<<std::endl;}
+ //std::cout<<"MaxG0Value :"<< MaxG0Value << std::endl;
+ //std::cout<<"MaxG1Angle:"<< MaxG1Angle << std::endl;
if (!isdone) { di<<" Problem in computation \n"; return 1;}
if (ISG1)
{di<<" the continuity is G1 \n";}
}
while ((nb<nbeval)&& isdone );
- //f (!isdone) { cout<<" Problem in computation "<<endl; return 1;}
+ //f (!isdone) { std::cout<<" Problem in computation "<<std::endl; return 1;}
//if (ISG0)
- // {cout<<" the continuity is G0 "<<endl;}
+ // {std::cout<<" the continuity is G0 "<<std::endl;}
- //else { cout<<" the continuity is not G0 "<<endl;}
- //cout<<"MaxG0Value :"<< MaxG0Value << endl;
+ //else { std::cout<<" the continuity is not G0 "<<std::endl;}
+ //std::cout<<"MaxG0Value :"<< MaxG0Value << std::endl;
if (!isdone) { di<<" Problem in computation \n"; return 1;}
if (ISG0)
{di<<" the continuity is G0 \n";}
}
while ((nb<nbeval)&& isdone );
- //if (!isdone) { cout<<" Problem in computation "<<endl; return 1;}
+ //if (!isdone) { std::cout<<" Problem in computation "<<std::endl; return 1;}
//if (ISG2)
- //cout<<" the continuity is G2 "<<endl;
- //else cout<<" the continuity is not G2 "<<endl;
- //cout<<"MaxG0Value :"<< MaxG0Value << endl;
- //cout<<"MaxG1Angle:"<< MaxG1Angle << endl;
- //cout<<"MaxG2Curvature:"<<MaxG2Curvature<<endl;
+ //std::cout<<" the continuity is G2 "<<std::endl;
+ //else std::cout<<" the continuity is not G2 "<<std::endl;
+ //std::cout<<"MaxG0Value :"<< MaxG0Value << std::endl;
+ //std::cout<<"MaxG1Angle:"<< MaxG1Angle << std::endl;
+ //std::cout<<"MaxG2Curvature:"<<MaxG2Curvature<<std::endl;
if (!isdone) { di<<" Problem in computation \n"; return 1;}
if (ISG2)
di<<" the continuity is G2 \n";
char newname[255];
if (narg < 2) {
- //cout << "Usage: clintedge shape" << endl;
+ //std::cout << "Usage: clintedge shape" << std::endl;
di << "Usage: clintedge shape\n";
return 1;
}
Standard_Integer nbedges = mypurgealgo.NbEdges();
if (nbedges > 0)
{
- //cout<<nbedges<<" internal (or external) edges to be removed"<<endl;
+ //std::cout<<nbedges<<" internal (or external) edges to be removed"<<std::endl;
di<<nbedges<<" internal (or external) edges to be removed\n";
Standard_Integer i = 1;
Sprintf(newname,"%s_%d",a[1],i);
DBRep::Set(temp,mypurgealgo.Shape());
- //cout<<newname<<" ";
+ //std::cout<<newname<<" ";
di<<newname<<" ";
- //cout<<endl;
+ //std::cout<<std::endl;
di<<"\n";
}
else
di << "no internal (or external) edges\n";
- //cout << "no internal (or external) edges"<<endl;
+ //std::cout << "no internal (or external) edges"<<std::endl;
return 0;
}
char newname[255];
if (narg < 2) {
- //cout << "Usage: facintedge shape" << endl;
+ //std::cout << "Usage: facintedge shape" << std::endl;
di << "Usage: facintedge shape\n";
return 1;
}
for (itFacEdg.Initialize(mymap); itFacEdg.More(); itFacEdg.Next()) {
Sprintf(newname,"%s_%d",a[1],i);
DBRep::Set(temp,itFacEdg.Key());
- //cout<<newname<<" ";
+ //std::cout<<newname<<" ";
di<<newname<<" ";
i++;
}
- //cout<<endl;
+ //std::cout<<std::endl;
di<<"\n";
return 0;
char newname[255];
if (narg < 2) {
- //cout << "Usage: fuseedge shape" << endl;
+ //std::cout << "Usage: fuseedge shape" << std::endl;
di << "Usage: fuseedge shape\n";
return 1;
}
if (nbvertices > 0) {
- //cout<<nbvertices<<" vertices to be removed"<<endl;
+ //std::cout<<nbvertices<<" vertices to be removed"<<std::endl;
di<<nbvertices<<" vertices to be removed\n";
Standard_Integer i = 1;
Sprintf(newname,"%s_%d",a[1],i);
DBRep::Set(temp,myfusealgo.Shape());
- //cout<<newname<<" ";
+ //std::cout<<newname<<" ";
di<<newname<<" ";
- //cout<<endl;
+ //std::cout<<std::endl;
di<<"\n";
}
else
di << "no vertices to remove\n";
- //cout << "no vertices to remove"<<endl;
+ //std::cout << "no vertices to remove"<<std::endl;
return 0;
}
char newname[255];
if (narg < 2) {
- //cout << "Usage: listfuseedge shape" << endl;
+ //std::cout << "Usage: listfuseedge shape" << std::endl;
di << "Usage: listfuseedge shape\n";
return 1;
}
for (itEdg.Initialize(LmapEdg); itEdg.More(); itEdg.Next()) {
Sprintf(newname,"%s_%d_%d",a[1],iLst,i);
DBRep::Set(temp,itEdg.Value());
- //cout<<newname<<" ";
+ //std::cout<<newname<<" ";
di<<newname<<" ";
i++;
}
}
- //cout<<endl;
+ //std::cout<<std::endl;
di<<"\n";
return 0;
DBRep::Set(a[1],ne);
}
else {
- //cout <<"Error creating edge"<<endl;
+ //std::cout <<"Error creating edge"<<std::endl;
di <<"Error creating edge\n";
}
return 0;
}
if (!MW.IsDone()) {
- //cout << "Wire not done" << endl;
+ //std::cout << "Wire not done" << std::endl;
di << "Wire not done with an error:\n";
switch (MW.Error())
{
Handle(Geom_Curve) C = DrawTrSurf::GetCurve(a[2]);
Handle(Geom2d_Curve) C2d = DrawTrSurf::GetCurve2d(a[2]);
if (C.IsNull() && C2d.IsNull()) {
- //cout << a[2] << " is not a curve" << endl;
+ //std::cout << a[2] << " is not a curve" << std::endl;
di << a[2] << " is not a curve\n";
return 1;
}
Handle(Geom_Curve) C = BRep_Tool::Curve(TopoDS::Edge(S),L,f,l);
if (C.IsNull()) {
- //cout << a[2] << " has no 3d curve" << endl;
+ //std::cout << a[2] << " has no 3d curve" << std::endl;
di << a[2] << " has no 3d curve\n";
return 1;
}
}
if (C.IsNull()) {
- //cout << a[2] << " has no 2d curve"; if (na == 4) cout << " on " << a[3];
- //cout << endl;
+ //std::cout << a[2] << " has no 2d curve"; if (na == 4) std::cout << " on " << a[3];
+ //std::cout << std::endl;
di << a[2] << " has no 2d curve";
if (hasFace)
if (n == 1) {
// print help
- //cout << "profile name [code values] [code values] ...\n";
- //cout << " Build a profile in the XY plane from a moving point and direction\n";
- //cout << " The original point and direction are 0 0 and 1 0\n";
- //cout << " Codes and values describe the point or direction change\n";
- //cout << " When the point change the direction becomes the tangent\n";
- //cout << " All angles are in degree (may be negative)\n";
- //cout << " By default the profile is closed and a face is built\n";
- //cout << "\n";
- //cout << " Instruction Parameters Action\n";
- //cout << " O X Y Z Set the origin of the plane\n";
- //cout << " P DX DY DZ UX UY UZ Set the normal and X of the plane\n";
- //cout << " S Face Set the Plane (Face must be a Face)\n";
- //cout << " F X Y Set the first point\n";
- //cout << " X DX Translate point along X\n";
- //cout << " Y DY Translate point along Y\n";
- //cout << " L DL Translate point along direction\n";
- //cout << " XX X Set point X coordinate\n";
- //cout << " YY Y Set point Y coordinate\n";
- //cout << " T DX DY Translate point\n";
- //cout << " TT X Y Set point\n";
- //cout << " R Angle Rotate direction\n";
- //cout << " RR Angle Set direction\n";
- //cout << " D DX DY Set direction\n";
- //cout << " IX X Intersect with vertical\n";
- //cout << " IY Y Intersect with horizontal\n";
- //cout << " C Radius Angle Arc of circle tangent to direction\n";
- //cout << " W Make a closed wire\n";
- //cout << " WW Make an open wire\n";
- //cout << endl;
+ //std::cout << "profile name [code values] [code values] ...\n";
+ //std::cout << " Build a profile in the XY plane from a moving point and direction\n";
+ //std::cout << " The original point and direction are 0 0 and 1 0\n";
+ //std::cout << " Codes and values describe the point or direction change\n";
+ //std::cout << " When the point change the direction becomes the tangent\n";
+ //std::cout << " All angles are in degree (may be negative)\n";
+ //std::cout << " By default the profile is closed and a face is built\n";
+ //std::cout << "\n";
+ //std::cout << " Instruction Parameters Action\n";
+ //std::cout << " O X Y Z Set the origin of the plane\n";
+ //std::cout << " P DX DY DZ UX UY UZ Set the normal and X of the plane\n";
+ //std::cout << " S Face Set the Plane (Face must be a Face)\n";
+ //std::cout << " F X Y Set the first point\n";
+ //std::cout << " X DX Translate point along X\n";
+ //std::cout << " Y DY Translate point along Y\n";
+ //std::cout << " L DL Translate point along direction\n";
+ //std::cout << " XX X Set point X coordinate\n";
+ //std::cout << " YY Y Set point Y coordinate\n";
+ //std::cout << " T DX DY Translate point\n";
+ //std::cout << " TT X Y Set point\n";
+ //std::cout << " R Angle Rotate direction\n";
+ //std::cout << " RR Angle Set direction\n";
+ //std::cout << " D DX DY Set direction\n";
+ //std::cout << " IX X Intersect with vertical\n";
+ //std::cout << " IY Y Intersect with horizontal\n";
+ //std::cout << " C Radius Angle Arc of circle tangent to direction\n";
+ //std::cout << " W Make a closed wire\n";
+ //std::cout << " WW Make an open wire\n";
+ //std::cout << std::endl;
di << "profile name [code values] [code values] ...\n";
di << " Build a profile in the XY plane from a moving point and direction\n";
di << " The original point and direction are 0 0 and 1 0\n";
if (n == 1) {
// print help
- //cout << " bsplineprof name [S face] [W WW] " << endl;
- //cout << " for an edge : <digitizes> ... <mouse button 2> " << endl ;
- //cout << " to end profile : <mouse button 3> " << endl ;
- //cout << " Build a profile in the XY plane from digitizes" << endl ;
- //cout << " By default the profile is closed and a face is built\n";
- //cout << "\n";
- //cout << " W Make a closed wire\n";
- //cout << " WW Make an open wire\n";
- //cout << endl;
+ //std::cout << " bsplineprof name [S face] [W WW] " << std::endl;
+ //std::cout << " for an edge : <digitizes> ... <mouse button 2> " << std::endl ;
+ //std::cout << " to end profile : <mouse button 3> " << std::endl ;
+ //std::cout << " Build a profile in the XY plane from digitizes" << std::endl ;
+ //std::cout << " By default the profile is closed and a face is built\n";
+ //std::cout << "\n";
+ //std::cout << " W Make a closed wire\n";
+ //std::cout << " WW Make an open wire\n";
+ //std::cout << std::endl;
di << " bsplineprof name [S face] [W WW] " << "\n";
di << " for an edge : <digitizes> ... <mouse button 2> " << "\n";
di << " to end profile : <mouse button 3> " << "\n";
if (n == 1) {
// print help
- //cout << "profile name [code values] [code values] ...\n";
- //cout << " Build a profile in the UV plane from a moving point and direction\n";
- //cout << " The original point and direction are 0 0 and 1 0\n";
- //cout << " Codes and values describe the point or direction change\n";
- //cout << " When the point change the direction becomes the tangent\n";
- //cout << " All angles are in degree (may be negative)\n";
- //cout << " By default the profile is closed \n";
- //cout << "\n";
- //cout << " Instruction Parameters Action\n";
- //cout << " F X Y Set the first point\n";
- //cout << " X DX Translate point along X\n";
- //cout << " Y DY Translate point along Y\n";
- //cout << " L DL Translate point along direction\n";
- //cout << " XX X Set point X coordinate\n";
- //cout << " YY Y Set point Y coordinate\n";
- //cout << " T DX DY Translate point\n";
- //cout << " TT X Y Set point\n";
- //cout << " R Angle Rotate direction\n";
- //cout << " RR Angle Set direction\n";
- //cout << " D DX DY Set direction\n";
- //cout << " IX X Intersect with vertical\n";
- //cout << " IY Y Intersect with horizontal\n";
- //cout << " C Radius Angle Arc of circle tangent to direction\n";
- //cout << " W Make a closed wire\n";
- //cout << endl;
+ //std::cout << "profile name [code values] [code values] ...\n";
+ //std::cout << " Build a profile in the UV plane from a moving point and direction\n";
+ //std::cout << " The original point and direction are 0 0 and 1 0\n";
+ //std::cout << " Codes and values describe the point or direction change\n";
+ //std::cout << " When the point change the direction becomes the tangent\n";
+ //std::cout << " All angles are in degree (may be negative)\n";
+ //std::cout << " By default the profile is closed \n";
+ //std::cout << "\n";
+ //std::cout << " Instruction Parameters Action\n";
+ //std::cout << " F X Y Set the first point\n";
+ //std::cout << " X DX Translate point along X\n";
+ //std::cout << " Y DY Translate point along Y\n";
+ //std::cout << " L DL Translate point along direction\n";
+ //std::cout << " XX X Set point X coordinate\n";
+ //std::cout << " YY Y Set point Y coordinate\n";
+ //std::cout << " T DX DY Translate point\n";
+ //std::cout << " TT X Y Set point\n";
+ //std::cout << " R Angle Rotate direction\n";
+ //std::cout << " RR Angle Set direction\n";
+ //std::cout << " D DX DY Set direction\n";
+ //std::cout << " IX X Intersect with vertical\n";
+ //std::cout << " IY Y Intersect with horizontal\n";
+ //std::cout << " C Radius Angle Arc of circle tangent to direction\n";
+ //std::cout << " W Make a closed wire\n";
+ //std::cout << std::endl;
di << "profile name [code values] [code values] ...\n";
di << " Build a profile in the UV plane from a moving point and direction\n";
di << " The original point and direction are 0 0 and 1 0\n";
EInter.Perform (E[0],E[1],reducesegments);
if (EInter.IsEmpty()) {
- //cout << " No intersection found" << endl;
+ //std::cout << " No intersection found" << std::endl;
di << " No intersection found\n";
return 0;
}
else if (P2D.Transition(i).Before() == TopAbs_OUT) {
OO = TopAbs_FORWARD;
}
- //cout << " Orientation of vertex " << NbV << " on " << a[i+1] << ": ";
+ //std::cout << " Orientation of vertex " << NbV << " on " << a[i+1] << ": ";
di << " Orientation of vertex " << NbV << " on " << a[i+1] << ": ";
if (OO == TopAbs_FORWARD) {
- //cout << "FORWARD" << endl;
+ //std::cout << "FORWARD" << std::endl;
di << "FORWARD\n";
} else {
- //cout << "REVERSED" << endl;
+ //std::cout << "REVERSED" << std::endl;
di << "REVERSED\n";
}
}
{
if ( (n <2) || (n>3) ) {
- //cout << " 1 or 2 arguments expected" << endl;
+ //std::cout << " 1 or 2 arguments expected" << std::endl;
di << " 1 or 2 arguments expected\n";
return 1;
}
if (n==2) { Ok = BRepLib::BuildCurves3d(S); }
else { Ok = BRepLib::BuildCurves3d(S,Draw::Atof(a[2])); }
- //if (!Ok) {cout << " one of the computation failed" << endl;}
+ //if (!Ok) {std::cout << " one of the computation failed" << std::endl;}
if (!Ok) {di << " one of the computation failed\n";}
return 0;
{
TopoDS_Shape aShape = DBRep::Get(a[i]);
if (aShape.IsNull())
- //cout << a[i] << " is not a valid shape" << endl;
+ //std::cout << a[i] << " is not a valid shape" << std::endl;
di << a[i] << " is not a valid shape\n";
else
BRepTools::RemoveUnusedPCurves(aShape);
if ((narg<15)||((narg)%9 != 6)) return 1;
TopoDS_Shape V = DBRep::Get(a[2]);
if ( V.IsNull()) {
- //cout << a[2] << " is not a Shape" << endl;
+ //std::cout << a[2] << " is not a Shape" << std::endl;
theCommands << a[2] << " is not a Shape\n";
return 1;
}
// F = TopoDS::Face(DBRep::Get(a[9*ii+6],TopAbs_FACE));
if ( F.IsNull()) {
- //cout << a[9*ii+6] << " is not a face" << endl;
+ //std::cout << a[9*ii+6] << " is not a face" << std::endl;
theCommands << a[9*ii+6] << " is not a face\n";
return 1;
}
if (Internal) {
MkDraft.SetDraft(Internal);
di << "Internal Draft : \n";
- //cout << "Internal Draft : " << endl;
+ //std::cout << "Internal Draft : " << std::endl;
}
else
di << "External Draft : \n";
- //cout << "External Draft : " << endl;
+ //std::cout << "External Draft : " << std::endl;
TopoDS_Shape Stop = DBRep::Get(a[7]);//shape d'arret
if (!Stop.IsNull()) {
gp_Pnt P1,P2;
Standard_Real D;
if (!BRepExtrema_Poly::Distance(S1,S2,P1,P2,D)) return 1;
- //cout << " distance : " << D << endl;
+ //std::cout << " distance : " << D << std::endl;
di << " distance : " << D << "\n";
TopoDS_Edge E = BRepLib_MakeEdge(P1,P2);
DBRep::Set("distance",E);
if (dst.IsDone())
{
#ifdef OCCT_DEBUG
- //dst.Dump(cout);
+ //dst.Dump(std::cout);
di << "*** Dump of \"BRepExtrema_DistShapeShape\" in DEBUG mode (begin) *****\n";
Standard_SStream aSStream;
dst.Dump(aSStream);
}
else {
// il faudrait inverser V et appeler PerfomFromEnd...
- //cout << "Not Implemented" << endl;
+ //std::cout << "Not Implemented" << std::endl;
theCommands << "Not Implemented\n";
}
}
}
else { //FUntil.IsNull()
// il faudrait inverser V et appeler PerfomFromEnd...
- //cout << "Not Implemented" << endl;
+ //std::cout << "Not Implemented" << std::endl;
theCommands << "Not Implemented\n";
}
}
if (narg < 3)
{
- cout << "Invalid number of arguments. Should be : splitshape result shape [splitedges] \
+ std::cout << "Invalid number of arguments. Should be : splitshape result shape [splitedges] \
[face wire/edge/compound [wire/edge/compound ...] \
[face wire/edge/compound [wire/edge/compound...] ...] \
- [@ edgeonshape edgeonwire [edgeonshape edgeonwire...]]" << endl;
+ [@ edgeonshape edgeonwire [edgeonshape edgeonwire...]]" << std::endl;
return 1;
}
TopoDS_Shape S = DBRep::Get(a[2]);
if (S.IsNull())
{
- cout << "Invalid input shape " << a[2]<<endl;
+ std::cout << "Invalid input shape " << a[2]<<std::endl;
return 1;
}
BRepFeat_SplitShape Spls(S);
TopoDS_Shape aSh = DBRep::Get(a[i]);
if (aSh.IsNull())
{
- cout << "Invalid input shape " <<a[i]<<endl;
+ std::cout << "Invalid input shape " <<a[i]<<std::endl;
return 1;
}
TopoDS_Shape aSh = DBRep::Get(a[i]);
if (aSh.IsNull())
{
- cout << "Invalid input shape " <<a[i]<< endl;
+ std::cout << "Invalid input shape " <<a[i]<< std::endl;
return 1;
}
TopExp_Explorer aExpE(aSh, TopAbs_EDGE, TopAbs_FACE);
}
else
{
- cout << "Invalid input arguments. Should be : splitshape result shape [splitedges] \
+ std::cout << "Invalid input arguments. Should be : splitshape result shape [splitedges] \
[face wire/edge/compound [wire/edge/compound ...] \
[face wire/edge/compound [wire/edge/compound...] ...] \
- [@ edgeonshape edgeonwire [edgeonshape edgeonwire...]]"<<endl;
+ [@ edgeonshape edgeonwire [edgeonshape edgeonwire...]]"<<std::endl;
return 1;
}
}
Ew = TopoDS::Edge(aLocalShape);
// Ew = TopoDS::Edge(DBRep::Get(a[i+1],TopAbs_EDGE));
if (Ew.IsNull()) {
- cout << "Invalid input shape " <<a[i+1]<< endl;
+ std::cout << "Invalid input shape " <<a[i+1]<< std::endl;
return 1;
}
Spls.Add(TopoDS::Edge(Ew),TopoDS::Edge(Es));
theRF.Init(Sbase, W, P, ax1, H1, H2, Fuse, Modify);
if (!theRF.IsDone()) {
se = theRF.CurrentStatusError();
- //BRepFeat::Print(se,cout) << endl;
+ //BRepFeat::Print(se,std::cout) << std::endl;
Standard_SStream aSStream;
BRepFeat::Print(se,aSStream);
theCommands << aSStream << "\n";
theLF.Init(Sbase, W, P, Direct, gp_Vec(X,Y,Z), Fuse,Modify);
if (!theLF.IsDone()) {
se = theLF.CurrentStatusError();
- //BRepFeat::Print(se,cout) << endl;
+ //BRepFeat::Print(se,std::cout) << std::endl;
Standard_SStream aSStream;
BRepFeat::Print(se,aSStream);
theCommands << aSStream << "\n";
case 1:
if (!thePrism.IsDone()) {
se = thePrism.CurrentStatusError();
- //BRepFeat::Print(se,cout) << endl;
+ //BRepFeat::Print(se,std::cout) << std::endl;
Standard_SStream aSStream;
BRepFeat::Print(se,aSStream);
theCommands << aSStream << "\n";
case 2:
if (!theRevol.IsDone()) {
se = theRevol.CurrentStatusError();
- //BRepFeat::Print(se,cout) << endl;
+ //BRepFeat::Print(se,std::cout) << std::endl;
Standard_SStream aSStream;
BRepFeat::Print(se,aSStream);
theCommands << aSStream << "\n";
case 3:
if (!thePipe.IsDone()) {
se = thePipe.CurrentStatusError();
- //BRepFeat::Print(se,cout) << endl;
+ //BRepFeat::Print(se,std::cout) << std::endl;
Standard_SStream aSStream;
BRepFeat::Print(se,aSStream);
theCommands << aSStream << "\n";
case 4:
if (!theDPrism.IsDone()) {
se = theDPrism.CurrentStatusError();
- //BRepFeat::Print(se,cout) << endl;
+ //BRepFeat::Print(se,std::cout) << std::endl;
Standard_SStream aSStream;
BRepFeat::Print(se,aSStream);
theCommands << aSStream << "\n";
case 5:
if (!theLF.IsDone()) {
se = theLF.CurrentStatusError();
- //BRepFeat::Print(se,cout) << endl;
+ //BRepFeat::Print(se,std::cout) << std::endl;
Standard_SStream aSStream;
BRepFeat::Print(se,aSStream);
theCommands << aSStream << "\n";
case 6:
if (!theRF.IsDone()) {
se = theRF.CurrentStatusError();
- //BRepFeat::Print(se,cout) << endl;
+ //BRepFeat::Print(se,std::cout) << std::endl;
Standard_SStream aSStream;
BRepFeat::Print(se,aSStream);
theCommands << aSStream << "\n";
static Standard_Integer contblend(Draw_Interpretor& di, Standard_Integer narg, const char** a)
{
if(narg ==1) {
- //cout<<"tolerance angular of approximation : "<< tapp_angle <<endl;
- //cout<<"internal continuity : ";
+ //std::cout<<"tolerance angular of approximation : "<< tapp_angle <<std::endl;
+ //std::cout<<"internal continuity : ";
di<<"tolerance angular of approximation : "<< tapp_angle <<"\n";
di<<"internal continuity : ";
switch (blend_cont) {
case GeomAbs_C0:
- //cout << ""<<endl;
+ //std::cout << ""<<std::endl;
di << "C0\n";
break;
case GeomAbs_C1:
- //cout << "C1"<<endl;
+ //std::cout << "C1"<<std::endl;
di << "C1\n";
break;
case GeomAbs_C2:
- //cout << "C2"<<endl;
+ //std::cout << "C2"<<std::endl;
di << "C2\n";
break;
default:
static void printtolblend(Draw_Interpretor& di)
{
- //cout<<"tolerance ang : "<<ta<<endl;
- //cout<<"tolerance 3d : "<<t3d<<endl;
- //cout<<"tolerance 2d : "<<t2d<<endl;
- //cout<<"fleche : "<<fl<<endl;
+ //std::cout<<"tolerance ang : "<<ta<<std::endl;
+ //std::cout<<"tolerance 3d : "<<t3d<<std::endl;
+ //std::cout<<"tolerance 2d : "<<t2d<<std::endl;
+ //std::cout<<"fleche : "<<fl<<std::endl;
- //cout<<"tolblend "<<ta<<" "<<t3d<<" "<<t2d<<" "<<fl<<endl;
+ //std::cout<<"tolblend "<<ta<<" "<<t3d<<" "<<t2d<<" "<<fl<<std::endl;
di<<"tolerance ang : "<<ta<<"\n";
di<<"tolerance 3d : "<<t3d<<"\n";
const char** )
{
if(Rakk == 0) {
- //cout<<"No active Builder"<<endl;
+ //std::cout<<"No active Builder"<<std::endl;
di<<"No active Builder\n";
return 1;
}
if(!Rakk->IsDone()) {
- //cout<<"Active Builder Not Done"<<endl;
+ //std::cout<<"Active Builder Not Done"<<std::endl;
di<<"Active Builder Not Done\n";
return 1;
}
It.Initialize(Rakk->Generated(curshape));
PrintHist(curshape,It,nbgen);
}
- //cout<<"foreach g [lsort [dir gen*]] { wclick; puts [dname $g]; donl $g; }"<<endl;
+ //std::cout<<"foreach g [lsort [dir gen*]] { wclick; puts [dname $g]; donl $g; }"<<std::endl;
di<<"foreach g [lsort [dir gen*]] { wclick; puts [dname $g]; donl $g; }\n";
return 0;
}
const char** a)
{
if(Rake == 0){
- //cout << "MakeFillet not initialized"<<endl;
+ //std::cout << "MakeFillet not initialized"<<std::endl;
di << "MakeFillet not initialized\n";
return 1 ;
}
const char**)
{
if(Rake == 0){
- //cout << "MakeFillet not initialized"<<endl;
+ //std::cout << "MakeFillet not initialized"<<std::endl;
di << "MakeFillet not initialized\n";
return 1 ;
}
printtolblend(di);
if(narg < 5)
{
- cout << "Use <command name> result shape1 shape2 radius [-d]" << endl;
+ std::cout << "Use <command name> result shape1 shape2 radius [-d]" << std::endl;
return 1;
}
//if (Rakk.IsDone()==FilletSurf_IsNotOk)
// { FilletSurf_ErrorTypeStatus err=Rakk.StatusError();
- // if (err==FilletSurf_EmptyList) cout<< "StatusError=EmptyList"<<endl;
- // else if (err==FilletSurf_EdgeNotG1) cout<< "StatusError=NotG1"<<endl;
- // else if (err==FilletSurf_FacesNotG1) cout<< "StatusError=facesNotG1"<<endl;
+ // if (err==FilletSurf_EmptyList) std::cout<< "StatusError=EmptyList"<<std::endl;
+ // else if (err==FilletSurf_EdgeNotG1) std::cout<< "StatusError=NotG1"<<std::endl;
+ // else if (err==FilletSurf_FacesNotG1) std::cout<< "StatusError=facesNotG1"<<std::endl;
// else if (err==FilletSurf_EdgeNotOnShape)
- // cout<< "StatusError=edgenotonshape"<<endl;
- // else if (err==FilletSurf_NotSharpEdge ) cout<< "StatusError=notsharpedge"<<endl;
- // else if (err==FilletSurf_PbFilletCompute) cout <<"StatusError=PBFillet"<<endl;
+ // std::cout<< "StatusError=edgenotonshape"<<std::endl;
+ // else if (err==FilletSurf_NotSharpEdge ) std::cout<< "StatusError=notsharpedge"<<std::endl;
+ // else if (err==FilletSurf_PbFilletCompute) std::cout <<"StatusError=PBFillet"<<std::endl;
// }
// else {
- // if (Rakk.IsDone()==FilletSurf_IsPartial) cout <<"resultat partiel"<<endl;
+ // if (Rakk.IsDone()==FilletSurf_IsPartial) std::cout <<"resultat partiel"<<std::endl;
if (aRakk.IsDone()==FilletSurf_IsNotOk)
{ FilletSurf_ErrorTypeStatus err=aRakk.StatusError();
if (err==FilletSurf_EmptyList) di<< "StatusError=EmptyList\n";
if (!simul)
{
//if (Rakk.StartSectionStatus()==FilletSurf_NoExtremityOnEdge)
- // {cout<<" type deb conges = WLBLOUT"<<endl;}
+ // {std::cout<<" type deb conges = WLBLOUT"<<std::endl;}
//else if (Rakk.StartSectionStatus()==FilletSurf_OneExtremityOnEdge )
- // { cout<<" type deb conges = WLBLSTOP"<<endl;}
+ // { std::cout<<" type deb conges = WLBLSTOP"<<std::endl;}
//else if (Rakk.StartSectionStatus()==FilletSurf_TwoExtremityOnEdge)
- // {cout<<" type deb conges = WLBLEND"<<endl;}
+ // {std::cout<<" type deb conges = WLBLEND"<<std::endl;}
if (aRakk.StartSectionStatus()==FilletSurf_NoExtremityOnEdge)
{di<<" type start fillets = WLBLOUT\n";}
else if (aRakk.StartSectionStatus()==FilletSurf_OneExtremityOnEdge)
{di<<" type start fillets = WLBLEND\n";}
//if (Rakk.EndSectionStatus()==FilletSurf_NoExtremityOnEdge)
- // {cout<<" type fin conges = WLBLOUT"<<endl;}
+ // {std::cout<<" type fin conges = WLBLOUT"<<std::endl;}
//else if (Rakk.EndSectionStatus()==FilletSurf_OneExtremityOnEdge)
- // {cout<<" type fin conges = WLBLSTOP"<<endl;}
+ // {std::cout<<" type fin conges = WLBLSTOP"<<std::endl;}
//else if (Rakk.EndSectionStatus()==FilletSurf_TwoExtremityOnEdge)
- // { cout<<" type fin conges = WLBLEND"<<endl;}
+ // { std::cout<<" type fin conges = WLBLEND"<<std::endl;}
if (aRakk.EndSectionStatus()==FilletSurf_NoExtremityOnEdge)
{di<<" type end fillets = WLBLOUT\n";}
else if (aRakk.EndSectionStatus()==FilletSurf_OneExtremityOnEdge)
Standard_Real f,l;
f = aRakk.FirstParameter();
l = aRakk.LastParameter();
- //cout<<"parameter on edge start : "<<f<<endl;
- //cout<<"parameter on edge end : "<<l<<endl;
+ //std::cout<<"parameter on edge start : "<<f<<std::endl;
+ //std::cout<<"parameter on edge end : "<<l<<std::endl;
di<<"parametre on edge start : "<<f<<"\n";
di<<"parametre on edge end : "<<l<<"\n";
for (i=1;i<=nb;i++){
//precision
- //cout<<"precision "<< i << "= "<<Rakk.TolApp3d(i)<<endl;
+ //std::cout<<"precision "<< i << "= "<<Rakk.TolApp3d(i)<<std::endl;
di<<"precision "<< i << "= "<<aRakk.TolApp3d(i)<<"\n";
// display resulting surfaces
TopoDS_Face F1 = TopoDS::Face(aLocalFace);
// TopoDS_Face F1 = TopoDS::Face(DBRep::Get(a[i],TopAbs_FACE));
if ( F1.IsNull()) {
- //cout << " Stop face not referenced." << endl;
+ //std::cout << " Stop face not referenced." << std::endl;
di << " Stop face not referenced.\n";
return 1;
}
// TopoDS_Face F1 = TopoDS::Face(DBRep::Get(a[i],TopAbs_FACE));
i++;
if ( !strcmp(a[i],"@")) {
- //cout << " Even number of ball support faces is required " << endl;
+ //std::cout << " Even number of ball support faces is required " << std::endl;
di << " Even number of ball support faces is required \n";
return 1;
}
TopoDS_Face F2 = TopoDS::Face(aLocalFace);
// TopoDS_Face F2 = TopoDS::Face(DBRep::Get(a[i],TopAbs_FACE));
if ( F1.IsNull() || F2.IsNull()) {
- //cout << " Support face not referenced." << endl;
+ //std::cout << " Support face not referenced." << std::endl;
di << " Support face not referenced.\n";
return 1;
}
TopoDS_Edge E = TopoDS::Edge(aLocalShape);
// TopoDS_Edge E = TopoDS::Edge(DBRep::Get(a[i],TopAbs_EDGE));
if ( E.IsNull()) {
- //cout << " Edge not referenced." << endl;
+ //std::cout << " Edge not referenced." << std::endl;
di << " Edge not referenced.\n";
return 1;
}
for (Standard_Integer i = 1; i <= NbBranches; i++) {
Standard_Integer From,To;
Roll.IndicesOfBranche(i,From,To);
- //cout << " Indexes of the " << i << "th Branch : ";
- //cout << " " << From << " " << To << endl;
+ //std::cout << " Indexes of the " << i << "th Branch : ";
+ //std::cout << " " << From << " " << To << std::endl;
di << " Indexes of the " << i << "th Branch : ";
di << " " << From << " " << To << "\n";
for (Standard_Integer j = From; j <= To; j++) {
Henri.Perform();
Standard_Real ErrG0 = 1.1*Henri.G0Error();
- //cout<<" dist. max = "<<Henri.G0Error()<<" ; angle max = "<<Henri.G1Error()<<endl;
+ //std::cout<<" dist. max = "<<Henri.G0Error()<<" ; angle max = "<<Henri.G1Error()<<std::endl;
di<<" dist. max = "<<Henri.G0Error()<<" ; angle max = "<<Henri.G1Error()<<"\n";
BRepBuilderAPI_MakeWire MW;
Standard_Real dmax = Henri.G0Error(),
anmax = Henri.G1Error();
- //cout<<" dist. max = "<<dmax<<" ; angle max = "<<anmax<<endl;
+ //std::cout<<" dist. max = "<<dmax<<" ; angle max = "<<anmax<<std::endl;
di<<" dist. max = "<<dmax<<" ; angle max = "<<anmax<<"\n";
Tol3d = Draw::Atof(a[3*NbCurFront+4]);
{
if (F.IsNull())
{
- //cout<<endl<<"Wrong parameters"<<endl<<endl;
+ //std::cout<<std::endl<<"Wrong parameters"<<std::endl<<std::endl;
di<<"\nWrong parameters\n\n";
return 1;
}
E = TopoDS::Edge( DBRep::Get(a[i++], TopAbs_EDGE) );
if (E.IsNull())
{
- //cout<<"Wrong parameters"<<endl;
+ //std::cout<<"Wrong parameters"<<std::endl;
di<<"Wrong parameters\n";
return 1;
}
F = TopoDS::Face( DBRep::Get(a[i++], TopAbs_FACE));
if (F.IsNull())
{
- //cout<<"Wrong parameters"<<endl;
+ //std::cout<<"Wrong parameters"<<std::endl;
di<<"Wrong parameters\n";
return 1;
}
MakeFilling.Build();
if (! MakeFilling.IsDone())
{
- //cout<<"filling failed"<<endl;
+ //std::cout<<"filling failed"<<std::endl;
di<<"filling failed\n";
return 0;
}
Standard_Real dmax = MakeFilling.G0Error(),
angmax = MakeFilling.G1Error(),
curvmax = MakeFilling.G2Error();
- //cout<<" dist. max = "<<dmax<<" ; angle max = "<<angmax<<" ; diffcurv max = "<<curvmax<<endl;
+ //std::cout<<" dist. max = "<<dmax<<" ; angle max = "<<angmax<<" ; diffcurv max = "<<curvmax<<std::endl;
di<<" dist. max = "<<dmax<<" ; angle max = "<<angmax<<" ; diffcurv max = "<<curvmax<<"\n";
TopoDS_Face ResFace= TopoDS::Face( MakeFilling.Shape() );
Chrono.Stop();
Standard_Real Tps;
Chrono.Show(Tps);
- //cout<<"*** FIN DE FILLING ***"<<endl;
- //cout<<"Temps de calcul : "<<Tps<<endl;
+ //std::cout<<"*** FIN DE FILLING ***"<<std::endl;
+ //std::cout<<"Temps de calcul : "<<Tps<<std::endl;
di<<"*** FIN DE FILLING ***\n";
di<<"Temps de calcul : "<<Tps<<"\n";
#endif
{
if ( n == 1) {
- //cout << "fillingparam : options are" <<endl;
- //cout << "-l : to list current values" << endl;
- //cout << "-i : to set default values" << endl;
- //cout << "-r deg nbPonC nbIt anis : to set filling options" <<endl;
- //cout << "-c t2d t3d tang tcur : to set tolerances" << endl;
- //cout << "-a maxdeg maxseg : Approximation option" << endl;
+ //std::cout << "fillingparam : options are" <<std::endl;
+ //std::cout << "-l : to list current values" << std::endl;
+ //std::cout << "-i : to set default values" << std::endl;
+ //std::cout << "-r deg nbPonC nbIt anis : to set filling options" <<std::endl;
+ //std::cout << "-c t2d t3d tang tcur : to set tolerances" << std::endl;
+ //std::cout << "-a maxdeg maxseg : Approximation option" << std::endl;
di << "fillingparam : options are" <<"\n";
di << "-l : to list current values\n";
di << "-i : to set default values" << "\n";
const char* flag = AS.ToCString();
if (strcmp( flag, "-l" ) == 0 && n == 2)
{
- //cout<<endl;
- //cout<<"Degree = "<<Degree<<endl;
- //cout<<"NbPtsOnCur = "<<NbPtsOnCur<<endl;
- //cout<<"NbIter = "<<NbIter<<endl;
- //cout<<"Anisotropie = "<<Anisotropie<<endl<<endl;
+ //std::cout<<std::endl;
+ //std::cout<<"Degree = "<<Degree<<std::endl;
+ //std::cout<<"NbPtsOnCur = "<<NbPtsOnCur<<std::endl;
+ //std::cout<<"NbIter = "<<NbIter<<std::endl;
+ //std::cout<<"Anisotropie = "<<Anisotropie<<std::endl<<std::endl;
//
- //cout<<"Tol2d = "<<Tol2d<<endl;
- //cout<<"Tol3d = "<<Tol3d<<endl;
- //cout<<"TolAng = "<<TolAng<<endl;
- //cout<<"TolCurv = "<<TolCurv<<endl<<endl;
+ //std::cout<<"Tol2d = "<<Tol2d<<std::endl;
+ //std::cout<<"Tol3d = "<<Tol3d<<std::endl;
+ //std::cout<<"TolAng = "<<TolAng<<std::endl;
+ //std::cout<<"TolCurv = "<<TolCurv<<std::endl<<std::endl;
//
- //cout<<"MaxDeg = "<<MaxDeg<<endl;
- //cout<<"MaxSegments = "<<MaxSegments<<endl<<endl;
+ //std::cout<<"MaxDeg = "<<MaxDeg<<std::endl;
+ //std::cout<<"MaxSegments = "<<MaxSegments<<std::endl<<std::endl;
di<<"\n";
di<<"Degree = "<<Degree<<"\n";
di<<"NbPtsOnCur = "<<NbPtsOnCur<<"\n";
}
else
{
- //cout<<"Wrong parameters"<<endl;
+ //std::cout<<"Wrong parameters"<<std::endl;
di<<"Wrong parameters\n";
return 1;
}
{
Standard_SStream aSStream1;
aSStream1 << "\n\n";
- aSStream1 << "Mass : " << setw(15) << G.Mass() << "\n\n";
- if(witheps && *a[0] != 'l') aSStream1 << "Relative error of mass computation : " << setw(15) << eps << "\n\n";
+ aSStream1 << "Mass : " << std::setw(15) << G.Mass() << "\n\n";
+ if(witheps && *a[0] != 'l') aSStream1 << "Relative error of mass computation : " << std::setw(15) << eps << "\n\n";
aSStream1 << "Center of gravity : \n";
- aSStream1 << "X = " << setw(15) << P.X() << "\n";
- aSStream1 << "Y = " << setw(15) << P.Y() << "\n";
- aSStream1 << "Z = " << setw(15) << P.Z() << "\n";
+ aSStream1 << "X = " << std::setw(15) << P.X() << "\n";
+ aSStream1 << "Y = " << std::setw(15) << P.Y() << "\n";
+ aSStream1 << "Z = " << std::setw(15) << P.Z() << "\n";
aSStream1 << "\n";
aSStream1 << "Matrix of Inertia : \n";
- aSStream1 << setw(15) << I(1,1);
- aSStream1 << " " << setw(15) << I(1,2);
- aSStream1 << " " << setw(15) << I(1,3) << "\n";
- aSStream1 << setw(15) << I(2,1);
- aSStream1 << " " << setw(15) << I(2,2);
- aSStream1 << " " << setw(15) << I(2,3) << "\n";
- aSStream1 << setw(15) << I(3,1);
- aSStream1 << " " << setw(15) << I(3,2);
- aSStream1 << " " << setw(15) << I(3,3) << "\n";
+ aSStream1 << std::setw(15) << I(1,1);
+ aSStream1 << " " << std::setw(15) << I(1,2);
+ aSStream1 << " " << std::setw(15) << I(1,3) << "\n";
+ aSStream1 << std::setw(15) << I(2,1);
+ aSStream1 << " " << std::setw(15) << I(2,2);
+ aSStream1 << " " << std::setw(15) << I(2,3) << "\n";
+ aSStream1 << std::setw(15) << I(3,1);
+ aSStream1 << " " << std::setw(15) << I(3,2);
+ aSStream1 << " " << std::setw(15) << I(3,3) << "\n";
aSStream1 << "\n";
- aSStream1 << ends;
+ aSStream1 << std::ends;
di << aSStream1;
Standard_SStream aSStream2;
aSStream2 << "Moments : \n";
- aSStream2 << "IX = " << setw(15) << Ix << "\n";
- aSStream2 << "IY = " << setw(15) << Iy << "\n";
- aSStream2 << "IZ = " << setw(15) << Iz << "\n";
+ aSStream2 << "IX = " << std::setw(15) << Ix << "\n";
+ aSStream2 << "IY = " << std::setw(15) << Iy << "\n";
+ aSStream2 << "IZ = " << std::setw(15) << Iz << "\n";
aSStream2 << "\n";
- aSStream2 << ends;
+ aSStream2 << std::ends;
di << aSStream2;
}
else
aSStream0.precision(15);
aSStream0 << "\n\n";
- aSStream0 << "Mass : " << setw(anOutWidth) << G.Mass() << "\n\n";
- aSStream0 << "Relative error of mass computation : " << setw(anOutWidth) << eps << "\n\n";
- aSStream0 << ends;
+ aSStream0 << "Mass : " << std::setw(anOutWidth) << G.Mass() << "\n\n";
+ aSStream0 << "Relative error of mass computation : " << std::setw(anOutWidth) << eps << "\n\n";
+ aSStream0 << std::ends;
di << aSStream0;
if(CGFlag || IFlag) {
aSStream1.precision(15);
aSStream1 << "Center of gravity : \n";
- aSStream1 << "X = " << setw(anOutWidth) << P.X() << "\n";
- aSStream1 << "Y = " << setw(anOutWidth) << P.Y() << "\n";
- aSStream1 << "Z = " << setw(anOutWidth) << P.Z() << "\n";
+ aSStream1 << "X = " << std::setw(anOutWidth) << P.X() << "\n";
+ aSStream1 << "Y = " << std::setw(anOutWidth) << P.Y() << "\n";
+ aSStream1 << "Z = " << std::setw(anOutWidth) << P.Z() << "\n";
aSStream1 << "\n";
if(IFlag) {
gp_Mat I = G.MatrixOfInertia();
aSStream1 << "Matrix of Inertia : \n";
- aSStream1 << setw(anOutWidth) << I(1,1);
- aSStream1 << " " << setw(anOutWidth) << I(1,2);
- aSStream1 << " " << setw(anOutWidth) << I(1,3) << "\n";
- aSStream1 << setw(anOutWidth) << I(2,1);
- aSStream1 << " " << setw(anOutWidth) << I(2,2);
- aSStream1 << " " << setw(anOutWidth) << I(2,3) << "\n";
- aSStream1 << setw(anOutWidth) << I(3,1);
- aSStream1 << " " << setw(anOutWidth) << I(3,2);
- aSStream1 << " " << setw(anOutWidth) << I(3,3) << "\n";
+ aSStream1 << std::setw(anOutWidth) << I(1,1);
+ aSStream1 << " " << std::setw(anOutWidth) << I(1,2);
+ aSStream1 << " " << std::setw(anOutWidth) << I(1,3) << "\n";
+ aSStream1 << std::setw(anOutWidth) << I(2,1);
+ aSStream1 << " " << std::setw(anOutWidth) << I(2,2);
+ aSStream1 << " " << std::setw(anOutWidth) << I(2,3) << "\n";
+ aSStream1 << std::setw(anOutWidth) << I(3,1);
+ aSStream1 << " " << std::setw(anOutWidth) << I(3,2);
+ aSStream1 << " " << std::setw(anOutWidth) << I(3,3) << "\n";
aSStream1 << "\n";
}
- aSStream1 << ends;
+ aSStream1 << std::ends;
di << aSStream1;
}
aSStream2.precision(15);
aSStream2 << "Moments : \n";
- aSStream2 << "IX = " << setw(anOutWidth) << Ix << "\n";
- aSStream2 << "IY = " << setw(anOutWidth) << Iy << "\n";
- aSStream2 << "IZ = " << setw(anOutWidth) << Iz << "\n";
+ aSStream2 << "IX = " << std::setw(anOutWidth) << Ix << "\n";
+ aSStream2 << "IY = " << std::setw(anOutWidth) << Iy << "\n";
+ aSStream2 << "IZ = " << std::setw(anOutWidth) << Iz << "\n";
aSStream2 << "\n";
aSStream2 << "\n";
- aSStream2 << ends;
+ aSStream2 << std::ends;
di << aSStream2;
gp_Ax2 axes(P,Pr.ThirdAxisOfInertia(),Pr.FirstAxisOfInertia());
{
if (n <= 2)
{
- cout<<"Invalid input arguments. Should be: curve1 [curve2 ...] shape [result] [tol]"<<endl;
+ std::cout<<"Invalid input arguments. Should be: curve1 [curve2 ...] shape [result] [tol]"<<std::endl;
return 1;
}
Standard_Integer indshape = 2;
}
if (S.IsNull())
{
- cout<<"Invalid input shape"<<endl;
+ std::cout<<"Invalid input shape"<<std::endl;
return 1;
}
Handle(Geom_Surface) S = DrawTrSurf::GetSurface(a[2]);
if (S.IsNull()) {
- cout << a[2] << " is not a surface" << endl;
+ std::cout << a[2] << " is not a surface" << std::endl;
return 1;
}
const Handle(Geom2d_Curve) c = BRep_Tool::CurveOnSurface
(TopoDS::Edge(ex.Current()),TopoDS::Face(S),f,l);
if ( c.IsNull() ) {
- cout << "Error: Edge " << i << " does not have pcurve" << endl;
+ std::cout << "Error: Edge " << i << " does not have pcurve" << std::endl;
continue;
}
col = DBRep_ColorOrientation(ex.Current().Orientation());
{
theDI << "Error: There are some problems while adding (" <<
(static_cast<Standard_Integer>(aStatus)) << ")\n";
- aFS.GetStatuses(&cout);
+ aFS.GetStatuses(&std::cout);
}
aFS.Perform();
{
theDI << "Error: There are some problems while performing (" <<
(static_cast<Standard_Integer>(aStatus)) << ")\n";
- aFS.GetStatuses(&cout);
+ aFS.GetStatuses(&std::cout);
}
DBRep::Set(theArgVal[1], aFS.GetResult());
{
if( argc < 3)
{
- cout<<"Invalid number of arguments. Should be: checkedgeregularity edge face1 [face2]"<<endl;
+ std::cout<<"Invalid number of arguments. Should be: checkedgeregularity edge face1 [face2]"<<std::endl;
return 1;
}
TopoDS_Shape aFace2 = (argc > 3 ? DBRep::Get(argv[3],TopAbs_FACE) : aFace1);
if( anEdge.IsNull() || aFace1.IsNull() || aFace2.IsNull())
{
- cout<<"Invalid number of arguments. Should be: getedgeregularity edge face1 [face2]"<<endl;
+ std::cout<<"Invalid number of arguments. Should be: getedgeregularity edge face1 [face2]"<<std::endl;
return 1;
}
aPipe.Perform(Standard_True);
if (!aPipe.IsDone())
{
- cout << "GeomFill_Pipe cannot make a surface" << endl;
+ std::cout << "GeomFill_Pipe cannot make a surface" << std::endl;
return 1;
}
Handle(Geom_Surface) Sur = aPipe.Surface();
BRepTest_Objects::SetHistory(Generator->Wires(), *Generator);
}
else {
- cout << "Algorithm is not done" << endl;
+ std::cout << "Algorithm is not done" << std::endl;
}
return 0;
Standard_Integer n, const char** a)
{
if (n == 1) {
- //cout << "setsweep options [arg1 [arg2 [...]]] : options are :" << endl;
- //cout << " -FR : Tangent and Normal are given by Frenet trihedron" <<endl;
- //cout << " -CF : Tangente is given by Frenet," << endl;
- //cout << " the Normal is computed to minimize the torsion " << endl;
- //cout << " -DX Surf : Tangent and Normal are given by Darboux trihedron,"
- // <<endl;
- //cout << " Surf have to be a shell or a face" <<endl;
- //cout << " -CN dx dy dz : BiNormal is given by dx dy dz" << endl;
- //cout << " -FX Tx Ty TZ [Nx Ny Nz] : Tangent and Normal are fixed" <<endl;
- //cout << " -G guide 0|1(ACR|Plan) 0|1(contact|no contact) : with guide"<<endl;
+ //std::cout << "setsweep options [arg1 [arg2 [...]]] : options are :" << std::endl;
+ //std::cout << " -FR : Tangent and Normal are given by Frenet trihedron" <<std::endl;
+ //std::cout << " -CF : Tangente is given by Frenet," << std::endl;
+ //std::cout << " the Normal is computed to minimize the torsion " << std::endl;
+ //std::cout << " -DX Surf : Tangent and Normal are given by Darboux trihedron,"
+ // <<std::endl;
+ //std::cout << " Surf have to be a shell or a face" <<std::endl;
+ //std::cout << " -CN dx dy dz : BiNormal is given by dx dy dz" << std::endl;
+ //std::cout << " -FX Tx Ty TZ [Nx Ny Nz] : Tangent and Normal are fixed" <<std::endl;
+ //std::cout << " -G guide 0|1(ACR|Plan) 0|1(contact|no contact) : with guide"<<std::endl;
di << "setsweep options [arg1 [arg2 [...]]] : options are :\n";
di << " -FR : Tangent and Normal are given by Frenet trihedron\n";
di << " -CF : Tangente is given by Frenet,\n";
}
if (Sweep == 0) {
- //cout << "You have forgotten the <<mksweep>> command !"<< endl;
+ //std::cout << "You have forgotten the <<mksweep>> command !"<< std::endl;
di << "You have forgotten the <<mksweep>> command !\n";
return 1;
}
}
else if (!strcmp(a[1], "-DX")) {
if (n != 3) {
- //cout << "bad arguments !" << endl;
+ //std::cout << "bad arguments !" << std::endl;
di << "bad arguments !\n";
return 1;
}
TopoDS_Shape Surf;
Surf = DBRep::Get(a[2], TopAbs_SHAPE);
if (Surf.IsNull()) {
- //cout << a[2] <<"is not a shape !" << endl;
+ //std::cout << a[2] <<"is not a shape !" << std::endl;
di << a[2] << "is not a shape !\n";
return 1;
}
}
else if (!strcmp(a[1], "-CN")) {
if (n != 5) {
- //cout << "bad arguments !" << endl;
+ //std::cout << "bad arguments !" << std::endl;
di << "bad arguments !\n";
return 1;
}
}
else if (!strcmp(a[1], "-FX")) {
if ((n != 5) && (n != 8)) {
- //cout << "bad arguments !" << endl;
+ //std::cout << "bad arguments !" << std::endl;
di << "bad arguments !\n";
return 1;
}
{
if (n != 5)
{
- //cout << "bad arguments !" << endl;
+ //std::cout << "bad arguments !" << std::endl;
di << "bad arguments !\n";
return 1;
}
}
else {
- //cout << "The option "<< a[1] << " is unknown !" << endl;
+ //std::cout << "The option "<< a[1] << " is unknown !" << std::endl;
di << "The option " << a[1] << " is unknown !\n";
return 1;
}
Standard_Integer n, const char** a)
{
if (n == 1) {
- //cout << "addsweep wire/vertex [Vertex] [-T] [-R] [u0 v0 u1 v1 [...[uN vN]]] : options are :" << endl;
- //cout << " -T : the wire/vertex have to be translated to assume contact"<< endl;
- //cout << " with the spine" <<endl;
- //cout << " -R : the wire have to be rotated to assume orthogonality"<<endl;
- //cout << " with the spine's tangent" << endl;
+ //std::cout << "addsweep wire/vertex [Vertex] [-T] [-R] [u0 v0 u1 v1 [...[uN vN]]] : options are :" << std::endl;
+ //std::cout << " -T : the wire/vertex have to be translated to assume contact"<< std::endl;
+ //std::cout << " with the spine" <<std::endl;
+ //std::cout << " -R : the wire have to be rotated to assume orthogonality"<<std::endl;
+ //std::cout << " with the spine's tangent" << std::endl;
di << "addsweep wire/vertex [Vertex] [-T] [-R] [u0 v0 u1 v1 [...[uN vN]]] : options are :\n";
di << " -T : the wire/vertex have to be translated to assume contact\n";
di << " with the spine\n";
}
if (Sweep == 0) {
- //cout << "You have forgotten the <<mksweep>> command !"<< endl;
+ //std::cout << "You have forgotten the <<mksweep>> command !"<< std::endl;
di << "You have forgotten the <<mksweep>> command !\n";
return 1;
}
(Section.ShapeType() != TopAbs_WIRE &&
Section.ShapeType() != TopAbs_VERTEX))
{
- //cout << a[1] <<"is not a wire and is not a vertex!" << endl;
+ //std::cout << a[1] <<"is not a wire and is not a vertex!" << std::endl;
di << a[1] << " is not a wire and is not a vertex!\n";
return 1;
}
if (n > cur) {
Standard_Integer nbreal = n - cur;
if ((nbreal < 4) || (nbreal % 2 != 0)) {
- //cout << "bad arguments ! :" <<a[cur] << endl;
+ //std::cout << "bad arguments ! :" <<a[cur] << std::endl;
di << "bad arguments ! :" << a[cur] << "\n";
}
else { //law of interpolation
Section = TopoDS::Wire(InputShape);
// Section = TopoDS::Wire(DBRep::Get(a[1],TopAbs_SHAPE));
if (Section.IsNull()) {
- //cout << a[1] <<"is not a wire !" << endl;
+ //std::cout << a[1] <<"is not a wire !" << std::endl;
di << a[1] << "is not a wire !\n";
return 1;
}
Standard_Integer n, const char** a)
{
if (n == 1) {
- //cout << "build sweep result [-M/-C/-R] [-S] [tol] : options are" << endl;
- //cout << " -M : Discontinuities are treated by Modfication of"<< endl;
- //cout << " the sweeping mode : it is the default" <<endl;
- //cout << " -C : Discontinuities are treated like Right Corner" << endl;
- //cout << " Treatement is Extent && Intersect" << endl;
- //cout << " -R : Discontinuities are treated like Round Corner" << endl;
- //cout << " Treatement is Intersect and Fill" << endl;
- //cout << " -S : To build a Solid" << endl;
+ //std::cout << "build sweep result [-M/-C/-R] [-S] [tol] : options are" << std::endl;
+ //std::cout << " -M : Discontinuities are treated by Modfication of"<< std::endl;
+ //std::cout << " the sweeping mode : it is the default" <<std::endl;
+ //std::cout << " -C : Discontinuities are treated like Right Corner" << std::endl;
+ //std::cout << " Treatement is Extent && Intersect" << std::endl;
+ //std::cout << " -R : Discontinuities are treated like Round Corner" << std::endl;
+ //std::cout << " Treatement is Intersect and Fill" << std::endl;
+ //std::cout << " -S : To build a Solid" << std::endl;
di << "build sweep result [-M/-C/-R] [-S] [tol] : options are\n";
di << " -M : Discontinuities are treated by Modfication of\n";
di << " the sweeping mode : it is the default\n";
Standard_Boolean mksolid = Standard_False;
if (Sweep == 0) {
- //cout << "You have forgotten the <<mksweep>> command !"<< endl;
+ //std::cout << "You have forgotten the <<mksweep>> command !"<< std::endl;
di << "You have forgotten the <<mksweep>> command !\n";
return 1;
}
if (!Sweep->IsReady()) {
- //cout << "You have forgotten the <<addsweep>> command !"<< endl;
+ //std::cout << "You have forgotten the <<addsweep>> command !"<< std::endl;
di << "You have forgotten the <<addsweep>> command !\n";
return 1;
}
// Calcul le resultat
Sweep->Build();
if (!Sweep->IsDone()) {
- //cout << "Buildsweep : Not Done" << endl;
+ //std::cout << "Buildsweep : Not Done" << std::endl;
di << "Buildsweep : Not Done\n";
BRepBuilderAPI_PipeError Stat = Sweep->GetStatus();
if (Stat == BRepBuilderAPI_PlaneNotIntersectGuide) {
- //cout << "Buildsweep : One Plane not intersect the guide" << endl;
+ //std::cout << "Buildsweep : One Plane not intersect the guide" << std::endl;
di << "Buildsweep : One Plane not intersect the guide\n";
}
if (Stat == BRepBuilderAPI_ImpossibleContact) {
- //cout << "BuildSweep : One section can not be in contact with the guide" << endl;
+ //std::cout << "BuildSweep : One section can not be in contact with the guide" << std::endl;
di << "BuildSweep : One section can not be in contact with the guide\n";
}
}
if (mksolid) {
Standard_Boolean B;
B = Sweep->MakeSolid();
- //if (!B) cout << " BuildSweep : It is impossible to make a solid !" << endl;
+ //if (!B) std::cout << " BuildSweep : It is impossible to make a solid !" << std::endl;
if (!B) di << " BuildSweep : It is impossible to make a solid !\n";
}
result = Sweep->Shape();
if ((n != 3) && (n != 4)) return 1;
if (Sweep == 0) {
- //cout << "You have forgotten the <<mksweep>> command !"<< endl;
+ //std::cout << "You have forgotten the <<mksweep>> command !"<< std::endl;
di << "You have forgotten the <<mksweep>> command !\n";
return 1;
}
if (!Sweep->IsReady()) {
- //cout << "You have forgotten the <<addsweep>> command !"<< endl;
+ //std::cout << "You have forgotten the <<addsweep>> command !"<< std::endl;
di << "You have forgotten the <<addsweep>> command !\n";
return 1;
}
Sec.Approximation(Standard_True);
else if (strcasecmp(a[i], "-p"))
{
- cout << "Unknown option: " << a[i] << endl;
+ std::cout << "Unknown option: " << a[i] << std::endl;
return 1;
}
}
if ( Face.IsNull()) {
TopoDS_Shape Shell = DBRep::Get(a[2],TopAbs_SHELL);
if (Shell.IsNull()) {
- //cout << a[2] << " must be a face or a shell" << endl;
+ //std::cout << a[2] << " must be a face or a shell" << std::endl;
di << a[2] << " must be a face or a shell\n";
return 1;
}
DBRep::Set(a[1],Half.Solid());
}
else {
- //cout << " HalfSpace NotDone" << endl;
+ //std::cout << " HalfSpace NotDone" << std::endl;
di << " HalfSpace NotDone\n";
return 1;
}
DBRep::Set(a[1],Half.Solid());
}
else {
- //cout << " HalfSpace NotDone" << endl;
+ //std::cout << " HalfSpace NotDone" << std::endl;
di << " HalfSpace NotDone\n";
return 1;
}
//=======================================================================
void BRepTools::Read(TopoDS_Shape& Sh,
- istream& S,
+ std::istream& S,
const BRep_Builder& B,
const Handle(Message_ProgressIndicator)& PR)
{
const Standard_CString File,
const Handle(Message_ProgressIndicator)& PR)
{
- ofstream os;
- OSD_OpenStream(os, File, ios::out);
+ std::ofstream os;
+ OSD_OpenStream(os, File, std::ios::out);
if (!os.is_open() || !os.good())
return Standard_False;
const BRep_Builder& B,
const Handle(Message_ProgressIndicator)& PR)
{
- filebuf fic;
- istream in(&fic);
- OSD_OpenStream (fic, File, ios::in);
+ std::filebuf fic;
+ std::istream in(&fic);
+ OSD_OpenStream (fic, File, std::ios::in);
if(!fic.is_open()) return Standard_False;
BRepTools_ShapeSet SS(B);
try {
OCC_CATCH_SIGNALS
- cout <<"\n\n";
- BRepTools::Dump (*(TopoDS_Shape*)theShapePtr, cout);
- cout << endl;
+ std::cout <<"\n\n";
+ BRepTools::Dump (*(TopoDS_Shape*)theShapePtr, std::cout);
+ std::cout << std::endl;
- return "Shape dumped to cout";
+ return "Shape dumped to std::cout";
}
catch (Standard_Failure const& anException)
{
try {
OCC_CATCH_SIGNALS
- cout <<"\n\n";
+ std::cout <<"\n\n";
TopTools_LocationSet LS;
LS.Add(*(TopLoc_Location*)theLocationPtr);
- LS.Dump(cout);
- cout <<endl;
+ LS.Dump(std::cout);
+ std::cout <<std::endl;
- return "Location dumped to cout";
+ return "Location dumped to std::cout";
}
catch (Standard_Failure const& anException)
{
}*/
void BRepTools_Quilt::Add(const TopoDS_Shape& S)
{
- //cout <<" Version of sewing with free edges"<<endl;
+ //std::cout <<" Version of sewing with free edges"<<std::endl;
// Binds all the faces of S
// - to the face itself if it is not copied
// - to the copy if it is copied
#ifdef OCCT_DEBUG
if ( IsRecorded ( shape ) && ((myConsiderLocation && ! Value ( shape ).IsPartner ( newshape )) ||
(!myConsiderLocation && ! Value ( shape ).IsSame ( newshape ))))
- cout << "Warning: BRepTools_ReShape::Replace: shape already recorded" << endl;
+ std::cout << "Warning: BRepTools_ReShape::Replace: shape already recorded" << std::endl;
#endif
myShapeToReplacement.Bind(shape, TReplacement(newshape, theKind));
//
// On NT platforms (in BRepTools_ShapeSet):
// ----------------
-// In Visual C++ 5 (or higher) the fstream::tellg method is not
+// In Visual C++ 5 (or higher) the std::fstream::tellg method is not
// conform to Standard C++ because it modifies the file pointer
// position and returns a wrong position. After that the next
// readings are shifted and the reading process stop with errors.
{
// create a face :
TopoDS_Face& F = TopoDS::Face(S);
-// streampos pos;
+// std::streampos pos;
myBuilder.MakeFace(F);
IS >> val; // natural restriction
Standard_Integer i1, nbNodes = P->NbNodes();
const TColgp_Array1OfPnt& Nodes = P->Nodes();
for (j = 1; j <= nbNodes; j++) {
- if (!Compact) OS << setw(10) << j << " : ";
- if (!Compact) OS << setw(17);
+ if (!Compact) OS << std::setw(10) << j << " : ";
+ if (!Compact) OS << std::setw(17);
OS << Nodes(j).X() << " ";
- if (!Compact) OS << setw(17);
+ if (!Compact) OS << std::setw(17);
OS << Nodes(j).Y() << " ";
- if (!Compact) OS << setw(17);
+ if (!Compact) OS << std::setw(17);
OS << Nodes(j).Z();
if (!Compact) OS << "\n";
else OS << " ";
nbNodes = T->NbNodes();
const TColgp_Array1OfPnt& Nodes = T->Nodes();
for (j = 1; j <= nbNodes; j++) {
- if (!Compact) OS << setw(10) << j << " : ";
- if (!Compact) OS << setw(17);
+ if (!Compact) OS << std::setw(10) << j << " : ";
+ if (!Compact) OS << std::setw(17);
OS << Nodes(j).X() << " ";
- if (!Compact) OS << setw(17);
+ if (!Compact) OS << std::setw(17);
OS << Nodes(j).Y() << " ";
- if (!Compact) OS << setw(17);
+ if (!Compact) OS << std::setw(17);
OS << Nodes(j).Z();
if (!Compact) OS << "\n";
else OS << " ";
if (!Compact) OS << "\nUV Nodes :\n";
const TColgp_Array1OfPnt2d& UVNodes = T->UVNodes();
for (j = 1; j <= nbNodes; j++) {
- if (!Compact) OS << setw(10) << j << " : ";
- if (!Compact) OS << setw(17);
+ if (!Compact) OS << std::setw(10) << j << " : ";
+ if (!Compact) OS << std::setw(17);
OS << UVNodes(j).X() << " ";
- if (!Compact) OS << setw(17);
+ if (!Compact) OS << std::setw(17);
OS << UVNodes(j).Y();
if (!Compact) OS << "\n";
else OS << " ";
nbTriangles = T->NbTriangles();
const Poly_Array1OfTriangle& Triangles = T->Triangles();
for (j = 1; j <= nbTriangles; j++) {
- if (!Compact) OS << setw(10) << j << " : ";
+ if (!Compact) OS << std::setw(10) << j << " : ";
Triangles(j).Get(n1, n2, n3);
- if (!Compact) OS << setw(10);
+ if (!Compact) OS << std::setw(10);
OS << n1 << " ";
- if (!Compact) OS << setw(10);
+ if (!Compact) OS << std::setw(10);
OS << n2 << " ";
- if (!Compact) OS << setw(10);
+ if (!Compact) OS << std::setw(10);
OS << n3;
if (!Compact) OS << "\n";
else OS << " ";
/*
#ifdef OCCT_DEBUG
- cout << endl;
- cout << "*** BRepTopAdaptor_Fclass2d ** Wire Probablement FAUX **" << endl;
- cout << "*** WireExplorer does not find all edges " << endl;
- cout << "*** Connect old classifier" << endl;
+ std::cout << std::endl;
+ std::cout << "*** BRepTopAdaptor_Fclass2d ** Wire Probablement FAUX **" << std::endl;
+ std::cout << "*** WireExplorer does not find all edges " << std::endl;
+ std::cout << "*** Connect old classifier" << std::endl;
#endif
*/
TColgp_Array1OfPnt2d PClass(1,2);
if(FlecheU<Toluv) FlecheU = Toluv;
if(FlecheV<Toluv) FlecheV = Toluv;
- //-- cout<<" U:"<<FlecheU<<" V:"<<FlecheV<<endl;
+ //-- std::cout<<" U:"<<FlecheU<<" V:"<<FlecheV<<std::endl;
TabClass.Append((void *)new CSLib_Class2d(PClass,FlecheU,FlecheV,Umin,Vmin,Umax,Vmax));
// if((angle<2 && angle>-2)||(angle>10)||(angle<-10))
// BadWire=1;
// TabOrien.Append(-1);
//#ifdef OCCT_DEBUG
-// cout << endl;
-// cout << "*** BRepTopAdaptor_Fclass2d ** Wire Probably FALSE **" << endl;
-// cout << "*** Total rotation angle of the wire : " << angle << endl;
-// cout << "*** Connect the old classifier" << endl;
+// std::cout << std::endl;
+// std::cout << "*** BRepTopAdaptor_Fclass2d ** Wire Probably FALSE **" << std::endl;
+// std::cout << "*** Total rotation angle of the wire : " << angle << std::endl;
+// std::cout << "*** Connect the old classifier" << std::endl;
//#endif
// }
// else TabOrien.Append(((angle>0.0)? 1 : 0));
else
{
#ifdef OCCT_DEBUG
- cout << endl;
- cout << "*** BRepTopAdaptor_Fclass2d ** Wire Probably FALSE **" << endl;
- cout << "*** The sample wire contains less than 3 points" << endl;
- cout << "*** Connect the old classifier" << endl;
+ std::cout << std::endl;
+ std::cout << "*** BRepTopAdaptor_Fclass2d ** Wire Probably FALSE **" << std::endl;
+ std::cout << "*** The sample wire contains less than 3 points" << std::endl;
+ std::cout << "*** Connect the old classifier" << std::endl;
#endif
BadWire=1;
TabOrien.Append(-1);
//const BRepTopAdaptor_FClass2d & BRepTopAdaptor_FClass2d::Copy(const BRepTopAdaptor_FClass2d& Other) const {
const BRepTopAdaptor_FClass2d & BRepTopAdaptor_FClass2d::Copy(const BRepTopAdaptor_FClass2d& ) const {
#ifdef OCCT_DEBUG
- cerr<<"Copy not allowed in BRepTopAdaptor_FClass2d"<<endl;
+ std::cerr<<"Copy not allowed in BRepTopAdaptor_FClass2d"<<std::endl;
#endif
throw Standard_ConstructionError();
}
}
else {
#ifdef OCCT_DEBUG
- cout<<"\n*** Error ds Handle(BRepTopAdaptor_TopolTool) BRepTopAdaptor_Tool::GetTopolTool()\n"<<endl;
+ std::cout<<"\n*** Error ds Handle(BRepTopAdaptor_TopolTool) BRepTopAdaptor_Tool::GetTopolTool()\n"<<std::endl;
#endif
return(myTopolTool);
}
}
else {
#ifdef OCCT_DEBUG
- cout<<"\n*** Error ds Handle(BRepTopAdaptor_TopolTool) BRepTopAdaptor_Tool::GetSurface()\n"<<endl;
+ std::cout<<"\n*** Error ds Handle(BRepTopAdaptor_TopolTool) BRepTopAdaptor_Tool::GetSurface()\n"<<std::endl;
#endif
return(myHSurface);
}
Inverse = 1.0e0 / divizor ;
else {
Inverse = 1.0e0;
-// cout << " BSplCLib::SolveBandedSystem() : zero determinant " << endl;
+// std::cout << " BSplCLib::SolveBandedSystem() : zero determinant " << std::endl;
ReturnCode = 1;
goto FINISH;
}
{
#ifdef OCCT_DEBUG
if (CDegree<Continuity+1) {
- cout<<"The BSpline degree must be greater than the order of continuity"<<endl;
+ std::cout<<"The BSpline degree must be greater than the order of continuity"<<std::endl;
}
#endif
Standard_Real * Padr = &Poles ;
else {
UTolerance=VTolerance=0.0;
#ifdef OCCT_DEBUG
- cout<<"ElSLib.cxx : maxderivative = 0.0 "<<endl;
+ std::cout<<"ElSLib.cxx : maxderivative = 0.0 "<<std::endl;
#endif
}
}
SV.Remove(1);
if ( V1.IsSame(V2)) {
- cout << "Vertex Confondus dans CutEdges" << endl;
+ std::cout << "Vertex Confondus dans CutEdges" << std::endl;
continue;
}
//-------------------------------------------
#ifdef OCCT_DEBUG
ChFi3d_ResultChron(cl_total, t_total);
- cout<<endl;
- cout<<"Blend_PERFORM: temps total "<<t_total<<" s dont :"<<endl;
- cout<<"- ComputeCenters "<<t_center<<" s"<<endl;
- cout<<"- ComputeSurfaces "<<t_surface<<" s"<<endl;
- cout<<"----> MakeCurve "<<t_mkcurve<<" s"<<endl;
- if ( myBuildShape) cout<<"- ComputeShape "<<t_shape<<" s"<<endl;
+ std::cout<<std::endl;
+ std::cout<<"Blend_PERFORM: temps total "<<t_total<<" s dont :"<<std::endl;
+ std::cout<<"- ComputeCenters "<<t_center<<" s"<<std::endl;
+ std::cout<<"- ComputeSurfaces "<<t_surface<<" s"<<std::endl;
+ std::cout<<"----> MakeCurve "<<t_mkcurve<<" s"<<std::endl;
+ if ( myBuildShape) std::cout<<"- ComputeShape "<<t_shape<<" s"<<std::endl;
#endif
myDone = Standard_True;
#ifdef OCCT_DEBUG
if ( myResult.IsNull()) {
- cout << " No Lines of Generated Centers" << endl;
+ std::cout << " No Lines of Generated Centers" << std::endl;
}
#ifdef DRAW
else {
BRep_Tool::CurveOnSurface(CurCutE,F2,f2,l2);
if ( PC1.IsNull() || PC2.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "No PCurves on Intersections : No tubes constructed";
- cout << endl;
+ std::cout << "No PCurves on Intersections : No tubes constructed";
+ std::cout << std::endl;
#endif
continue;
}
if (MKE.IsDone())
E1 = MKE.Edge();
else {
- cout << "Edge Not Done" << endl;
+ std::cout << "Edge Not Done" << std::endl;
E1 = MKE.Edge();
}
if (MKE.IsDone())
E2 = MKE.Edge();
else {
- cout << "edge not Done" << endl;
+ std::cout << "edge not Done" << std::endl;
E2 = MKE.Edge();
}
KPartCurve3d(E2,PC2,GS2);
#ifdef OCCT_DEBUG
if ( F1surBordLibre && F2surBordLibre) {
- cout << "Rejection : 2 tubes on free border are not intersected";
- cout << endl;
+ std::cout << "Rejection : 2 tubes on free border are not intersected";
+ std::cout << std::endl;
}
#endif
Standard_Boolean IsOnR2 = IsOnRestriction(V1,CurE,F2,E2);
#ifdef OCCT_DEBUG
if (IsOnR1 && IsOnR2) {
- cout << "Leave in the same tps on 2 faces, ";
- cout << "propagation only on free border";
- cout << endl;
+ std::cout << "Leave in the same tps on 2 faces, ";
+ std::cout << "propagation only on free border";
+ std::cout << std::endl;
}
#endif
if ( IsOnR1 ) {
// A priori, only facet is closed.
#ifdef OCCT_DEBUG
if (IsOnR1 && IsOnR2) {
- cout << "Leave with the same tps on 2 faces, ";
- cout << "propagate only if the border is free";
- cout << endl;
+ std::cout << "Leave with the same tps on 2 faces, ";
+ std::cout << "propagate only if the border is free";
+ std::cout << std::endl;
}
#endif
if ( IsOnR1) {
if (theGUID == BinStorageDriver)
{
#ifdef OCCT_DEBUG
- cout << "BinDrivers : Storage Plugin" << endl;
+ std::cout << "BinDrivers : Storage Plugin" << std::endl;
#endif
static Handle(Standard_Transient) model_sd =
new BinDrivers_DocumentStorageDriver;
if (theGUID == BinRetrievalDriver)
{
#ifdef OCCT_DEBUG
- cout << "BinDrivers : Retrieval Plugin" << endl;
+ std::cout << "BinDrivers : Retrieval Plugin" << std::endl;
#endif
static Handle(Standard_Transient) model_rd =
new BinDrivers_DocumentRetrievalDriver;
if (theGUID == BinLStorageDriver)
{
#ifdef OCCT_DEBUG
- cout << "BinLDrivers : Storage Plugin" << endl;
+ std::cout << "BinLDrivers : Storage Plugin" << std::endl;
#endif
static Handle(Standard_Transient) model_sd =
new BinLDrivers_DocumentStorageDriver;
if (theGUID == BinLRetrievalDriver)
{
#ifdef OCCT_DEBUG
- cout << "BinLDrivers : Retrieval Plugin" << endl;
+ std::cout << "BinLDrivers : Retrieval Plugin" << std::endl;
#endif
static Handle(Standard_Transient) model_rd =
new BinLDrivers_DocumentRetrievalDriver;
TCollection_AsciiString newName;
if(Storage_Schema::CheckTypeMigration(aStr, newName)) {
#ifdef OCCT_DEBUG
- cout << "CheckTypeMigration:OldType = " <<aStr << " Len = "<<aStr.Length()<<endl;
- cout << "CheckTypeMigration:NewType = " <<newName << " Len = "<< newName.Length()<<endl;
+ std::cout << "CheckTypeMigration:OldType = " <<aStr << " Len = "<<aStr.Length()<<std::endl;
+ std::cout << "CheckTypeMigration:NewType = " <<newName << " Len = "<< newName.Length()<<std::endl;
#endif
aStr = newName;
}
mySections.Clear();
myPAtt.Init();
Handle(TDF_Data) aData = new TDF_Data();
- streampos aDocumentPos = -1;
+ std::streampos aDocumentPos = -1;
// 2b. Read the TOC of Sections
if (aFileVer >= 3) {
for (; anIterS.More(); anIterS.Next()) {
BinLDrivers_DocumentSection& aCurSection = anIterS.ChangeValue();
if (aCurSection.IsPostRead() == Standard_False) {
- theIStream.seekg ((streampos) aCurSection.Offset());
+ theIStream.seekg ((std::streampos) aCurSection.Offset());
if (aCurSection.Name().IsEqual ((Standard_CString)SHAPESECTION_POS))
ReadShapeSection (aCurSection, theIStream);
else
aShapeSectionPos = InverseInt (aShapeSectionPos);
#endif
#ifdef OCCT_DEBUG
- cout <<"aShapeSectionPos = " <<aShapeSectionPos <<endl;
+ std::cout <<"aShapeSectionPos = " <<aShapeSectionPos <<std::endl;
#endif
if(aShapeSectionPos) {
aDocumentPos = theIStream.tellg();
- theIStream.seekg((streampos) aShapeSectionPos);
+ theIStream.seekg((std::streampos) aShapeSectionPos);
CheckShapeSection(aShapeSectionPos, theIStream);
// Read Shapes
for (; aSectIter.More(); aSectIter.Next()) {
BinLDrivers_DocumentSection& aCurSection = aSectIter.ChangeValue();
if (aCurSection.IsPostRead()) {
- theIStream.seekg ((streampos) aCurSection.Offset());
+ theIStream.seekg ((std::streampos) aCurSection.Offset());
ReadSection (aCurSection, theDoc, theIStream);
}
}
{
const std::streamoff endPos = IS.rdbuf()->pubseekoff(0L, std::ios_base::end, std::ios_base::in);
#ifdef OCCT_DEBUG
- cout << "endPos = " << endPos <<endl;
+ std::cout << "endPos = " << endPos <<std::endl;
#endif
if(ShapeSectionPos != endPos) {
const TCollection_ExtendedString aMethStr ("BinLDrivers_DocumentRetrievalDriver: ");
aDelta = (aDeltaValue != 0);
}
#ifdef OCCT_DEBUG
- //cout << "Current Document Format Version = " << theRelocTable.GetHeaderData()->StorageVersion().IntegerValue() <<endl;
+ //std::cout << "Current Document Format Version = " << theRelocTable.GetHeaderData()->StorageVersion().IntegerValue() <<std::endl;
#endif
anAtt->SetDelta(aDelta);
ok = theSource >> entry;
if(ok) {
#ifdef OCCT_DEBUG
- cout << "NamingDriver:: Retrieved Context Label = " << entry << " Ok = " << theSource.IsOK() <<endl;
+ std::cout << "NamingDriver:: Retrieved Context Label = " << entry << " Ok = " << theSource.IsOK() <<std::endl;
#endif
//6. context label
OrientationToApply = (TopAbs_Orientation)anIndx;
aName.Orientation(OrientationToApply);
#ifdef OCCT_DEBUG
- cout << "NamingDriver:: Retrieved Orientation = " << OrientationToApply << " Ok = " << theSource.IsOK() <<endl;
+ std::cout << "NamingDriver:: Retrieved Orientation = " << OrientationToApply << " Ok = " << theSource.IsOK() <<std::endl;
#endif
} else {
aMsg = TCollection_ExtendedString("BinMNaming_NamingDriver: "
}
}
#ifdef OCCT_DEBUG
- cout << "Current Document Format Version = " << theRelocTable.GetHeaderData()->StorageVersion().IntegerValue() <<endl;
+ std::cout << "Current Document Format Version = " << theRelocTable.GetHeaderData()->StorageVersion().IntegerValue() <<std::endl;
#endif
}
}
if( myLocations == 0 )
{
#ifdef OCCT_DEBUG
- cout<<"Pointer to LocationSet is NULL\n";
+ std::cout<<"Pointer to LocationSet is NULL\n";
#endif
return;
}
if(aGUID == BinStorageDriver)
{
#ifdef OCCT_DEBUG
- cout << "BinTObjDrivers : Storage Plugin" << endl;
+ std::cout << "BinTObjDrivers : Storage Plugin" << std::endl;
#endif
static Handle(Standard_Transient) model_sd
= new BinTObjDrivers_DocumentStorageDriver;
if(aGUID == BinRetrievalDriver)
{
#ifdef OCCT_DEBUG
- cout << "BinTObjDrivers : Retrieval Plugin" << endl;
+ std::cout << "BinTObjDrivers : Retrieval Plugin" << std::endl;
#endif
static Handle (Standard_Transient) model_rd
= new BinTObjDrivers_DocumentRetrievalDriver;
Standard_Boolean BinTools::Write (const TopoDS_Shape& theShape, const Standard_CString theFile)
{
- ofstream aStream;
+ std::ofstream aStream;
aStream.precision (15);
- OSD_OpenStream (aStream, theFile, ios::out | ios::binary);
+ OSD_OpenStream (aStream, theFile, std::ios::out | std::ios::binary);
if (!aStream.good())
return Standard_False;
Standard_Boolean BinTools::Read (TopoDS_Shape& theShape, const Standard_CString theFile)
{
- filebuf aBuf;
- OSD_OpenStream (aBuf, theFile, ios::in | ios::binary);
+ std::filebuf aBuf;
+ OSD_OpenStream (aBuf, theFile, std::ios::in | std::ios::binary);
if (!aBuf.is_open())
return Standard_False;
}
catch(Standard_Failure const& anException) {
Standard_SStream aMsg;
- aMsg << "EXCEPTION in BinTools_Curve2dSet::WriteCurve2d(..)" << endl;
- aMsg << anException << endl;
+ aMsg << "EXCEPTION in BinTools_Curve2dSet::WriteCurve2d(..)" << std::endl;
+ aMsg << anException << std::endl;
throw Standard_Failure(aMsg.str().c_str());
}
}
catch(Standard_Failure const& anException) {
C = NULL;
Standard_SStream aMsg;
- aMsg <<"EXCEPTION in BinTools_Curve2dSet::ReadCurve2d(...)" << endl;
- aMsg << anException << endl;
+ aMsg <<"EXCEPTION in BinTools_Curve2dSet::ReadCurve2d(...)" << std::endl;
+ aMsg << anException << std::endl;
throw Standard_Failure(aMsg.str().c_str());
}
return IS;
IS >> buffer;
if (IS.fail() || strcmp(buffer,"Curve2ds")) {
Standard_SStream aMsg;
- aMsg << "BinTools_Curve2dSet::Read: Not a Curve2d table"<<endl;
+ aMsg << "BinTools_Curve2dSet::Read: Not a Curve2d table"<<std::endl;
#ifdef OCCT_DEBUG
- cout <<"Curve2dSet buffer: " << buffer << endl;
+ std::cout <<"Curve2dSet buffer: " << buffer << std::endl;
#endif
throw Standard_Failure(aMsg.str().c_str());
return;
}
catch(Standard_Failure const& anException) {
Standard_SStream aMsg;
- aMsg << "EXCEPTION in BinTools_CurveSet::WriteCurve(..)" << endl;
- aMsg << anException << endl;
+ aMsg << "EXCEPTION in BinTools_CurveSet::WriteCurve(..)" << std::endl;
+ aMsg << anException << std::endl;
throw Standard_Failure(aMsg.str().c_str());
}
}
catch(Standard_Failure const& anException) {
C = NULL;
Standard_SStream aMsg;
- aMsg <<"EXCEPTION in BinTools_CurveSet::ReadCurve(..)" << endl;
- aMsg << anException << endl;
+ aMsg <<"EXCEPTION in BinTools_CurveSet::ReadCurve(..)" << std::endl;
+ aMsg << anException << std::endl;
throw Standard_Failure(aMsg.str().c_str());
}
return IS;
IS >> buffer;
if (IS.fail() || strcmp(buffer,"Curves")) {
Standard_SStream aMsg;
- aMsg << "BinTools_CurveSet::Read: Not a Curve table"<<endl;
+ aMsg << "BinTools_CurveSet::Read: Not a Curve table"<<std::endl;
#ifdef OCCT_DEBUG
- cout <<"CurveSet buffer: " << buffer << endl;
+ std::cout <<"CurveSet buffer: " << buffer << std::endl;
#endif
throw Standard_Failure(aMsg.str().c_str());
return;
}
catch(Standard_Failure const& anException) {
Standard_SStream aMsg;
- aMsg << "EXCEPTION in BinTools_LocatioSet::Write(..)" << endl;
- aMsg << anException << endl;
+ aMsg << "EXCEPTION in BinTools_LocatioSet::Write(..)" << std::endl;
+ aMsg << anException << std::endl;
throw Standard_Failure(aMsg.str().c_str());
}
}
IS >> buffer;
if (IS.fail() || (strcmp(buffer,"Locations"))) {
Standard_SStream aMsg;
- aMsg << "BinTools_LocationSet::Read: Not a location table"<<endl;
+ aMsg << "BinTools_LocationSet::Read: Not a location table"<<std::endl;
throw Standard_Failure(aMsg.str().c_str());
return;
}
}
} else {
Standard_SStream aMsg;
- aMsg << "Unexpected location's type = " << aTypLoc << endl;
+ aMsg << "Unexpected location's type = " << aTypLoc << std::endl;
throw Standard_Failure(aMsg.str().c_str());
}
if (!L.IsIdentity()) myMap.Add(L);
}
catch(Standard_Failure const& anException) {
Standard_SStream aMsg;
- aMsg << "EXCEPTION in BinTools_LocationSet::Read(..)" << endl;
- aMsg << anException << endl;
+ aMsg << "EXCEPTION in BinTools_LocationSet::Read(..)" << std::endl;
+ aMsg << anException << std::endl;
throw Standard_Failure(aMsg.str().c_str());
}
}
} while ( ! IS.fail() && strcmp(vers,Version_1) && strcmp(vers,Version_2) &&
strcmp(vers,Version_3));
if (IS.fail()) {
- cout << "BinTools_ShapeSet::Read: File was not written with this version of the topology"<<endl;
+ std::cout << "BinTools_ShapeSet::Read: File was not written with this version of the topology"<<std::endl;
return;
}
IS >> buffer;
if (IS.fail() || strcmp(buffer,"TShapes")) {
Standard_SStream aMsg;
- aMsg << "BinTools_ShapeSet::Read: Not a TShape table"<<endl;
+ aMsg << "BinTools_ShapeSet::Read: Not a TShape table"<<std::endl;
throw Standard_Failure(aMsg.str().c_str());
return;
}
}
catch(Standard_Failure const& anException) {
Standard_SStream aMsg;
- aMsg << "EXCEPTION in BinTools_ShapeSet::WriteGeometry(S,OS)" << endl;
- aMsg << anException << endl;
+ aMsg << "EXCEPTION in BinTools_ShapeSet::WriteGeometry(S,OS)" << std::endl;
+ aMsg << anException << std::endl;
throw Standard_Failure(aMsg.str().c_str());
}
}
case TopAbs_VERTEX :
{
// Standard_Integer aPos = IS.tellg();
-// cout << "\nPOS = " << aPos << endl;
+// std::cout << "\nPOS = " << aPos << std::endl;
TopoDS_Vertex& V = TopoDS::Vertex(S);
// Read the point geometry
if (val > 0 && val <= 3)
BinTools::GetReal(IS, p1);
} else {
- streampos aPos = IS.tellg();
+ std::streampos aPos = IS.tellg();
BinTools::GetReal(IS, p1);
val = (Standard_Integer)IS.get();//case {0|1|2|3}
#ifdef OCCT_DEBUG
- cout << "\nVal = " << val <<endl;
+ std::cout << "\nVal = " << val <<std::endl;
#endif
if(val != 1 && val !=2 && val !=3){
IS.seekg(aPos);
default:
{
Standard_SStream aMsg;
- aMsg << "BinTools_SurfaceSet::ReadGeometry: UnExpected BRep_PointRepresentation = "<< val <<endl;
+ aMsg << "BinTools_SurfaceSet::ReadGeometry: UnExpected BRep_PointRepresentation = "<< val <<std::endl;
throw Standard_Failure(aMsg.str().c_str());
}
}
default:
{
Standard_SStream aMsg;
- aMsg <<"Unexpected Curve Representation ="<< val << endl;
+ aMsg <<"Unexpected Curve Representation ="<< val << std::endl;
throw Standard_Failure(aMsg.str().c_str());
}
default:
{
Standard_SStream aMsg;
- aMsg << "Unexpected topology type = "<< T <<endl;
+ aMsg << "Unexpected topology type = "<< T <<std::endl;
throw Standard_Failure(aMsg.str().c_str());
break;
}
}
catch(Standard_Failure const& anException) {
Standard_SStream aMsg;
- aMsg << "EXCEPTION in BinTools_ShapeSet::ReadGeometry(S,OS)" << endl;
- aMsg << anException << endl;
+ aMsg << "EXCEPTION in BinTools_ShapeSet::ReadGeometry(S,OS)" << std::endl;
+ aMsg << anException << std::endl;
throw Standard_Failure(aMsg.str().c_str());
}
}
}
catch(Standard_Failure const& anException) {
Standard_SStream aMsg;
- aMsg << "EXCEPTION in BinTools_ShapeSet::WritePolygonOnTriangulation(..)" << endl;
- aMsg << anException << endl;
+ aMsg << "EXCEPTION in BinTools_ShapeSet::WritePolygonOnTriangulation(..)" << std::endl;
+ aMsg << anException << std::endl;
throw Standard_Failure(aMsg.str().c_str());
}
}
}
catch(Standard_Failure const& anException) {
Standard_SStream aMsg;
- aMsg << "EXCEPTION in BinTools_ShapeSet::ReadPolygonOnTriangulation(..)" << endl;
- aMsg << anException << endl;
+ aMsg << "EXCEPTION in BinTools_ShapeSet::ReadPolygonOnTriangulation(..)" << std::endl;
+ aMsg << anException << std::endl;
throw Standard_Failure(aMsg.str().c_str());
}
}
}
catch(Standard_Failure const& anException) {
Standard_SStream aMsg;
- aMsg << "EXCEPTION in BinTools_ShapeSet::WritePolygon3D(..)" << endl;
- aMsg << anException << endl;
+ aMsg << "EXCEPTION in BinTools_ShapeSet::WritePolygon3D(..)" << std::endl;
+ aMsg << anException << std::endl;
throw Standard_Failure(aMsg.str().c_str());
}
}
if (IS.fail() || strstr(buffer,"Polygon3D") == NULL) {
#ifdef OCCT_DEBUG
- cout <<"Buffer: " << buffer << endl;
+ std::cout <<"Buffer: " << buffer << std::endl;
#endif
throw Standard_Failure("BinTools_ShapeSet::ReadPolygon3D: Not a Polygon3D section");
}
}
catch(Standard_Failure const& anException) {
Standard_SStream aMsg;
- aMsg << "EXCEPTION in BinTools_ShapeSet::ReadPolygon3D(..)" << endl;
- aMsg << anException << endl;
+ aMsg << "EXCEPTION in BinTools_ShapeSet::ReadPolygon3D(..)" << std::endl;
+ aMsg << anException << std::endl;
throw Standard_Failure(aMsg.str().c_str());
}
}
}
catch(Standard_Failure const& anException) {
Standard_SStream aMsg;
- aMsg << "EXCEPTION in BinTools_ShapeSet::WriteTriangulation(..)" << endl;
- aMsg << anException << endl;
+ aMsg << "EXCEPTION in BinTools_ShapeSet::WriteTriangulation(..)" << std::endl;
+ aMsg << anException << std::endl;
throw Standard_Failure(aMsg.str().c_str());
}
}
}
catch(Standard_Failure const& anException) {
Standard_SStream aMsg;
- aMsg << "EXCEPTION in BinTools_ShapeSet::ReadTriangulation(..)" << endl;
- aMsg << anException << endl;
+ aMsg << "EXCEPTION in BinTools_ShapeSet::ReadTriangulation(..)" << std::endl;
+ aMsg << anException << std::endl;
throw Standard_Failure(aMsg.str().c_str());
}
}
Standard_Boolean vrational = S->IsVRational() ? 1:0;
BinTools::PutBool(OS, urational); //rational
BinTools::PutBool(OS, vrational);
-// cout << "Bezier Surface:"<< endl;
-// cout << "\turational = "<<urational<<" vrational = " <<vrational<<endl;
+// std::cout << "Bezier Surface:"<< std::endl;
+// std::cout << "\turational = "<<urational<<" vrational = " <<vrational<<std::endl;
// poles and weights
Standard_Integer i,j,udegree,vdegree;
}
catch(Standard_Failure const& anException) {
Standard_SStream aMsg;
- aMsg << "EXCEPTION in BinTools_SurfaceSet::WriteSurface(..)" << endl;
- aMsg << anException << endl;
+ aMsg << "EXCEPTION in BinTools_SurfaceSet::WriteSurface(..)" << std::endl;
+ aMsg << anException << std::endl;
throw Standard_Failure(aMsg.str().c_str());
}
}
static Standard_IStream& operator>>(Standard_IStream& IS,
Handle(Geom_BezierSurface)& S)
{
-// cout << "BezierSurface:" <<endl;
+// std::cout << "BezierSurface:" <<std::endl;
Standard_Boolean urational=Standard_False, vrational=Standard_False;
BinTools::GetBool(IS, urational);
BinTools::GetBool(IS, vrational);
-// cout << "\turational = " << urational << " vrational = " << vrational<<endl;
+// std::cout << "\turational = " << urational << " vrational = " << vrational<<std::endl;
Standard_Integer udegree=0, vdegree=0;
Standard_ExtCharacter aVal='\0';
BinTools::GetExtChar(IS, aVal);
udegree = (Standard_Integer)aVal;
BinTools::GetExtChar(IS, aVal);
vdegree = (Standard_Integer)aVal;
-// cout << "\ttudegree = " << udegree << ", vdegree = " << vdegree << endl;
+// std::cout << "\ttudegree = " << udegree << ", vdegree = " << vdegree << std::endl;
TColgp_Array2OfPnt poles(1,udegree+1,1,vdegree+1);
TColStd_Array2OfReal weights(1,udegree+1,1,vdegree+1);
for (i = 1; i <= udegree+1; i++) {
for (j = 1; j <= vdegree+1; j++) {
IS >> poles(i,j);//Pnt
-// cout <<"Pole X = " <<poles(i,j).X()<< " Y = " <<poles(i,j).Y()<< " Z = " << poles(i,j).Z()<<endl;
+// std::cout <<"Pole X = " <<poles(i,j).X()<< " Y = " <<poles(i,j).Y()<< " Z = " << poles(i,j).Z()<<std::endl;
if (urational || vrational)
BinTools::GetReal(IS, weights(i,j));
}
catch(Standard_Failure const& anException) {
S = NULL;
Standard_SStream aMsg;
- aMsg << "EXCEPTION in BinTools_SurfaceSet::ReadSurface(..)" << endl;
- aMsg << anException << endl;
+ aMsg << "EXCEPTION in BinTools_SurfaceSet::ReadSurface(..)" << std::endl;
+ aMsg << anException << std::endl;
throw Standard_Failure(aMsg.str().c_str());
}
return IS;
IS >> buffer;
if (IS.fail() || strcmp(buffer,"Surfaces")) {
Standard_SStream aMsg;
- aMsg << "BinTools_SurfaceSet::Read: Not a surface table"<<endl;
+ aMsg << "BinTools_SurfaceSet::Read: Not a surface table"<<std::endl;
#ifdef OCCT_DEBUG
- cout <<"SurfaceSet buffer: " << buffer << endl;
+ std::cout <<"SurfaceSet buffer: " << buffer << std::endl;
#endif
throw Standard_Failure(aMsg.str().c_str());
return;
if (theGUID == BinXCAFStorageDriver)
{
#ifdef OCCT_DEBUG
- cout << "BinXCAFDrivers : Storage Plugin" << endl;
+ std::cout << "BinXCAFDrivers : Storage Plugin" << std::endl;
#endif
static Handle(Standard_Transient) model_sd =
new BinXCAFDrivers_DocumentStorageDriver;
if (theGUID == BinXCAFRetrievalDriver)
{
#ifdef OCCT_DEBUG
- cout << "BinXCAFDrivers : Retrieval Plugin" << endl;
+ std::cout << "BinXCAFDrivers : Retrieval Plugin" << std::endl;
#endif
static Handle(Standard_Transient) model_rd =
new BinXCAFDrivers_DocumentRetrievalDriver;
line2 = L2->Lin2d();
}
else {
- cout << "Not yet implemented" << endl;
+ std::cout << "Not yet implemented" << std::endl;
}
}
else if (type1 == STANDARD_TYPE(Geom2d_Line)) {
line2 = L2->Lin2d();
}
else {
- cout << "Not yet implemented" << endl;
+ std::cout << "Not yet implemented" << std::endl;
}
}
else {
- cout << "Not yet implemented" << endl;
+ std::cout << "Not yet implemented" << std::endl;
}
switch(cas) {
line = L1->Lin2d();
}
else {
- cout << "Not yet implemented" << endl;
+ std::cout << "Not yet implemented" << std::endl;
}
switch(cas) {
default:
{
- cout << "Not yet implemented" << endl;
+ std::cout << "Not yet implemented" << std::endl;
break;
}
}
static void Indent (const Standard_Integer Offset) {
if (Offset > 0) {
- for (Standard_Integer i = 0; i < Offset; i++) { cout << " "; }
+ for (Standard_Integer i = 0; i < Offset; i++) { std::cout << " "; }
}
}
const Standard_Integer Offset) const
{
Indent (Offset);
- cout<<"Bisector_BisecAna"<<endl;
+ std::cout<<"Bisector_BisecAna"<<std::endl;
Indent (Offset);
// thebisector->Dump();
}
//=============================================================================
static void Indent(const Standard_Integer Offset) {
if (Offset > 0) {
- for (Standard_Integer i = 0; i < Offset; i++) {cout << " ";}
+ for (Standard_Integer i = 0; i < Offset; i++) {std::cout << " ";}
}
}
const Standard_Integer Offset) const
{
Indent (Offset);
- cout <<"Bisector_BisecCC :"<<endl;
+ std::cout <<"Bisector_BisecCC :"<<std::endl;
Indent (Offset);
- // cout <<"Curve1 :"<<curve1<<endl;
- // cout <<"Curve2 :"<<curve2<<endl;
- cout <<"Sign1 :"<<sign1<<endl;
- cout <<"Sign2 :"<<sign2<<endl;
+ // std::cout <<"Curve1 :"<<curve1<<std::endl;
+ // std::cout <<"Curve2 :"<<curve2<<std::endl;
+ std::cout <<"Sign1 :"<<sign1<<std::endl;
+ std::cout <<"Sign2 :"<<sign2<<std::endl;
- cout <<"Number Of Intervals :"<<startIntervals.Length()<<endl;
+ std::cout <<"Number Of Intervals :"<<startIntervals.Length()<<std::endl;
for (Standard_Integer i = 1; i <= startIntervals.Length(); i++) {
- cout <<"Interval number :"<<i<<"Start :"<<startIntervals.Value(i)
- <<" end :"<< endIntervals.Value(i)<<endl ;
+ std::cout <<"Interval number :"<<i<<"Start :"<<startIntervals.Value(i)
+ <<" end :"<< endIntervals.Value(i)<<std::endl ;
}
- cout <<"Index Current Interval :"<<currentInterval<<endl;
+ std::cout <<"Index Current Interval :"<<currentInterval<<std::endl;
}
//=============================================================================
//=============================================================================
static void Indent(const Standard_Integer Offset) {
if (Offset > 0) {
- for (Standard_Integer i = 0; i < Offset; i++) {cout << " ";}
+ for (Standard_Integer i = 0; i < Offset; i++) {std::cout << " ";}
}
}
const Standard_Integer Offset) const
{
Indent (Offset);
- cout <<"Bisector_BisecPC :"<<endl;
+ std::cout <<"Bisector_BisecPC :"<<std::endl;
Indent (Offset);
- cout <<"Point :"<<endl;
- cout <<" X = "<<point.X()<<endl;
- cout <<" Y = "<<point.Y()<<endl;
- cout <<"Sign :"<<sign<<endl;
- cout <<"Number Of Intervals :"<<startIntervals.Length()<<endl;
+ std::cout <<"Point :"<<std::endl;
+ std::cout <<" X = "<<point.X()<<std::endl;
+ std::cout <<" Y = "<<point.Y()<<std::endl;
+ std::cout <<"Sign :"<<sign<<std::endl;
+ std::cout <<"Number Of Intervals :"<<startIntervals.Length()<<std::endl;
for (Standard_Integer i = 1; i <= startIntervals.Length(); i++) {
- cout <<"Interval number :"<<i<<"Start :"<<startIntervals.Value(i)
- <<" end :"<< endIntervals.Value(i)<<endl ;
+ std::cout <<"Interval number :"<<i<<"Start :"<<startIntervals.Value(i)
+ <<" end :"<< endIntervals.Value(i)<<std::endl ;
}
- cout <<"Index Current Interval :"<<currentInterval<<endl;
+ std::cout <<"Index Current Interval :"<<currentInterval<<std::endl;
}
//=============================================================================
void Bisector_PointOnBis::Dump() const
{
- cout <<"Param1 :"<<param1<<endl;
- cout <<"Param2 :"<<param2<<endl;
- cout <<"Param Bis :"<<paramBis<<endl;
- cout <<"Distance :"<<distance<<endl;
+ std::cout <<"Param1 :"<<param1<<std::endl;
+ std::cout <<"Param2 :"<<param2<<std::endl;
+ std::cout <<"Param Bis :"<<paramBis<<std::endl;
+ std::cout <<"Distance :"<<distance<<std::endl;
}
if (!rsnld.IsDone()) {
#ifdef OCCT_DEBUG
- cout << "RSNLD not done "<< endl << endl;
+ std::cout << "RSNLD not done "<< std::endl << std::endl;
#endif
return Standard_False;
}
case Blend_SamePoints :
{
// On arrete
- cout << " Points confondus dans le cheminement" << endl;
+ std::cout << " Points confondus dans le cheminement" << std::endl;
/*
Exts.SetValue(previousP.PointOnS(),sol(1),sol(2),tolesp);
Extc.SetValue(previousP.PointOnC(),sol(3),tolesp);
rsnld.Perform(FuncInv,solrst,infb,supb);
if (!rsnld.IsDone()) {
#ifdef OCCT_DEBUG
- cout << "Walking::Recadre : RSNLD not done " << endl;
+ std::cout << "Walking::Recadre : RSNLD not done " << std::endl;
#endif
recadre = Standard_False;
}
if (!aRsnld.IsDone()) {
#ifdef OCCT_DEBUG
- cout << "Walking::Recadre : RSNLD not done " << endl;
+ std::cout << "Walking::Recadre : RSNLD not done " << std::endl;
#endif
recadre = Standard_False;
}
normale.SetXYZ(thenormal.XYZ());
#ifdef OCCT_DEBUG
if (stat == CSLib_InfinityOfSolutions)
- cout << "Blend_Walking::Transition : Infinite de Normal" << endl;
+ std::cout << "Blend_Walking::Transition : Infinite de Normal" << std::endl;
#endif
}
// Sinon echec recadrage. On sort avec PointsConfondus
else {
#ifdef OCCT_DEBUG
- cout << "Echec recadrage" << endl;
+ std::cout << "Echec recadrage" << std::endl;
#endif
State = Blend_SamePoints;
}
{
// On arrete
#ifdef OCCT_DEBUG
- cout << " Points confondus dans le cheminement" << endl;
+ std::cout << " Points confondus dans le cheminement" << std::endl;
#endif
Ext1.SetValue(previousP.PointOnS1(),
sol(1),sol(2),
F = FX;
D = DX;
return Error;
-/* cout<<endl;
- cout<<" test ChAsymInv"<<endl;
- cout<<"calcul exact <--> approche"<<endl;
+/* std::cout<<std::endl;
+ std::cout<<" test ChAsymInv"<<std::endl;
+ std::cout<<"calcul exact <--> approche"<<std::endl;
math_Vector X1(1,4);
math_Vector F1(1,4);
X1 = X; X1(1) += 1.e-10;
Value(X1,F1);
- cout<<"D(1,1) : "<<D(1,1)<<" "<<(F1(1) - F(1)) * 1.e10<<endl;
- cout<<"D(2,1) : "<<D(2,1)<<" "<<(F1(2) - F(2)) * 1.e10<<endl;
- cout<<"D(3,1) : "<<D(3,1)<<" "<<(F1(3) - F(3)) * 1.e10<<endl;
- cout<<"D(4,1) : "<<D(4,1)<<" "<<(F1(4) - F(4)) * 1.e10<<endl;
+ std::cout<<"D(1,1) : "<<D(1,1)<<" "<<(F1(1) - F(1)) * 1.e10<<std::endl;
+ std::cout<<"D(2,1) : "<<D(2,1)<<" "<<(F1(2) - F(2)) * 1.e10<<std::endl;
+ std::cout<<"D(3,1) : "<<D(3,1)<<" "<<(F1(3) - F(3)) * 1.e10<<std::endl;
+ std::cout<<"D(4,1) : "<<D(4,1)<<" "<<(F1(4) - F(4)) * 1.e10<<std::endl;
X1 = X; X1(2) += 1.e-10;
Value(X1,F1);
- cout<<"D(1,2) : "<<D(1,2)<<" "<<(F1(1) - F(1)) * 1.e10<<endl;
- cout<<"D(2,2) : "<<D(2,2)<<" "<<(F1(2) - F(2)) * 1.e10<<endl;
- cout<<"D(3,2) : "<<D(3,2)<<" "<<(F1(3) - F(3)) * 1.e10<<endl;
- cout<<"D(4,2) : "<<D(4,2)<<" "<<(F1(4) - F(4)) * 1.e10<<endl;
+ std::cout<<"D(1,2) : "<<D(1,2)<<" "<<(F1(1) - F(1)) * 1.e10<<std::endl;
+ std::cout<<"D(2,2) : "<<D(2,2)<<" "<<(F1(2) - F(2)) * 1.e10<<std::endl;
+ std::cout<<"D(3,2) : "<<D(3,2)<<" "<<(F1(3) - F(3)) * 1.e10<<std::endl;
+ std::cout<<"D(4,2) : "<<D(4,2)<<" "<<(F1(4) - F(4)) * 1.e10<<std::endl;
X1 = X; X1(3) += 1.e-10;
Value(X1,F1);
- cout<<"D(1,3) : "<<D(1,3)<<" "<<(F1(1) - F(1)) * 1.e10<<endl;
- cout<<"D(2,3) : "<<D(2,3)<<" "<<(F1(2) - F(2)) * 1.e10<<endl;
- cout<<"D(3,3) : "<<D(3,3)<<" "<<(F1(3) - F(3)) * 1.e10<<endl;
- cout<<"D(4,3) : "<<D(4,3)<<" "<<(F1(4) - F(4)) * 1.e10<<endl;
+ std::cout<<"D(1,3) : "<<D(1,3)<<" "<<(F1(1) - F(1)) * 1.e10<<std::endl;
+ std::cout<<"D(2,3) : "<<D(2,3)<<" "<<(F1(2) - F(2)) * 1.e10<<std::endl;
+ std::cout<<"D(3,3) : "<<D(3,3)<<" "<<(F1(3) - F(3)) * 1.e10<<std::endl;
+ std::cout<<"D(4,3) : "<<D(4,3)<<" "<<(F1(4) - F(4)) * 1.e10<<std::endl;
X1 = X; X1(4) += 1.e-10;
Value(X1,F1);
- cout<<"D(1,4) : "<<D(1,4)<<" "<<(F1(1) - F(1)) * 1.e10<<endl;
- cout<<"D(2,4) : "<<D(2,4)<<" "<<(F1(2) - F(2)) * 1.e10<<endl;
- cout<<"D(3,4) : "<<D(3,4)<<" "<<(F1(3) - F(3)) * 1.e10<<endl;
- cout<<"D(4,4) : "<<D(4,4)<<" "<<(F1(4) - F(4)) * 1.e10<<endl;*/
+ std::cout<<"D(1,4) : "<<D(1,4)<<" "<<(F1(1) - F(1)) * 1.e10<<std::endl;
+ std::cout<<"D(2,4) : "<<D(2,4)<<" "<<(F1(2) - F(2)) * 1.e10<<std::endl;
+ std::cout<<"D(3,4) : "<<D(3,4)<<" "<<(F1(3) - F(3)) * 1.e10<<std::endl;
+ std::cout<<"D(4,4) : "<<D(4,4)<<" "<<(F1(4) - F(4)) * 1.e10<<std::endl;*/
}
else {
invnorm1 = 1; // Unsatisfactory, but it is not necessary to crash
#ifdef OCCT_DEBUG
- cout << " ConstRad : Surface singuliere " << endl;
+ std::cout << " ConstRad : Surface singuliere " << std::endl;
#endif
}
if (invnorm2 > Eps) invnorm2 = ((Standard_Real) 1) /invnorm2;
else {
invnorm2 = 1; // Unsatisfactory, but it is not necessary to crash
#ifdef OCCT_DEBUG
- cout << " ConstRad : Surface singuliere " << endl;
+ std::cout << " ConstRad : Surface singuliere " << std::endl;
#endif
}
Abs(controle(3)) > tolerances(3) ||
Abs(controle(4)) > tolerances(4)){
#ifdef OCCT_DEBUG
- cout<<"Cheminement : echec calcul des derivees"<<endl;
+ std::cout<<"Cheminement : echec calcul des derivees"<<std::endl;
#endif
istangent = Standard_True;
}
else Angle = 2.*M_PI - Angle;
}
-// cout << "Angle : " <<Angle << endl;
+// std::cout << "Angle : " <<Angle << std::endl;
// if ((Angle < 0) || (Angle > M_PI)) {
-// cout << "t = " << param << endl;
+// std::cout << "t = " << param << std::endl;
// }
if (Abs(Angle)>maxang) {maxang = Abs(Angle);}
if (norm1 < Eps) {
norm1 = 1; // Unsatisfactory, but it is not necessary to stop
#ifdef OCCT_DEBUG
- cout << " ConstRad : Surface singuliere " << endl;
+ std::cout << " ConstRad : Surface singuliere " << std::endl;
#endif
}
if (norm2 < Eps) {
norm2 = 1; // Unsatisfactory, but it is not necessary to stop
#ifdef OCCT_DEBUG
- cout << " ConstRad : Surface singuliere " << endl;
+ std::cout << " ConstRad : Surface singuliere " << std::endl;
#endif
}
pdiff = (d_plan - dnplan)*(1/deltat);
if ((pdiff-d2nplan).Magnitude() > seuil*(pdiff.Magnitude()+1))
{
- cout << "d2nplan = (" << d2nplan.X() << ","<< d2nplan.Y() << ","<< d2nplan.Z() << ")"<<endl;
- cout << "Diff fi = (" << pdiff.X() << ","<< pdiff.Y() << ","<< pdiff.Z() << ")"<<endl;
+ std::cout << "d2nplan = (" << d2nplan.X() << ","<< d2nplan.Y() << ","<< d2nplan.Z() << ")"<<std::endl;
+ std::cout << "Diff fi = (" << pdiff.X() << ","<< pdiff.Y() << ","<< pdiff.Z() << ")"<<std::endl;
}
pdiff = (d1 - dn1w)*(1/deltat);
if ((pdiff-d2n1w).Magnitude() > seuil*(pdiff.Magnitude()+1))
{
- cout << "d2n1w = (" << d2n1w.X() << ","<< d2n1w.Y() << ","<< d2n1w.Z() << ")"<<endl;
- cout << "Diff fi = (" << pdiff.X() << ","<< pdiff.Y() << ","<< pdiff.Z() << ")"<<endl;
+ std::cout << "d2n1w = (" << d2n1w.X() << ","<< d2n1w.Y() << ","<< d2n1w.Z() << ")"<<std::endl;
+ std::cout << "Diff fi = (" << pdiff.X() << ","<< pdiff.Y() << ","<< pdiff.Z() << ")"<<std::endl;
}
pdiff = (d2 - dn2w)*(1/deltat);
if ((pdiff-d2n2w).Magnitude() > seuil*(pdiff.Magnitude()+1))
{
- cout << "d2n2w = (" << d2n2w.X() << ","<< d2n2w.Y() << ","<< d2n2w.Z() << ")"<<endl;
- cout << "Diff fi = (" << pdiff.X() << ","<< pdiff.Y() << ","<< pdiff.Z() << ")"<<endl;
+ std::cout << "d2n2w = (" << d2n2w.X() << ","<< d2n2w.Y() << ","<< d2n2w.Z() << ")"<<std::endl;
+ std::cout << "Diff fi = (" << pdiff.X() << ","<< pdiff.Y() << ","<< pdiff.Z() << ")"<<std::endl;
}
for ( ii=1; ii<=4; ii++) {
if (Abs(VDiff(ii)-D2EDT2(ii)) > seuil*(Abs(D2EDT2(ii))+1))
{
- cout << "erreur sur D2EDT2 : "<< ii << endl;
- cout << D2EDT2(ii) << " D.F = " << VDiff(ii) << endl;
+ std::cout << "erreur sur D2EDT2 : "<< ii << std::endl;
+ std::cout << D2EDT2(ii) << " D.F = " << VDiff(ii) << std::endl;
}
for (jj=1; jj<=4; jj++) {
if (Abs(MDiff(ii,jj)-D2EDXDT(ii, jj)) >
1.e-3*(Abs(D2EDXDT(ii, jj))+1.e-2))
{
- cout << "erreur sur D2EDXDT : "<< ii << " , " << jj << endl;
- cout << D2EDXDT(ii,jj) << " D.F = " << MDiff(ii,jj) << endl;
+ std::cout << "erreur sur D2EDXDT : "<< ii << " , " << jj << std::endl;
+ std::cout << D2EDXDT(ii,jj) << " D.F = " << MDiff(ii,jj) << std::endl;
}
}
}
if (Abs(MDiff(ii,jj)-D2EDX2(ii, jj, 1)) >
seuil*(Abs(D2EDX2(ii, jj, 1))+1))
{
- cout << "erreur sur D2EDX2 : "<< ii << " , " << jj << " , " << 1 << endl;
- cout << D2EDX2(ii,jj, 1) << " D.F = " << MDiff(ii,jj) << endl;
+ std::cout << "erreur sur D2EDX2 : "<< ii << " , " << jj << " , " << 1 << std::endl;
+ std::cout << D2EDX2(ii,jj, 1) << " D.F = " << MDiff(ii,jj) << std::endl;
}
}
}
if (Abs(MDiff(ii,jj)-D2EDX2(ii, jj, 2)) >
seuil*(Abs(D2EDX2(ii, jj, 2))+1))
{
- cout << "erreur sur D2EDX2 : "<< ii << " , " << jj << " , " << 2 << endl;
- cout << D2EDX2(ii,jj, 2) << " D.F = " << MDiff(ii,jj) << endl;
+ std::cout << "erreur sur D2EDX2 : "<< ii << " , " << jj << " , " << 2 << std::endl;
+ std::cout << D2EDX2(ii,jj, 2) << " D.F = " << MDiff(ii,jj) << std::endl;
}
}
}
if (Abs(MDiff(ii,jj)-D2EDX2(ii, jj, 3)) >
seuil*(Abs(D2EDX2(ii, jj, 3))+1))
{
- cout << "erreur sur D2EDX2 : "<< ii << " , " << jj << " , " << 3 << endl;
- cout << D2EDX2(ii,jj, 3) << " D.F = " << MDiff(ii,jj) << endl;
+ std::cout << "erreur sur D2EDX2 : "<< ii << " , " << jj << " , " << 3 << std::endl;
+ std::cout << D2EDX2(ii,jj, 3) << " D.F = " << MDiff(ii,jj) << std::endl;
}
}
}
if (Abs(MDiff(ii,jj)-D2EDX2(ii, jj, 4)) >
seuil*(Abs(D2EDX2(ii, jj, 4))+1))
{
- cout << "erreur sur D2EDX2 : "<< ii << " , " << jj << " , " << 4 << endl;
- cout << D2EDX2(ii,jj, 4) << " D.F = " << MDiff(ii,jj) << endl;
+ std::cout << "erreur sur D2EDX2 : "<< ii << " , " << jj << " , " << 4 << std::endl;
+ std::cout << D2EDX2(ii,jj, 4) << " D.F = " << MDiff(ii,jj) << std::endl;
}
}
}
if (norm1 < Eps) {
norm1 = 1; // Unsatisfactory, but it is not necessary to stop
#ifdef OCCT_DEBUG
- cout << " ConstRad : Surface singuliere " << endl;
+ std::cout << " ConstRad : Surface singuliere " << std::endl;
#endif
}
if (norm2 < Eps) {
norm2 = 1; // Unsatisfactory, but it is not necessary to stop
#ifdef OCCT_DEBUG
- cout << " ConstRad : Surface singuliere " << endl;
+ std::cout << " ConstRad : Surface singuliere " << std::endl;
#endif
}
if (norm1 < Eps) {
norm1 = 1; // Unsatisfactory, but it is not necessary to stop
#ifdef OCCT_DEBUG
- cout << " ConstRadInv : Surface singuliere " << endl;
+ std::cout << " ConstRadInv : Surface singuliere " << std::endl;
#endif
}
if (norm2 < Eps) {
norm2 = 1; // Unsatisfactory, but it is not necessary to stop
#ifdef OCCT_DEBUG
- cout << " ConstRadInv : Surface singuliere " << endl;
+ std::cout << " ConstRadInv : Surface singuliere " << std::endl;
#endif
}
if (norm1 < Eps) {
norm1 = 1; // Unsatisfactory, but it is not necessary to stop
#ifdef OCCT_DEBUG
- cout << " ConstRadInv : Surface singuliere " << endl;
+ std::cout << " ConstRadInv : Surface singuliere " << std::endl;
#endif
}
if (norm2 < Eps) {
norm2 = 1; // Unsatisfactory, but it is not necessary to stop
#ifdef OCCT_DEBUG
- cout << " ConstRadInv : Surface singuliere " << endl;
+ std::cout << " ConstRadInv : Surface singuliere " << std::endl;
#endif
}
else {
invnorm1 = 1; // Unsatisfactory, but it is not necessary to stop
#ifdef OCCT_DEBUG
- cout << " EvolRad : Surface singuliere " << endl;
+ std::cout << " EvolRad : Surface singuliere " << std::endl;
#endif
}
if (invnorm2 > Eps) invnorm2 = ((Standard_Real) 1) /invnorm2;
else {
invnorm2 = 1; // Unsatisfactory, but it is not necessary to stop
#ifdef OCCT_DEBUG
- cout << " EvolRad : Surface singuliere " << endl;
+ std::cout << " EvolRad : Surface singuliere " << std::endl;
#endif
}
Abs(controle(3)) > tolerances(3) ||
Abs(controle(4)) > tolerances(4)){
#ifdef OCCT_DEBUG
- cout<<"Cheminement : echec calcul des derivees"<<endl;
+ std::cout<<"Cheminement : echec calcul des derivees"<<std::endl;
#endif
istangent = Standard_True;
}
gp_Vec d1u,d1v;
gp_Pnt bid;
#ifdef OCCT_DEBUG
- cout << " erreur de tengent !!!!!!!!!!!!!!!!!!!!" << endl;
+ std::cout << " erreur de tengent !!!!!!!!!!!!!!!!!!!!" << std::endl;
#endif
surf1->D1(U1,V1,bid,d1u,d1v);
NmF = ns1 = d1u.Crossed(d1v);
if (norm1 < Eps) {
norm1 = 1; // Unsatisfactory, but it is not necessary to stop
#ifdef OCCT_DEBUG
- cout << " EvolRad : Surface singuliere " << endl;
+ std::cout << " EvolRad : Surface singuliere " << std::endl;
#endif
}
if (norm2 < Eps) {
norm2 = 1; // Unsatisfactory, but it is not necessary to stop
#ifdef OCCT_DEBUG
- cout << " EvolRad : Surface singuliere " << endl;
+ std::cout << " EvolRad : Surface singuliere " << std::endl;
#endif
}
if (norm1 < Eps) {
norm1 = 1; // Unsatisfactory, but it is not necessary to stop
#ifdef OCCT_DEBUG
- cout << " EvolRad : Surface singuliere " << endl;
+ std::cout << " EvolRad : Surface singuliere " << std::endl;
#endif
}
if (norm2 < Eps) {
norm2 = 1; // Unsatisfactory, but it is not necessary to stop
#ifdef OCCT_DEBUG
- cout << " EvolRad : Surface singuliere " << endl;
+ std::cout << " EvolRad : Surface singuliere " << std::endl;
#endif
}
pdiff = (d_plan - dnplan)*(1/deltat);
if ((pdiff-d2nplan).Magnitude() > 1.e-4*(pdiff.Magnitude()+1.e-1))
{
- cout << "d2nplan = (" << d2nplan.X() << ","<< d2nplan.Y() << ","<< d2nplan.Z() << ")"<<endl;
- cout << "Diff fi = (" << pdiff.X() << ","<< pdiff.Y() << ","<< pdiff.Z() << ")"<<endl;
+ std::cout << "d2nplan = (" << d2nplan.X() << ","<< d2nplan.Y() << ","<< d2nplan.Z() << ")"<<std::endl;
+ std::cout << "Diff fi = (" << pdiff.X() << ","<< pdiff.Y() << ","<< pdiff.Z() << ")"<<std::endl;
}
pdiff = (d1 - dn1w)*(1/deltat);
if ((pdiff-d2n1w).Magnitude() > 1.e-4*(pdiff.Magnitude()+1.e-1))
{
- cout << "d2n1w = (" << d2n1w.X() << ","<< d2n1w.Y() << ","<< d2n1w.Z() << ")"<<endl;
- cout << "Diff fi = (" << pdiff.X() << ","<< pdiff.Y() << ","<< pdiff.Z() << ")"<<endl;
+ std::cout << "d2n1w = (" << d2n1w.X() << ","<< d2n1w.Y() << ","<< d2n1w.Z() << ")"<<std::endl;
+ std::cout << "Diff fi = (" << pdiff.X() << ","<< pdiff.Y() << ","<< pdiff.Z() << ")"<<std::endl;
}
pdiff = (d2 - dn2w)*(1/deltat);
if ((pdiff-d2n2w).Magnitude() > 1.e-4*(pdiff.Magnitude()+1.e-1))
{
- cout << "d2n2w = (" << d2n2w.X() << ","<< d2n2w.Y() << ","<< d2n2w.Z() << ")"<<endl;
- cout << "Diff fi = (" << pdiff.X() << ","<< pdiff.Y() << ","<< pdiff.Z() << ")"<<endl;
+ std::cout << "d2n2w = (" << d2n2w.X() << ","<< d2n2w.Y() << ","<< d2n2w.Z() << ")"<<std::endl;
+ std::cout << "Diff fi = (" << pdiff.X() << ","<< pdiff.Y() << ","<< pdiff.Z() << ")"<<std::endl;
}
for ( ii=1; ii<=4; ii++) {
if (Abs(VDiff(ii)-D2EDT2(ii)) > 1.e-4*(Abs(D2EDT2(ii))+1.e-1))
{
- cout << "erreur sur D2EDT2 : "<< ii << endl;
- cout << D2EDT2(ii) << " D.F = " << VDiff(ii) << endl;
+ std::cout << "erreur sur D2EDT2 : "<< ii << std::endl;
+ std::cout << D2EDT2(ii) << " D.F = " << VDiff(ii) << std::endl;
}
for (jj=1; jj<=4; jj++) {
if (Abs(MDiff(ii,jj)-D2EDXDT(ii, jj)) >
1.e-3*(Abs(D2EDXDT(ii, jj))+1.e-2))
{
- cout << "erreur sur D2EDXDT : "<< ii << " , " << jj << endl;
- cout << D2EDXDT(ii,jj) << " D.F = " << MDiff(ii,jj) << endl;
+ std::cout << "erreur sur D2EDXDT : "<< ii << " , " << jj << std::endl;
+ std::cout << D2EDXDT(ii,jj) << " D.F = " << MDiff(ii,jj) << std::endl;
}
}
}
if (Abs(MDiff(ii,jj)-D2EDX2(ii, jj, 1)) >
1.e-4*(Abs(D2EDX2(ii, jj, 1))+1.e-1))
{
- cout << "erreur sur D2EDX2 : "<< ii << " , " << jj << " , " << 1 << endl;
- cout << D2EDX2(ii,jj, 1) << " D.F = " << MDiff(ii,jj) << endl;
+ std::cout << "erreur sur D2EDX2 : "<< ii << " , " << jj << " , " << 1 << std::endl;
+ std::cout << D2EDX2(ii,jj, 1) << " D.F = " << MDiff(ii,jj) << std::endl;
}
}
}
if (Abs(MDiff(ii,jj)-D2EDX2(ii, jj, 2)) >
1.e-4*(Abs(D2EDX2(ii, jj, 2))+1.e-1))
{
- cout << "erreur sur D2EDX2 : "<< ii << " , " << jj << " , " << 2 << endl;
- cout << D2EDX2(ii,jj, 2) << " D.F = " << MDiff(ii,jj) << endl;
+ std::cout << "erreur sur D2EDX2 : "<< ii << " , " << jj << " , " << 2 << std::endl;
+ std::cout << D2EDX2(ii,jj, 2) << " D.F = " << MDiff(ii,jj) << std::endl;
}
}
}
if (Abs(MDiff(ii,jj)-D2EDX2(ii, jj, 3)) >
1.e-4*(Abs(D2EDX2(ii, jj, 3))+1.e-1))
{
- cout << "erreur sur D2EDX2 : "<< ii << " , " << jj << " , " << 3 << endl;
- cout << D2EDX2(ii,jj, 3) << " D.F = " << MDiff(ii,jj) << endl;
+ std::cout << "erreur sur D2EDX2 : "<< ii << " , " << jj << " , " << 3 << std::endl;
+ std::cout << D2EDX2(ii,jj, 3) << " D.F = " << MDiff(ii,jj) << std::endl;
}
}
}
if (Abs(MDiff(ii,jj)-D2EDX2(ii, jj, 4)) >
1.e-4*(Abs(D2EDX2(ii, jj, 4))+1.e-1))
{
- cout << "erreur sur D2EDX2 : "<< ii << " , " << jj << " , "
- << 4 << endl;
- cout << D2EDX2(ii,jj, 4) << " D.F = " << MDiff(ii,jj) << endl;
+ std::cout << "erreur sur D2EDX2 : "<< ii << " , " << jj << " , "
+ << 4 << std::endl;
+ std::cout << D2EDX2(ii,jj, 4) << " D.F = " << MDiff(ii,jj) << std::endl;
}
}
}
if (norm1 < Eps) {
norm1 = 1; // Unsatisfactory, but it is not necessary to stop
#ifdef OCCT_DEBUG
- cout << " EvolRad : Surface singuliere " << endl;
+ std::cout << " EvolRad : Surface singuliere " << std::endl;
#endif
}
if (norm2 < Eps) {
norm2 = 1; // Unsatisfactory, but it is not necessary to stop
#ifdef OCCT_DEBUG
- cout << " EvolRad : Surface singuliere " << endl;
+ std::cout << " EvolRad : Surface singuliere " << std::endl;
#endif
}
{
Standard_Integer lacase;
- cout << "axis X : " << discrX << " intervalles de " << deltaX << endl;
+ std::cout << "axis X : " << discrX << " intervalles de " << deltaX << std::endl;
if (discrX>1) {
const TColStd_Array1OfListOfInteger & tabList=axisX->Array1();
for (lacase=1; lacase<=discrX; lacase++) {
- cout << " X " << lacase << " : " ;
+ std::cout << " X " << lacase << " : " ;
TColStd_ListIteratorOfListOfInteger theList(tabList(lacase));
for (; theList.More(); theList.Next()) {
- cout << theList.Value() << " ";
+ std::cout << theList.Value() << " ";
}
- cout << "\n";
+ std::cout << "\n";
}
}
- cout << "axis Y : " << discrY << " intervalles de " << deltaY << endl;
+ std::cout << "axis Y : " << discrY << " intervalles de " << deltaY << std::endl;
if (discrY>1) {
const TColStd_Array1OfListOfInteger & tabList=axisY->Array1();
for (lacase=1; lacase<=discrY; lacase++) {
- cout << " Y " << lacase << " : " ;
+ std::cout << " Y " << lacase << " : " ;
TColStd_ListIteratorOfListOfInteger theList(tabList(lacase));
for (; theList.More(); theList.Next()) {
- cout << theList.Value() << " ";
+ std::cout << theList.Value() << " ";
}
- cout << "\n";
+ std::cout << "\n";
}
}
}
void Bnd_Box::Dump () const
{
- cout << "Box3D : ";
- if (IsVoid()) cout << "Void";
- else if (IsWhole()) cout << "Whole";
+ std::cout << "Box3D : ";
+ if (IsVoid()) std::cout << "Void";
+ else if (IsWhole()) std::cout << "Whole";
else {
- cout << "\n Xmin : ";
- if (IsOpenXmin()) cout << "Infinite";
- else cout << Xmin;
- cout << "\n Xmax : ";
- if (IsOpenXmax()) cout << "Infinite";
- else cout << Xmax;
- cout << "\n Ymin : ";
- if (IsOpenYmin()) cout << "Infinite";
- else cout << Ymin;
- cout << "\n Ymax : ";
- if (IsOpenYmax()) cout << "Infinite";
- else cout << Ymax;
- cout << "\n Zmin : ";
- if (IsOpenZmin()) cout << "Infinite";
- else cout << Zmin;
- cout << "\n Zmax : ";
- if (IsOpenZmax()) cout << "Infinite";
- else cout << Zmax;
+ std::cout << "\n Xmin : ";
+ if (IsOpenXmin()) std::cout << "Infinite";
+ else std::cout << Xmin;
+ std::cout << "\n Xmax : ";
+ if (IsOpenXmax()) std::cout << "Infinite";
+ else std::cout << Xmax;
+ std::cout << "\n Ymin : ";
+ if (IsOpenYmin()) std::cout << "Infinite";
+ else std::cout << Ymin;
+ std::cout << "\n Ymax : ";
+ if (IsOpenYmax()) std::cout << "Infinite";
+ else std::cout << Ymax;
+ std::cout << "\n Zmin : ";
+ if (IsOpenZmin()) std::cout << "Infinite";
+ else std::cout << Zmin;
+ std::cout << "\n Zmax : ";
+ if (IsOpenZmax()) std::cout << "Infinite";
+ else std::cout << Zmax;
}
- cout << "\n Gap : " << Gap;
- cout << "\n";
+ std::cout << "\n Gap : " << Gap;
+ std::cout << "\n";
}
void Bnd_Box2d::Dump () const
{
- cout << "Box2d : ";
- if (IsVoid()) cout << "Void";
- else if (IsWhole()) cout << "Whole";
+ std::cout << "Box2d : ";
+ if (IsVoid()) std::cout << "Void";
+ else if (IsWhole()) std::cout << "Whole";
else {
- cout << "\n Xmin : ";
- if (IsOpenXmin()) cout << "Infinite";
- else cout << Xmin;
- cout << "\n Xmax : ";
- if (IsOpenXmax()) cout << "Infinite";
- else cout << Xmax;
- cout << "\n Ymin : ";
- if (IsOpenYmin()) cout << "Infinite";
- else cout << Ymin;
- cout << "\n Ymax : ";
- if (IsOpenYmax()) cout << "Infinite";
- else cout << Ymax;
+ std::cout << "\n Xmin : ";
+ if (IsOpenXmin()) std::cout << "Infinite";
+ else std::cout << Xmin;
+ std::cout << "\n Xmax : ";
+ if (IsOpenXmax()) std::cout << "Infinite";
+ else std::cout << Xmax;
+ std::cout << "\n Ymin : ";
+ if (IsOpenYmin()) std::cout << "Infinite";
+ else std::cout << Ymin;
+ std::cout << "\n Ymax : ";
+ if (IsOpenYmax()) std::cout << "Infinite";
+ else std::cout << Ymax;
}
- cout << "\n Gap : " << Gap;
- cout << "\n";
+ std::cout << "\n Gap : " << Gap;
+ std::cout << "\n";
}
Standard_SStream aMsg;
switch (CanRetrieve(aMetaData)) {
case PCDM_RS_UnknownDocument:
- aMsg << "could not find the referenced document: " << aMetaData->Path() << "; not found." <<(char)0 << endl;
+ aMsg << "could not find the referenced document: " << aMetaData->Path() << "; not found." <<(char)0 << std::endl;
myRetrievableStatus = PCDM_RS_UnknownDocument;
throw Standard_Failure(aMsg.str().c_str());
break;
case PCDM_RS_PermissionDenied:
- aMsg << "Could not find the referenced document: " << aMetaData->Path() << "; permission denied. " <<(char)0 << endl;
+ aMsg << "Could not find the referenced document: " << aMetaData->Path() << "; permission denied. " <<(char)0 << std::endl;
myRetrievableStatus = PCDM_RS_PermissionDenied;
throw Standard_Failure(aMsg.str().c_str());
break;
myRetrievableStatus = theReader->GetStatus();
if(myRetrievableStatus > PCDM_RS_AlreadyRetrieved){
Standard_SStream aMsg;
- aMsg << anException << endl;
+ aMsg << anException << std::endl;
throw Standard_Failure(aMsg.str().c_str());
}
}
myRetrievableStatus = PCDM_RS_FormatFailure;
Standard_SStream aMsg;
- aMsg << anException << endl;
+ aMsg << anException << std::endl;
throw Standard_Failure(aMsg.str().c_str());
}
if (myRetrievableStatus > PCDM_RS_AlreadyRetrieved)
{
Standard_SStream aMsg;
- aMsg << anException << endl;
+ aMsg << anException << std::endl;
throw Standard_Failure(aMsg.str().c_str());
}
}
if(!getPresentations().IsBound(x)) {
Standard_SStream aMsg;
aMsg <<"No document having this presentation: " << x << " does exist."
- << endl << (char)0;
+ << std::endl << (char)0;
throw Standard_NoSuchObject(aMsg.str().c_str());
}
return getPresentations()(x);
if(myApplication.IsNull()) {
Standard_SStream aMsg;
aMsg << "this document of format "<< StorageFormat()
- << " has not yet been opened by any application. "<< endl;
+ << " has not yet been opened by any application. "<< std::endl;
throw Standard_Failure(aMsg.str().c_str());
}
return myApplication->Resources();
myResourcesAreLoaded=Standard_True;
-// cout << "resource Loaded: Format: " << theFormat << ", FileExtension:" << myFileExtension << ", Description:" << myDescription << endl;
+// std::cout << "resource Loaded: Format: " << theFormat << ", FileExtension:" << myFileExtension << ", Description:" << myDescription << std::endl;
}
return;
}
if(HasVersion()) anOStream << "," << myVersion ;
anOStream << "; Physical situation: ";
anOStream << myFileName;
- anOStream << endl;
+ anOStream << std::endl;
return anOStream;
}
Standard_OStream& CDM_MetaData::operator << (Standard_OStream& anOStream) {
default: // unknown: maximum
aNBSteps = 100;
}
- //cout<<"aNBSteps = "<<aNBSteps<<endl;
+ //std::cout<<"aNBSteps = "<<aNBSteps<<std::endl;
myRadius = theRadius;
Standard_Real aParam, aStep, aDStep;
if (Abs(aA) < Precision::Confusion())
{ // linear case
- //cout<<"###"<<endl;
+ //std::cout<<"###"<<std::endl;
if (Abs(aB) > 10e-20)
{
Standard_Real aX0 = - aC / aB; // use extremum
{
if (Abs(aB) > Abs(aDet * 1000000.))
{ // possible floating point operations accurancy errors
- //cout<<"*";
+ //std::cout<<"*";
ProcessPoint(theLeft, theRight, theLeft->getParam() + aDX / 2.0); // linear division otherwise
}
else
}
else
{
- //cout<<"%%%"<<endl;
+ //std::cout<<"%%%"<<std::endl;
Standard_Real aX0 = - aB / aA; // use extremum
if (aX0 > theLeft->getParam() && aX0 < theRight->getParam())
ProcessPoint(theLeft, theRight, aX0);
}
else {
#ifdef OCCT_DEBUG
- cout<<"ConcaveSide : no concave face"<<endl;
+ std::cout<<"ConcaveSide : no concave face"<<std::endl;
#endif
//This 10 shows that the face at end is in the extension of one of two base faces
return 10;
}
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout <<"EXCEPTION Stripe compute " << anException << endl;
+ std::cout <<"EXCEPTION Stripe compute " << anException << std::endl;
#endif
(void)anException;
badstripes.Append(itel.Value());
}
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout <<"EXCEPTION Corner compute " << anException << endl;
+ std::cout <<"EXCEPTION Corner compute " << anException << std::endl;
#endif
(void)anException;
badvertices.Append(myVDataMap.FindKey(j));
}
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout <<"EXCEPTION Fillets compute " << anException << endl;
+ std::cout <<"EXCEPTION Fillets compute " << anException << std::endl;
#endif
(void)anException;
badstripes.Append(itel.Value());
#ifdef OCCT_DEBUG
if(ChFi3d_GettraceCHRON()){
- cout<<endl;
- cout<<"COMPUTE: temps total "<<t_total<<"s dont :"<<endl;
- cout<<"- Init + ExtentAnalyse "<<t_extent<<"s"<<endl;
- cout<<"- PerformSetOfSurf "<<t_perfsetofsurf<<"s"<<endl;
- cout<<"- PerformFilletOnVertex "<<t_perffilletonvertex<<"s"<<endl;
- cout<<"- FilDS "<<t_filds<<"s"<<endl;
- cout<<"- Reconstruction "<<t_reconstruction<<"s"<<endl;
- cout<<"- SetRegul "<<t_setregul<<"s"<<endl<<endl;
-
- cout<<endl;
- cout <<"temps PERFORMSETOFSURF "<<t_perfsetofsurf <<"s dont : "<<endl;
- cout <<"- SetofKPart "<<t_perfsetofkpart<<"s"<<endl;
- cout <<"- SetofKGen "<< t_perfsetofkgen <<"s"<<endl;
- cout <<"- MakeExtremities "<<t_makextremities<<"s"<<endl<<endl;
+ std::cout<<std::endl;
+ std::cout<<"COMPUTE: temps total "<<t_total<<"s dont :"<<std::endl;
+ std::cout<<"- Init + ExtentAnalyse "<<t_extent<<"s"<<std::endl;
+ std::cout<<"- PerformSetOfSurf "<<t_perfsetofsurf<<"s"<<std::endl;
+ std::cout<<"- PerformFilletOnVertex "<<t_perffilletonvertex<<"s"<<std::endl;
+ std::cout<<"- FilDS "<<t_filds<<"s"<<std::endl;
+ std::cout<<"- Reconstruction "<<t_reconstruction<<"s"<<std::endl;
+ std::cout<<"- SetRegul "<<t_setregul<<"s"<<std::endl<<std::endl;
+
+ std::cout<<std::endl;
+ std::cout <<"temps PERFORMSETOFSURF "<<t_perfsetofsurf <<"s dont : "<<std::endl;
+ std::cout <<"- SetofKPart "<<t_perfsetofkpart<<"s"<<std::endl;
+ std::cout <<"- SetofKGen "<< t_perfsetofkgen <<"s"<<std::endl;
+ std::cout <<"- MakeExtremities "<<t_makextremities<<"s"<<std::endl<<std::endl;
- cout <<"temps SETOFKGEN "<< t_perfsetofkgen<<"s dont : "<<endl;
- cout<<"- PerformSurf "<<t_performsurf<<"s"<<endl;
- cout<<"- starsol "<< t_startsol <<"s"<<endl<<endl;
+ std::cout <<"temps SETOFKGEN "<< t_perfsetofkgen<<"s dont : "<<std::endl;
+ std::cout<<"- PerformSurf "<<t_performsurf<<"s"<<std::endl;
+ std::cout<<"- starsol "<< t_startsol <<"s"<<std::endl<<std::endl;
- cout<<"temps PERFORMSURF "<<t_performsurf<<"s dont : " << endl;
- cout<<"- computedata "<<t_computedata<<"s"<<endl;
- cout<<"- completedata "<<t_completedata<<"s"<<endl<<endl;
+ std::cout<<"temps PERFORMSURF "<<t_performsurf<<"s dont : " << std::endl;
+ std::cout<<"- computedata "<<t_computedata<<"s"<<std::endl;
+ std::cout<<"- completedata "<<t_completedata<<"s"<<std::endl<<std::endl;
- cout<<"temps PERFORMFILLETVERTEX "<<t_perffilletonvertex <<"s dont : " << endl;
- cout<<"- PerformOneCorner "<<t_perform1corner<<"s"<<endl;
- cout<<"- PerformIntersectionAtEnd "<<t_performatend<<"s"<<endl;
- cout<<"- PerformTwoCorner "<<t_perform2corner<<"s"<<endl;
- cout<<"- PerformThreeCorner "<<t_perform3corner<<"s"<<endl;
- cout<<"- PerformMoreThreeCorner "<<t_performmore3corner<<"s"<<endl<<endl;
+ std::cout<<"temps PERFORMFILLETVERTEX "<<t_perffilletonvertex <<"s dont : " << std::endl;
+ std::cout<<"- PerformOneCorner "<<t_perform1corner<<"s"<<std::endl;
+ std::cout<<"- PerformIntersectionAtEnd "<<t_performatend<<"s"<<std::endl;
+ std::cout<<"- PerformTwoCorner "<<t_perform2corner<<"s"<<std::endl;
+ std::cout<<"- PerformThreeCorner "<<t_perform3corner<<"s"<<std::endl;
+ std::cout<<"- PerformMoreThreeCorner "<<t_performmore3corner<<"s"<<std::endl<<std::endl;
- cout<<"temps PerformOneCorner "<<t_perform1corner<<"s dont:"<<endl;
- cout<<"- temps condition if (same) "<<t_same << "s "<<endl;
- cout<<"- temps condition if (inter) "<<t_inter<<"s " <<endl;
- cout<<"- temps condition if (same inter) "<<t_sameinter<<"s " <<endl<<endl;
+ std::cout<<"temps PerformOneCorner "<<t_perform1corner<<"s dont:"<<std::endl;
+ std::cout<<"- temps condition if (same) "<<t_same << "s "<<std::endl;
+ std::cout<<"- temps condition if (inter) "<<t_inter<<"s " <<std::endl;
+ std::cout<<"- temps condition if (same inter) "<<t_sameinter<<"s " <<std::endl<<std::endl;
- cout<<"temps PerformTwocorner "<<t_perform2corner<<"s dont:"<<endl;
- cout<<"- temps initialisation "<< t_t2cornerinit<<"s"<<endl;
- cout<<"- temps PerformTwoCornerbyInter "<<t_perf2cornerbyinter<<"s"<<endl;
- cout<<"- temps ChFiKPart_ComputeData "<<t_chfikpartcompdata <<"s"<<endl;
- cout<<"- temps cheminement "<<t_cheminement<<"s"<<endl;
- cout<<"- temps remplissage "<<t_remplissage<<"s"<<endl;
- cout<<"- temps mise a jour stripes "<<t_t2cornerDS<<"s"<<endl<<endl;
+ std::cout<<"temps PerformTwocorner "<<t_perform2corner<<"s dont:"<<std::endl;
+ std::cout<<"- temps initialisation "<< t_t2cornerinit<<"s"<<std::endl;
+ std::cout<<"- temps PerformTwoCornerbyInter "<<t_perf2cornerbyinter<<"s"<<std::endl;
+ std::cout<<"- temps ChFiKPart_ComputeData "<<t_chfikpartcompdata <<"s"<<std::endl;
+ std::cout<<"- temps cheminement "<<t_cheminement<<"s"<<std::endl;
+ std::cout<<"- temps remplissage "<<t_remplissage<<"s"<<std::endl;
+ std::cout<<"- temps mise a jour stripes "<<t_t2cornerDS<<"s"<<std::endl<<std::endl;
- cout<<" temps PerformThreecorner "<<t_perform3corner<<"s dont:"<<endl;
- cout<<"- temps initialisation "<< t_t3cornerinit<<"s"<<endl;
- cout<<"- temps cas spherique "<<t_spherique<<"s"<<endl;
- cout<<"- temps cas torique "<<t_torique<<"s"<<endl;
- cout<<"- temps notfilling "<<t_notfilling<<"s"<<endl;
- cout<<"- temps filling "<<t_filling<<"s"<<endl;
- cout<<"- temps mise a jour stripes "<<t_t3cornerDS<<"s"<<endl<<endl;
+ std::cout<<" temps PerformThreecorner "<<t_perform3corner<<"s dont:"<<std::endl;
+ std::cout<<"- temps initialisation "<< t_t3cornerinit<<"s"<<std::endl;
+ std::cout<<"- temps cas spherique "<<t_spherique<<"s"<<std::endl;
+ std::cout<<"- temps cas torique "<<t_torique<<"s"<<std::endl;
+ std::cout<<"- temps notfilling "<<t_notfilling<<"s"<<std::endl;
+ std::cout<<"- temps filling "<<t_filling<<"s"<<std::endl;
+ std::cout<<"- temps mise a jour stripes "<<t_t3cornerDS<<"s"<<std::endl<<std::endl;
- cout<<"temps PerformMore3Corner "<<t_performmore3corner<<"s dont:"<<endl;
- cout<<"-temps plate "<<t_plate << "s "<<endl;
- cout<<"-temps approxplate "<<t_approxplate<<"s " <<endl;
- cout<<"-temps batten "<< t_batten<<"s " <<endl<<endl;
+ std::cout<<"temps PerformMore3Corner "<<t_performmore3corner<<"s dont:"<<std::endl;
+ std::cout<<"-temps plate "<<t_plate << "s "<<std::endl;
+ std::cout<<"-temps approxplate "<<t_approxplate<<"s " <<std::endl;
+ std::cout<<"-temps batten "<< t_batten<<"s " <<std::endl<<std::endl;
- cout <<"TEMPS DIVERS "<<endl;
- cout<<"-temps ChFi3d_sameparameter "<<t_sameparam<<"s"<<endl<<endl;
+ std::cout <<"TEMPS DIVERS "<<std::endl;
+ std::cout<<"-temps ChFi3d_sameparameter "<<t_sameparam<<"s"<<std::endl<<std::endl;
}
#endif
//
BSpline = C1;
}
else {
- //cout << "Attention : Echec de C0BSplineToC1 !" << endl;
+ //std::cout << "Attention : Echec de C0BSplineToC1 !" << std::endl;
}
}
//
}
else{
#ifdef OCCT_DEBUG
- cout<<"top has more than 3 edges"<<endl;
+ std::cout<<"top has more than 3 edges"<<std::endl;
#endif
sommetpourri = Standard_True;
break;
if(nbf>3) {
Spine->SetFirstStatus(ChFiDS_BreakPoint);
#ifdef OCCT_DEBUG
- cout<<"top has : "<<nbf<<" faces."<<endl;
+ std::cout<<"top has : "<<nbf<<" faces."<<std::endl;
#endif
}
nbf = 0, jf = 0;
if(nbf>3) {
Spine->SetLastStatus(ChFiDS_BreakPoint);
#ifdef OCCT_DEBUG
- cout<<"top has : "<<nbf<<" faces."<<endl;
+ std::cout<<"top has : "<<nbf<<" faces."<<std::endl;
#endif
}
}
if (Pc.IsVertex()){
// attention it is necessary to analyze all faces that turn around of the vertex
#ifdef OCCT_DEBUG
- cout<<"Commonpoint on vertex, the process hangs up"<<endl;
+ std::cout<<"Commonpoint on vertex, the process hangs up"<<std::endl;
#endif
if (Pc.HasVector()) { //General processing
TopoDS_Face Fbis;
if (Spine.IsNull()) {
//La Spine peut etre nulle (ThreeCorner)
#ifdef OCCT_DEBUG
- cout << "FindFace sur vertex avec spine nulle! QUEZAKO ?" << endl;
+ std::cout << "FindFace sur vertex avec spine nulle! QUEZAKO ?" << std::endl;
#endif
return Standard_False;
}
ChFi3d_SingularExtremity(Stripe, DStr, CV1.Vertex(), tol3d, tol2d);
}
# if CHFI3D_DEB
- else { cout << "MakeExtremities : Singularity out of Vertex !!" << endl; }
+ else { std::cout << "MakeExtremities : Singularity out of Vertex !!" << std::endl; }
# endif
}
return;
ChFi3d_SingularExtremity(Stripe, DStr, cpdeb1.Vertex(), tol3d, tol2d);
}
# if CHFI3D_DEB
- else { cout << "MakeExtremities : Singularity out of Vertex !!" << endl; }
+ else { std::cout << "MakeExtremities : Singularity out of Vertex !!" << std::endl; }
# endif
}
}
ChFi3d_SingularExtremity(Stripe, DStr, cpfin1.Vertex(), tol3d, tol2d);
}
# if CHFI3D_DEB
- else { cout << "MakeExtremities : Singularity out of Vertex !!" << endl; }
+ else { std::cout << "MakeExtremities : Singularity out of Vertex !!" << std::endl; }
# endif
}
}
if (!SD->Vertex(isfirst,opp).IsOnArc() ||
SD->TwistOnS1() || SD->TwistOnS2() ) {
#ifdef OCCT_DEBUG
- cout<<"ChFi3d_Purge : No output on extension."<<endl;
+ std::cout<<"ChFi3d_Purge : No output on extension."<<std::endl;
#endif
ChFiDS_SequenceOfSurfData& Seq =
Stripe->ChangeSetOfSurfData()->ChangeSequence();
if(!ChFiKPart_ComputeData::Compute(DStr,SD,HS1,HS2,Or1,Or2,Spine,iedge)){
#ifdef OCCT_DEBUG
- cout<<"failed calculation KPart"<<endl;
+ std::cout<<"failed calculation KPart"<<std::endl;
#endif
}
else if(!SplitKPart(SD,LSD,Spine,iedge,HS1,It1,HS2,It2,intf,intl)){
#ifdef OCCT_DEBUG
- cout<<"failed calculation KPart"<<endl;
+ std::cout<<"failed calculation KPart"<<std::endl;
#endif
LSD.Clear();
}
else if(IF < IL){
TColStd_Array1OfReal wv(IF,IL - 1);
#ifdef OCCT_DEBUG
- cout<<"length of the trajectory : "<<(WL-WF)<<endl;
+ std::cout<<"length of the trajectory : "<<(WL-WF)<<std::endl;
#endif
for(i = IF; i < IL; i++){
Standard_Integer iloc = i;
#ifdef OCCT_DEBUG
gp_Pnt pelsapp = curels.Value(wi);
Standard_Real distinit = pv.Distance(pelsapp);
- cout<<"distance psp/papp : "<<distinit<<endl;
+ std::cout<<"distance psp/papp : "<<distinit<<std::endl;
#endif
Extrema_LocateExtPC ext(pv,curels,wi,1.e-8);
wv(i) = wi;
}
else {
#ifdef OCCT_DEBUG
- cout<<"fail of projection vertex ElSpine!!!"<<endl;
+ std::cout<<"fail of projection vertex ElSpine!!!"<<std::endl;
#endif
}
}
else {
//(2) Intersection
#ifdef OCCT_DEBUG
- cout<< "CompParam : bad intersection parameters"<<endl;
+ std::cout<< "CompParam : bad intersection parameters"<<std::endl;
#endif
IntRes2d_IntersectionPoint int2d;
Geom2dInt_GInter Intersection;
nbseg = Intersection.NbSegments();
if ( nbseg > 0 ){
#ifdef OCCT_DEBUG
- cout<< "segments of intersection on the restrictions"<<endl;
+ std::cout<< "segments of intersection on the restrictions"<<std::endl;
#endif
}
nbpt = Intersection.NbPoints();
if(!found){
// (3) Projection...
#ifdef OCCT_DEBUG
- cout<<"CompParam : failed intersection PC, projection is created."<<endl;
+ std::cout<<"CompParam : failed intersection PC, projection is created."<<std::endl;
#endif
parc = prefarc;
Geom2dAPI_ProjectPointOnCurve projector(point,Ctg);
// at the end of spine...
ptg = preftg;
#ifdef OCCT_DEBUG
- cout<<"CompParam : failed proj p2d/c2d, the extremity is taken!" <<endl;
+ std::cout<<"CompParam : failed proj p2d/c2d, the extremity is taken!" <<std::endl;
#endif
}
else {
myConti, Degmax, Segmax);
if (!approx.IsDone()) {
#ifdef OCCT_DEBUG
- cout << "Approximation non faite !!!" << endl;
+ std::cout << "Approximation non faite !!!" << std::endl;
#endif
return Standard_False;
}
#ifdef OCCT_DEBUG
- approx.Dump(cout);
+ approx.Dump(std::cout);
#endif
return StoreData( Data, approx, lin, S1, S2, Or1, Gd1, Gd2, Gf1, Gf2, Reversed);
}
myConti);
if (!approx.IsDone()) {
#ifdef OCCT_DEBUG
- cout << "Approximation is not done!" << endl;
+ std::cout << "Approximation is not done!" << std::endl;
#endif
return Standard_False;
}
#ifdef OCCT_DEBUG
- approx.Dump(cout);
+ approx.Dump(std::cout);
#endif
return StoreData(Data,approx,lin,S1,S2,Or,0,0,0,0,Reversed);
myConti);
if (!approx.IsDone()) {
#ifdef OCCT_DEBUG
- cout << "Approximation non faite !!!" << endl;
+ std::cout << "Approximation non faite !!!" << std::endl;
#endif
return Standard_False;
}
#ifdef OCCT_DEBUG
- approx.Dump(cout);
+ approx.Dump(std::cout);
#endif
return StoreData(Data,approx,lin,S1,S2,Or,0,0,0,0);
if(!ChFi3d_CheckSameParameter(checkcurve,PCurveOnFace,S1,tolC1,tolcheck)){
#ifdef OCCT_DEBUG
- cout<<"aaproximate tolerance under-valued : "<<tolC1<<" for "<<tolcheck<<endl;
+ std::cout<<"aaproximate tolerance under-valued : "<<tolC1<<" for "<<tolcheck<<std::endl;
#endif
tolC1 = tolcheck;
}
chc.Load(Crv3d2,par1,par2);
if(!ChFi3d_CheckSameParameter(checkcurve,PCurveOnFace,S2,tolC2,tolcheck)){
#ifdef OCCT_DEBUG
- cout<<"approximate tolerance under-evaluated : "<<tolC2<<" for "<<tolcheck<<endl;
+ std::cout<<"approximate tolerance under-evaluated : "<<tolC2<<" for "<<tolcheck<<std::endl;
#endif
tolC2 = tolcheck;
}
tolesp,TolGuide,RecRst,RecP,RecS,
NewFirst,ParSol)){
#ifdef OCCT_DEBUG
- cout<<"ChFi3d_Builder::ComputeData : calculation fail first section"<<endl;
+ std::cout<<"ChFi3d_Builder::ComputeData : calculation fail first section"<<std::endl;
#endif
return Standard_False;
}
if (!TheWalk.IsDone()) {
#ifdef OCCT_DEBUG
- cout << "Path not created" << endl;
+ std::cout << "Path not created" << std::endl;
#endif
return Standard_False;
}
if (reverse) {
if (!TheWalk.Complete(Func,FInv,FInvP,FInvC,SpLast)) {
#ifdef OCCT_DEBUG
- cout << "Not completed" << endl;
+ std::cout << "Not completed" << std::endl;
#endif
}
}
if (Nbpnt <= 1 && again == 0) {
again++;
#ifdef OCCT_DEBUG
- cout <<"one point of the path MS/50 is attempted."<<endl;
+ std::cout <<"one point of the path MS/50 is attempted."<<std::endl;
#endif
MS = MS/50.; Target = Targetsov;
}
else if (Nbpnt<=nbptmin && again == 0) {
again++;
#ifdef OCCT_DEBUG
- cout <<"Number of points is too small, the step is reduced"<<endl;
+ std::cout <<"Number of points is too small, the step is reduced"<<std::endl;
#endif
Standard_Real u1 = Lin->Point(1).Parameter();
Standard_Real u2 = Lin->Point(Nbpnt).Parameter();
MS = (u2-u1)/(nbptmin+1.0);
-// cout << " MS : " << MS << " u1 : " << u1 << " u2 : " << u2 << " nbptmin : " << nbptmin << endl;
+// std::cout << " MS : " << MS << " u1 : " << u1 << " u2 : " << u2 << " nbptmin : " << nbptmin << std::endl;
Target = Targetsov;
}
else if(Nbpnt<=nbptmin){
#ifdef OCCT_DEBUG
- cout <<"Number of points is still too small, quit"<<endl;
+ std::cout <<"Number of points is still too small, quit"<<std::endl;
#endif
return Standard_False;
}
tolesp, TolGuide, RecRst1, RecP1, RecRst2, RecP2,
NewFirst, ParSol)){
#ifdef OCCT_DEBUG
- cout<<"ChFi3d_Builder::ComputeData : fail calculation first section"<<endl;
+ std::cout<<"ChFi3d_Builder::ComputeData : fail calculation first section"<<std::endl;
#endif
return Standard_False;
}
if (!TheWalk.IsDone()) {
#ifdef OCCT_DEBUG
- cout << "Path not done" << endl;
+ std::cout << "Path not done" << std::endl;
#endif
return Standard_False;
}
if (reverse) {
if (!TheWalk.Complete(Func, FInv1, FInvP1, FInv2, FInvP2, SpLast)) {
#ifdef OCCT_DEBUG
- cout << "Not completed" << endl;
+ std::cout << "Not completed" << std::endl;
#endif
}
}
if (Nbpnt <= 1 && again == 0) {
again++;
#ifdef OCCT_DEBUG
- cout <<"one point of path MS/50 is attempted."<<endl;
+ std::cout <<"one point of path MS/50 is attempted."<<std::endl;
#endif
MS = MS/50.; Target = Targetsov;
}
else if (Nbpnt<=nbptmin && again == 0) {
again++;
#ifdef OCCT_DEBUG
- cout <<"Number of points is too small, the step is reduced"<<endl;
+ std::cout <<"Number of points is too small, the step is reduced"<<std::endl;
#endif
Standard_Real u1 = Lin->Point(1).Parameter();
Standard_Real u2 = Lin->Point(Nbpnt).Parameter();
}
else if(Nbpnt<=nbptmin){
#ifdef OCCT_DEBUG
- cout <<"Number of points is still too small, quit"<<endl;
+ std::cout <<"Number of points is still too small, quit"<<std::endl;
#endif
return Standard_False;
}
NewFirst,ParSol)){
#ifdef OCCT_DEBUG
- cout<<"ChFi3d_Builder::SimulData : fail calculate first section"<<endl;
+ std::cout<<"ChFi3d_Builder::SimulData : fail calculate first section"<<std::endl;
#endif
return Standard_False;
}
MS,TolGuide,ParSol,tolesp,Fleche,Appro);
if (!TheWalk.IsDone()) {
#ifdef OCCT_DEBUG
- cout << "Path not done" << endl;
+ std::cout << "Path not done" << std::endl;
#endif
return Standard_False;
}
if (reverse) {
if (!TheWalk.Complete(Func,FInv,FInvP,FInvC,SpLast)) {
#ifdef OCCT_DEBUG
- cout << "Not completed" << endl;
+ std::cout << "Not completed" << std::endl;
#endif
}
}
if (Nbpnt <= 1 && again == 0) {
again++;
#ifdef OCCT_DEBUG
- cout <<"one point of path MS/50 is attempted."<<endl;
+ std::cout <<"one point of path MS/50 is attempted."<<std::endl;
#endif
MS = MS/50.; Target = Targetsov;
}
else if (Nbpnt <= NbSecMin && again == 0) {
again++;
#ifdef OCCT_DEBUG
- cout <<"Number of points is too small, the step is reduced"<<endl;
+ std::cout <<"Number of points is too small, the step is reduced"<<std::endl;
#endif
Standard_Real u1 = Lin->Point(1).Parameter();
Standard_Real u2 = Lin->Point(Nbpnt).Parameter();
}
else if(Nbpnt<=NbSecMin){
#ifdef OCCT_DEBUG
- cout <<"Number of points is still too small, quit"<<endl;
+ std::cout <<"Number of points is still too small, quit"<<std::endl;
#endif
return Standard_False;
}
NewFirst,ParSol)){
#ifdef OCCT_DEBUG
- cout<<"ChFi3d_Builder::SimulData : calculation fail first section"<<endl;
+ std::cout<<"ChFi3d_Builder::SimulData : calculation fail first section"<<std::endl;
#endif
return Standard_False;
}
MS, TolGuide, ParSol, tolesp, Fleche, Appro);
if (!TheWalk.IsDone()) {
#ifdef OCCT_DEBUG
- cout << "Path not created" << endl;
+ std::cout << "Path not created" << std::endl;
#endif
return Standard_False;
}
if (reverse) {
if (!TheWalk.Complete(Func, FInv1, FInvP1, FInv2, FInvP2, SpLast)) {
#ifdef OCCT_DEBUG
- cout << "Not completed" << endl;
+ std::cout << "Not completed" << std::endl;
#endif
}
}
if (Nbpnt <= 1 && again == 0) {
again++;
#ifdef OCCT_DEBUG
- cout <<"only one point of path MS/50 is attempted."<<endl;
+ std::cout <<"only one point of path MS/50 is attempted."<<std::endl;
#endif
MS = MS/50.; Target = Targetsov;
}
else if (Nbpnt <= NbSecMin && again == 0) {
again++;
#ifdef OCCT_DEBUG
- cout <<"Number of points is too small, the step is reduced"<<endl;
+ std::cout <<"Number of points is too small, the step is reduced"<<std::endl;
#endif
Standard_Real u1 = Lin->Point(1).Parameter();
Standard_Real u2 = Lin->Point(Nbpnt).Parameter();
}
else if(Nbpnt<=NbSecMin){
#ifdef OCCT_DEBUG
- cout <<"Number of points is still too small, quit"<<endl;
+ std::cout <<"Number of points is still too small, quit"<<std::endl;
#endif
return Standard_False;
}
tolesp,TolGuide,RecOnS1,RecOnS2,
NewFirst,ParSol)){
#ifdef OCCT_DEBUG
- cout<<"ChFi3d_Builder::ComputeData : calculation fail first section"<<endl;
+ std::cout<<"ChFi3d_Builder::ComputeData : calculation fail first section"<<std::endl;
#endif
return Standard_False;
}
ParSol,TolEsp,Fleche,Appro);
if (!TheWalk.IsDone()) {
#ifdef OCCT_DEBUG
- cout << "Path is not created" << endl;
+ std::cout << "Path is not created" << std::endl;
#endif
return Standard_False;
}
if (Inside) complmnt = TheWalk.Complete(Func,FInv,SpLast);
if(!complmnt){
#ifdef OCCT_DEBUG
- cout << "Not completed" << endl;
+ std::cout << "Not completed" << std::endl;
#endif
return Standard_False;
}
Nbpnt = Lin->NbPoints();
if (Nbpnt == 0){
#ifdef OCCT_DEBUG
- cout <<"0 point of path, quit."<<endl;
+ std::cout <<"0 point of path, quit."<<std::endl;
#endif
return Standard_False;
}
//satisfactory maximum step. If it already done, quit.
if(tchernobyl){
#ifdef OCCT_DEBUG
- cout <<"If it drags without control, quit."<<endl;
+ std::cout <<"If it drags without control, quit."<<std::endl;
#endif
return Standard_False;
}
TheWalk.Check(0);
if (Nbpnt == 1){
#ifdef OCCT_DEBUG
- cout <<"only one point of path MS/100 is attempted"<<endl;
- cout <<"and the controls are extended."<<endl;
+ std::cout <<"only one point of path MS/100 is attempted"<<std::endl;
+ std::cout <<"and the controls are extended."<<std::endl;
#endif
MS *= 0.01;
}
else{
#ifdef OCCT_DEBUG
- cout <<"It drags, the controls are extended."<<endl;
+ std::cout <<"It drags, the controls are extended."<<std::endl;
#endif
MS = (lpointpar-fpointpar)/Nbpnt; //EvalStep(Lin);
}
else if (Nbpnt < nbptmin){
if(again == 0){
#ifdef OCCT_DEBUG
- cout <<"Number of points is too small, the step is reduced"<<endl;
+ std::cout <<"Number of points is too small, the step is reduced"<<std::endl;
#endif
u1sov = fpointpar;
u2sov = lpointpar;
if(Abs(fpointpar-u1sov)>=TolGuide ||
Abs(lpointpar-u2sov)>=TolGuide){
#ifdef OCCT_DEBUG
- cout <<"Number of points is still too small, the step is reduced"<<endl;
+ std::cout <<"Number of points is still too small, the step is reduced"<<std::endl;
#endif
MS = (lpointpar - fpointpar) * factor;
}
else{
#ifdef OCCT_DEBUG
- cout <<"Number of points is still too small, quit"<<endl;
+ std::cout <<"Number of points is still too small, quit"<<std::endl;
#endif
return Standard_False;
}
if(TheWalk.TwistOnS1()){
Data->TwistOnS1(Standard_True);
#ifdef OCCT_DEBUG
- cout<<"Path completed, but TWIST on S1"<<endl;
+ std::cout<<"Path completed, but TWIST on S1"<<std::endl;
#endif
}
if(TheWalk.TwistOnS2()){
Data->TwistOnS2(Standard_True);
#ifdef OCCT_DEBUG
- cout<<"Parh completed, but TWIST on S2"<<endl;
+ std::cout<<"Parh completed, but TWIST on S2"<<std::endl;
#endif
}
tolesp,TolGuide,RecOnS1,RecOnS2,
NewFirst,ParSol)){
#ifdef OCCT_DEBUG
- cout<<"ChFi3d_Builder::SimulData : calculation fail first section"<<endl;
+ std::cout<<"ChFi3d_Builder::SimulData : calculation fail first section"<<std::endl;
#endif
return Standard_False;
}
if (!TheWalk.IsDone()) {
#ifdef OCCT_DEBUG
- cout << "Path not created" << endl;
+ std::cout << "Path not created" << std::endl;
#endif
return Standard_False;
}
if (Inside) complmnt = TheWalk.Complete(Func,FInv,SpLast);
if(!complmnt){
#ifdef OCCT_DEBUG
- cout << "Not completed" << endl;
+ std::cout << "Not completed" << std::endl;
#endif
return Standard_False;
}
Standard_Real factor = 1./(NbSecMin + 1);
if (Nbpnt == 0){
#ifdef OCCT_DEBUG
- cout <<"0 point of path, quit."<<endl;
+ std::cout <<"0 point of path, quit."<<std::endl;
#endif
return Standard_False;
}
else if (Nbpnt == 1 && again == 0) {
again++;
#ifdef OCCT_DEBUG
- cout <<"only one point of path, MS/100 is attempted."<<endl;
+ std::cout <<"only one point of path, MS/100 is attempted."<<std::endl;
#endif
MS *= 0.01; Target = Targetsov;
u1sov = u2sov = Lin->Point(1).Parameter();
else if (Nbpnt< NbSecMin && again == 0) {
again++;
#ifdef OCCT_DEBUG
- cout <<"Number of points is too small, the step is reduced"<<endl;
+ std::cout <<"Number of points is too small, the step is reduced"<<std::endl;
#endif
Standard_Real u1 = u1sov = Lin->Point(1).Parameter();
Standard_Real u2 = u2sov = Lin->Point(Nbpnt).Parameter();
if(Abs(u1-u1sov)>=TolGuide || Abs(u2-u2sov)>=TolGuide){
again++;
#ifdef OCCT_DEBUG
- cout <<"Number of points is still too small, the step is reduced"<<endl;
+ std::cout <<"Number of points is still too small, the step is reduced"<<std::endl;
#endif
MS /= 100;
Target = Targetsov;
}
else{
#ifdef OCCT_DEBUG
- cout <<"Number of points is still too small, quit"<<endl;
+ std::cout <<"Number of points is still too small, quit"<<std::endl;
#endif
return Standard_False;
}
}
else if(Nbpnt < NbSecMin){
#ifdef OCCT_DEBUG
- cout <<"Number of points is still too small, quit"<<endl;
+ std::cout <<"Number of points is still too small, quit"<<std::endl;
#endif
return Standard_False;
}
}
#ifdef OCCT_DEBUG
else {
- cout<<"erreur"<<endl;
+ std::cout<<"erreur"<<std::endl;
}
#endif
trafil1 = TopAbs::Compose(trafil1,Fd->Orientation());
trafil1 = TopAbs::Compose(TopAbs::Reverse(Fi1.Transition()),trafil1);
}
#ifdef OCCT_DEBUG
- else cout<<"erreur"<<endl;
+ else std::cout<<"erreur"<<std::endl;
#endif
// eap, Apr 22 2002, occ 293
// Fi1.PCurveOnFace()->D0(Fi1.LastParameter(),p2d);
{
if (P1.IsVertex() || P2.IsVertex()) {
#ifdef OCCT_DEBUG
- cout<<"change of face on vertex"<<endl;
+ std::cout<<"change of face on vertex"<<std::endl;
#endif
}
if (!(P1.IsOnArc() && P2.IsOnArc())) {
}
}
if(!ContainsV){
- cout<<"FindFace : the extremity of the spine is not in the end face"<<endl;
+ std::cout<<"FindFace : the extremity of the spine is not in the end face"<<std::endl;
}
#else
(void)V; // avoid compiler warning on unused variable
IFaCo1,IFaCo2,Okvisavis,Vtx,Standard_True);
if (!Okvisavis) {
#ifdef OCCT_DEBUG
- cout<<"TwoCorner : pas de face commune"<<endl;
+ std::cout<<"TwoCorner : pas de face commune"<<std::endl;
#endif
done=Standard_False;
return done;
if (!Okvisavis) {
#ifdef OCCT_DEBUG
- cout<<"TwoCorner : no common face"<<endl;
+ std::cout<<"TwoCorner : no common face"<<std::endl;
#endif
done=Standard_False;
return done;
}
if (!OkinterCC) {
#ifdef OCCT_DEBUG
- cout<<"biseau : failed intersection of tangency lines on common face"<<endl;
+ std::cout<<"biseau : failed intersection of tangency lines on common face"<<std::endl;
#endif
done=Standard_False;
return done;
if (!CP1.IsOnArc() || !CP2.IsOnArc()) {
#ifdef OCCT_DEBUG
- cout<<"fail 1 of 2 fillets are not on arc"<<endl;
+ std::cout<<"fail 1 of 2 fillets are not on arc"<<std::endl;
#endif
done=Standard_False;
return done;
if ( ! CP1.Arc().IsSame( CP2.Arc()) ) {
// look like OnSame + OnDiff case (eap, Arp 9 2002, occ266)
#ifdef OCCT_DEBUG
- cout<<"PerformTwoCornerbyInter(): fillets are not on the same arc"<<endl;
+ std::cout<<"PerformTwoCornerbyInter(): fillets are not on the same arc"<<std::endl;
#endif
done = Standard_True;
PerformMoreThreeCorner(Index, 2);
}
if(!ok1 || !ok2){
#ifdef OCCT_DEBUG
- cout<<"fail one of surfaces has no common base face with the pivot edge"<<endl;
+ std::cout<<"fail one of surfaces has no common base face with the pivot edge"<<std::endl;
#endif
done=Standard_False;
return done;
!ChFi3d_ComputeCurves(HS1,HS2,Pardeb,Parfin,Gc,
PGc1,PGc2,tolesp,tol2d,tolreached)) {
#ifdef OCCT_DEBUG
- cout<<"failed to calculate bevel error interSS"<<endl;
+ std::cout<<"failed to calculate bevel error interSS"<<std::endl;
#endif
done=Standard_False;
return done;
!ChFi3d_ComputeCurves(HS1,HS2,Parfin,Pardeb,Gc,
PGc1,PGc2,tolesp,tol2d,tolreached)) {
#ifdef OCCT_DEBUG
- cout<<"failed to calculate bevel error interSS"<<endl;
+ std::cout<<"failed to calculate bevel error interSS"<<std::endl;
#endif
done=Standard_False;
return done;
}
if(!ChFi3d_IntCS(BigHS,Hctg,UVi,wi)){
#ifdef OCCT_DEBUG
- cout<<"bevel : failed inter C S"<<endl;
+ std::cout<<"bevel : failed inter C S"<<std::endl;
#endif
done=Standard_False;
return done;
if (!ChFi3d_ComputeCurves(SmaHS,BigHS,Pardeb,Parfin,Gc,
PGc1,PGc2,tolesp,tol2d,tolreached)) {
#ifdef OCCT_DEBUG
- cout<<"failed to calculate bevel failed interSS"<<endl;
+ std::cout<<"failed to calculate bevel failed interSS"<<std::endl;
#endif
done=Standard_False;
return done;
Handle(Adaptor3d_HCurveOnSurface) Hconsf = new Adaptor3d_HCurveOnSurface(consf);
if(!ChFi3d_IntCS(BigHS,Hconsf,UVi,wi)) {
#ifdef OCCT_DEBUG
- cout<<"bevel : failed inter C S"<<endl;
+ std::cout<<"bevel : failed inter C S"<<std::endl;
#endif
done=Standard_False;
return done;
if (!ChFi3d_ComputeCurves(HF,BigHS,Pardeb,Parfin,Gc,
PGc1,PGc2,tolesp,tol2d,tolreached)) {
#ifdef OCCT_DEBUG
- cout<<"fail calculation bevel fail interSS"<<endl;
+ std::cout<<"fail calculation bevel fail interSS"<<std::endl;
#endif
done=Standard_False;
return done;
Ok = Bat.Compute(Iana,25,1.e-2);
#ifdef OCCT_DEBUG
if (!Ok) {
- cout<<"no batten :";
- Bat.Dump(cout);
+ std::cout<<"no batten :";
+ Bat.Dump(std::cout);
}
#endif
if (Ok) {
}
if ( isOnSameDiff ) {
#ifdef OCCT_DEBUG
- cout << "OnSame + OnDiff, PerformMoreThreeCorner() calls PerformOneCorner()" << endl;
+ std::cout << "OnSame + OnDiff, PerformMoreThreeCorner() calls PerformOneCorner()" << std::endl;
#endif
PerformOneCorner (Jndex, Standard_True);
}
jfp = 3 - jf.Value(ic);
Calcul_P2dOnSurf(CD.Value(ic),jfp,i.Value(ic,icmoins),p.Value(ic,icmoins),p2d1);
Calcul_P2dOnSurf(CD.Value(ic),jf.Value(ic),i.Value(ic,icplus),p.Value(ic,icplus),p2d2);
-// if (i[ic][icplus]!= i[ic][icmoins]) cout<<"probleme surface"<<endl;
+// if (i[ic][icplus]!= i[ic][icmoins]) std::cout<<"probleme surface"<<std::endl;
indice= SurfIndex(CD, ic, i.Value(ic,icplus), ChFiSURFACE);
Handle (GeomAdaptor_HSurface) Asurf =
new GeomAdaptor_HSurface(DStr.Surface(indice).Surface());
found = ChFi3d_InterPlaneEdge(plan,HE,Nl,First,tolc);
gp_Pnt point = CE.Value(Nl);
#ifdef OCCT_DEBUG
- cout<<"******* ParamOnSpine() for edge "<<iedge<<endl;
- cout<<Nl<<endl;
- cout<<"point ped "<<point.X()<<" "<<point.Y()<<" "<<point.Z()<<endl;
+ std::cout<<"******* ParamOnSpine() for edge "<<iedge<<std::endl;
+ std::cout<<Nl<<std::endl;
+ std::cout<<"point ped "<<point.X()<<" "<<point.Y()<<" "<<point.Z()<<std::endl;
#endif
if(found) Nl = Spine->Absc(Nl,ii);
point = Spine->Value(Nl);
#ifdef OCCT_DEBUG
- if (found) cout << "found by edge " << ii << " : ";
- cout<<Nl<<endl;
- cout<<"point psp "<<point.X()<<" "<<point.Y()<<" "<<point.Z()<<endl;
- cout<<endl;
+ if (found) std::cout << "found by edge " << ii << " : ";
+ std::cout<<Nl<<std::endl;
+ std::cout<<"point psp "<<point.X()<<" "<<point.Y()<<" "<<point.Z()<<std::endl;
+ std::cout<<std::endl;
#endif
ii +=sens;
if (iSansFirst != 0) {
if (iSansLast == 0) {
#ifdef OCCT_DEBUG
- cout<<"Parsing : Pb of Hatcher"<<endl;
+ std::cout<<"Parsing : Pb of Hatcher"<<std::endl;
#endif
return 0;
}
Nb1 = H1.NbDomains(iH1);
if(Nb1 == 0) {
#ifdef OCCT_DEBUG
- cout<<"SplitKPart : tangency line out of the face"<<endl;
+ std::cout<<"SplitKPart : tangency line out of the face"<<std::endl;
#endif
return Standard_False;
}
Nb2 = H2.NbDomains(iH2);
if(Nb2 == 0) {
#ifdef OCCT_DEBUG
- cout<<"SplitKPart : tangency line out of the face"<<endl;
+ std::cout<<"SplitKPart : tangency line out of the face"<<std::endl;
#endif
return Standard_False;
}
if (C1.IsNull() && C2.IsNull()) {
#ifdef OCCT_DEBUG
- cout<<"SplitData : 2 zero lines hatching impossible"<<endl;
+ std::cout<<"SplitData : 2 zero lines hatching impossible"<<std::endl;
#endif
return Standard_False;
}
onS = 2;
#ifdef OCCT_DEBUG
if (threeE[0].IsSame(threeE[1]))
- cout << "SplitKPart(), wrong corner vertex at switcher search" << endl;
+ std::cout << "SplitKPart(), wrong corner vertex at switcher search" << std::endl;
#endif
cntlFiOnS = 3 - onS;
}
onS = 2;
#ifdef OCCT_DEBUG
if (threeE[0].IsSame(threeE[1]))
- cout << "SplitKPart(), wrong corner vertex at switcher search" << endl;
+ std::cout << "SplitKPart(), wrong corner vertex at switcher search" << std::endl;
#endif
cntlFiOnS = 3 - onS;
}
#ifdef OCCT_DEBUG
if(ChFi3d_GettraceCHRON()){
simul.Stop();
- cout<<"Total simulation time : ";
+ std::cout<<"Total simulation time : ";
simul.Show();
- cout<<"Spine construction time : ";
+ std::cout<<"Spine construction time : ";
elspine.Show();
- cout<<"and progression time : ";
+ std::cout<<"and progression time : ";
chemine.Show();
}
#endif
if (OffsetHGuide.IsNull())
{
- cout<<endl<<"Construction of offset guide failed!"<<endl;
+ std::cout<<std::endl<<"Construction of offset guide failed!"<<std::endl;
//exception
}
pFunc.reset(new BRepBlend_ConstThroatWithPenetration(S1,S2,OffsetHGuide));
if (OffsetHGuide.IsNull())
{
- cout<<endl<<"Construction of offset guide failed!"<<endl;
+ std::cout<<std::endl<<"Construction of offset guide failed!"<<std::endl;
//exception
}
pFunc.reset(new BRepBlend_ConstThroatWithPenetration(S1,S2,OffsetHGuide));
if (OffsetHGuide.IsNull())
{
- cout<<endl<<"Construction of offset guide failed!"<<endl;
+ std::cout<<std::endl<<"Construction of offset guide failed!"<<std::endl;
//exception
}
pFunc.reset(new BRepBlend_ConstThroatWithPenetration(S1,S2,OffsetHGuide));
Standard_Integer nbl = inter.NbLines();
if (nbl > 1) {
#ifdef OCCT_DEBUG
- cout<<"trop d'intersection entre les surfaces"<<endl;
+ std::cout<<"trop d'intersection entre les surfaces"<<std::endl;
#endif
}
else if (nbl == 1) {
#ifdef OCCT_DEBUG
if(ChFi3d_GettraceCHRON()){
simul.Stop();
- cout<<"Total simulation time : ";
+ std::cout<<"Total simulation time : ";
simul.Show();
- cout<<"Spine construction time : ";
+ std::cout<<"Spine construction time : ";
elspine.Show();
- cout<<"and process time : ";
+ std::cout<<"and process time : ";
chemine.Show();
}
#endif
}
else {
# if CHFI3D_DEB
- cout << "Failed calculation of the minimum length" << endl;
+ std::cout << "Failed calculation of the minimum length" << std::endl;
# endif
}
}
pivot = SearchPivot(sens,p,tol2d);
if(pivot < 0){
#ifdef OCCT_DEBUG
- cout<<"pivot not found, plate is called"<<endl;
+ std::cout<<"pivot not found, plate is called"<<std::endl;
#endif
PerformMoreThreeCorner(Jndex, 3);
return;
ifacfin = CD[fin]->ChangeSetOfSurfData()->Value(i[fin][pivot])->Index(3-jf[fin][pivot]);
if(ifacfin != ifacdeb){
#ifdef OCCT_DEBUG
- cout<<"several base faces, plate is called"<<endl;
+ std::cout<<"several base faces, plate is called"<<std::endl;
#endif
PerformMoreThreeCorner(Jndex, 3);
return;
}
if(i[pivot][deb] != i[pivot][fin]){
#ifdef OCCT_DEBUG
- cout<<"load surfdata on the pivot, plate is called"<<endl;
+ std::cout<<"load surfdata on the pivot, plate is called"<<std::endl;
#endif
PerformMoreThreeCorner(Jndex, 3);
return;
{
#ifdef OCCT_DEBUG
if(Par >= Precision::Confusion())
- cout<<"Interior extension at the start of guideline"<<endl;
+ std::cout<<"Interior extension at the start of guideline"<<std::endl;
if(IsPeriodic())
- cout<<"WARNING!!! Extension on periodic guideline."<<endl;
+ std::cout<<"WARNING!!! Extension on periodic guideline."<<std::endl;
#endif
firstprolon = Standard_True;
firstparam = Par;
#ifdef OCCT_DEBUG
Standard_Real lll = abscissa->Value(abscissa->Upper());
if((Par - lll) <= -Precision::Confusion())
- cout<<"Interior extension at the end of guideline"<<endl;
+ std::cout<<"Interior extension at the end of guideline"<<std::endl;
if(IsPeriodic())
- cout<<"WARNING!!! Extension on periodic guideline."<<endl;
+ std::cout<<"WARNING!!! Extension on periodic guideline."<<std::endl;
#endif
lastprolon = Standard_True;
lastparam = Par;
if(IsPeriodic()) throw Standard_Failure("No extension by tangent on periodic contours");
#ifdef OCCT_DEBUG
if(W >= Precision::Confusion())
- cout<<"Interior extension at start of the guideline"<<endl;
+ std::cout<<"Interior extension at start of the guideline"<<std::endl;
#endif
//The flag is suspended if is already positioned to avoid
//stopping d1
#ifdef OCCT_DEBUG
Standard_Real L = W - abscissa->Value(abscissa->Upper());
if(L <= -Precision::Confusion())
- cout<<"Interior extension at the end of guideline"<<endl;
+ std::cout<<"Interior extension at the end of guideline"<<std::endl;
#endif
//The flag is suspended if is already positioned to avoid
//stopping d1
{
if(!abscissa.IsNull()){
#ifdef OCCT_DEBUG
- cout<<"new load of CE"<<endl;
+ std::cout<<"new load of CE"<<std::endl;
#endif
}
Standard_Integer len = spine.Length();
if ( Abs(ChamfRad) < Precision::Confusion() ) pointu = Standard_True;
if( ChamfRad < 0 ) {
#ifdef OCCT_DEBUG
- cout<<"the chamfer can't pass"<<endl;
+ std::cout<<"the chamfer can't pass"<<std::endl;
#endif
return Standard_False;
}
if (ouvert) {
if (Abs(angCon) - Abs(SemiAngl) > -Precision::Confusion() ) {
#ifdef OCCT_DEBUG
- cout<<"wrong choice of angle for the chamfer"<<endl;
+ std::cout<<"wrong choice of angle for the chamfer"<<std::endl;
#endif
return Standard_False;
}
if ( (M_PI / 2. - SemiAngl) < Precision::Confusion() ) {
#ifdef OCCT_DEBUG
- cout <<"wrong choice of angle for the chamfer"<<endl;
+ std::cout <<"wrong choice of angle for the chamfer"<<std::endl;
#endif
return Standard_False;
}
if ( Abs(ChamfRad) < Precision::Confusion() ) pointu = Standard_True;
if( ChamfRad < 0 ) {
#ifdef OCCT_DEBUG
- cout<<"the chamfer can't pass"<<endl;
+ std::cout<<"the chamfer can't pass"<<std::endl;
#endif
return Standard_False;
}
if ( Abs(Rad) <= Precision::Confusion() ) pointu = Standard_True;
if(Rad < 0 ) {
#ifdef OCCT_DEBUG
- cout<<"the chamfer can't pass"<<endl;
+ std::cout<<"the chamfer can't pass"<<std::endl;
#endif
return Standard_False;
}
if (dis2 < -1.E-09) {
#ifdef OCCT_DEBUG
- cout<<"too great angle of chamfer"<<endl;
+ std::cout<<"too great angle of chamfer"<<std::endl;
#endif
return Standard_False;
}
if ( Abs(ChamfRad)<=Precision::Confusion() ) pointu = Standard_True;
if( ChamfRad < 0 ) {
#ifdef OCCT_DEBUG
- cout<<"le chanfrein ne passe pas"<<endl;
+ std::cout<<"le chanfrein ne passe pas"<<std::endl;
#endif
return Standard_False;
}
if ( Abs(Rad) <= Precision::Confusion() ) pointu = Standard_True;
if(Rad < 0 ) {
#ifdef OCCT_DEBUG
- cout<<"the chamfer can't pass"<<endl;
+ std::cout<<"the chamfer can't pass"<<std::endl;
#endif
return Standard_False;
}
if(Abs(Rad) <= Precision::Confusion()){ c1sphere = Standard_True; }
else if(Rad < 0){
#ifdef OCCT_DEBUG
- cout<<"the fillet does not pass"<<endl;
+ std::cout<<"the fillet does not pass"<<std::endl;
#endif
return Standard_False;
}
}
else {
#ifdef OCCT_DEBUG
- cout<<"the fillet does not pass"<<endl;
+ std::cout<<"the fillet does not pass"<<std::endl;
#endif
return Standard_False;
}
if(Abs(Rad) <= Precision::Confusion()){ c1sphere = Standard_True; }
else if(Rad < 0){
#ifdef OCCT_DEBUG
- cout<<"the fillet can't pass"<<endl;
+ std::cout<<"the fillet can't pass"<<std::endl;
#endif
return Standard_False;
}
dz = gp_Dir(gp_Vec(p1,cen));
if(Abs(ds1.Dot(dz)-1.)>ptol){
#ifdef OCCT_DEBUG
- cout<<"center of the spherical corner not found"<<endl;
+ std::cout<<"center of the spherical corner not found"<<std::endl;
#endif
return Standard_False;
}
//-- on decoupe la ligne en portions entre 2 vertex
Standard_Real Tol = Precision::PConfusion();
Contap_IType typl = L.TypeContour();
- //-- cout<<"\n ----------- Ligne Constructor "<<endl;
+ //-- std::cout<<"\n ----------- Ligne Constructor "<<std::endl;
if(typl == Contap_Walking) {
Standard_Real u1,v1,u2,v2;
Standard_Integer nbvtx = L.NbVertex();
- //-- cout<<" WLine -> "<<nbvtx<<" vtx"<<endl;
+ //-- std::cout<<" WLine -> "<<nbvtx<<" vtx"<<std::endl;
for(Standard_Integer i=1;i<nbvtx;i++) {
Standard_Integer firstp = (Standard_Integer) L.Vertex(i).ParameterOnLine();
Standard_Integer lastp = (Standard_Integer) L.Vertex(i+1).ParameterOnLine();
if(in2 == TopAbs_OUT) {
}
else {
- //-- cout<<"ContapWLine : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<endl;
+ //-- std::cout<<"ContapWLine : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<std::endl;
Handle(IntSurf_LineOn2S) LineOn2S = new IntSurf_LineOn2S();
LineOn2S->Add(L.Point(firstp));
for (Standard_Integer j = firstp + 1; j <= lastp; j++) {
else if(typl==Contap_Lin) {
Standard_Real u2,v2;// u1,v1;
Standard_Integer nbvtx = L.NbVertex();
- //-- cout<<" Lin -> "<<nbvtx<<" vtx"<<endl;
+ //-- std::cout<<" Lin -> "<<nbvtx<<" vtx"<<std::endl;
for(Standard_Integer i=1;i<nbvtx;i++) {
Standard_Real firstp = L.Vertex(i).ParameterOnLine();
Standard_Real lastp = L.Vertex(i+1).ParameterOnLine();
ElSLib::Parameters(Adaptor3d_HSurfaceTool::Cone(Surf),Pmid,u2,v2);
}
else {
- //-- cout<<" Pb ds Contap_ContourGen_2.gxx (type)"<<endl;
+ //-- std::cout<<" Pb ds Contap_ContourGen_2.gxx (type)"<<std::endl;
}
Recadre(Surf,u2,v2);
if(in2 == TopAbs_OUT) {
}
else {
- //-- cout<<"Contap Lin : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<endl;
+ //-- std::cout<<"Contap Lin : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<std::endl;
Contap_Line Line;
Line.SetValue(L.Line());
Contap_Point pvtx = L.Vertex(i);
else if(typl==Contap_Circle) {
Standard_Real u2,v2; //u1,v1,
Standard_Integer nbvtx = L.NbVertex();
- //-- cout<<" Circ -> "<<nbvtx<<" vtx"<<endl;
+ //-- std::cout<<" Circ -> "<<nbvtx<<" vtx"<<std::endl;
Standard_Boolean novtx = Standard_True;
if(nbvtx) novtx=Standard_False;
for(Standard_Integer i=1;i<nbvtx || novtx;i++) {
ElSLib::Parameters(Adaptor3d_HSurfaceTool::Sphere(Surf),Pmid,u2,v2);
}
else {
- //-- cout<<" Pb ds Contap_ContourGen_2.gxx (typep)"<<endl;
+ //-- std::cout<<" Pb ds Contap_ContourGen_2.gxx (typep)"<<std::endl;
}
Recadre(Surf,u2,v2);
if(in2 == TopAbs_OUT) {
}
else {
- //-- cout<<"Contap Circle : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<endl;
+ //-- std::cout<<"Contap Circle : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<std::endl;
Contap_Line Line;
Line.SetValue(L.Circle());
if(novtx == Standard_False) {
ElSLib::Parameters(Adaptor3d_HSurfaceTool::Sphere(Surf),Pmid,u2,v2);
}
else {
- //-- cout<<" Pb ds Contap_ContourGen_2.gxx (typep)"<<endl;
+ //-- std::cout<<" Pb ds Contap_ContourGen_2.gxx (typep)"<<std::endl;
}
Recadre(Surf,u2,v2);
if(in2 == TopAbs_OUT) {
}
else {
- //-- cout<<"Contap Circle *Compl* : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<endl;
+ //-- std::cout<<"Contap Circle *Compl* : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<std::endl;
Contap_Line Line;
Line.SetValue(L.Circle());
Contap_Point pvtx = L.Vertex(nbvtx);
}
}
else {
- //-- cout<<" ni WLine ni Lin ni Circ "<<endl;
+ //-- std::cout<<" ni WLine ni Lin ni Circ "<<std::endl;
slin.Append(L);
}
//--
tg3drst = tg2drst.X()*v1 + tg2drst.Y()*v2;
// normale = v1.Crossed(v2);
if(normale.SquareMagnitude() < RealEpsilon()) {
- //-- cout<<"\n*** Contap_ContourGen_2.gxx Normale Nulle en U:"<<X(1)<<" V:"<<X(2)<<endl;
+ //-- std::cout<<"\n*** Contap_ContourGen_2.gxx Normale Nulle en U:"<<X(1)<<" V:"<<X(2)<<std::endl;
}
else {
test = vectg.Dot(normale.Crossed(tg3drst));
det = normu2 * normv2 - d1ud1v * d1ud1v;
if(det<RealEpsilon()) {
//-- On ne doit pas passer ici !!
- //-- cout<<" Probleme !!!"<<endl ;
+ //-- std::cout<<" Probleme !!!"<<std::endl ;
return IntSurf_Undecided;
}
else {
if (vectest.Dot(vecref) < 0.) {
// Essayer de converger
- // cout << "Changement de signe detecte" << endl;
+ // std::cout << "Changement de signe detecte" << std::endl;
solution = Standard_False;
while (!solution) {
paramp = (paraminf+paramsup)/2.;
else {
if (vectest.Dot(vecref) < 0.) {
// Essayer de converger
- // cout << "Changement de signe detecte" << endl;
+ // std::cout << "Changement de signe detecte" << std::endl;
solution = Standard_False;
while (!solution) {
X(1) = (XInf(1) + XSup(1)) /2.;
rsnld.Perform(SFunc,X,infb,supb);
if (!rsnld.IsDone()) {
- cout << "Echec recherche internal points" << endl;
+ std::cout << "Echec recherche internal points" << std::endl;
solution = Standard_True;
ok = Standard_False;
}
}
}
else { // on n est pas sur une solution
- cout << "Echec recherche internal points" << endl;
+ std::cout << "Echec recherche internal points" << std::endl;
solution = Standard_True;
ok = Standard_False;
}
Standard_Integer nblinto = slin.Length();
TColStd_SequenceOfInteger SeqToDestroy;
- //-- cout<<" Construct Contour_3 nblin = "<<nblinto<<endl;
+ //-- std::cout<<" Construct Contour_3 nblin = "<<nblinto<<std::endl;
for(i=1; i<= nblinto ; i++) {
- //-- cout<<" nbvtx : "<<slin.Value(i).NbVertex()<<endl;
+ //-- std::cout<<" nbvtx : "<<slin.Value(i).NbVertex()<<std::endl;
//--if(slin.Value(i).NbVertex() > 1) {
if(slin.Value(i).TypeContour() != Contap_Restriction) {
LineConstructor(slin,Domain,slin.ChangeValue(i),Surf);
U = uinf + ((usup-uinf)/((Standard_Real)(nbIntU+1)))*(Standard_Real)(indU+1);
V = vinf + ((vsup-vinf)/((Standard_Real)(nbIntV+2)))*(Standard_Real)(indV+1);
- //-- cout<<"Index :"<<Index<<" uinf:"<<uinf<<" usup:"<<usup<<" vinf:"<<vinf<<" vsup:"<<vsup<<" ";
- //-- cout<<" ("<<indU<<"/"<<nbIntU<<" ->U:"<<U<<" ";
- //-- cout<<" ("<<indV<<"/"<<nbIntV<<" ->V:"<<V<<endl;
+ //-- std::cout<<"Index :"<<Index<<" uinf:"<<uinf<<" usup:"<<usup<<" vinf:"<<vinf<<" vsup:"<<vsup<<" ";
+ //-- std::cout<<" ("<<indU<<"/"<<nbIntU<<" ->U:"<<U<<" ";
+ //-- std::cout<<" ("<<indV<<"/"<<nbIntV<<" ->V:"<<V<<std::endl;
return;
}
}
#ifdef OCCT_DEBUG
if (!P1.IsEqual(P2, Precision::Confusion()))
- cout << "Convert_CompBezierCurvesToBSplineCurve::Addcurve" << endl;
+ std::cout << "Convert_CompBezierCurvesToBSplineCurve::Addcurve" << std::endl;
#endif
}
myDone = Standard_False;
// Correct nodal values to make them variable within [0.,1.].
CurveKnots.Append(0.0);
-// cout << "Convert : Det = " << Det << endl;
+// std::cout << "Convert : Det = " << Det << std::endl;
for (i = 2 ; i <= NbrCurv ; i++) {
CurveKnots.Append(CurveKnots(i-1) + (CurveKnVals(i-1)/Det));
}
Standard_EXPORT void DBRep_WriteColorOrientation ()
{
- cout << "\nrouge FORWARD";
- cout << "\nbleu REVERSED";
- cout << "\nrose EXTERNAL";
- cout << "\norange INTERNAL"<<endl;
+ std::cout << "\nrouge FORWARD";
+ std::cout << "\nbleu REVERSED";
+ std::cout << "\nrose EXTERNAL";
+ std::cout << "\norange INTERNAL"<<std::endl;
}
Standard_EXPORT Draw_Color DBRep_ColorOrientation (const TopAbs_Orientation Or)
if (n == 1) {
disptriangles = !disptriangles;
#ifdef OCCT_DEBUG
- if (disptriangles) cout <<"Triangulations are always displayed"<<endl;
- else cout <<"Triangulations are displayed only if there is no geometric representation"<<endl;
+ if (disptriangles) std::cout <<"Triangulations are always displayed"<<std::endl;
+ else std::cout <<"Triangulations are displayed only if there is no geometric representation"<<std::endl;
#endif
}
else {
if (n == 1) {
disppolygons = !disppolygons;
#ifdef OCCT_DEBUG
- if (disppolygons) cout <<"Polygons are always displayed"<<endl;
- else cout <<"Polygons are displayed only if there is no geometric representation"<<endl;
+ if (disppolygons) std::cout <<"Polygons are always displayed"<<std::endl;
+ else std::cout <<"Polygons are displayed only if there is no geometric representation"<<std::endl;
#endif
}
else {
return d->IsInstance(STANDARD_TYPE(DBRep_DrawableShape));
}
-static void ssave(const Handle(Draw_Drawable3D)&d, ostream& OS)
+static void ssave(const Handle(Draw_Drawable3D)&d, std::ostream& OS)
{
Handle(DBRep_DrawableShape)
N = Handle(DBRep_DrawableShape)::DownCast(d);
S.Write(N->Shape(),OS);
}
-static Handle(Draw_Drawable3D) srestore (istream& IS)
+static Handle(Draw_Drawable3D) srestore (std::istream& IS)
{
BRep_Builder B;
BRepTools_ShapeSet S(B);
void dumps (const TopoDS_Shape& S)
{
- BRepTools::Dump(S,cout);
+ BRepTools::Dump(S,std::cout);
}
//=======================================================================
Standard_CString cs = (Standard_CString)n;
S = DBRep::Get(cs);
if (*name == '.')
- cout << "Name : " << n << endl;
+ std::cout << "Name : " << n << std::endl;
}
*/
BRep_Tool::Range(E->Edge(), aCheckU1, aCheckU2);
if (aCheckU2 < aCheckU1) {
// bad orientation
- cout << "DBRep_DrawableShape : Bad parameters on edge."<<endl;
- BRepTools::Dump(E->Edge(),cout);
+ std::cout << "DBRep_DrawableShape : Bad parameters on edge."<<std::endl;
+ BRepTools::Dump(E->Edge(),std::cout);
ite.Next();
continue;
}
// Display the edges
const TColgp_Array1OfPnt& Nodes = T->Nodes();
-// cout<<"nb nodes = "<<Nodes.Length()<<endl;
+// std::cout<<"nb nodes = "<<Nodes.Length()<<std::endl;
// free edges
Standard_Integer nn;
if (PCurve.IsNull())
{
#ifdef OCCT_DEBUG
- cout << "DBRep_IsoBuilder : PCurve is null\n";
+ std::cout << "DBRep_IsoBuilder : PCurve is null\n";
#endif
return;
}
else if (U1 == U2)
{
#ifdef OCCT_DEBUG
- cout << "DBRep_IsoBuilder PCurve : U1==U2\n";
+ std::cout << "DBRep_IsoBuilder PCurve : U1==U2\n";
#endif
return;
}
U2 - TrimPCurve->BasisCurve()->LastParameter() > Precision::PConfusion())
{
#ifdef OCCT_DEBUG
- cout << "DBRep_IsoBuilder TrimPCurve : parameters out of range\n";
- cout << " U1(" << U1 << "), Umin(" << PCurve->FirstParameter()
+ std::cout << "DBRep_IsoBuilder TrimPCurve : parameters out of range\n";
+ std::cout << " U1(" << U1 << "), Umin(" << PCurve->FirstParameter()
<< "), U2(" << U2 << "), Umax(" << PCurve->LastParameter() << ")\n";
#endif
return;
if (PCurve->FirstParameter() - U1 > Precision::PConfusion())
{
#ifdef OCCT_DEBUG
- cout << "DBRep_IsoBuilder PCurve : parameters out of range\n";
- cout << " U1(" << U1 << "), Umin(" << PCurve->FirstParameter() << ")\n";
+ std::cout << "DBRep_IsoBuilder PCurve : parameters out of range\n";
+ std::cout << " U1(" << U1 << "), Umin(" << PCurve->FirstParameter() << ")\n";
#endif
U1 = PCurve->FirstParameter();
}
if (PCurve->FirstParameter() - U2 > Precision::PConfusion())
{
#ifdef OCCT_DEBUG
- cout << "DBRep_IsoBuilder PCurve : parameters out of range\n";
- cout << " U2(" << U2 << "), Umin(" << PCurve->FirstParameter() << ")\n";
+ std::cout << "DBRep_IsoBuilder PCurve : parameters out of range\n";
+ std::cout << " U2(" << U2 << "), Umin(" << PCurve->FirstParameter() << ")\n";
#endif
U2 = PCurve->FirstParameter();
}
if (U1 - PCurve->LastParameter() > Precision::PConfusion())
{
#ifdef OCCT_DEBUG
- cout << "DBRep_IsoBuilder PCurve : parameters out of range\n";
- cout << " U1(" << U1 << "), Umax(" << PCurve->LastParameter() << ")\n";
+ std::cout << "DBRep_IsoBuilder PCurve : parameters out of range\n";
+ std::cout << " U1(" << U1 << "), Umax(" << PCurve->LastParameter() << ")\n";
#endif
U1 = PCurve->LastParameter();
}
if (U2 - PCurve->LastParameter() > Precision::PConfusion())
{
#ifdef OCCT_DEBUG
- cout << "DBRep_IsoBuilder PCurve : parameters out of range\n";
- cout << " U2(" << U2 << "), Umax(" << PCurve->LastParameter() << ")\n";
+ std::cout << "DBRep_IsoBuilder PCurve : parameters out of range\n";
+ std::cout << " U2(" << U2 << "), Umax(" << PCurve->LastParameter() << ")\n";
#endif
U2 = PCurve->LastParameter();
}
if (UInd != 0) {
Standard_Real UPrm = myUPrm.Value (UIso) ;
if (!IsDone (UInd)) {
- cout << "DBRep_IsoBuilder:: U iso of parameter: " << UPrm ;
+ std::cout << "DBRep_IsoBuilder:: U iso of parameter: " << UPrm ;
switch (Status (UInd)) {
- case HatchGen_NoProblem : cout << " No Problem" << endl ; break ;
- case HatchGen_TrimFailure : cout << " Trim Failure" << endl ; break ;
- case HatchGen_TransitionFailure : cout << " Transition Failure" << endl ; break ;
- case HatchGen_IncoherentParity : cout << " Incoherent Parity" << endl ; break ;
- case HatchGen_IncompatibleStates : cout << " Incompatible States" << endl ; break ;
+ case HatchGen_NoProblem : std::cout << " No Problem" << std::endl ; break ;
+ case HatchGen_TrimFailure : std::cout << " Trim Failure" << std::endl ; break ;
+ case HatchGen_TransitionFailure : std::cout << " Transition Failure" << std::endl ; break ;
+ case HatchGen_IncoherentParity : std::cout << " Incoherent Parity" << std::endl ; break ;
+ case HatchGen_IncompatibleStates : std::cout << " Incompatible States" << std::endl ; break ;
}
} else {
Standard_Integer NbDom = Geom2dHatch_Hatcher::NbDomains (UInd) ;
if (VInd != 0) {
Standard_Real VPrm = myVPrm.Value (VIso) ;
if (!IsDone (VInd)) {
- cout << "DBRep_IsoBuilder:: V iso of parameter: " << VPrm ;
+ std::cout << "DBRep_IsoBuilder:: V iso of parameter: " << VPrm ;
switch (Status (VInd)) {
- case HatchGen_NoProblem : cout << " No Problem" << endl ; break ;
- case HatchGen_TrimFailure : cout << " Trim Failure" << endl ; break ;
- case HatchGen_TransitionFailure : cout << " Transition Failure" << endl ; break ;
- case HatchGen_IncoherentParity : cout << " Incoherent Parity" << endl ; break ;
- case HatchGen_IncompatibleStates : cout << " Incompatible States" << endl ; break ;
+ case HatchGen_NoProblem : std::cout << " No Problem" << std::endl ; break ;
+ case HatchGen_TrimFailure : std::cout << " Trim Failure" << std::endl ; break ;
+ case HatchGen_TransitionFailure : std::cout << " Transition Failure" << std::endl ; break ;
+ case HatchGen_IncoherentParity : std::cout << " Incoherent Parity" << std::endl ; break ;
+ case HatchGen_IncompatibleStates : std::cout << " Incompatible States" << std::endl ; break ;
}
} else {
Standard_Integer NbDom = Geom2dHatch_Hatcher::NbDomains (VInd) ;
{
Label.Nullify();
TDF_Tool::Label(DF,Entry,Label,Standard_False);
- if (Label.IsNull() && Complain) cout << "No label for entry " << Entry <<endl;
+ if (Label.IsNull() && Complain) std::cout << "No label for entry " << Entry <<std::endl;
return !Label.IsNull();
}
DF = DDF->DataFramework();
return Standard_True;
}
- if (Complain) cout <<"framework "<<Name<<" not found "<< endl;
+ if (Complain) std::cout <<"framework "<<Name<<" not found "<< std::endl;
return Standard_False;
}
TDF_Label L;
if (FindLabel(DF,Entry,L,Complain)) {
if (L.FindAttribute(ID,A)) return Standard_True;
- if (Complain) cout <<"attribute not found for entry : "<< Entry <<endl;
+ if (Complain) std::cout <<"attribute not found for entry : "<< Entry <<std::endl;
}
return Standard_False;
}
void ErrorMessage (const Storage_Error n)
{
- cout << "Storage Error: " << flush;
+ std::cout << "Storage Error: " << std::flush;
switch (n) {
case Storage_VSOk:
- cout << "no problem" << endl;
+ std::cout << "no problem" << std::endl;
break;
case Storage_VSOpenError:
- cout << "while opening the stream" << endl;
+ std::cout << "while opening the stream" << std::endl;
break;
case Storage_VSModeError:
- cout << "the stream is opened with a wrong mode for operation " << endl;
+ std::cout << "the stream is opened with a wrong mode for operation " << std::endl;
break;
case Storage_VSCloseError:
- cout << "while closing the stream" << endl;
+ std::cout << "while closing the stream" << std::endl;
break;
case Storage_VSAlreadyOpen:
- cout << "stream is already opened" << endl;
+ std::cout << "stream is already opened" << std::endl;
break;
case Storage_VSNotOpen:
- cout << "stream not opened" << endl;
+ std::cout << "stream not opened" << std::endl;
break;
case Storage_VSSectionNotFound:
- cout << "the section is not found" << endl;
+ std::cout << "the section is not found" << std::endl;
break;
case Storage_VSWriteError:
- cout << "error during writing" << endl;
+ std::cout << "error during writing" << std::endl;
break;
case Storage_VSFormatError:
- cout << "wrong format error occured while reading" << endl;
+ std::cout << "wrong format error occured while reading" << std::endl;
break;
case Storage_VSUnknownType:
- cout << "try to read an unknown type" << endl;
+ std::cout << "try to read an unknown type" << std::endl;
break;
case Storage_VSTypeMismatch:
- cout << "try to read a wrong primitive type (read a char while expecting a real)" << endl;
+ std::cout << "try to read a wrong primitive type (read a char while expecting a real)" << std::endl;
break;
case Storage_VSInternalError:
- cout << "internal error" << endl;
+ std::cout << "internal error" << std::endl;
break;
- case Storage_VSExtCharParityError: cout << "parity error" << endl;
+ case Storage_VSExtCharParityError: std::cout << "parity error" << std::endl;
break;
default:
- cout << "unknown error code" << endl;
+ std::cout << "unknown error code" << std::endl;
break;
}
}
void DDF_Browser::DrawOn(Draw_Display& /*dis*/) const
{
- //cout<<"DDF_Browser"<<endl;
+ //std::cout<<"DDF_Browser"<<std::endl;
}
void DDF_Browser::Dump(Standard_OStream& S) const
{
- S<<"DDF_Browser on a DF:"<<endl;
+ S<<"DDF_Browser on a DF:"<<std::endl;
S<<myDF;
}
{
if (n<2)
{
- cout << "Use: " << a[0] << " document [brower_name]" << endl;
+ std::cout << "Use: " << a[0] << " document [brower_name]" << std::endl;
return 1;
}
Handle(TDF_Data) DF;
if (!DDF::GetDF (a[1], DF))
{
- cout << "Error: document " << a[1] << " is not found" << endl;
+ std::cout << "Error: document " << a[1] << " is not found" << std::endl;
return 1;
}
OSD_File aTclScriptFile (aTclScript);
if (aTclScriptFile.Exists()) {
#ifdef OCCT_DEBUG
- cout << "Load " << aTclScript << endl;
+ std::cout << "Load " << aTclScript << std::endl;
#endif
di.EvalFile( aTclScript.ToCString() );
}
else
{
- cout << "Error: Could not load script " << aTclScript << endl;
- cout << "Check environment variable CSF_DrawPluginDefaults" << endl;
+ std::cout << "Error: Could not load script " << aTclScript << std::endl;
+ std::cout << "Check environment variable CSF_DrawPluginDefaults" << std::endl;
}
// Call command dftree defined in dftree.tcl
void DDF_Data::DrawOn(Draw_Display& /*dis*/) const
-{ cout<<"DDF_Data"<<endl; }
+{ std::cout<<"DDF_Data"<<std::endl; }
di<<"*********** Dump of "<<a[1]<<" ***********\n";
- //DDF->DataFramework()->Dump(cout);
+ //DDF->DataFramework()->Dump(std::cout);
Standard_SStream aSStream;
DDF->DataFramework()->Dump(aSStream);
- aSStream << ends;
+ aSStream << std::ends;
di << aSStream << "\n";
return 0;
//TDF_Tool::ExtendedDeepDump(cout,DDF->DataFramework(),filter);
Standard_SStream aSStream;
TDF_Tool::ExtendedDeepDump(aSStream,DDF->DataFramework(),filter);
- aSStream << ends;
+ aSStream << std::ends;
di << aSStream <<"\n";
return 0;
Standard_Boolean Shar = Standard_False;
for (TDF_AttributeIterator itr(SOURCE); itr.More(); itr.Next()) {
itr.Value()->References(ds1);
-// cout<<"\tSource Attribute dynamic type = "<<itr.Value()->DynamicType()<<endl;
+// std::cout<<"\tSource Attribute dynamic type = "<<itr.Value()->DynamicType()<<std::endl;
const TDF_AttributeMap& attMap = ds1->Attributes(); //attMap
for (TDF_MapIteratorOfAttributeMap attMItr(attMap);attMItr.More(); attMItr.Next()) {
Handle(TDF_Attribute) sAtt = attMItr.Key();
-// cout<<"\t\tSource references attribute dynamic type = "<<sAtt->DynamicType()<<endl;
+// std::cout<<"\t\tSource references attribute dynamic type = "<<sAtt->DynamicType()<<std::endl;
for (TDF_AttributeIterator itr2(TARGET); itr2.More(); itr2.Next()) {
itr2.Value()->References(ds2);
-// cout<<"\t\t\tTARGET attribute dynamic type = "<<itr2.Value()->DynamicType()<<endl;
+// std::cout<<"\t\t\tTARGET attribute dynamic type = "<<itr2.Value()->DynamicType()<<std::endl;
const TDF_AttributeMap& attMap2 = ds2->Attributes(); //attMap
for (TDF_MapIteratorOfAttributeMap attMItr2(attMap2);attMItr2.More(); attMItr2.Next()) {
Handle(TDF_Attribute) tAtt = attMItr2.Key();
-// cout<<"\t\t\t\tTarget reference attribute dynamic type = "<<tAtt->DynamicType()<<endl;
+// std::cout<<"\t\t\t\tTarget reference attribute dynamic type = "<<tAtt->DynamicType()<<std::endl;
if (tAtt->IsInstance(sAtt->DynamicType()))
if(tAtt == sAtt) {
TCollection_AsciiString entr1,entr2;
if(!Shar) {
TDF_Tool::Entry(SOURCE, entr1);
TDF_Tool::Entry(TARGET, entr2);
- //cout<<"\tSHAREABLE attribute(s) found between Lab1 = "<<entr1<<" and Lab2 = "<<entr2<<endl;
+ //std::cout<<"\tSHAREABLE attribute(s) found between Lab1 = "<<entr1<<" and Lab2 = "<<entr2<<std::endl;
di<<"\tSHAREABLE attribute(s) found between Lab1 = "<<entr1.ToCString()<<" and Lab2 = "<<entr2.ToCString()<<"\n";
Shar = Standard_True;
}
TDF_Tool::Entry(sAtt->Label(), entr1);
- //cout<<"\tAttribute dynamic type = "<<sAtt->DynamicType()<<",\tlocated on Label = "<<entr1<<endl;
+ //std::cout<<"\tAttribute dynamic type = "<<sAtt->DynamicType()<<",\tlocated on Label = "<<entr1<<std::endl;
di<<"\tAttribute dynamic type = " << sAtt->DynamicType()->Name();
di<<",\tlocated on Label = "<<entr1.ToCString()<<"\n";
}
Handle(TDF_DataSet) ds1 = new TDF_DataSet();
for (TDF_AttributeIterator itr(SOURCE); itr.More(); itr.Next()) {
itr.Value()->References(ds1);
- //cout<<"\tSource Attribute dynamic type = "<<itr.Value()->DynamicType()<<endl;
+ //std::cout<<"\tSource Attribute dynamic type = "<<itr.Value()->DynamicType()<<std::endl;
di<<"\tSource Attribute dynamic type = " << itr.Value()->DynamicType()->Name() << "\n";
const TDF_AttributeMap& attMap = ds1->Attributes(); //attMap
for (TDF_MapIteratorOfAttributeMap attMItr(attMap);attMItr.More(); attMItr.Next()) {
Handle(TDF_Attribute) sAtt = attMItr.Key();
TCollection_AsciiString entry;
TDF_Tool::Entry(sAtt->Label(), entry);
- //cout<<"\t\tReferences attribute dynamic type = "<<sAtt->DynamicType()<<",\tLabel = "<<entry<<endl;
+ //std::cout<<"\t\tReferences attribute dynamic type = "<<sAtt->DynamicType()<<",\tLabel = "<<entry<<std::endl;
di<<"\t\tReferences attribute dynamic type = " << sAtt->DynamicType()->Name();
di<<",\tLabel = "<<entry.ToCString()<<"\n";
}
if (OpenMode() == Storage_VSNone) {
if (aMode == Storage_VSRead) {
if (myIStream != NULL) delete myIStream;
- myIStream = new ifstream(aName.ToCString(),ios::in); // ios::nocreate is not portable
+ myIStream = new std::ifstream(aName.ToCString(),std::ios::in); // std::ios::nocreate is not portable
if (myIStream->fail()) {
result = Storage_VSOpenError;
}
}
else if (aMode == Storage_VSWrite) {
if (myOStream != NULL) delete myOStream;
- myOStream = new ofstream(aName.ToCString(),ios::out);
+ myOStream = new std::ofstream(aName.ToCString(),std::ios::out);
if (myOStream->fail()) {
result = Storage_VSOpenError;
}
//=======================================================================
//function : Open
-//purpose : "Opens" an istream.
+//purpose : "Opens" an std::istream.
//=======================================================================
-Storage_Error DDF_IOStream::Open(istream* anIStream)
+Storage_Error DDF_IOStream::Open(std::istream* anIStream)
{
myOStream = NULL;
SetOpenMode(Storage_VSRead);
//=======================================================================
//function : Open
-//purpose : "Opens" an ostream.
+//purpose : "Opens" an std::ostream.
//=======================================================================
-Storage_Error DDF_IOStream::Open(ostream* anOStream)
+Storage_Error DDF_IOStream::Open(std::ostream* anOStream)
{
myIStream = NULL;
SetOpenMode(Storage_VSWrite);
myIStream->get(c);
check++;
// if ((check % 2) != 0) throw Storage_StreamExtCharParityError();
-// cout << check << endl;
+// std::cout << check << std::endl;
j = (Standard_ExtCharacter)c;
if (c != '\n') fin = Standard_False;
i |= (0x00FF & j);
}
// if ((check % 2) != 0) throw Storage_StreamExtCharParityError();
-// cout << check << endl;
+// std::cout << check << std::endl;
}
//=======================================================================
if (strncmp(DDF_IOStream::MagicNumber(),l.ToCString(),len) != 0) {
#ifdef OCCT_DEBUG
- cout<<"BeginReadInfoSection: format error"<<endl;
+ std::cout<<"BeginReadInfoSection: format error"<<std::endl;
#endif
s = Storage_VSFormatError;
}
//purpose :
//=======================================================================
-Storage_Error DDF_IOStream::IsGoodFileType(istream* anIStream)
+Storage_Error DDF_IOStream::IsGoodFileType(std::istream* anIStream)
{
DDF_IOStream f;
Storage_Error s;
if (strncmp(DDF_IOStream::MagicNumber(),l.ToCString(),len) != 0) {
#ifdef OCCT_DEBUG
- cout<<"IsGoodFileType: format error"<<endl;
+ std::cout<<"IsGoodFileType: format error"<<std::endl;
#endif
s = Storage_VSFormatError;
}
//
DDF_IOStream();
Storage_Error Open(const TCollection_AsciiString& aName,const Storage_OpenMode aMode) ;
- Storage_Error Open(istream* anIStream) ;
- Storage_Error Open(ostream* anOStream) ;
+ Storage_Error Open(std::istream* anIStream) ;
+ Storage_Error Open(std::ostream* anOStream) ;
Standard_Boolean IsEnd() ;
Storage_Position Tell() { return -1; }
-static Storage_Error IsGoodFileType(istream* anIStream) ;
+static Storage_Error IsGoodFileType(std::istream* anIStream) ;
Storage_Error BeginWriteInfoSection() ;
void WriteInfo(const Standard_Integer nbObj,const TCollection_AsciiString& dbVersion,const TCollection_AsciiString& date,const TCollection_AsciiString& schemaName,const TCollection_AsciiString& schemaVersion,const TCollection_ExtendedString& appName,const TCollection_AsciiString& appVersion,const TCollection_ExtendedString& objectType,const TColStd_SequenceOfAsciiString& userInfo) ;
Storage_Error EndWriteInfoSection() ;
// Fields PRIVATE
//
//FSD_FStream myStream;
-istream* myIStream;
-ostream* myOStream;
+std::istream* myIStream;
+std::ostream* myOStream;
};
TDF_Label L;
if (!DDF::FindLabel(DF,arg[2],L)) return 1;
// TDataStd::MakeSelfContained(L,removed);
-// if (removed.IsEmpty()) cout << "noone attriburte removed" << endl;
+// if (removed.IsEmpty()) std::cout << "noone attriburte removed" << std::endl;
// for (TDF_ListIteratorOfAttributeList it(removed);it.More();it.Next()) {
-// TDF_Tool::Entry(it.Value()->Label(),s); cout << s << " ";
-// cout << endl;
+// TDF_Tool::Entry(it.Value()->Label(),s); std::cout << s << " ";
+// std::cout << std::endl;
// }
return 0;
}
// return 0;
// }
-// cout << "Wrong arguments" << endl;
+// std::cout << "Wrong arguments" << std::endl;
// return 1;
// }
// if (!DDF::GetDF(arg[1],DF)) return 1;
// TDF_Label label;
// if( !DDF::FindLabel(DF, arg[2], label) ) {
-// cout << "No label for entry" << endl;
+// std::cout << "No label for entry" << std::endl;
// return 1;
// }
// Handle(TDataStd_Object) O;
// Standard_GUID guidUO(arg[3]);
// if( !label.FindAttribute( TDataStd_Object::GetID(), O) ) {
-// cout << "No Object Attribute on label" << endl;
+// std::cout << "No Object Attribute on label" << std::endl;
// }
// else {
-// cout << "UObject is found with ObjectID = ";
+// std::cout << "UObject is found with ObjectID = ";
// O->Find(label, guidUO, UO);
-// UO->ObjectID().ShallowDump(cout);
-// cout << endl;
+// UO->ObjectID().ShallowDump(std::cout);
+// std::cout << std::endl;
// }
// return 0;
// }
-// cout << "Wrong arguments" << endl;
+// std::cout << "Wrong arguments" << std::endl;
// return 1;
// }
}
for(Standard_Integer i = A->Lower(); i<=A->Upper(); i++){
- //cout << A->Value(i) << endl;
+ //std::cout << A->Value(i) << std::endl;
di << A->Value(i);
if(i<A->Upper())
di<<" ";
if ( !label.FindAttribute(aGuid, A) ) {
di << "There is no TDataStd_RealArray with the specified GUID at the label" << "\n";
#ifdef DEB_DDataStd
- aGuid.ShallowDump(cout);
+ aGuid.ShallowDump(std::cout);
#endif
return 1;
}
for(Standard_Integer i = A->Lower(); i<=A->Upper(); i++){
#ifdef DEB_DDataStd
- cout << A->Value(i) << endl;
+ std::cout << A->Value(i) << std::endl;
#endif
di << A->Value(i);
if(i<A->Upper())
Standard_CString aFileName(arg[3]);
#ifdef _MSC_VER
- ifstream anIS (aFileName, ios::in | ios::binary);
+ std::ifstream anIS (aFileName, std::ios::in | std::ios::binary);
#else
- ifstream anIS (aFileName);
+ std::ifstream anIS (aFileName);
#endif
if (!anIS) {
// Can not open file
- cout << "Error: can't open file " << aFileName <<endl;;
+ std::cout << "Error: can't open file " << aFileName <<std::endl;;
return 1;
}
char buf[1024];
}
if(!aES.Length()) {
- cout << "Data is not found in the Document" <<endl;
+ std::cout << "Data is not found in the Document" <<std::endl;
return 1;
}
Standard_CString aFileName(arg[3]);
#ifdef _MSC_VER
- ofstream anOS (aFileName, ios::in | ios::binary | ios::ate);
+ std::ofstream anOS (aFileName, std::ios::in | std::ios::binary | std::ios::ate);
#else
- ofstream anOS (aFileName, ios::ate);
+ std::ofstream anOS (aFileName, std::ios::ate);
#endif
if (!anOS) {
// A problem with the stream
#ifdef OCCT_DEBUG
- cout << "Error: problem with the file stream, rdstate = " <<anOS.rdstate() <<endl;
+ std::cout << "Error: problem with the file stream, rdstate = " <<anOS.rdstate() <<std::endl;
#endif
}
unsigned char prefix[4] = {0xEF,0xBB,0xBF, 0x00};
for(Standard_Integer i = From; i<=To; ++i) {
Standard_Integer ival = Draw::Atoi(arg[j]);
if(ival < 0 || 255 < ival) {
- cout << "Bad value = " << ival<< endl;
+ std::cout << "Bad value = " << ival<< std::endl;
return 1;
}
A->SetValue(i, (Standard_Byte)ival);
// Check the value.
if(value < 0 || 255 < value) {
- cout << "Bad value = " << value << endl;
+ std::cout << "Bad value = " << value << std::endl;
return 1;
}
Standard_Integer ival = Draw::Atoi(arg[j]);
if(ival > 1)
{
- cout << "Bad value (" <<i <<") = " << ival<< ". 0 or 1 is expected." << endl;
+ std::cout << "Bad value (" <<i <<") = " << ival<< ". 0 or 1 is expected." << std::endl;
return 1;
}
A->SetValue(i, ival != 0);
Standard_Integer ival = Draw::Atoi(arg[i]);
if(ival > 1)
{
- cout << "Bad value = " << ival<< ". 0 or 1 is expected." << endl;
+ std::cout << "Bad value = " << ival<< ". 0 or 1 is expected." << std::endl;
return 1;
}
A->Append (ival != 0);
}
for(Standard_Integer i = A->Lower(); i<=A->Upper(); i++){
- //cout << A->Value(i) << endl;
+ //std::cout << A->Value(i) << std::endl;
di << A->Value(i);
if(i<A->Upper())
di<<" ";
}
const Handle(TColStd_HPackedMapOfInteger)& aHMap = new TColStd_HPackedMapOfInteger(aMap);
anAtt->ChangeMap(aHMap);
- cout << "Map extent = " << anAtt->Extent()<<endl;
+ std::cout << "Map extent = " << anAtt->Extent()<<std::endl;
return 0;
}
di << "DDataStd_SetIntPackedMap : Error\n";
}
const Handle(TColStd_HPackedMapOfInteger)& aHMap = new TColStd_HPackedMapOfInteger(aMap);
anAtt->ChangeMap(aHMap);
- cout << "Map extent = " << anAtt->Extent()<<endl;
+ std::cout << "Map extent = " << anAtt->Extent()<<std::endl;
return 0;
}
di << "DDataStd_SetIntPHugeMap : Error\n";
if(!aLabel.FindAttribute(TDataStd_NamedData::GetID(), anAtt))
anAtt = TDataStd_NamedData::Set(aLabel);
if(anAtt.IsNull()) {
- cout<< "NamedData attribute is not found or not set" << endl;
+ std::cout<< "NamedData attribute is not found or not set" << std::endl;
return 1;}
j = 15;
return 1;
}
- cout << "String = " << anAtt->Get().ToCString() << " is kept in DF" << endl;
+ std::cout << "String = " << anAtt->Get().ToCString() << " is kept in DF" << std::endl;
return 0;
}
di << "DDataStd_SetAsciiString : Error\n";
}
Handle(TDataStd_AsciiString) anAtt;
if( !aLabel.FindAttribute(aGuid, anAtt) ) {
- cout << "AsciiString attribute is not found or not set" << endl;
+ std::cout << "AsciiString attribute is not found or not set" << std::endl;
return 1;
}
#ifdef DEB_DDataStd
- cout << "String = " << anAtt->Get().ToCString() << endl;
+ std::cout << "String = " << anAtt->Get().ToCString() << std::endl;
#endif
di << anAtt->Get().ToCString();
return 0;
//
// TCollection_ExtendedString aString("123456789 0_abcde");
// Standard_Integer aPos = aString.Search(" ");
-// cout << "From Start = " <<aPos<<endl;
+// std::cout << "From Start = " <<aPos<<std::endl;
// aPos = aString.SearchFromEnd(" ");
-// cout << "From Start = " <<aPos<<endl;
+// std::cout << "From Start = " <<aPos<<std::endl;
// TCollection_ExtendedString aValue = aString.Split(aPos);
-// cout << "Value = |"<<aValue<<endl;
-// cout << "aKey = " << aString << "|"<<endl;
+// std::cout << "Value = |"<<aValue<<std::endl;
+// std::cout << "aKey = " << aString << "|"<<std::endl;
//
Standard_Integer aNumP = Draw::Atoi(arg[3]), j;
Handle(TDataStd_NamedData) anAtt;
Handle(TDataStd_NamedData) anAtt;
if(!aLabel.FindAttribute(TDataStd_NamedData::GetID(), anAtt)) {
- cout << "NamedData attribute is not found or not set" << endl;
+ std::cout << "NamedData attribute is not found or not set" << std::endl;
return 1;}
- cout <<endl;
- cout <<"NamedData attribute at Label = " << arg[2] <<endl;
+ std::cout <<std::endl;
+ std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;
const TColStd_DataMapOfStringInteger& aMap = anAtt->GetIntegersContainer();
TColStd_DataMapIteratorOfDataMapOfStringInteger itr(aMap);
for (; itr.More(); itr.Next()){
TCollection_ExtendedString aKey(itr.Key());
TCollection_AsciiString aStr(aKey,'?');
Standard_Integer aValue = itr.Value();
- cout << "Key = " << aStr.ToCString() << " Value = " <<aValue<<endl;;
+ std::cout << "Key = " << aStr.ToCString() << " Value = " <<aValue<<std::endl;;
}
return 0;
Handle(TDataStd_NamedData) anAtt;
if(!aLabel.FindAttribute(TDataStd_NamedData::GetID(), anAtt)) {
- cout << "NamedData attribute is not found or not set" << endl;
+ std::cout << "NamedData attribute is not found or not set" << std::endl;
return 1;}
- cout <<endl;
- cout <<"NamedData attribute at Label = " << arg[2] <<endl;
+ std::cout <<std::endl;
+ std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;
if(!anAtt->HasInteger(arg[3])) {
- cout << "There is no data specified by Key = "<< arg[3] << endl;
+ std::cout << "There is no data specified by Key = "<< arg[3] << std::endl;
return 1;
} else {
- cout << "Key = " << arg[3] << " Value = " <<anAtt->GetInteger(arg[3])<<endl;
+ std::cout << "Key = " << arg[3] << " Value = " <<anAtt->GetInteger(arg[3])<<std::endl;
if(nb == 5)
Draw::Set(arg[4], anAtt->GetInteger(arg[3]));
return 0;
if(!aLabel.FindAttribute(TDataStd_NamedData::GetID(), anAtt))
anAtt = TDataStd_NamedData::Set(aLabel);
if(anAtt.IsNull()) {
- cout << "NamedData attribute is not found or not set" << endl;;
+ std::cout << "NamedData attribute is not found or not set" << std::endl;;
return 1;}
j = 4;
TDF_Label aLabel;
if(!DDF::FindLabel(DF, arg[2], aLabel)) return 1;
- cout <<endl;
- cout <<"NamedData attribute at Label = " << arg[2] <<endl;
+ std::cout <<std::endl;
+ std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;
Handle(TDataStd_NamedData) anAtt;
if(!aLabel.FindAttribute(TDataStd_NamedData::GetID(), anAtt)) {
- cout << "NamedData attribute is not found or not set" << endl;
+ std::cout << "NamedData attribute is not found or not set" << std::endl;
return 1;}
const TDataStd_DataMapOfStringReal& aMap = anAtt->GetRealsContainer();
TCollection_ExtendedString aKey(itr.Key());
TCollection_AsciiString aStr(aKey,'?');
Standard_Real aValue = itr.Value();
- cout << "Key = " << aStr.ToCString() << " Value = " <<aValue<<endl;
+ std::cout << "Key = " << aStr.ToCString() << " Value = " <<aValue<<std::endl;
}
return 0;
}
Handle(TDataStd_NamedData) anAtt;
if(!aLabel.FindAttribute(TDataStd_NamedData::GetID(), anAtt)) {
- cout << "NamedData attribute is not found or not set" << endl;
+ std::cout << "NamedData attribute is not found or not set" << std::endl;
return 1;}
- cout <<endl;
- cout <<"NamedData attribute at Label = " << arg[2] <<endl;
+ std::cout <<std::endl;
+ std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;
if(!anAtt->HasReal(arg[3])) {
- cout << "There is no data specified by Key = "<< arg[3] << endl;
+ std::cout << "There is no data specified by Key = "<< arg[3] << std::endl;
return 1;
} else {
- cout << "Key = " << arg[3] << " Value = " <<anAtt->GetReal(arg[3])<<endl;
+ std::cout << "Key = " << arg[3] << " Value = " <<anAtt->GetReal(arg[3])<<std::endl;
if(nb == 5)
Draw::Set(arg[4], anAtt->GetReal(arg[3]));
return 0;
Handle(TDataStd_NamedData) anAtt;
if(!aLabel.FindAttribute(TDataStd_NamedData::GetID(), anAtt)) {
- cout << "NamedData attribute is not found or not set" << endl;
+ std::cout << "NamedData attribute is not found or not set" << std::endl;
return 1;}
- cout <<endl;
- cout <<"NamedData attribute at Label = " << arg[2] <<endl;
+ std::cout <<std::endl;
+ std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;
const TDataStd_DataMapOfStringString& aMap = anAtt->GetStringsContainer();
TDataStd_DataMapIteratorOfDataMapOfStringString itr(aMap);
for (; itr.More(); itr.Next()){
TCollection_AsciiString aStr(aKey,'?');
TCollection_ExtendedString aVal(itr.Value());
TCollection_AsciiString aStrValue(aVal,'?');
- cout << "Key = " << aStr.ToCString() << " Value = " <<aStrValue.ToCString()<< endl;
+ std::cout << "Key = " << aStr.ToCString() << " Value = " <<aStrValue.ToCString()<< std::endl;
}
return 0;
}
di << "NamedData attribute is not found or not set" << "\n";
return 1;}
- cout <<endl;
- cout <<"NamedData attribute at Label = " << arg[2] <<endl;
+ std::cout <<std::endl;
+ std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;
if(!anAtt->HasString(arg[3])) {
- cout << "There is no data specified by Key = "<< arg[3] << endl;
+ std::cout << "There is no data specified by Key = "<< arg[3] << std::endl;
return 1;
} else {
TCollection_AsciiString aValue (anAtt->GetString(arg[3]), '?');
- cout << "Key = " << arg[3] << " Value = " << aValue.ToCString() << endl;
+ std::cout << "Key = " << arg[3] << " Value = " << aValue.ToCString() << std::endl;
if(nb == 5)
Draw::Set(arg[4], aValue.ToCString());
return 0;
if(!aLabel.FindAttribute(TDataStd_NamedData::GetID(), anAtt))
anAtt = TDataStd_NamedData::Set(aLabel);
if(anAtt.IsNull()) {
- cout << "NamedData attribute is not found or not set" << endl;
+ std::cout << "NamedData attribute is not found or not set" << std::endl;
return 1;}
j = 4;
Handle(TDataStd_NamedData) anAtt;
if(!aLabel.FindAttribute(TDataStd_NamedData::GetID(), anAtt)) {
- cout << "NamedData attribute is not found or not set" << endl;
+ std::cout << "NamedData attribute is not found or not set" << std::endl;
return 1;}
- cout <<endl;
- cout <<"NamedData attribute at Label = " << arg[2] <<endl;
+ std::cout <<std::endl;
+ std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;
const TDataStd_DataMapOfStringByte& aMap = anAtt->GetBytesContainer();
TDataStd_DataMapIteratorOfDataMapOfStringByte itr(aMap);
for (; itr.More(); itr.Next()){
TCollection_ExtendedString aKey(itr.Key());
TCollection_AsciiString aStr(aKey,'?');
Standard_Byte aValue = itr.Value();
- cout << "Key = " << aStr.ToCString() << " Value = " <<aValue<<endl;
+ std::cout << "Key = " << aStr.ToCString() << " Value = " <<aValue<<std::endl;
}
return 0;
}
Handle(TDataStd_NamedData) anAtt;
if(!aLabel.FindAttribute(TDataStd_NamedData::GetID(), anAtt)) {
- cout << "NamedData attribute is not found or not set" << endl;
+ std::cout << "NamedData attribute is not found or not set" << std::endl;
return 1;}
- cout <<endl;
- cout <<"NamedData attribute at Label = " << arg[2] <<endl;
+ std::cout <<std::endl;
+ std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;
if(!anAtt->HasByte(arg[3])) {
- cout << "There is no data specified by Key = "<< arg[3] << endl;
+ std::cout << "There is no data specified by Key = "<< arg[3] << std::endl;
return 1;
} else {
- cout << "Key = " << arg[3] << " Value = " <<anAtt->GetByte(arg[3])<< endl;
+ std::cout << "Key = " << arg[3] << " Value = " <<anAtt->GetByte(arg[3])<< std::endl;
if(nb == 5)
Draw::Set(arg[4], anAtt->GetByte(arg[3]));
return 0;
if(!aLabel.FindAttribute(TDataStd_NamedData::GetID(), anAtt))
anAtt = TDataStd_NamedData::Set(aLabel);
if(anAtt.IsNull()) {
- cout<< "NamedData attribute is not found or not set" << endl;
+ std::cout<< "NamedData attribute is not found or not set" << std::endl;
return 1;}
j = 5;
Handle(TDataStd_NamedData) anAtt;
if(!aLabel.FindAttribute(TDataStd_NamedData::GetID(), anAtt)) {
- cout << "NamedData attribute is not found or not set" << endl;
+ std::cout << "NamedData attribute is not found or not set" << std::endl;
return 1;}
- cout <<endl;
- cout <<"NamedData attribute at Label = " << arg[2] <<endl;
+ std::cout <<std::endl;
+ std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;
const TDataStd_DataMapOfStringHArray1OfInteger& aMap = anAtt->GetArraysOfIntegersContainer();
TDataStd_DataMapIteratorOfDataMapOfStringHArray1OfInteger itr(aMap);
for (; itr.More(); itr.Next()){
TCollection_ExtendedString aKey(itr.Key());
TCollection_AsciiString aStr(aKey,'?');
- cout << "Key = " << aStr.ToCString()<< endl;
+ std::cout << "Key = " << aStr.ToCString()<< std::endl;
Handle(TColStd_HArray1OfInteger) anArrValue = itr.Value();
if(!anArrValue.IsNull()) {
Standard_Integer lower = anArrValue->Lower();
Standard_Integer upper = anArrValue->Upper();
for(Standard_Integer i = lower; i<=upper;i++) {
Standard_Integer aValue = anArrValue->Value(i);
- cout << "\tValue("<<i<<") = " <<aValue<<endl;
+ std::cout << "\tValue("<<i<<") = " <<aValue<<std::endl;
}
} else
- cout << "\tthe specified array is Null "<<endl;
+ std::cout << "\tthe specified array is Null "<<std::endl;
}
return 0;
}
Handle(TDataStd_NamedData) anAtt;
if(!aLabel.FindAttribute(TDataStd_NamedData::GetID(), anAtt)) {
- cout << "NamedData attribute is not found or not set" << endl;
+ std::cout << "NamedData attribute is not found or not set" << std::endl;
return 1;}
- cout <<endl;
- cout <<"NamedData attribute at Label = " << arg[2] <<endl;
+ std::cout <<std::endl;
+ std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;
if(!anAtt->HasArrayOfIntegers(arg[3])) {
- cout << "There is no data specified by Key = "<< arg[3] << endl;
+ std::cout << "There is no data specified by Key = "<< arg[3] << std::endl;
return 1;
} else {
- cout << "Key = " << arg[3] <<endl;
+ std::cout << "Key = " << arg[3] <<std::endl;
Handle(TColStd_HArray1OfInteger) anArrValue = anAtt->GetArrayOfIntegers(arg[3]);
if(!anArrValue.IsNull()) {
Standard_Integer upper = anArrValue->Upper();
for(Standard_Integer i = lower; i<=upper;i++) {
Standard_Integer aValue = anArrValue->Value(i);
- cout << "\tValue("<<i<<") = " <<aValue<<endl;
+ std::cout << "\tValue("<<i<<") = " <<aValue<<std::endl;
}
} else
- cout << "\tthe specified array is Null or not found"<<endl;
+ std::cout << "\tthe specified array is Null or not found"<<std::endl;
return 0;
}
}
if(!aLabel.FindAttribute(TDataStd_NamedData::GetID(), anAtt))
anAtt = TDataStd_NamedData::Set(aLabel);
if(anAtt.IsNull()) {
- cout << "NamedData attribute is not found or not set" << endl;
+ std::cout << "NamedData attribute is not found or not set" << std::endl;
return 1;}
j = 5;
Handle(TDataStd_NamedData) anAtt;
if(!aLabel.FindAttribute(TDataStd_NamedData::GetID(), anAtt)) {
- cout << "NamedData attribute is not found or not set" << endl;
+ std::cout << "NamedData attribute is not found or not set" << std::endl;
return 1;}
- cout <<endl;
- cout <<"NamedData attribute at Label = " << arg[2] <<endl;
+ std::cout <<std::endl;
+ std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;
const TDataStd_DataMapOfStringHArray1OfReal& aMap = anAtt->GetArraysOfRealsContainer();
TDataStd_DataMapIteratorOfDataMapOfStringHArray1OfReal itr(aMap);
for (; itr.More(); itr.Next()){
TCollection_ExtendedString aKey(itr.Key());
TCollection_AsciiString aStr(aKey,'?');
- cout << "Key = " << aStr.ToCString()<<endl;
+ std::cout << "Key = " << aStr.ToCString()<<std::endl;
Handle(TColStd_HArray1OfReal) anArrValue = itr.Value();
if(!anArrValue.IsNull()) {
Standard_Integer lower = anArrValue->Lower();
Standard_Integer upper = anArrValue->Upper();
for(Standard_Integer i = lower; i<=upper;i++) {
Standard_Real aValue = anArrValue->Value(i);
- cout << "\tValue("<<i<<") = " <<aValue<<endl;
+ std::cout << "\tValue("<<i<<") = " <<aValue<<std::endl;
}
} else
- cout << "\tthe specified array is Null "<<endl;
+ std::cout << "\tthe specified array is Null "<<std::endl;
}
return 0;
}
di << "NamedData attribute is not found or not set" << "\n";
return 1;}
- cout <<endl;
- cout <<"NamedData attribute at Label = " << arg[2] <<endl;
+ std::cout <<std::endl;
+ std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;
if(!anAtt->HasArrayOfReals(arg[3])) {
- cout << "There is no data specified by Key = "<< arg[3] << endl;
+ std::cout << "There is no data specified by Key = "<< arg[3] << std::endl;
return 1;
} else {
- cout << "Key = " << arg[3] <<endl;
+ std::cout << "Key = " << arg[3] <<std::endl;
Handle(TColStd_HArray1OfReal) anArrValue = anAtt->GetArrayOfReals(arg[3]);
if(!anArrValue.IsNull()) {
Standard_Integer upper = anArrValue->Upper();
for(Standard_Integer i = lower; i<=upper;i++) {
Standard_Real aValue = anArrValue->Value(i);
- cout << "\tValue("<<i<<") = " <<aValue<<endl;
+ std::cout << "\tValue("<<i<<") = " <<aValue<<std::endl;
}
} else
- cout << "\tthe specified array is Null or not found"<<endl;
+ std::cout << "\tthe specified array is Null or not found"<<std::endl;
return 0;
}
}
{
// Standard_SStream aStream;
// CTR->Dump(aStream);
-// aStream << ends;
+// aStream << std::ends;
// di << aStream.rdbuf()->str();
TCollection_AsciiString S;
// DDataStd_DrawPresentation::Display(L,Standard_True);
// return 0;
// }
-// cout << "DDataStd_DrawRedisplay : Error" << endl;
+// std::cout << "DDataStd_DrawRedisplay : Error" << std::endl;
// return 1;
// }
void DDataStd_DrawPresentation::Restore (const Handle(TDF_Attribute)& With)
{
- //cout<< "DDataStd_DrawPresentation::Restore" << endl;
+ //std::cout<< "DDataStd_DrawPresentation::Restore" << std::endl;
isDisplayed = Handle(DDataStd_DrawPresentation)::DownCast (With)->IsDisplayed();
myDrawable = Handle(DDataStd_DrawPresentation)::DownCast (With)->GetDrawable();
}
void DDataStd_DrawPresentation::AfterAddition()
{
- //cout<< "DDataStd_DrawPresentation::AfterAddition" << endl;
+ //std::cout<< "DDataStd_DrawPresentation::AfterAddition" << std::endl;
//if (isDisplayed) DrawDisplay ();
}
void DDataStd_DrawPresentation::BeforeRemoval()
{
- //cout<< "DDataStd_DrawPresentation::BeforeRemoval" << endl;
+ //std::cout<< "DDataStd_DrawPresentation::BeforeRemoval" << std::endl;
//if (isDisplayed) DrawErase ();
}
void DDataStd_DrawPresentation::BeforeForget()
{
- //cout<< "DDataStd_DrawPresentation::BeforeForget" << endl;
+ //std::cout<< "DDataStd_DrawPresentation::BeforeForget" << std::endl;
if (isDisplayed) DrawErase (Label(),this);
}
void DDataStd_DrawPresentation::AfterResume()
{
- //cout<< "DDataStd_DrawPresentation::AfterResume"<< endl;
+ //std::cout<< "DDataStd_DrawPresentation::AfterResume"<< std::endl;
if (isDisplayed) DrawDisplay (Label(),this);
}
Handle(DDataStd_DrawPresentation) Pdt = Handle(DDataStd_DrawPresentation)::DownCast(AD->Attribute());
Handle(DDataStd_DrawPresentation) Pfw;
if (AD->Label().FindAttribute(GetID(),Pfw)) {
- //cout<< "DDataStd_DrawPresentation::BeforeUndo : attribute in framework" << endl;
+ //std::cout<< "DDataStd_DrawPresentation::BeforeUndo : attribute in framework" << std::endl;
}
else {
- //cout<< "DDataStd_DrawPresentation::BeforeUndo : attribute not in framework" << endl;
+ //std::cout<< "DDataStd_DrawPresentation::BeforeUndo : attribute not in framework" << std::endl;
}
//
if (AD->IsKind(STANDARD_TYPE(TDF_DeltaOnAddition))) {
- //cout<< "DDataStd_DrawPresentation::BeforeUndo : delta on addition" << endl;
+ //std::cout<< "DDataStd_DrawPresentation::BeforeUndo : delta on addition" << std::endl;
if (Pfw->IsDisplayed()) DrawErase(AD->Label(),Pfw);
//TDF appelle BeforeRemoval effacer
}
else if (AD->IsKind(STANDARD_TYPE(TDF_DefaultDeltaOnRemoval))) {
- //cout<< "DDataStd_DrawPresentation::BeforeUndo : delta on removal" << endl;
+ //std::cout<< "DDataStd_DrawPresentation::BeforeUndo : delta on removal" << std::endl;
}
else if (AD->IsKind(STANDARD_TYPE(TDF_DefaultDeltaOnModification))) {
- //cout<< "DDataStd_DrawPresentation::BeforeUndo : delta on modification" << endl;
+ //std::cout<< "DDataStd_DrawPresentation::BeforeUndo : delta on modification" << std::endl;
if (Pfw->IsDisplayed()) DrawErase(AD->Label(),Pfw);
}
else {
- //cout<< "DDataStd_DrawPresentation::BeforeUndo : unknown delta" << endl;
+ //std::cout<< "DDataStd_DrawPresentation::BeforeUndo : unknown delta" << std::endl;
}
- //if (Label().IsNull()) cout<< "DDataStd_DrawPresentation::BeforeUndo : null label" << endl;
+ //if (Label().IsNull()) std::cout<< "DDataStd_DrawPresentation::BeforeUndo : null label" << std::endl;
return Standard_True;
}
Handle(DDataStd_DrawPresentation) Pdt = Handle(DDataStd_DrawPresentation)::DownCast(AD->Attribute());
Handle(DDataStd_DrawPresentation) Pfw;
if (AD->Label().FindAttribute(GetID(),Pfw)) {
- //cout<< "DDataStd_DrawPresentation::AfterUndo : attribute in framework" << endl;
+ //std::cout<< "DDataStd_DrawPresentation::AfterUndo : attribute in framework" << std::endl;
}
else {
- //cout<< "DDataStd_DrawPresentation::AfterUndo : attribute not in framework" << endl;
+ //std::cout<< "DDataStd_DrawPresentation::AfterUndo : attribute not in framework" << std::endl;
}
//
if (AD->IsKind(STANDARD_TYPE(TDF_DeltaOnAddition))) {
- //cout<< "DDataStd_DrawPresentation::AfterUndo : delta on addition" << endl;
+ //std::cout<< "DDataStd_DrawPresentation::AfterUndo : delta on addition" << std::endl;
}
else if (AD->IsKind(STANDARD_TYPE(TDF_DefaultDeltaOnRemoval))) {
- //cout<< "DDataStd_DrawPresentation::AfterUndo : delta on removal" << endl;
+ //std::cout<< "DDataStd_DrawPresentation::AfterUndo : delta on removal" << std::endl;
if (Pdt->IsDisplayed()) DrawDisplay(AD->Label(),Pdt);
}
else if (AD->IsKind(STANDARD_TYPE(TDF_DefaultDeltaOnModification))) {
- //cout<< "DDataStd_DrawPresentation::AfterUndo : delta on modification" << endl;
+ //std::cout<< "DDataStd_DrawPresentation::AfterUndo : delta on modification" << std::endl;
if (Pdt->IsDisplayed()) DrawDisplay(AD->Label(),Pdt);
}
else {
- //cout<< "DDataStd_DrawPresentation::AfterUndo : unknown delta" << endl;
+ //std::cout<< "DDataStd_DrawPresentation::AfterUndo : unknown delta" << std::endl;
}
- //if (Label().IsNull()) cout<< "DDataStd_DrawPresentation::AfterUndo : null label" << endl;
+ //if (Label().IsNull()) std::cout<< "DDataStd_DrawPresentation::AfterUndo : null label" << std::endl;
return Standard_True;
}
void DDataStd_DrawPresentation::DrawBuild ()
{
- //cout<< "DDataStd_DrawPresentation::DrawBuild" << endl;
+ //std::cout<< "DDataStd_DrawPresentation::DrawBuild" << std::endl;
Handle(DDataStd_DrawDriver) DD = DDataStd_DrawDriver::Get();
if (DD.IsNull()) {
DD = new DDataStd_DrawDriver ();
DDataStd_DrawDriver::Set(DD);
}
Handle(Draw_Drawable3D) D3D = DD->Drawable(Label());
- if (D3D.IsNull()) cout<< "DDataStd_DrawPresentation::DrawBuild : null drawable" << endl;
+ if (D3D.IsNull()) std::cout<< "DDataStd_DrawPresentation::DrawBuild : null drawable" << std::endl;
myDrawable = D3D;
}
return;
}
else {
- //cout<< "DDataStd_DrawPresentation::DrawDisplay : null Drawable" << endl;
+ //std::cout<< "DDataStd_DrawPresentation::DrawDisplay : null Drawable" << std::endl;
return;
}
}
- cout<< "DDataStd_DrawPresentation::DrawDisplay : null Label" << endl;
+ std::cout<< "DDataStd_DrawPresentation::DrawDisplay : null Label" << std::endl;
}
//=======================================================================
return;
}
else {
- //cout<< "DDataStd_DrawPresentation::DrawErase : null Drawable" << endl;
+ //std::cout<< "DDataStd_DrawPresentation::DrawErase : null Drawable" << std::endl;
return;
}
}
- cout<< "DDataStd_DrawPresentation::DrawErase : null Label" << endl;
+ std::cout<< "DDataStd_DrawPresentation::DrawErase : null Label" << std::endl;
}
}
Handle(TDataStd_Name) N;
if( !L.FindAttribute(aGuid, N) ) {
- cout << "Name attribute is not found or not set" << endl;
+ std::cout << "Name attribute is not found or not set" << std::endl;
return 1;
}
#ifdef DEB_DDataStd
if(!N.IsNull())
- cout << "String = " << TCollection_AsciiString(N->Get(), '?').ToCString() << endl;
+ std::cout << "String = " << TCollection_AsciiString(N->Get(), '?').ToCString() << std::endl;
#endif
di << N->Get();
return 0;
//=======================================================================
void DDataStd_TreeBrowser::DrawOn(Draw_Display& /*dis*/) const
-{ cout<<"DDataStd_TreeBrowser"<<endl; }
+{ std::cout<<"DDataStd_TreeBrowser"<<std::endl; }
//=======================================================================
void DDataStd_TreeBrowser::Dump(Standard_OStream& S) const
{
- S<<"DDataStd_TreeBrowser on a label: "<<endl;
+ S<<"DDataStd_TreeBrowser on a label: "<<std::endl;
S<<myRoot;
}
const char** /*a*/)
{
if (cni.More()) {
- //cout<<"TRUE"<<endl;
+ //std::cout<<"TRUE"<<std::endl;
di<<"TRUE\n";
}
else {
- //cout<<"FALSE"<<endl;
+ //std::cout<<"FALSE"<<std::endl;
di<<"FALSE\n";
}
return 0;
{
TCollection_AsciiString entry;
TDF_Tool::Entry(cni.Value()->Label(), entry);
- //cout<<entry<<endl;
+ //std::cout<<entry<<std::endl;
di <<entry<<"\n";
return 0;
}
{
Handle(DDocStd_DrawDocument) DD = Handle(DDocStd_DrawDocument)::DownCast (Draw::GetExisting (Name));
if (DD.IsNull()) {
- if (Complain) cout << Name << " is not a Document" << endl;
+ if (Complain) std::cout << Name << " is not a Document" << std::endl;
return Standard_False;
}
Handle(TDocStd_Document) STDDOC = DD->GetDocument();
DOC = STDDOC;
return Standard_True;
}
- if (Complain) cout << Name << " is not a CAF Document" << endl;
+ if (Complain) std::cout << Name << " is not a CAF Document" << std::endl;
return Standard_False;
}
{
Label.Nullify();
TDF_Tool::Label(D->GetData(),Entry,Label,Standard_False);
- if (Label.IsNull() && Complain) cout<<"No label for entry "<<Entry<<endl;
+ if (Label.IsNull() && Complain) std::cout<<"No label for entry "<<Entry<<std::endl;
return !Label.IsNull();
}
TDF_Label L;
if (Find(D,Entry,L,Complain)) {
if (L.FindAttribute(ID,A)) return Standard_True;
- if (Complain) cout <<"attribute not found for entry : "<< Entry <<endl;
+ if (Complain) std::cout <<"attribute not found for entry : "<< Entry <<std::endl;
}
return Standard_False;
}
if (D->IsSaved()) {
TCollection_AsciiString GetNameAsciiString(D->GetName().ToExtString(),'?');
TCollection_AsciiString GetPathAsciiString(D->GetPath().ToExtString(),'?');
- //cout << " name : " << D->GetName();
- //cout << " path : " << D->GetPath();
+ //std::cout << " name : " << D->GetName();
+ //std::cout << " path : " << D->GetPath();
di << " name : " << GetNameAsciiString.ToCString();
di << " path : " << GetPathAsciiString.ToCString();
}
{
if (nb == 2) {
TDocStd_PathParser path (a[1]);
- //cout << "Trek : " << path.Trek() << endl;
- //cout << "Name : " << path.Name() << endl;
- //cout << "Extension : " << path.Extension() << endl;
- //cout << "Path : " << path.Path() << endl;
+ //std::cout << "Trek : " << path.Trek() << std::endl;
+ //std::cout << "Name : " << path.Name() << std::endl;
+ //std::cout << "Extension : " << path.Extension() << std::endl;
+ //std::cout << "Path : " << path.Path() << std::endl;
TCollection_AsciiString TrekAsciiString(path.Trek().ToExtString(),'?');
TCollection_AsciiString NameAsciiString(path.Name().ToExtString(),'?');
TCollection_AsciiString ExtensionAsciiString(path.Extension().ToExtString(),'?');
for (int i = 1; i <= comments.Length(); i++)
{
- //cout << comments(i) << endl;
+ //std::cout << comments(i) << std::endl;
TCollection_AsciiString commentAsciiString(comments(i).ToExtString(),'?');
di << commentAsciiString.ToCString() << "\n";
}
Handle(TDocStd_Document) D;
if (n == 2) {
if (!DDocStd::GetDocument(a[1],D)) return 1;
- //cout << "FORMAT : " << D->StorageFormat() << endl;
+ //std::cout << "FORMAT : " << D->StorageFormat() << std::endl;
di << "FORMAT : ";
Standard_SStream aStream;
D->StorageFormat().Print(aStream);
di << "DOCUMENT : not saved";
di << "\n";
// format
- //cout << "FORMAT : " << D->StorageFormat();
+ //std::cout << "FORMAT : " << D->StorageFormat();
di << "FORMAT : ";
Standard_SStream aStream;
D->StorageFormat().Print(aStream);
di << " undos :" << D->GetAvailableUndos() << " ";
di << " redos :" << D->GetAvailableRedos();
di << "\n";
- // cout << "CURRENT :";
+ // std::cout << "CURRENT :";
// TCollection_AsciiString string;
// TDF_Tool::Entry(D->CurrentLabel(),string);
- // cout << string;
- // cout << endl;
+ // std::cout << string;
+ // std::cout << std::endl;
// modified
di << "MODIFIED : ";
if (D->IsModified()) di << "true";
// Handle(TDocStd_Document) D;
// if (!DDocStd::GetDocument(a[1],D)) return 1;
// if (D->IsValid()) {
-// cout << "the document is valid" << endl;
+// std::cout << "the document is valid" << std::endl;
// return 0;
// }
// Handle(TDesign_Function) F;
// if (!D->Main().FindAttribute(TDesign_Function::GetID(),F)) {
-// cout << "no function found at main" << endl;
+// std::cout << "no function found at main" << std::endl;
// return 0;
// }
// TFunction_Logbook mdf (Standard_True);
DDF_Data::Dump(S);
}
else {
- S << myDocument->DynamicType()->Name() << " is not a CAF document" << endl;
+ S << myDocument->DynamicType()->Name() << " is not a CAF document" << std::endl;
}
}
return 1;
}
di << "*** Dump of MTM ***\n";
- //sMultiTransactionManager->DumpTransaction(cout);
+ //sMultiTransactionManager->DumpTransaction(std::cout);
Standard_SStream aStream;
sMultiTransactionManager->DumpTransaction(aStream);
di << aStream;
Standard_Boolean Found = DDF::AddLabel (DF, LabelName, Label);
if (!Found) {
#ifdef OCCT_DEBUG
- cout <<"no labels"<<endl;
+ std::cout <<"no labels"<<std::endl;
#endif
return S;
}
S = TNaming_Tool::CurrentShape(NS);
if (S.IsNull())
#ifdef OCCT_DEBUG
- cout <<"current shape from "<< LabelName <<" is deleted"<<endl;
+ std::cout <<"current shape from "<< LabelName <<" is deleted"<<std::endl;
#endif
return S;
}
Handle(Geom_Surface) aSurf = BRep_Tool::Surface(TopoDS::Face(theShape));
#ifdef OCCT_DEBUG
Standard_CString s = aSurf->DynamicType()->Name();
- cout<<"Surface Dynamic TYPE = "<<s<<endl;
+ std::cout<<"Surface Dynamic TYPE = "<<s<<std::endl;
#endif
if (aSurf->DynamicType() == STANDARD_TYPE(Geom_RectangularTrimmedSurface))
aSurf = Handle(Geom_RectangularTrimmedSurface)::DownCast (aSurf)->BasisSurface();
return 0;
}
- //TNaming::Print(NS->Evolution(),cout);
+ //TNaming::Print(NS->Evolution(),std::cout);
Standard_SStream aStream;
TNaming::Print(NS->Evolution(),aStream);
di << aStream << "\n";
DDF::ReturnLabel(di, L);
return 0;
}
- cout << "DNaming_NewShape : Error" << endl;
+ std::cout << "DNaming_NewShape : Error" << std::endl;
return 1;
}
//=======================================================================
aLab.FindAttribute(TNaming_NamedShape::GetID(), anObjectNS);
if (anObjectNS.IsNull() || anObjectNS->IsEmpty()) {
#ifdef OCCT_DEBUG
- cout<<"BooleanOperationDriver:: Object is empty"<<endl;
+ std::cout<<"BooleanOperationDriver:: Object is empty"<<std::endl;
#endif
aFunction->SetFailure(WRONG_ARGUMENT);
return -1;
if (aToolNS.IsNull() || aToolNS->IsEmpty()) {
#ifdef OCCT_DEBUG
- cout<<"BooleanOperationDriver:: Tool is empty"<<endl;
+ std::cout<<"BooleanOperationDriver:: Tool is empty"<<std::endl;
#endif
aFunction->SetFailure(WRONG_ARGUMENT);
return -1;
TopoDS_Shape anOBJECT = anObjectNS->Get();
if (aTOOL.IsNull() || anOBJECT.IsNull()) {
#ifdef OCCT_DEBUG
- cout<<"BooleanOperationDriver:: Tool is null"<<endl;
+ std::cout<<"BooleanOperationDriver:: Tool is null"<<std::endl;
#endif
aFunction->SetFailure(WRONG_ARGUMENT);
return -1;
const TopoDS_Shape& ToolSh = MS.Shape2();
if (ResSh.IsNull()) {
#ifdef OCCT_DEBUG
- cout<<"LoadFuseNamingDS: The result of the boolean operation is null"<<endl;
+ std::cout<<"LoadFuseNamingDS: The result of the boolean operation is null"<<std::endl;
#endif
return;
}
const TopoDS_Shape& ToolSh = MS.Shape2();
if (ResSh.IsNull()) {
#ifdef OCCT_DEBUG
- cout<<"LoadSectionNamingDS: The result of the boolean operation is null"<<endl;
+ std::cout<<"LoadSectionNamingDS: The result of the boolean operation is null"<<std::endl;
#endif
return;
}
Handle(TNaming_NamedShape) aNSAxis = DNaming::GetObjectValue(anObject);
if (aNSAxis->IsEmpty()) {
#ifdef OCCT_DEBUG
- cout<<"CylinderDriver:: Axis is empty"<<endl;
+ std::cout<<"CylinderDriver:: Axis is empty"<<std::endl;
#endif
aFunction->SetFailure(WRONG_AXIS);
return -1;
TopoDS_Shape aTopoDSAxis = aNSAxis->Get();
if (aTopoDSAxis.IsNull()) {
#ifdef OCCT_DEBUG
- cout<<"CylinderDriver:: Axis is null"<<endl;
+ std::cout<<"CylinderDriver:: Axis is null"<<std::endl;
#endif
aFunction->SetFailure(WRONG_AXIS);
return -1;
// Creation of gp axis (gp_Ax2):
if (aTopoDSAxis.ShapeType() != TopAbs_EDGE && aTopoDSAxis.ShapeType() != TopAbs_WIRE) {
#ifdef OCCT_DEBUG
- cout<<"CylinderDriver:: Wrong axis, ShapeType = " << aTopoDSAxis.ShapeType() <<endl;
+ std::cout<<"CylinderDriver:: Wrong axis, ShapeType = " << aTopoDSAxis.ShapeType() <<std::endl;
#endif
aFunction->SetFailure(WRONG_AXIS);
return -1;
}
} else {
#ifdef OCCT_DEBUG
- cout<<"CylinderDriver:: I don't support wires for a while"<<endl;
+ std::cout<<"CylinderDriver:: I don't support wires for a while"<<std::endl;
#endif
aFunction->SetFailure(WRONG_AXIS);
return -1;
aLab.FindAttribute(TNaming_NamedShape::GetID(), aContextNS);
if (aContextNS.IsNull() || aContextNS->IsEmpty()) {
#ifdef OCCT_DEBUG
- cout<<"FilletDriver:: Context is empty"<<endl;
+ std::cout<<"FilletDriver:: Context is empty"<<std::endl;
#endif
aFunction->SetFailure(WRONG_ARGUMENT);
return -1;
if(aRadius < Precision::Confusion()) {
aFunction->SetFailure(WRONG_ARGUMENT);
#ifdef OCCT_DEBUG
- cout << "FilletDriver:: Radius < Precision::Confusion" << endl;
+ std::cout << "FilletDriver:: Radius < Precision::Confusion" << std::endl;
#endif
return -1;
}
Handle(TNaming_NamedShape) aPathNS = DNaming::GetObjectValue(aPathObj);
if (aPathNS.IsNull() || aPathNS->IsEmpty()) {
#ifdef OCCT_DEBUG
- cout<<"FilletDriver:: Path is empty"<<endl;
+ std::cout<<"FilletDriver:: Path is empty"<<std::endl;
#endif
aFunction->SetFailure(WRONG_ARGUMENT);
return -1;
TopoDS_Shape aCONTEXT = aContextNS->Get();
if (aPATH.IsNull() || aCONTEXT.IsNull()) {
#ifdef OCCT_DEBUG
- cout<<"FilletDriver:: Path or Context is null"<<endl;
+ std::cout<<"FilletDriver:: Path or Context is null"<<std::endl;
#endif
aFunction->SetFailure(WRONG_ARGUMENT);
return -1;
aShape1 = aNS1->Get();
const gp_Pnt aDebPoint = BRep_Tool::Pnt(TopoDS::Vertex(aShape1));
(void )aDebPoint;
- // cout << aCounter << " X = " << aDebPoint.X() << " Y = " << aDebPoint.Y() << " Z = " << aDebPoint.Z() << endl;
+ // std::cout << aCounter << " X = " << aDebPoint.X() << " Y = " << aDebPoint.Y() << " Z = " << aDebPoint.Z() << std::endl;
} else
- cout << " Line3DDriver:: NS1 is empty" << endl;
+ std::cout << " Line3DDriver:: NS1 is empty" << std::endl;
if(!aNS2->IsEmpty()) {
aShape2 = aNS2->Get();
const gp_Pnt aDebPoint = BRep_Tool::Pnt(TopoDS::Vertex(aShape2));
(void )aDebPoint;
- // cout << aCounter+1 << " X = " << aDebPoint.X() << " Y = " << aDebPoint.Y() << " Z = " << aDebPoint.Z() << endl;
+ // std::cout << aCounter+1 << " X = " << aDebPoint.X() << " Y = " << aDebPoint.Y() << " Z = " << aDebPoint.Z() << std::endl;
} else
- cout << " Line3DDriver:: NS2 is empty" << endl;
+ std::cout << " Line3DDriver:: NS2 is empty" << std::endl;
#endif
if(aNS1->IsEmpty() || aNS2->IsEmpty() ||
aNS1->Get().IsNull() || aNS2->Get().IsNull()) {
#ifdef OCCT_DEBUG
const gp_Pnt aDebPoint1 = BRep_Tool::Pnt(TopoDS::Vertex(aShape1));
const gp_Pnt aDebPoint2 = BRep_Tool::Pnt(TopoDS::Vertex(aShape2));
- // cout << aCounter << " X = " << aDebPoint1.X() << " Y = " << aDebPoint1.Y() << " Z = " << aDebPoint1.Z() << endl;
- // cout << aCounter+1 << " X = " << aDebPoint2.X() << " Y = " << aDebPoint2.Y() << " Z = " << aDebPoint2.Z() << endl;
+ // std::cout << aCounter << " X = " << aDebPoint1.X() << " Y = " << aDebPoint1.Y() << " Z = " << aDebPoint1.Z() << std::endl;
+ // std::cout << aCounter+1 << " X = " << aDebPoint2.X() << " Y = " << aDebPoint2.Y() << " Z = " << aDebPoint2.Z() << std::endl;
(void )aDebPoint1;
(void )aDebPoint2;
#endif
else if(name == "Section")
aDrv = new DNaming_BooleanOperationDriver();
else
- cout << "the specified driver is not supported" <<endl;
+ std::cout << "the specified driver is not supported" <<std::endl;
return aDrv;
}
//=======================================================================
if(!GetFuncGUID(theArg[i],drvGUID)) continue;
aFunctionDrvTable->AddDriver(drvGUID, GetDriver(theArg[i]));
#ifdef OCCT_DEBUG
- cout << "DNaming_AddDriver : " << theArg[i] << " driver is added" <<endl;
+ std::cout << "DNaming_AddDriver : " << theArg[i] << " driver is added" <<std::endl;
#endif
}
return 0;
}
#ifdef OCCT_DEBUG
- cout << "DNaming_AddDriver : Error" << endl;
+ std::cout << "DNaming_AddDriver : Error" << std::endl;
#endif
return 1;
}
DDF::ReturnLabel(theDI, anObj->Label());
return 0;
}
- cout << "DNaming_AddBox : Error" << endl;
+ std::cout << "DNaming_AddBox : Error" << std::endl;
return 1;
}
return 0;
}
}
- cout << "DNaming_BoxDX : Error" << endl;
+ std::cout << "DNaming_BoxDX : Error" << std::endl;
return 1;
}
return 0;
}
}
- cout << "DNaming_BoxDY : Error" << endl;
+ std::cout << "DNaming_BoxDY : Error" << std::endl;
return 1;
}
return 0;
}
}
- cout << "DNaming_BoxDZ : Error" << endl;
+ std::cout << "DNaming_BoxDZ : Error" << std::endl;
return 1;
}
TCollection_AsciiString entry;
TDF_Tool::Entry(FatherLab, entry);
#ifdef OCCT_DEBUG
- cout << "DNaming_SolveFlatFrom: Father label = " << entry << endl;
+ std::cout << "DNaming_SolveFlatFrom: Father label = " << entry << std::endl;
#endif
Handle(TFunction_Logbook) logbook = TFunction_Logbook::Set(FatherLab);
Standard_Boolean found(Standard_False);
Handle(TFunction_Function) aFun;
funLabel.FindAttribute(TFunction_Function::GetID(), aFun);
if(aFun.IsNull()) {
- cout << "DNaming_SolveFlatFrom:: Null function is found!" << endl;
+ std::cout << "DNaming_SolveFlatFrom:: Null function is found!" << std::endl;
continue;
}
else {
logbook->Clear();
Standard_Integer aRes = ComputeFunction(aFun, logbook);
if(aRes != 0) {
- cout << "DNaming_SolveFlatFrom: Driver failed at label = " << entry << endl;
+ std::cout << "DNaming_SolveFlatFrom: Driver failed at label = " << entry << std::endl;
return 1;
}
#ifdef OCCT_DEBUG
- cout <<"DNaming_SolveFlatFrom : function from label " << entry << " is recomputed" << endl;
+ std::cout <<"DNaming_SolveFlatFrom : function from label " << entry << " is recomputed" << std::endl;
#endif
} catch (EXCEPTION) {
- cout <<"DNaming_SolveFlatFrom : Exception computing function at label " << entry << endl;
+ std::cout <<"DNaming_SolveFlatFrom : Exception computing function at label " << entry << std::endl;
}
}
}
return 0;
}
ERR:
- cout << "DNaming_SolveFlatFrom : Error" << endl;
+ std::cout << "DNaming_SolveFlatFrom : Error" << std::endl;
return 1;
}
Handle(TFunction_Logbook) logbook = TFunction_Logbook::Set(aDoc->Main());
if(logbook->IsEmpty()) {
#ifdef OCCT_DEBUG
- cout << "DNaming_InitLogBook : is empty" <<endl;
+ std::cout << "DNaming_InitLogBook : is empty" <<std::endl;
#endif
}
else {
logbook->Clear();
#ifdef OCCT_DEBUG
- cout << "DNaming_InitLogBook : cleaned" <<endl;
+ std::cout << "DNaming_InitLogBook : cleaned" <<std::endl;
#endif
}
return 0;
}
- cout << "DNaming_InitLogBook : Error - No document ==> " <<theNb <<endl;
+ std::cout << "DNaming_InitLogBook : Error - No document ==> " <<theNb <<std::endl;
return 1;
}
if (!DDocStd::GetDocument(aDocS, aDoc)) return 1;
Handle(TFunction_Logbook) logbook = TFunction_Logbook::Set(aDoc->Main());
if(logbook->IsEmpty())
- cout << "DNaming_CheckLogBook : is empty" <<endl;
+ std::cout << "DNaming_CheckLogBook : is empty" <<std::endl;
else {
const TDF_LabelMap& aMap = logbook->GetValid();
TDF_MapIteratorOfLabelMap it(aMap);
TCollection_AsciiString entry;
- cout << "DNaming_CheckLogBook : LogBook current state:" <<endl;
+ std::cout << "DNaming_CheckLogBook : LogBook current state:" <<std::endl;
for (;it.More();it.Next()) {
TDF_Tool::Entry(it.Key(), entry);
- cout << entry <<endl;
+ std::cout << entry <<std::endl;
}
}
return 0;
}
- cout << "DNaming_CheckLogBook : Error - No document ==> " <<theNb <<endl;
+ std::cout << "DNaming_CheckLogBook : Error - No document ==> " <<theNb <<std::endl;
return 1;
}
Handle(TFunction_Logbook) logbook = TFunction_Logbook::Set(funLabel);
Standard_Integer aRes = ComputeFunction(aFun, logbook);
if(aRes != 0) {
- cout << "DNaming_ComputeFun : No Driver or Driver failed" << endl;
+ std::cout << "DNaming_ComputeFun : No Driver or Driver failed" << std::endl;
return 1;
}
#ifdef OCCT_DEBUG
- cout <<"DNaming_ComputeFun : function from label " << theArg[2] << " is recomputed" << endl;
+ std::cout <<"DNaming_ComputeFun : function from label " << theArg[2] << " is recomputed" << std::endl;
#endif
return 0;
}
}
- cout << "DNaming_ComputeFun : Error" << endl;
+ std::cout << "DNaming_ComputeFun : Error" << std::endl;
return 1;
}
Handle(TNaming_NamedShape) aCont = DNaming::GetObjectValue(aContext);
#ifdef OCCT_DEBUG
if(aCont.IsNull() || aCont->IsEmpty())
- cout <<"Wrong Context ..." <<endl;
+ std::cout <<"Wrong Context ..." <<std::endl;
#endif
try{
TopoDS_Shape aCONTEXT = aCont->Get();
return 1;
}
catch (Standard_Failure const&) {
- cout << "EXCEPTION: SELECTION_IMPOSSIBLE" <<endl;
+ std::cout << "EXCEPTION: SELECTION_IMPOSSIBLE" <<std::endl;
}
if(!aCont.IsNull()) {
#ifdef OCCT_DEBUG
TCollection_AsciiString entry;
TDF_Tool::Entry(aCont->Label(), entry);
- cout << "ContextNS Label = " << entry <<endl;
+ std::cout << "ContextNS Label = " << entry <<std::endl;
#endif
Handle(TFunction_Function) aCntFun;
if(aCont->Label().Father().FindAttribute(TFunction_Function::GetID(), aCntFun)) { //Fun:2 ==> result
}
} //###
}
- cout << "DNaming_AttachShape : Error" << endl;
+ std::cout << "DNaming_AttachShape : Error" << std::endl;
return 1;
}
Handle(TNaming_NamedShape) aCont = DNaming::GetObjectValue(aContext);
if(aCont.IsNull() || aCont->IsEmpty())
- cout <<"Wrong Context ..." <<endl;
+ std::cout <<"Wrong Context ..." <<std::endl;
else {
TopoDS_Shape aCONTEXT = aCont->Get();
try{
return 1;
}
catch (Standard_Failure const&) {
- cout << "EXCEPTION: SELECTION_IMPOSSIBLE" <<endl;
+ std::cout << "EXCEPTION: SELECTION_IMPOSSIBLE" <<std::endl;
}
TDF_Reference::Set(aFun->Label().FindChild(FUNCTION_ARGUMENTS_LABEL).FindChild(ATTACH_ARG),
}
}
}
- cout << "DNaming_XAttachShape : Error" << endl;
+ std::cout << "DNaming_XAttachShape : Error" << std::endl;
return 1;
}
DDF::ReturnLabel(theDI, anObj->Label());
return 0;
}
- cout << "DNaming_AddCylinder : Error" << endl;
+ std::cout << "DNaming_AddCylinder : Error" << std::endl;
return 1;
}
return 0;
}
}
- cout << "DNaming_CylRadius : Error" << endl;
+ std::cout << "DNaming_CylRadius : Error" << std::endl;
return 1;
}
DDF::ReturnLabel(theDI, aFun->Label());
return 0;
}
- cout << "DModel_AddFuse : Error" << endl;
+ std::cout << "DModel_AddFuse : Error" << std::endl;
return 1;
}
DDF::ReturnLabel(theDI, aFun->Label());
return 0;
}
- cout << "DModel_AddCut : Error" << endl;
+ std::cout << "DModel_AddCut : Error" << std::endl;
return 1;
}
DDF::ReturnLabel(theDI, aFun->Label());
return 0;
}
- cout << "DModel_AddComm : Error" << endl;
+ std::cout << "DModel_AddComm : Error" << std::endl;
return 1;
}
DDF::ReturnLabel(theDI, aFun->Label());
return 0;
}
- cout << "DModel_AddSection : Error" << endl;
+ std::cout << "DModel_AddSection : Error" << std::endl;
return 1;
}
const char** theArg)
{
if (theNb < 5) {
- cout<<"DNaming_AddFillet(): Wrong number of arguments"<<endl;
+ std::cout<<"DNaming_AddFillet(): Wrong number of arguments"<<std::endl;
return 1;
}
{
if (nb > 3) {
#ifdef OCCT_DEBUG
- cout << "NB = " << nb <<endl;
+ std::cout << "NB = " << nb <<std::endl;
#endif
Handle(TDocStd_Document) aDocument;
Standard_CString aDocS(a[1]);
Standard_Real aDx=0., aDy=0., aDz=0.;
aDx = Draw::Atof(a[3]);
- //cout << "DX = " << aDx<<endl;
+ //std::cout << "DX = " << aDx<<std::endl;
if(nb > 4) {
aDy = Draw::Atof(a[4]);
- //cout << "DY = " << aDy<<endl;
+ //std::cout << "DY = " << aDy<<std::endl;
if(nb > 5) {
aDz = Draw::Atof(a[5]);
- //cout << "DZ = " << aDz<<endl;
+ //std::cout << "DZ = " << aDz<<std::endl;
}
}
DDF::ReturnLabel(di, aFun->Label());
return 0;
}
- cout << "DNaming_Translate : Error" << endl;
+ std::cout << "DNaming_Translate : Error" << std::endl;
return 1;
}
//=======================================================================
{
if (nb > 4) {
#ifdef OCCT_DEBUG
- cout << "NB = " << nb <<endl;
+ std::cout << "NB = " << nb <<std::endl;
#endif
Handle(TDocStd_Document) aDocument;
Standard_CString aDocS(a[1]);
DDF::ReturnLabel(di, aFun->Label());
return 0;
}
- cout << "DNaming_PTranslateAlongLine : Error" << endl;
+ std::cout << "DNaming_PTranslateAlongLine : Error" << std::endl;
return 1;
}
DDF::ReturnLabel(di, aFun->Label());
return 0;
}
- cout << "DNaming_PRotateRoundLine : Error" << endl;
+ std::cout << "DNaming_PRotateRoundLine : Error" << std::endl;
return 1;
}
DDF::ReturnLabel(di, aFun->Label());
return 0;
}
- cout << "DNaming_PMirrorObject : Error" << endl;
+ std::cout << "DNaming_PMirrorObject : Error" << std::endl;
return 1;
}
//=======================================================================
const char** theArg)
{
if (theNb < 5 ) {
- cout<<"DNaming_AddPrism(): Wrong number of arguments"<<endl;
+ std::cout<<"DNaming_AddPrism(): Wrong number of arguments"<<std::endl;
return 1;
}
//
}
}
- cout << "DNaming_PrismHeight : Error" << endl;
+ std::cout << "DNaming_PrismHeight : Error" << std::endl;
return 1;
}
const char** theArg)
{
if (theNb < 4 ) {
- cout<<"DNaming_AddRevol(): Wrong number of arguments"<<endl;
+ std::cout<<"DNaming_AddRevol(): Wrong number of arguments"<<std::endl;
return 1;
}
return 0;
}
}
- cout << "DNaming_RevolutionAngle : Error" << endl;
+ std::cout << "DNaming_RevolutionAngle : Error" << std::endl;
return 1;
}
const char** theArg)
{
if (theNb != 4) {
- cout<<"DNaming_AddSphere(): Wrong number of arguments"<<endl;
+ std::cout<<"DNaming_AddSphere(): Wrong number of arguments"<<std::endl;
return 1;
}
Handle(TDocStd_Document) aDocument;
}
}
- cout << "DNaming_SphRadius : Error" << endl;
+ std::cout << "DNaming_SphRadius : Error" << std::endl;
return 1;
}
//=======================================================================
DDF::ReturnLabel(theDI, anObj->Label());
return 0;
}
- cout << "DNaming_AddPoint : Error" << endl;
+ std::cout << "DNaming_AddPoint : Error" << std::endl;
return 1;
}
DDF::ReturnLabel(theDI, anObj->Label());
return 0;
}
- cout << "DNaming_AddPoint : Error" << endl;
+ std::cout << "DNaming_AddPoint : Error" << std::endl;
return 1;
}
if(isDX || isDY || isDZ)
DDF::ReturnLabel(theDI, objLabel);
else
- cout <<"DNaming_PntOffset : Nothing changed" << endl;
+ std::cout <<"DNaming_PntOffset : Nothing changed" << std::endl;
return 0;
}
}
- cout << "DNaming_PntOffset : Error" << endl;
+ std::cout << "DNaming_PntOffset : Error" << std::endl;
return 1;
}
const char** theArg)
{
if (theNb < 5) {
- cout<<"DNaming_AddLine3D: Wrong number of arguments"<<endl;
+ std::cout<<"DNaming_AddLine3D: Wrong number of arguments"<<std::endl;
return 1;
}
Handle(TDocStd_Document) aDocument;
if(!aSelector.Select(Selection, aContext, Geometry, KeepOrientation))
return Standard_False;
}catch (...) {
- cout << "EXCEPTION: SELECTION_IMPOSSIBLE" <<endl;
+ std::cout << "EXCEPTION: SELECTION_IMPOSSIBLE" <<std::endl;
}
if(!aNS.IsNull()) {
//TCollection_AsciiString entry;
//TDF_Tool::Entry(aNS->Label(), entry);
- //cout << "ContextNS Label = " << entry <<endl;
+ //std::cout << "ContextNS Label = " << entry <<std::endl;
Handle(TFunction_Function) aCntFun;
if(aNS->Label().Father().FindAttribute(TFunction_Function::GetID(), aCntFun)) { //Fun:2 ==> result
// First argument of Selection function refers to father function (of context object)
if(!aSelector.Select(Selection, aContext, Geometry, KeepOrientation))
return Standard_False;
}catch (...) {
- cout << "EXCEPTION: SELECTION_IMPOSSIBLE" <<endl;
+ std::cout << "EXCEPTION: SELECTION_IMPOSSIBLE" <<std::endl;
}
if(!aNS.IsNull()) {
//TCollection_AsciiString entry;
//TDF_Tool::Entry(aNS->Label(), entry);
- //cout << "ContextNS Label = " << entry <<endl;
+ //std::cout << "ContextNS Label = " << entry <<std::endl;
Handle(TFunction_Function) aCntFun;
if(aNS->Label().Father().FindAttribute(TFunction_Function::GetID(), aCntFun)) { //Fun:2 ==> result
// First argument of Selection function refers to father function (of context object)
TCollection_AsciiString entry;
TDF_Tool::Entry(FirstAuxObj->Label(), entry);
#ifdef OCCT_DEBUG
- cout << "First Selection function at " << entry <<endl;
+ std::cout << "First Selection function at " << entry <<std::endl;
#endif
}
Standard_Boolean isSelected (Standard_False);
}
}
catch (Standard_Failure const& anException) {
- cout << "%%%INFO:Error: ::TestSingleSelection failed :";
- cout << anException.GetMessageString() << endl;
+ std::cout << "%%%INFO:Error: ::TestSingleSelection failed :";
+ std::cout << anException.GetMessageString() << std::endl;
}
catch(...) {
- cout << "%%%INFO:Error: ::TestSingleSelection selection failed : unknown exception type";
+ std::cout << "%%%INFO:Error: ::TestSingleSelection selection failed : unknown exception type";
}
TCollection_AsciiString entry;
TDF_Tool::Entry(auxObj->Label(), entry);
}
if(aResult.Length()) {
if(aResult.Search("Warning") == -1)
- cout << "Failed units: " << aResult << " at " << entry << endl;
+ std::cout << "Failed units: " << aResult << " at " << entry << std::endl;
else
- cout << aResult << " at " << entry << endl;
+ std::cout << aResult << " at " << entry << std::endl;
TDataStd_Name::Set(auxObj->Label(), aResult);
}
}
if(aFailedList.Extent()) {
- cout << "Failed units are kept at: ";
+ std::cout << "Failed units are kept at: ";
TopTools_ListIteratorOfListOfShape it1(aFailedList);
for(; it1.More(); it1.Next()) {
const TDF_Label& aLabel = TDF_TagSource::NewChild(aDoc->Main());
B.Generated(it1.Value());
TCollection_AsciiString entry;
TDF_Tool::Entry(aLabel, entry);
- cout << "\t" <<entry <<endl;
+ std::cout << "\t" <<entry <<std::endl;
}
}
if(!FirstAuxObj.IsNull())
}
}
- cout << "DNaming_TestSingle : Error" << endl;
+ std::cout << "DNaming_TestSingle : Error" << std::endl;
return 1;
}
#ifdef OCCT_DEBUG
TCollection_AsciiString entry;
TDF_Tool::Entry(FirstAuxObj->Label(), entry);
- cout << "First Selection function at " << entry <<endl;
+ std::cout << "First Selection function at " << entry <<std::endl;
#endif
}
Standard_Boolean isSelected (Standard_False);
}
}
catch (Standard_Failure const& anException) {
- cout << "%%%INFO:Error: ::TestSingleSelection failed :";
- cout << anException.GetMessageString() << endl;
+ std::cout << "%%%INFO:Error: ::TestSingleSelection failed :";
+ std::cout << anException.GetMessageString() << std::endl;
}
catch(...) {
- cout << "%%%INFO:Error: ::TestSingleSelection selection failed : unknown exception type";
+ std::cout << "%%%INFO:Error: ::TestSingleSelection selection failed : unknown exception type";
}
TCollection_AsciiString entry;
TDF_Tool::Entry(auxObj->Label(), entry);
aFailedList.Append(aCurShape);
}
if(aResult.Length())
- cout << "Failed units: " << aResult << endl;
+ std::cout << "Failed units: " << aResult << std::endl;
}
if(aFailedList.Extent()) {
}
}
- cout << "DNaming_TestMultiple : Error" << endl;
+ std::cout << "DNaming_TestMultiple : Error" << std::endl;
return 1;
}
Handle(TNaming_NamedShape) aRefPntNS = DNaming::GetObjectValue(aRefPnt);
if (aRefPntNS.IsNull() || aRefPntNS->IsEmpty()) {
#ifdef OCCT_DEBUG
- cout<<"PointDriver:: Ref Point is empty"<<endl;
+ std::cout<<"PointDriver:: Ref Point is empty"<<std::endl;
#endif
aFunction->SetFailure(WRONG_ARGUMENT);
return -1;
static void Write(const TopoDS_Shape& shape,
const Standard_CString filename)
{
- ofstream save;
+ std::ofstream save;
save.open(filename);
- save << "DBRep_DrawableShape" << endl << endl;
+ save << "DBRep_DrawableShape" << std::endl << std::endl;
if(!shape.IsNull()) BRepTools::Write(shape, save);
save.close();
}
}
if(!anAxisOK) {
#ifdef OCCT_DEBUG
- cout<<"RevolutionDriver:: Axis is not correct"<<endl;
+ std::cout<<"RevolutionDriver:: Axis is not correct"<<std::endl;
#endif
aFunction->SetFailure(WRONG_ARGUMENT);
return -1;
#ifdef OCCT_DEBUG
else {
if(MS.HasDegenerated())
- cout <<"mkRevol has degenerated" <<endl;
- cout << "BRep_Tool found degenerated edge (from Vfirst) TS = " << it.Value().TShape().get() <<endl;
+ std::cout <<"mkRevol has degenerated" <<std::endl;
+ std::cout << "BRep_Tool found degenerated edge (from Vfirst) TS = " << it.Value().TShape().get() <<std::endl;
}
#endif
}
#ifdef OCCT_DEBUG
else {
if(MS.HasDegenerated())
- cout <<"mkRevol has degenerated" <<endl;
- cout << "BRep_Tool found degenerated edge (from Vlast) TS = " << it.Value().TShape().get() <<endl;
+ std::cout <<"mkRevol has degenerated" <<std::endl;
+ std::cout << "BRep_Tool found degenerated edge (from Vlast) TS = " << it.Value().TShape().get() <<std::endl;
}
#endif
}
#ifdef OCCT_DEBUG
else {
if(MS.HasDegenerated())
- cout <<"mkRevol has degenerated" <<endl;
- cout << "BRep_Tool found degenerated edge (from Vfirst) TS = " << it.Value().TShape().get() <<endl;
+ std::cout <<"mkRevol has degenerated" <<std::endl;
+ std::cout << "BRep_Tool found degenerated edge (from Vfirst) TS = " << it.Value().TShape().get() <<std::endl;
}
#endif
}
#ifdef OCCT_DEBUG
else {
if(MS.HasDegenerated())
- cout <<"mkRevol has degenerated" <<endl;
- cout << "BRep_Tool found degenerated edge (from Vlast) TS = " << it.Value().TShape().get() <<endl;
+ std::cout <<"mkRevol has degenerated" <<std::endl;
+ std::cout << "BRep_Tool found degenerated edge (from Vlast) TS = " << it.Value().TShape().get() <<std::endl;
}
#endif
}
{
TCollection_AsciiString Entry;
const TNaming_Name& AName = naming->GetName();
- //TNaming::Print(AName.Type(),cout);
+ //TNaming::Print(AName.Type(),std::cout);
Standard_SStream aStream1;
TNaming::Print(AName.Type(),aStream1);
di << aStream1;
di << " ";
- //TopAbs::Print(AName.ShapeType(),cout);
+ //TopAbs::Print(AName.ShapeType(),std::cout);
Standard_SStream aStream2;
TopAbs::Print(AName.ShapeType(),aStream2);
di << aStream2;
#ifdef OCCT_DEBUG_SELN
TCollection_AsciiString entr1;
TDF_Tool::Entry(theLabel, entr1);
- cout<<"\tNaming Attribute at = "<< entr1 <<endl;
+ std::cout<<"\tNaming Attribute at = "<< entr1 <<std::endl;
#endif
TDF_ChildIterator itr(theLabel, Standard_True);
for ( ;itr.More(); itr.Next()) {
if(aNaming.IsNull()) continue;
#ifdef OCCT_DEBUG_SELN
TDF_Tool::Entry(aLabel, entr1);
- cout<<"\tNaming Attribute at = "<< entr1 <<endl;
+ std::cout<<"\tNaming Attribute at = "<< entr1 <<std::endl;
#endif
TDF_Tool::OutReferences(aLabel,anExtMap);
for (TDF_MapIteratorOfAttributeMap attMItr(anExtMap);attMItr.More(); attMItr.Next()) {
Handle(TDF_Attribute) att = attMItr.Key();
#ifdef OCCT_DEBUG_SELN
TDF_Tool::Entry(att->Label(), entr1);
- cout<<"## References attribute dynamic type = "<<att->DynamicType()<<" at Label = "<<entr1 <<endl;
+ std::cout<<"## References attribute dynamic type = "<<att->DynamicType()<<" at Label = "<<entr1 <<std::endl;
#endif
if (att->Label().IsDifferent(aLabel) && !att->Label().IsDescendant(theLabel)) {
theValidMap.Add(att->Label());
Handle(TNaming_Naming) naming;
if (!L.FindAttribute(TNaming_Naming::GetID(),naming)) {
- cout <<"DNaming__SolveSelection : not a selection" << endl;
+ std::cout <<"DNaming__SolveSelection : not a selection" << std::endl;
return 1;
}
TDF_LabelMap aValidMap;
if(!FillValidMap(L,aValidMap))
di << "Valid map is empty\n";
#ifdef OCCT_DEBUG_SELN
- cout<<"== Valid Label map =="<<endl;
+ std::cout<<"== Valid Label map =="<<std::endl;
for (TDF_MapIteratorOfLabelMap mapItr(aValidMap);mapItr.More(); mapItr.Next()) {
const TDF_Label& aLab = mapItr.Key();
TCollection_AsciiString entr1;
TDF_Tool::Entry(aLab, entr1);
- cout<<" Label = "<<entr1 <<endl;
+ std::cout<<" Label = "<<entr1 <<std::endl;
}
#endif
static void Write(const TopoDS_Shape& shape,
const Standard_CString filename)
{
- ofstream save;
+ std::ofstream save;
save.open(filename);
- save << "DBRep_DrawableShape" << endl << endl;
+ save << "DBRep_DrawableShape" << std::endl << std::endl;
if(!shape.IsNull()) BRepTools::Write(shape, save);
save.close();
}
TDF_LabelMap aMap;
theLog->GetValid(aMap);
#ifdef OCCT_DEBUG
- cout <<"#E_DNaming_SelectionDriver:: Valid Label Map:"<<endl;
+ std::cout <<"#E_DNaming_SelectionDriver:: Valid Label Map:"<<std::endl;
TDF_MapIteratorOfLabelMap anItr(aMap);
for (; anItr.More(); anItr.Next()) {
const TDF_Label& aLabel = anItr.Key();
TCollection_AsciiString anEntry;
TDF_Tool::Entry(aLabel, anEntry);
- cout << "\tLabel = " << anEntry << endl;
+ std::cout << "\tLabel = " << anEntry << std::endl;
}
#endif
//***
theLog->SetValid(aRLabel);
Handle(TNaming_NamedShape) aNS;
if(!aRLabel.FindAttribute(TNaming_NamedShape::GetID(),aNS)) {
- cout <<"%%%WARNING: DNaming_SelectionDriver::NamedShape is not found"<<endl;
+ std::cout <<"%%%WARNING: DNaming_SelectionDriver::NamedShape is not found"<<std::endl;
}
else {
if(aNS.IsNull()) {
- cout << "%%%WARNING: DNaming_SelectionDriver::NamedShape is NULL" <<endl;
+ std::cout << "%%%WARNING: DNaming_SelectionDriver::NamedShape is NULL" <<std::endl;
} else
if(aNS->IsEmpty()) {
- cout << "%%%WARNING: DNaming_SelectionDriver::NamedShape is EMPTY on Label = ";
- aNS->Label().EntryDump(cout); cout << endl;
+ std::cout << "%%%WARNING: DNaming_SelectionDriver::NamedShape is EMPTY on Label = ";
+ aNS->Label().EntryDump(std::cout); std::cout << std::endl;
} else {
#ifdef OCCT_DEBUG
Write(aNS->Get(), "Selection_Result.brep");
- cout << "TShape = " << aNS->Get().TShape().get() <<endl;
+ std::cout << "TShape = " << aNS->Get().TShape().get() <<std::endl;
#endif
if(aIsWire && aNS->Get().ShapeType()== TopAbs_COMPOUND) {
TopoDS_Shape aWireShape;
aFunction->SetFailure(DONE);
} else {
#ifdef OCCT_DEBUG
- cout <<"%%%WARNING: DNaming_SelectionDriver::Execute: The Shape after solving changed type = "<<aNS->Get().ShapeType()<< endl;
+ std::cout <<"%%%WARNING: DNaming_SelectionDriver::Execute: The Shape after solving changed type = "<<aNS->Get().ShapeType()<< std::endl;
#endif
aFunction->SetFailure(DONE);
}
}
else {
aFunction->SetFailure(NOTDONE);
- cout << "%%%WARNING: DNaming_SelectionDriver::Execute: Selection is Not solved !!!" << endl;
+ std::cout << "%%%WARNING: DNaming_SelectionDriver::Execute: Selection is Not solved !!!" << std::endl;
return 1;
}
return 0;
Handle(TNaming_NamedShape) aNSCnt = DNaming::GetObjectValue(anObject);
if (aNSCnt.IsNull() || aNSCnt->IsEmpty()) {
#ifdef OCCT_DEBUG
- cout<<"SphereDriver:: Center point is null or empty"<<endl;
+ std::cout<<"SphereDriver:: Center point is null or empty"<<std::endl;
#endif
aFunction->SetFailure(WRONG_ARGUMENT);
return -1;
TopoDS_Shape aCntShape = aNSCnt->Get();
if(aCntShape.IsNull()) {
#ifdef OCCT_DEBUG
- cout<<"SphereDriver:: Center point is null"<<endl;
+ std::cout<<"SphereDriver:: Center point is null"<<std::endl;
#endif
aFunction->SetFailure(WRONG_ARGUMENT);
return -1;
{
TCollection_AsciiString entry;
TDF_Tool::Entry(label, entry);
- cout << "LabelEntry = "<< entry << endl;
+ std::cout << "LabelEntry = "<< entry << std::endl;
}
#endif
//=======================================================================
aLab.FindAttribute(TNaming_NamedShape::GetID(), aContextNS);
if (aContextNS.IsNull() || aContextNS->IsEmpty()) {
#ifdef OCCT_DEBUG
- cout<<"TransformationDriver:: Context is empty"<<endl;
+ std::cout<<"TransformationDriver:: Context is empty"<<std::endl;
#endif
aFunction->SetFailure(WRONG_CONTEXT);
return -1;
const TopoDS_Shape& aSrcShape = theSourceNS->Get();
if (aSrcShape.IsNull()) {
#ifdef OCCT_DEBUG
- cout<<"DNaming_TransformationDriver::LoadNamingDS: The result of the Transform operation is null"<<endl;
+ std::cout<<"DNaming_TransformationDriver::LoadNamingDS: The result of the Transform operation is null"<<std::endl;
#endif
return;
}
if(theSourceNS->Evolution() == TNaming_PRIMITIVE) isPrimitive = Standard_True;
const TDF_Label& aSrcLabel = theSourceNS->Label();
#ifdef OCCT_DEBUG_TRSF
- cout <<"TransformationDriver: ";
+ std::cout <<"TransformationDriver: ";
PrintE(aSrcLabel);
#endif
DPrsStd::AllCommands(theDI);
DDocStd::AllCommands(theDI);
#ifdef OCCT_DEBUG
- cout << "Draw Plugin : All DF commands are loaded" << endl;
+ std::cout << "Draw Plugin : All DF commands are loaded" << std::endl;
#endif
}
Standard_GUID guid;
TCollection_ExtendedString str = arg[3];
#ifdef OCCT_DEBUG
- cout << "Inputed parameter > " << str << endl;
+ std::cout << "Inputed parameter > " << str << std::endl;
#endif
if ( str == "A" ) //axis
guid = TDataXtd_Axis::GetID(); //"2a96b601-ec8b-11d0-bee7-080009dc3333"
Handle(TPrsStd_AISPresentation) prs= TPrsStd_AISPresentation::Set(L, guid);
#ifdef OCCT_DEBUG
- cout << "Driver GUID = ";
- prs->GetDriverGUID().ShallowDump(cout);
- cout << "\n";
+ std::cout << "Driver GUID = ";
+ prs->GetDriverGUID().ShallowDump(std::cout);
+ std::cout << "\n";
#endif
Standard_Character resS[37];
Standard_PCharacter presS;
else {
TCollection_ExtendedString str = arg[3];
#ifdef OCCT_DEBUG
- cout << "Inputed parameter > " << str << endl;
+ std::cout << "Inputed parameter > " << str << std::endl;
#endif
if ( str == "A" ) //axis
guid = TDataXtd_Axis::GetID(); //"2a96b601-ec8b-11d0-bee7-080009dc3333"
#ifdef OCCT_DEBUG
static Standard_Integer VertexRecomp = 1;
if (VertexRecomp!=0) {
- cout << "pori :" << vtori.X() << " " << vtori.Y() << " " << vtori.Z() << endl;
- cout << " Edg 1 :" << Vinf.Parameter(Edg1) << endl;
- cout << "pvt :" << pvt.X() << " " << pvt.Y() << " " << pvt.Z() << endl;
+ std::cout << "pori :" << vtori.X() << " " << vtori.Y() << " " << vtori.Z() << std::endl;
+ std::cout << " Edg 1 :" << Vinf.Parameter(Edg1) << std::endl;
+ std::cout << "pvt :" << pvt.X() << " " << pvt.Y() << " " << pvt.Z() << std::endl;
}
#endif
#ifdef OCCT_DEBUG
if (VertexRecomp!=0) {
- cout << " Edg 2 :" << Vinf.Parameter(Vinf.Edge()) << endl;
- cout << "opvt " << opvt.X() << " " << opvt.Y() << " " << opvt.Z() << endl;
+ std::cout << " Edg 2 :" << Vinf.Parameter(Vinf.Edge()) << std::endl;
+ std::cout << "opvt " << opvt.X() << " " << opvt.Y() << " " << opvt.Z() << std::endl;
}
#endif
Standard_Real testdir = Direction.Dot(NeutralPlane.Axis().Direction());
if (Abs(testdir) <= 1.-Precision::Angular()) {
#ifdef OCCT_DEBUG
- cout << "NewSurfaceCyl:Draft_Direction_and_Neutral_Perpendicular" << endl;
+ std::cout << "NewSurfaceCyl:Draft_Direction_and_Neutral_Perpendicular" << std::endl;
#endif
return NewS;
}
testdir = Direction.Dot(Cy.Axis().Direction());
if (Abs(testdir) <= 1.-Precision::Angular()) {
#ifdef OCCT_DEBUG
- cout << "NewSurfaceCyl:Draft_Direction_and_Cylinder_Perpendicular" << endl;
+ std::cout << "NewSurfaceCyl:Draft_Direction_and_Cylinder_Perpendicular" << std::endl;
#endif
return NewS;
}
if (!isIntDone || i2s.TypeInter() != IntAna_Circle) {
#ifdef OCCT_DEBUG
- cout << "NewSurfaceCyl:Draft_Intersection_Neutral_Cylinder_NotDone" << endl;
+ std::cout << "NewSurfaceCyl:Draft_Intersection_Neutral_Cylinder_NotDone" << std::endl;
#endif
return NewS;
}
Standard_Real testdir = Direction.Dot(NeutralPlane.Axis().Direction());
if (Abs(testdir) <= 1.-Precision::Angular()) {
#ifdef OCCT_DEBUG
- cout << "NewSurfaceCone:Draft_Direction_and_Neutral_Perpendicular" << endl;
+ std::cout << "NewSurfaceCone:Draft_Direction_and_Neutral_Perpendicular" << std::endl;
#endif
return NewS;
}
testdir = Direction.Dot(Co1.Axis().Direction());
if (Abs(testdir) <= 1.-Precision::Angular()) {
#ifdef OCCT_DEBUG
- cout << "NewSurfaceCone:Draft_Direction_and_Cone_Perpendicular" << endl;
+ std::cout << "NewSurfaceCone:Draft_Direction_and_Cone_Perpendicular" << std::endl;
#endif
return NewS;
}
i2s.Perform(NeutralPlane,Co1,Precision::Angular(),Precision::Confusion());
if (!i2s.IsDone() || i2s.TypeInter() != IntAna_Circle) {
#ifdef OCCT_DEBUG
- cout << "NewSurfaceCone:Draft_Intersection_Neutral_Conical_NotDone" << endl;
+ std::cout << "NewSurfaceCone:Draft_Intersection_Neutral_Conical_NotDone" << std::endl;
#endif
return NewS;
}
}
else {
#ifdef OCCT_DEBUG
- cout << "NewSurface:Draft_SurfNotYetImplemented" << endl;
+ std::cout << "NewSurface:Draft_SurfNotYetImplemented" << std::endl;
#endif
}
return NewS;
"Maroon","Orange","Pink","Salmon","Violet","Yellow","Khaki","Coral"
};
-filebuf Draw_Spyfile;
+std::filebuf Draw_Spyfile;
-static ostream spystream(&Draw_Spyfile);
+static std::ostream spystream(&Draw_Spyfile);
static Handle(Draw_ProgressIndicator) PInd = NULL;
#endif
else
{
- cout << "DRAW is running in batch mode" << endl;
+ std::cout << "DRAW is running in batch mode" << std::endl;
theCommands.Init();
Tcl_Init(theCommands.Interp());
}
// *****************************************************************
// set maximum precision for cout
// *****************************************************************
- cout.precision(15);
+ std::cout.precision(15);
// *****************************************************************
// standard commands
#ifdef _WIN32
ReadInitFile ("ddefault");
#else
- cout << " the CASROOT variable is mandatory to Run OpenCascade "<< endl;
- cout << "No default file" << endl;
+ std::cout << " the CASROOT variable is mandatory to Run OpenCascade "<< std::endl;
+ std::cout << "No default file" << std::endl;
#endif
}
}
char cmd[MAXCMD];
for (int ncmd = 1;; ++ncmd)
{
- cout << "Draw[" << ncmd << "]> ";
- if (cin.getline (cmd, MAXCMD).fail())
+ std::cout << "Draw[" << ncmd << "]> ";
+ if (std::cin.getline (cmd, MAXCMD).fail())
{
break;
}
Standard_Integer Draw_Call (char *c)
{
Standard_Integer r = theCommands.Eval(c);
- cout << theCommands.Result() << endl;
+ std::cout << theCommands.Result() << std::endl;
return r;
}
if(!aPluginResource->Find(theKey.ToCString())) {
Standard_SStream aMsg; aMsg << "Could not find the resource:";
- aMsg << theKey.ToCString()<< endl;
- cout << "could not find the resource:"<<theKey.ToCString()<< endl;
+ aMsg << theKey.ToCString()<< std::endl;
+ std::cout << "could not find the resource:"<<theKey.ToCString()<< std::endl;
throw Draw_Failure(aMsg.str().c_str());
}
aMsg << "; reason: ";
aMsg << error.ToCString();
#ifdef OCCT_DEBUG
- cout << "could not open: " << aPluginResource->Value(theKey.ToCString())<< " ; reason: "<< error.ToCString() << endl;
+ std::cout << "could not open: " << aPluginResource->Value(theKey.ToCString())<< " ; reason: "<< error.ToCString() << std::endl;
#endif
throw Draw_Failure(aMsg.str().c_str());
}
Standard_EXPORT Draw_SaveAndRestore
(const char* name,
Standard_Boolean (*test)(const Handle(Draw_Drawable3D)&),
- void (*save)(const Handle(Draw_Drawable3D)&, ostream&),
- Handle(Draw_Drawable3D) (*restore) (istream&),
+ void (*save)(const Handle(Draw_Drawable3D)&, std::ostream&),
+ Handle(Draw_Drawable3D) (*restore) (std::istream&),
Standard_Boolean display = Standard_True);
const char* Name() const {return myName;}
Standard_Boolean Test(const Handle(Draw_Drawable3D)&d);
- void Save(const Handle(Draw_Drawable3D)& d, ostream& os) const;
- Handle(Draw_Drawable3D) Restore(istream&) const;
+ void Save(const Handle(Draw_Drawable3D)& d, std::ostream& os) const;
+ Handle(Draw_Drawable3D) Restore(std::istream&) const;
Standard_Boolean Disp() const {return myDisplay;}
Draw_SaveAndRestore* Next() {return myNext;}
const char* myName;
Standard_Boolean (*myTest)(const Handle(Draw_Drawable3D)&);
- void (*mySave)(const Handle(Draw_Drawable3D)&, ostream&);
- Handle(Draw_Drawable3D) (*myRestore) (istream&);
+ void (*mySave)(const Handle(Draw_Drawable3D)&, std::ostream&);
+ Handle(Draw_Drawable3D) (*myRestore) (std::istream&);
Standard_Boolean myDisplay;
Draw_SaveAndRestore* myNext;
//=======================================================================
extern Standard_Boolean Draw_Spying;
-extern filebuf Draw_Spyfile;
+extern std::filebuf Draw_Spyfile;
static Standard_Integer spy(Draw_Interpretor& di, Standard_Integer n, const char** a)
{
Draw_Spyfile.close();
Draw_Spying = Standard_False;
if (n > 1) {
- if (!Draw_Spyfile.open(a[1],ios::out)) {
+ if (!Draw_Spyfile.open(a[1],std::ios::out)) {
di << "Cannot open "<<a[1]<<" for writing\n";
return 1;
}
{
if (n != 2 && n != 3)
{
- cout << "Enable or disable logging: " << a[0] << " {on|off}" << endl;
- cout << "Reset log: " << a[0] << " reset" << endl;
- cout << "Get log content: " << a[0] << " get" << endl;
+ std::cout << "Enable or disable logging: " << a[0] << " {on|off}" << std::endl;
+ std::cout << "Reset log: " << a[0] << " reset" << std::endl;
+ std::cout << "Get log content: " << a[0] << " get" << std::endl;
return 1;
}
if (! strcmp (a[1], "on") && n == 2)
{
di.SetDoLog (Standard_True);
-// di.Log() << "dlog on" << endl; // for symmetry
+// di.Log() << "dlog on" << std::endl; // for symmetry
}
else if (! strcmp (a[1], "off") && n == 2)
{
di << (di.GetDoLog() ? "on" : "off");
}
else {
- cout << "Unrecognized option(s): " << a[1] << endl;
+ std::cout << "Unrecognized option(s): " << a[1] << std::endl;
return 1;
}
return 0;
{
if (n != 2)
{
- cout << "Enable or disable echoing: " << a[0] << " {on|off}" << endl;
+ std::cout << "Enable or disable echoing: " << a[0] << " {on|off}" << std::endl;
return 1;
}
di.SetDoEcho (Standard_False);
}
else {
- cout << "Unrecognized option: " << a[1] << endl;
+ std::cout << "Unrecognized option: " << a[1] << std::endl;
return 1;
}
return 0;
#else
static void cpulimitSignalHandler (int)
{
- cout << "Process killed by CPU limit (" << CPU_LIMIT << " sec)" << endl;
+ std::cout << "Process killed by CPU limit (" << CPU_LIMIT << " sec)" << std::endl;
exit(2);
}
static void *CpuFunc(void* /*threadarg*/)
sleep (5);
anElapCurrent = clock_t(aTimer.ElapsedTime());
if (CPU_LIMIT >0 && (anElapCurrent) >= CPU_LIMIT) {
- cout << "Process killed by elapsed limit (" << CPU_LIMIT << " sec)" << endl;
+ std::cout << "Process killed by elapsed limit (" << CPU_LIMIT << " sec)" << std::endl;
exit(2);
}
}
else if ( ! strcmp (cat, "LC_TIME") ) category = LC_TIME;
else
{
- cout << "Error: cannot recognize argument " << cat << " as one of LC_ macros" << endl;
+ std::cout << "Error: cannot recognize argument " << cat << " as one of LC_ macros" << std::endl;
return 1;
}
}
if (result)
di << result;
else
- cout << "Error: unsupported locale specification: " << locale << endl;
+ std::cout << "Error: unsupported locale specification: " << locale << std::endl;
return 0;
}
if (Done) return;
Done = Standard_True;
- ios::sync_with_stdio();
+ std::ios::sync_with_stdio();
const char* g = "DRAW General Commands";
OCC_CATCH_SIGNALS
Draw_Interpretor& aCommands = Draw::GetInterpretor();
aCommands.Eval (theCommandStr);
- cout << aCommands.Result() << endl;
+ std::cout << aCommands.Result() << std::endl;
return aCommands.Result();
}
catch (Standard_Failure const& anException)
{
Standard_Integer id = Draw::Atoi(a);
if ((id < 0) || (id >= MAXVIEW)) {
- cout << "Incorrect view-id, must be in 0.."<<MAXVIEW-1<<endl;
+ std::cout << "Incorrect view-id, must be in 0.."<<MAXVIEW-1<<std::endl;
return -1;
}
if (!dout.HasView(id)) {
- cout <<"View "<<id<<" does not exist."<<endl;
+ std::cout <<"View "<<id<<" does not exist."<<std::endl;
return -1;
}
return id;
id = atoi(argv[1]);
if ((id < 0) || (id >= MAXVIEW))
{
- cout << "Incorrect view-id, must be in 0.."<<MAXVIEW-1<<endl;
+ std::cout << "Incorrect view-id, must be in 0.."<<MAXVIEW-1<<std::endl;
return 1;
}
if (!dout.HasView(id))
{
- cout <<"View "<<id<<" does not exist."<<endl;
+ std::cout <<"View "<<id<<" does not exist."<<std::endl;
return 1;
}
X1 = atoi (argv [2]);
Standard_Integer pxmax = (Standard_Integer)((dx - cad) * rap);
Standard_Integer pymax = (Standard_Integer)((dy - cad) * rap);
- ofstream os(file);
+ std::ofstream os(file);
Standard_Integer vxmin,vymin,vxmax,vymax;
if (dout.HasView(iview)) {
{
for (int i=0; i < argc; i++)
os << argv[i] << " ";
- os << endl;
+ os << std::endl;
}
void flush_standard_streams ()
{
fflush (stderr);
fflush (stdout);
- cerr << flush;
- cout << flush;
+ std::cerr << std::flush;
+ std::cout << std::flush;
}
int capture_start (int theFDStd, int theFDLog)
}
if (doEcho || doLog)
- dumpArgs (cout, argc, argv);
+ dumpArgs (std::cout, argc, argv);
// run command
try {
// get the error message
Standard_SStream ss;
- ss << "** Exception ** " << anException << ends;
+ ss << "** Exception ** " << anException << std::ends;
Tcl_SetResult(interp,(char*)(ss.str().c_str()),TCL_VOLATILE);
code = TCL_ERROR;
}
// get the error message
Standard_SStream ss;
- ss << "** Exception ** " << theStdException.what() << " [" << typeid(theStdException).name() << "]" << ends;
+ ss << "** Exception ** " << theStdException.what() << " [" << typeid(theStdException).name() << "]" << std::ends;
Tcl_SetResult (interp, (char*)(ss.str().c_str()), TCL_VOLATILE);
code = TCL_ERROR;
}
// get the error message
Standard_SStream ss;
- ss << "** Exception ** UNKNOWN" << ends;
+ ss << "** Exception ** UNKNOWN" << std::ends;
Tcl_SetResult (interp, (char* )(ss.str().c_str()), TCL_VOLATILE);
code = TCL_ERROR;
}
}
catch (Standard_Failure const&) {
#ifdef OCCT_DEBUG
- cout <<"Tcl_Exit have an exeption" << endl;
+ std::cout <<"Tcl_Exit have an exeption" << std::endl;
#endif
}
#else
if (thePluginName.IsEmpty()) {
thePluginName += "DrawPlugin";
#ifdef OCCT_DEBUG
- cout << "Plugin file name has not been specified. Defaults to " << thePluginName.ToCString() << endl;
+ std::cout << "Plugin file name has not been specified. Defaults to " << thePluginName.ToCString() << std::endl;
#endif
}
OSD_Environment aCSFVarEnv ( aCSFVariable, aPluginDir );
aCSFVarEnv.Build();
#ifdef OCCT_DEBUG
- cout << "Variable " << aCSFVariable.ToCString() << " has not been explicitly defined. Set to " << aPluginDir.ToCString() << endl;
+ std::cout << "Variable " << aCSFVariable.ToCString() << " has not been explicitly defined. Set to " << aPluginDir.ToCString() << std::endl;
#endif
if ( aCSFVarEnv.Failed() ) {
aResult = Standard_False;
- cout << FAILSTR "Failed to initialize " << aCSFVariable.ToCString() << " with " << aPluginDir.ToCString() << endl;
+ std::cout << FAILSTR "Failed to initialize " << aCSFVariable.ToCString() << " with " << aPluginDir.ToCString() << std::endl;
}
}
} else {
aResult = Standard_False;
- cout << FAILSTR "File " << aPluginFileName.ToCString() << " not found" << endl;
+ std::cout << FAILSTR "File " << aPluginFileName.ToCString() << " not found" << std::endl;
}
}
TCollection_AsciiString aResource = aKey;
if(myResources->Find(aResource.ToCString())) {
#ifdef OCCT_DEBUG
- cout << "Parse Value ==> " << myResources->Value(aResource.ToCString()) << endl;
+ std::cout << "Parse Value ==> " << myResources->Value(aResource.ToCString()) << std::endl;
#endif
TCollection_AsciiString aValue(myResources->Value(aResource.ToCString()));
// parse aValue string
for(;;) {
TCollection_AsciiString aCurKey = aValue.Token(" \t,", i++);
#ifdef OCCT_DEBUG
- cout << "Parse aCurKey = " << aCurKey.ToCString() << endl;
+ std::cout << "Parse aCurKey = " << aCurKey.ToCString() << std::endl;
#endif
if(aCurKey.IsEmpty()) break;
if(!myResources->Find(aCurKey.ToCString())) {
aMap2.Add(aCurKey);
}
} else
- cout <<"Pload : Resource = " << aResource << " is not found" << endl;
+ std::cout <<"Pload : Resource = " << aResource << " is not found" << std::endl;
if(!aMap2.IsEmpty())
Parse(aMap2);
//
const TCollection_AsciiString& aKey = aMap.FindKey(j);
TCollection_AsciiString aResource = aKey;
#ifdef OCCT_DEBUG
- cout << "aResource = " << aResource << endl;
+ std::cout << "aResource = " << aResource << std::endl;
#endif
if(myResources->Find(aResource.ToCString())) {
const TCollection_AsciiString& aValue = myResources->Value(aResource.ToCString());
#ifdef OCCT_DEBUG
- cout << "Value ==> " << aValue << endl;
+ std::cout << "Value ==> " << aValue << std::endl;
#endif
//Draw::Load(di, aKey, aPluginFileName);
OSD_File aTclScriptFileDefaults ( aTclScriptFileNameDefaults );
if (!aTclScriptDir.IsEmpty() && aTclScriptFile.Exists()) {
#ifdef OCCT_DEBUG
- cout << "Load " << aTclScriptFileName << " TclScript" << endl;
+ std::cout << "Load " << aTclScriptFileName << " TclScript" << std::endl;
#endif
di.EvalFile( aTclScriptFileName.ToCString() );
} else if (!aPluginDir.IsEmpty() && aTclScriptFileDefaults.Exists()) {
#ifdef OCCT_DEBUG
- cout << "Load " << aTclScriptFileNameDefaults << " TclScript" << endl;
+ std::cout << "Load " << aTclScriptFileNameDefaults << " TclScript" << std::endl;
#endif
di.EvalFile( aTclScriptFileNameDefaults.ToCString() );
}
} else
- cout <<"Pload : Resource = " << aResource << " is not found" << endl;
+ std::cout <<"Pload : Resource = " << aResource << " is not found" << std::endl;
}
return 0;
}
{
if (n != 2)
{
- cout << "Error: specify path to library to be loaded" << endl;
+ std::cout << "Error: specify path to library to be loaded" << std::endl;
return 1;
}
Standard_Boolean Draw_ProgressIndicator::UserBreak()
{
if ( StopIndicator() == this ) {
-// cout << "Progress Indicator - User Break: " << StopIndicator() << ", " << (void*)this << endl;
+// std::cout << "Progress Indicator - User Break: " << StopIndicator() << ", " << (void*)this << std::endl;
myBreak = Standard_True;
((Draw_Interpretor*)myDraw)->Eval ( "XProgress -stop 0" );
}
void Draw_Segment2D::Dump(Standard_OStream& S) const
{
- S << setw(17) << myFirst.X() << " " << setw(17) << myFirst.Y() << " - "
- << setw(17) << myLast.X() << " " << setw(17) << myLast.Y() << "\n";
+ S << std::setw(17) << myFirst.X() << " " << std::setw(17) << myFirst.Y() << " - "
+ << std::setw(17) << myLast.X() << " " << std::setw(17) << myLast.Y() << "\n";
}
Draw_SaveAndRestore::Draw_SaveAndRestore
(const char* name,
Standard_Boolean (*test)(const Handle(Draw_Drawable3D)&),
- void (*save)(const Handle(Draw_Drawable3D)&, ostream&),
- Handle(Draw_Drawable3D) (*restore) (istream&),
+ void (*save)(const Handle(Draw_Drawable3D)&, std::ostream&),
+ Handle(Draw_Drawable3D) (*restore) (std::istream&),
Standard_Boolean display) :
myName(name),
myTest(test),
{return (*myTest) (d);}
void Draw_SaveAndRestore::Save(const Handle(Draw_Drawable3D)& d,
- ostream& os) const
+ std::ostream& os) const
{ (*mySave) (d,os);}
-Handle(Draw_Drawable3D) Draw_SaveAndRestore::Restore(istream& is) const
+Handle(Draw_Drawable3D) Draw_SaveAndRestore::Restore(std::istream& is) const
{return (*myRestore) (is);}
//=======================================================================
}
static void numsave (const Handle(Draw_Drawable3D)& theDrawable,
- ostream& theStream)
+ std::ostream& theStream)
{
Handle(Draw_Number) aNum = Handle(Draw_Number)::DownCast (theDrawable);
- ios::fmtflags aFlags = theStream.flags();
- theStream.setf (ios::scientific);
+ std::ios::fmtflags aFlags = theStream.flags();
+ theStream.setf (std::ios::scientific);
theStream.precision (15);
theStream.width (30);
theStream << aNum->Value() << "\n";
theStream.setf (aFlags);
}
-static Handle(Draw_Drawable3D) numrestore (istream& is)
+static Handle(Draw_Drawable3D) numrestore (std::istream& is)
{
Standard_Real val;
is >> val;
if (n <= 2) return 1;
const char* name = a[2];
- ofstream os;
+ std::ofstream os;
os.precision(15);
- OSD_OpenStream(os, name, ios::out);
+ OSD_OpenStream(os, name, std::ios::out);
if (!os.is_open() || !os.good())
{
di << "Cannot open file for writing "<<name;
const char* fname = a[1];
const char* name = a[2];
- filebuf fic;
- istream in(&fic);
- OSD_OpenStream (fic, fname, ios::in);
+ std::filebuf fic;
+ std::istream in(&fic);
+ OSD_OpenStream (fic, fname, std::ios::in);
if (!fic.is_open()) {
di << "Cannot open file for reading : "<<fname;
return 1;
{
//assume that this file stores a DBRep_DrawableShape variable
tool = aDBRepTool;
- in.seekg(0, ios::beg);
+ in.seekg(0, std::ios::beg);
}
if (tool)
Handle(Draw_Drawable3D) D = Draw::Get(a[i]);
if (D.IsNull()) {
if ((a[i][0] == '.') && (a[i][1] == '\0'))
- cout << "Missed !!!" << endl;
+ std::cout << "Missed !!!" << std::endl;
return 0;
}
}
if (n < 3) return 1;
Standard_Integer id = Draw::Atoi(a[1]);
if (!dout.HasView(id)) {
- cout << "bad view number in draw"<<endl;
+ std::cout << "bad view number in draw"<<std::endl;
return 1;
}
Standard_Integer mo = Draw::Atoi(a[2]);
static Standard_Integer dsetenv(Draw_Interpretor& /*di*/, Standard_Integer argc, const char** argv)
{
if (argc < 2) {
- cout << "Use: " << argv[0] << " {varname} [value]" << endl;
+ std::cout << "Use: " << argv[0] << " {varname} [value]" << std::endl;
return 1;
}
static Standard_Integer dgetenv(Draw_Interpretor& di, Standard_Integer argc, const char** argv)
{
if (argc < 2) {
- cout << "Use: " << argv[0] << " {varname}" << endl;
+ std::cout << "Use: " << argv[0] << " {varname}" << std::endl;
return 1;
}
Handle(Draw_Drawable3D) anOldD(reinterpret_cast<Draw_Drawable3D*>(aCD));
if (!anOldD.IsNull()) {
if (theVariables.Contains(anOldD) && anOldD->Protected()) {
- cout << "variable is protected" << endl;
+ std::cout << "variable is protected" << std::endl;
return;
}
anOldD.Nullify();
name++;
x = Parse(name);
if (*name != ')')
- cout << "Mismatched parenthesis" << endl;
+ std::cout << "Mismatched parenthesis" << std::endl;
name++;
break;
q++;
}
if (pc > 0) {
- cout << "Unclosed parenthesis"<< endl;
+ std::cout << "Unclosed parenthesis"<< std::endl;
x = 0;
}
else {
aCommands.Reset();
}
if (aCommands.Eval(name) != 0) {
- cout << "Call of function " << name << " failed" << endl;
+ std::cout << "Call of function " << name << " failed" << std::endl;
x = 0;
}
else
static Standard_Integer ps_vx, ps_vy;
static Standard_Real ps_kx, ps_ky;
static Standard_Integer ps_px, ps_py;
-static ostream* ps_stream;
+static std::ostream* ps_stream;
static Standard_Integer ps_width[MAXCOLOR];
static Standard_Real ps_gray[MAXCOLOR];
const Standard_Integer PYmin,
const Standard_Integer PXmax,
const Standard_Integer PYmax,
- ostream& sortie) const
+ std::ostream& sortie) const
{
if (Draw_Batch) return;
if (myViews[id]) {
const Standard_Integer PYmin,
const Standard_Integer PXmax,
const Standard_Integer PYmax,
- ostream& sortie) const;
+ std::ostream& sortie) const;
Standard_EXPORT void PostColor(const Standard_Integer icol,
const Standard_Integer width,
const Standard_Real gray);
OCC_CATCH_SIGNALS
Tk_Init(interp) ;
} catch (Standard_Failure const&) {
- cout <<" Pb au lancement de TK_Init "<<endl;
+ std::cout <<" Pb au lancement de TK_Init "<<std::endl;
}
Tcl_StaticPackage(interp, "Tk", Tk_Init, (Tcl_PackageInitProc *) NULL);
0, // use default creation flags
&IDThread);
if (!hThread) {
- cout << "Failed to create Tcl/Tk main loop thread. Switching to batch mode..." << endl;
+ std::cout << "Failed to create Tcl/Tk main loop thread. Switching to batch mode..." << std::endl;
Draw_Batch = Standard_True;
Draw_Interpretor& aCommands = Draw::GetInterpretor();
aCommands.Init();
OCC_CATCH_SIGNALS
Tk_Init(interp);
} catch (Standard_Failure& anExcept) {
- cout << "Failed to initialize Tk: " << anExcept.GetMessageString() << endl;
+ std::cout << "Failed to initialize Tk: " << anExcept.GetMessageString() << std::endl;
}
Tcl_StaticPackage(interp, "Tk", Tk_Init, (Tcl_PackageInitProc *) NULL);
if (res != TCL_OK)
{
#if ((TCL_MAJOR_VERSION > 8) || ((TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION >= 5)))
- cout << "tkLoop: error in Tk initialization. Tcl reported: " << Tcl_GetStringResult(interp) << endl;
+ std::cout << "tkLoop: error in Tk initialization. Tcl reported: " << Tcl_GetStringResult(interp) << std::endl;
#else
- cout << "tkLoop: error in Tk initialization. Tcl reported: " << interp->result << endl;
+ std::cout << "tkLoop: error in Tk initialization. Tcl reported: " << interp->result << std::endl;
#endif
}
}
catch (Standard_Failure)
{
- cout << "tkLoop: exception in TK_Init\n";
+ std::cout << "tkLoop: exception in TK_Init\n";
}
Tcl_StaticPackage (interp, "Tk", Tk_Init, (Tcl_PackageInitProc* ) NULL);
mainWindow = Tk_MainWindow (interp);
#else
fprintf (stderr, "%s\n", interp->result);
#endif
- cout << "tkLoop: Tk_MainWindow() returned NULL. Exiting...\n";
+ std::cout << "tkLoop: Tk_MainWindow() returned NULL. Exiting...\n";
Tcl_Exit (0);
}
Tk_Name(mainWindow) = Tk_GetUid (Tk_SetAppName (mainWindow, "Draw"));
0, // use default creation flags
&IDThread); // returns thread identifier
if (!hThread) {
- cout << "pb in creation of the thread reading stdin" << endl;
+ std::cout << "pb in creation of the thread reading stdin" << std::endl;
Draw_IsConsoleSubsystem = Standard_False;
Init_Appli (GetModuleHandleW (NULL),
GetModuleHandleW (NULL),
}
}
#ifdef OCCT_DEBUG
- cout << " DrawDim_PlanarDiameter::DrawOn : dimension error" << endl;
+ std::cout << " DrawDim_PlanarDiameter::DrawOn : dimension error" << std::endl;
#endif
}
}
}
#ifdef OCCT_DEBUG
- cout << " DrawDim_PlanarDistance::DrawOn : dimension error" << endl;
+ std::cout << " DrawDim_PlanarDistance::DrawOn : dimension error" << std::endl;
#endif
}
}
}
#ifdef OCCT_DEBUG
- cout << " DrawDim_PlanarRadius::DrawOn : dimension error" << endl;
+ std::cout << " DrawDim_PlanarRadius::DrawOn : dimension error" << std::endl;
#endif
}
//void AIS_RadiusDimension::ComputeOneFaceRadius(const Handle(Prs3d_Presentation)& aPresentation)
//{
#ifdef OCCT_DEBUG
- cout << "entree dans computeonefaceradius"<< endl;
+ std::cout << "entree dans computeonefaceradius"<< std::endl;
#endif
BRepAdaptor_Surface surfAlgo (TopoDS::Face(myFShape));
Standard_Real uFirst, uLast, vFirst, vLast;
return d->IsInstance(STANDARD_TYPE(DrawTrSurf_Curve));
}
-static void csave(const Handle(Draw_Drawable3D)&d, ostream& OS)
+static void csave(const Handle(Draw_Drawable3D)&d, std::ostream& OS)
{
Handle(DrawTrSurf_Curve) N = Handle(DrawTrSurf_Curve)::DownCast(d);
GeomTools_CurveSet::PrintCurve(N->GetCurve(),OS,Standard_True);
}
-static Handle(Draw_Drawable3D) crestore (istream& is)
+static Handle(Draw_Drawable3D) crestore (std::istream& is)
{
Handle(Geom_Curve) G = GeomTools_CurveSet::ReadCurve(is);
Handle(DrawTrSurf_Curve) N =
return d->IsInstance(STANDARD_TYPE(DrawTrSurf_BezierCurve));
}
-static void bzcsave(const Handle(Draw_Drawable3D)&d, ostream& OS)
+static void bzcsave(const Handle(Draw_Drawable3D)&d, std::ostream& OS)
{
Handle(DrawTrSurf_BezierCurve)
N = Handle(DrawTrSurf_BezierCurve)::DownCast(d);
GeomTools_CurveSet::PrintCurve(N->GetCurve(),OS,Standard_True);
}
-static Handle(Draw_Drawable3D) bzcrestore (istream& is)
+static Handle(Draw_Drawable3D) bzcrestore (std::istream& is)
{
Handle(Geom_BezierCurve) G =
Handle(Geom_BezierCurve)::DownCast (GeomTools_CurveSet::ReadCurve(is));
return d->IsInstance(STANDARD_TYPE(DrawTrSurf_BSplineCurve));
}
-static void bscsave(const Handle(Draw_Drawable3D)&d, ostream& OS)
+static void bscsave(const Handle(Draw_Drawable3D)&d, std::ostream& OS)
{
Handle(DrawTrSurf_BSplineCurve)
N = Handle(DrawTrSurf_BSplineCurve)::DownCast(d);
GeomTools_CurveSet::PrintCurve(N->GetCurve(),OS,Standard_True);
}
-static Handle(Draw_Drawable3D) bscrestore (istream& is)
+static Handle(Draw_Drawable3D) bscrestore (std::istream& is)
{
Handle(Geom_BSplineCurve) G =
Handle(Geom_BSplineCurve)::DownCast (GeomTools_CurveSet::ReadCurve(is));
return d->IsInstance(STANDARD_TYPE(DrawTrSurf_Curve2d));
}
-static void c2dsave(const Handle(Draw_Drawable3D)&d, ostream& OS)
+static void c2dsave(const Handle(Draw_Drawable3D)&d, std::ostream& OS)
{
Handle(DrawTrSurf_Curve2d) N = Handle(DrawTrSurf_Curve2d)::DownCast(d);
GeomTools_Curve2dSet::PrintCurve2d(N->GetCurve(),OS,Standard_True);
}
-static Handle(Draw_Drawable3D) c2drestore (istream& is)
+static Handle(Draw_Drawable3D) c2drestore (std::istream& is)
{
Handle(Geom2d_Curve) G = GeomTools_Curve2dSet::ReadCurve2d(is);
Handle(DrawTrSurf_Curve2d) N =
return d->IsInstance(STANDARD_TYPE(DrawTrSurf_BezierCurve2d));
}
-static void bzc2dsave(const Handle(Draw_Drawable3D)&d, ostream& OS)
+static void bzc2dsave(const Handle(Draw_Drawable3D)&d, std::ostream& OS)
{
Handle(DrawTrSurf_BezierCurve2d)
N = Handle(DrawTrSurf_BezierCurve2d)::DownCast(d);
GeomTools_Curve2dSet::PrintCurve2d(N->GetCurve(),OS,Standard_True);
}
-static Handle(Draw_Drawable3D) bzc2drestore (istream& is)
+static Handle(Draw_Drawable3D) bzc2drestore (std::istream& is)
{
Handle(Geom2d_BezierCurve) G =
Handle(Geom2d_BezierCurve)::DownCast (GeomTools_Curve2dSet::ReadCurve2d(is));
return d->IsInstance(STANDARD_TYPE(DrawTrSurf_BSplineCurve2d));
}
-static void bsc2dsave(const Handle(Draw_Drawable3D)&d, ostream& OS)
+static void bsc2dsave(const Handle(Draw_Drawable3D)&d, std::ostream& OS)
{
Handle(DrawTrSurf_BSplineCurve2d)
N = Handle(DrawTrSurf_BSplineCurve2d)::DownCast(d);
GeomTools_Curve2dSet::PrintCurve2d(N->GetCurve(),OS,Standard_True);
}
-static Handle(Draw_Drawable3D) bsc2drestore (istream& is)
+static Handle(Draw_Drawable3D) bsc2drestore (std::istream& is)
{
Handle(Geom2d_BSplineCurve) G =
Handle(Geom2d_BSplineCurve)::DownCast (GeomTools_Curve2dSet::ReadCurve2d(is));
return d->IsInstance(STANDARD_TYPE(DrawTrSurf_Surface));
}
-static void ssave(const Handle(Draw_Drawable3D)&d, ostream& OS)
+static void ssave(const Handle(Draw_Drawable3D)&d, std::ostream& OS)
{
Handle(DrawTrSurf_Surface) N = Handle(DrawTrSurf_Surface)::DownCast(d);
GeomTools_SurfaceSet::PrintSurface(N->GetSurface(),OS,Standard_True);
}
-static Handle(Draw_Drawable3D) srestore (istream& is)
+static Handle(Draw_Drawable3D) srestore (std::istream& is)
{
Handle(Geom_Surface) G = GeomTools_SurfaceSet::ReadSurface(is);
Handle(DrawTrSurf_Surface) N =
return d->IsInstance(STANDARD_TYPE(DrawTrSurf_BezierSurface));
}
-static void bzssave(const Handle(Draw_Drawable3D)&d, ostream& OS)
+static void bzssave(const Handle(Draw_Drawable3D)&d, std::ostream& OS)
{
Handle(DrawTrSurf_BezierSurface)
N = Handle(DrawTrSurf_BezierSurface)::DownCast(d);
GeomTools_SurfaceSet::PrintSurface(N->GetSurface(),OS,Standard_True);
}
-static Handle(Draw_Drawable3D) bzsrestore (istream& is)
+static Handle(Draw_Drawable3D) bzsrestore (std::istream& is)
{
Handle(Geom_BezierSurface) G =
Handle(Geom_BezierSurface)::DownCast (GeomTools_SurfaceSet::ReadSurface(is));
return d->IsInstance(STANDARD_TYPE(DrawTrSurf_BSplineSurface));
}
-static void bsssave(const Handle(Draw_Drawable3D)&d, ostream& OS)
+static void bsssave(const Handle(Draw_Drawable3D)&d, std::ostream& OS)
{
Handle(DrawTrSurf_BSplineSurface)
N = Handle(DrawTrSurf_BSplineSurface)::DownCast(d);
GeomTools_SurfaceSet::PrintSurface(N->GetSurface(),OS,Standard_True);
}
-static Handle(Draw_Drawable3D) bssrestore (istream& is)
+static Handle(Draw_Drawable3D) bssrestore (std::istream& is)
{
Handle(Geom_BSplineSurface) G =
Handle(Geom_BSplineSurface)::DownCast (GeomTools_SurfaceSet::ReadSurface(is));
return d->IsInstance(STANDARD_TYPE(DrawTrSurf_Point));
}
-static void pntsave(const Handle(Draw_Drawable3D)&d, ostream& OS)
+static void pntsave(const Handle(Draw_Drawable3D)&d, std::ostream& OS)
{
Handle(DrawTrSurf_Point)
N = Handle(DrawTrSurf_Point)::DownCast(d);
#if !defined(_MSC_VER) && !defined(__sgi) && !defined(IRIX)
- ios::fmtflags F = OS.flags();
- OS.setf(ios::scientific,ios::floatfield);
+ std::ios::fmtflags F = OS.flags();
+ OS.setf(std::ios::scientific,std::ios::floatfield);
OS.precision(15);
#else
- long form = OS.setf(ios::scientific);
+ long form = OS.setf(std::ios::scientific);
std::streamsize prec = OS.precision(15);
#endif
gp_Pnt P = N->Point();
#endif
}
-static Handle(Draw_Drawable3D) pntrestore (istream& is)
+static Handle(Draw_Drawable3D) pntrestore (std::istream& is)
{
Standard_Integer is3d;
is >> is3d;
return d->IsInstance(STANDARD_TYPE(DrawTrSurf_Triangulation));
}
-static void triasave(const Handle(Draw_Drawable3D)&d, ostream& OS)
+static void triasave(const Handle(Draw_Drawable3D)&d, std::ostream& OS)
{
Handle(DrawTrSurf_Triangulation)
T = Handle(DrawTrSurf_Triangulation)::DownCast(d);
#if !defined(_MSC_VER) && !defined(__sgi) && !defined(IRIX)
- ios::fmtflags F = OS.flags();
- OS.setf(ios::scientific,ios::floatfield);
+ std::ios::fmtflags F = OS.flags();
+ OS.setf(std::ios::scientific,std::ios::floatfield);
OS.precision(15);
#else
- long form = OS.setf(ios::scientific);
+ long form = OS.setf(std::ios::scientific);
std::streamsize prec = OS.precision(15);
#endif
Poly::Write(T->Triangulation(),OS);
#endif
}
-static Handle(Draw_Drawable3D) triarestore (istream& is)
+static Handle(Draw_Drawable3D) triarestore (std::istream& is)
{
return new DrawTrSurf_Triangulation(Poly::ReadTriangulation(is));
}
return d->IsInstance(STANDARD_TYPE(DrawTrSurf_Polygon3D));
}
-static void poly3dsave(const Handle(Draw_Drawable3D)&d, ostream& OS)
+static void poly3dsave(const Handle(Draw_Drawable3D)&d, std::ostream& OS)
{
Handle(DrawTrSurf_Polygon3D)
T = Handle(DrawTrSurf_Polygon3D)::DownCast(d);
#if !defined(_MSC_VER) && !defined(__sgi) && !defined(IRIX)
- ios::fmtflags F = OS.flags();
- OS.setf(ios::scientific,ios::floatfield);
+ std::ios::fmtflags F = OS.flags();
+ OS.setf(std::ios::scientific,std::ios::floatfield);
OS.precision(15);
#else
- long form = OS.setf(ios::scientific);
+ long form = OS.setf(std::ios::scientific);
std::streamsize prec = OS.precision(15);
#endif
Poly::Write(T->Polygon3D(),OS);
#endif
}
-static Handle(Draw_Drawable3D) poly3drestore (istream& is)
+static Handle(Draw_Drawable3D) poly3drestore (std::istream& is)
{
return new DrawTrSurf_Polygon3D(Poly::ReadPolygon3D(is));
}
return d->IsInstance(STANDARD_TYPE(DrawTrSurf_Polygon2D));
}
-static void poly2dsave(const Handle(Draw_Drawable3D)&d, ostream& OS)
+static void poly2dsave(const Handle(Draw_Drawable3D)&d, std::ostream& OS)
{
Handle(DrawTrSurf_Polygon2D)
T = Handle(DrawTrSurf_Polygon2D)::DownCast(d);
#if !defined(_MSC_VER) && !defined(__sgi) && !defined(IRIX)
- ios::fmtflags F = OS.flags();
- OS.setf(ios::scientific, ios::floatfield);
+ std::ios::fmtflags F = OS.flags();
+ OS.setf(std::ios::scientific, std::ios::floatfield);
OS.precision(15);
#else
- long form = OS.setf(ios::scientific);
+ long form = OS.setf(std::ios::scientific);
std::streamsize prec = OS.precision(15);
#endif
Poly::Write(T->Polygon2D(),OS);
#endif
}
-static Handle(Draw_Drawable3D) poly2drestore (istream& is)
+static Handle(Draw_Drawable3D) poly2drestore (std::istream& is)
{
return new DrawTrSurf_Polygon2D(Poly::ReadPolygon2D(is));
}
void DrawTrSurf_Get(const char* name, Handle(Standard_Transient)& G)
{
Handle(Geom_Geometry) GG = DrawTrSurf::Get(name);
- cout << "Nom : " << name << endl;
+ std::cout << "Nom : " << name << std::endl;
if (!GG.IsNull()) {
G = GG;
return;
return;
}
- cout << "*** Not a geometric object ***" << endl;
+ std::cout << "*** Not a geometric object ***" << std::endl;
}
*/
void DrawTrSurf_Point::Dump(Standard_OStream& S) const
{
#if !defined(_MSC_VER) && !defined(__sgi) && !defined(IRIX)
- ios::fmtflags F = S.flags();
- S.setf(ios::scientific,ios::floatfield);
+ std::ios::fmtflags F = S.flags();
+ S.setf(std::ios::scientific,std::ios::floatfield);
S.precision(15);
#else
- long form = S.setf(ios::scientific);
+ long form = S.setf(std::ios::scientific);
std::streamsize prec = S.precision(15);
#endif
if (is3D)
- S << "Point : " << myPoint.X() << ", " << myPoint.Y() << ", " << myPoint.Z() <<endl;
+ S << "Point : " << myPoint.X() << ", " << myPoint.Y() << ", " << myPoint.Z() <<std::endl;
else
- S << "Point 2d : " << myPoint.X() << ", " << myPoint.Y() <<endl;
+ S << "Point 2d : " << myPoint.X() << ", " << myPoint.Y() <<std::endl;
#if !defined(_MSC_VER) && !defined(__sgi) && !defined(IRIX)
S.setf(F);
#else
L3 = gce_MakeLin(Proj1,Proj2);
}
else {
- //cout<<"DsgPrs_OffsetPresentation Cote nulle"<<endl;
+ //std::cout<<"DsgPrs_OffsetPresentation Cote nulle"<<std::endl;
DimNulle = Standard_True;
L3 = gp_Lin(Proj1,aDirection);
gp_Vec v4 (Proj1,OffsetPoint);
math_Vector Sol(1, 3), UVSol(1, 3);
UVSol(1) = myt; UVSol(2) = myU; UVSol(3) = myV;
Value(UVSol, Sol);
- cout <<"F(1)= "<<Sol(1)<<" F(2)= "<<Sol(2)<<" F(3)= "<<Sol(3)<<endl;
+ std::cout <<"F(1)= "<<Sol(1)<<" F(2)= "<<Sol(2)<<" F(3)= "<<Sol(3)<<std::endl;
#endif
//comparison of solution with previous solutions
Standard_Real tol2d = Precision::PConfusion() * Precision::PConfusion();
math_Vector Sol(1, 4), UVSol(1, 4);
UVSol(1) = myU1; UVSol(2) = myV1; UVSol(3) = myU2; UVSol(4) = myV2;
Value(UVSol, Sol);
- cout <<"F(1)= "<<Sol(1)<<" F(2)= "<<Sol(2)<<" F(3)= "<<Sol(3)<<" F(4)= "<<Sol(4)<<endl;
+ std::cout <<"F(1)= "<<Sol(1)<<" F(2)= "<<Sol(2)<<" F(3)= "<<Sol(3)<<" F(4)= "<<Sol(4)<<std::endl;
#endif
mySqDist.Append(myP1.SquareDistance(myP2));
#ifdef OCCT_DEBUG
if (!IsSolved) {
- cout << "Solve Echec H = " << endl;
+ std::cout << "Solve Echec H = " << std::endl;
H->OutM();
}
#endif
}
//-----------------------------------------------------------------------
// for(i = FirstIndexes.Lower(); i <= FirstIndexes.Upper(); i++)
-// cout << "FirstIndexes(" << i << ") = " << FirstIndexes(i) << endl;
+// std::cout << "FirstIndexes(" << i << ") = " << FirstIndexes(i) << std::endl;
// FirstIndexes.Init(1); // temporary GHGt is full matrix
GHGt = new FEmTool_ProfileMatrix(FirstIndexes);
}
void FEmTool_ProfileMatrix::OutM() const
{
Standard_Integer i, j;
- cout<<"Matrix A"<<endl;
+ std::cout<<"Matrix A"<<std::endl;
for(i = 1; i <= RowNumber(); i++) {
for(j = 1; j < i - profile(1, i); j++)
- cout<<"0 ";
+ std::cout<<"0 ";
for(j = profile(2, i) - profile(1, i); j <= profile(2, i); j++)
- cout<<ProfileMatrix->Value(j)<<" ";
- cout<<endl;
+ std::cout<<ProfileMatrix->Value(j)<<" ";
+ std::cout<<std::endl;
}
- cout<<"NextCoeff"<<endl;
+ std::cout<<"NextCoeff"<<std::endl;
for(i = 1; i <= profile(2, RowNumber()); i++)
- cout<<NextCoeff->Value(i)<<" ";
- cout<<endl;
+ std::cout<<NextCoeff->Value(i)<<" ";
+ std::cout<<std::endl;
}
void FEmTool_ProfileMatrix::OutS() const
{
Standard_Integer i, j;
- cout<<"Matrix S"<<endl;
+ std::cout<<"Matrix S"<<std::endl;
for(i = 1; i <= RowNumber(); i++) {
for(j = 1; j < i - profile(1, i); j++)
- cout<<"0 ";
+ std::cout<<"0 ";
for(j = profile(2, i) - profile(1, i); j <= profile(2, i); j++)
- cout<<SMatrix->Value(j)<<" ";
- cout<<endl;
+ std::cout<<SMatrix->Value(j)<<" ";
+ std::cout<<std::endl;
}
}
}
case Storage_VSRead:
{
- // ios::nocreate is not portable
+ // std::ios::nocreate is not portable
#if !defined(IRIX) && !defined(DECOSF1)
- anOpenMode = ios::in | ios::binary;
+ anOpenMode = std::ios::in | std::ios::binary;
#else
- anOpenMode = ios::in;
+ anOpenMode = std::ios::in;
#endif
break;
}
case Storage_VSWrite:
{
#if !defined(IRIX) && !defined(DECOSF1)
- anOpenMode = ios::out | ios::binary;
+ anOpenMode = std::ios::out | std::ios::binary;
#else
- anOpenMode = ios::out;
+ anOpenMode = std::ios::out;
#endif
break;
}
case Storage_VSReadWrite:
{
#if !defined(IRIX) && !defined(DECOSF1)
- anOpenMode = ios::in | ios::out | ios::binary;
+ anOpenMode = std::ios::in | std::ios::out | std::ios::binary;
#else
- anOpenMode = ios::in | ios::out;
+ anOpenMode = std::ios::in | std::ios::out;
#endif
break;
}
}
if (!(myStream >> aType)) throw Storage_StreamTypeMismatchError();
- // cout << "REF:" << aRef << " TYPE:"<< aType << endl;
+ // std::cout << "REF:" << aRef << " TYPE:"<< aType << std::endl;
}
//=======================================================================
void FSD_CmpFile::BeginReadPersistentObjectData()
{
- //cout << "BeginReadPersistentObjectData" << endl;
+ //std::cout << "BeginReadPersistentObjectData" << std::endl;
}
//=======================================================================
void FSD_CmpFile::BeginReadObjectData()
{
- // cout << "BeginReadObjectData" << endl;
+ // std::cout << "BeginReadObjectData" << std::endl;
}
//=======================================================================
void FSD_CmpFile::EndReadObjectData()
{
- // cout << "EndReadObjectData" << endl;
+ // std::cout << "EndReadObjectData" << std::endl;
}
//=======================================================================
if (c == '\r') {
myStream.get(c);
}
- // cout << "EndReadPersistentObjectData" << endl;
+ // std::cout << "EndReadPersistentObjectData" << std::endl;
}
#include <stdio.h>
#include <Standard_Stream.hxx>
-typedef fstream FSD_FStream;
+typedef std::fstream FSD_FStream;
#endif
}
case Storage_VSRead:
{
- // ios::nocreate is not portable
- anOpenMode = ios::in;
+ // std::ios::nocreate is not portable
+ anOpenMode = std::ios::in;
break;
}
case Storage_VSWrite:
{
- anOpenMode = ios::out;
+ anOpenMode = std::ios::out;
break;
}
case Storage_VSReadWrite:
{
- anOpenMode = ios::in | ios::out;
+ anOpenMode = std::ios::in | std::ios::out;
break;
}
}
unsigned short i = 0;
if (!(myStream >> i)) {
// SGI : donne une erreur mais a une bonne valeur pour les caracteres ecrits
- // signes (-80 fait ios::badbit, mais la variable i est initialisee)
+ // signes (-80 fait std::ios::badbit, mais la variable i est initialisee)
//
if (i == 0) throw Storage_StreamTypeMismatchError();
- myStream.clear(ios::goodbit); // .clear(0) is not portable
+ myStream.clear(std::ios::goodbit); // .clear(0) is not portable
}
aValue = (char)i;
}
if (!(myStream >> aType)) throw Storage_StreamTypeMismatchError();
-// cout << "REF:" << aRef << " TYPE:"<< aType << endl;
+// std::cout << "REF:" << aRef << " TYPE:"<< aType << std::endl;
}
//=======================================================================
myStream.get(c);
}
-//cout << "BeginReadPersistentObjectData" << endl;
+//std::cout << "BeginReadPersistentObjectData" << std::endl;
}
//=======================================================================
myStream.get(c);
}
-// cout << "BeginReadObjectData" << endl;
+// std::cout << "BeginReadObjectData" << std::endl;
}
//=======================================================================
myStream.get(c);
}
-// cout << "EndReadObjectData" << endl;
+// std::cout << "EndReadObjectData" << std::endl;
}
//=======================================================================
}
myStream.get(c);
}
-// cout << "EndReadPersistentObjectData" << endl;
+// std::cout << "EndReadPersistentObjectData" << std::endl;
}
//=======================================================================
}
// For eventual debug
-// Newton.Dump(cout);
+// Newton.Dump(std::cout);
return OkCompute;
}
// ==================================================================
{
-o << " Batten |"; o.width(7); o<< "Old | New" << endl;
-o << " P1 X |"; o.width(7); o<< OldP1.X() << " | " << NewP1.X() << endl;
-o << " Y |"; o.width(7); o<< OldP1.Y() << " | " << NewP1.Y() << endl;
-o << " P2 X |"; o.width(7); o<< OldP2.X() << " | " << NewP2.X() << endl;
-o << " Y |"; o.width(7); o<< OldP2.Y() << " | " << NewP2.Y() << endl;
-o << " Angle1 |"; o.width(7); o<< OldAngle1 << " | " << NewAngle1 << endl;
-o << " Angle2 |"; o.width(7); o<< OldAngle2 << " | " << NewAngle2 << endl;
-o << " Height |"; o.width(7); o<< OldHeight << " | " << NewHeight << endl;
-o << " Slope |"; o.width(7); o<< OldSlope << " | " << NewSlope << endl;
-o << " SlidingFactor |"; o.width(7); o<< OldSlidingFactor << " | " << NewSlidingFactor << endl;
-o << " FreeSliding |"; o.width(7); o<< OldFreeSliding << " | " << NewFreeSliding << endl;
-o << " ConstrOrder1 |"; o.width(7); o<< OldConstraintOrder1 << " | " << NewConstraintOrder1 << endl;
-o << " ConstrOrder2 |" ; o.width(7); o<< OldConstraintOrder2 << " | " << NewConstraintOrder2 << endl;
+o << " Batten |"; o.width(7); o<< "Old | New" << std::endl;
+o << " P1 X |"; o.width(7); o<< OldP1.X() << " | " << NewP1.X() << std::endl;
+o << " Y |"; o.width(7); o<< OldP1.Y() << " | " << NewP1.Y() << std::endl;
+o << " P2 X |"; o.width(7); o<< OldP2.X() << " | " << NewP2.X() << std::endl;
+o << " Y |"; o.width(7); o<< OldP2.Y() << " | " << NewP2.Y() << std::endl;
+o << " Angle1 |"; o.width(7); o<< OldAngle1 << " | " << NewAngle1 << std::endl;
+o << " Angle2 |"; o.width(7); o<< OldAngle2 << " | " << NewAngle2 << std::endl;
+o << " Height |"; o.width(7); o<< OldHeight << " | " << NewHeight << std::endl;
+o << " Slope |"; o.width(7); o<< OldSlope << " | " << NewSlope << std::endl;
+o << " SlidingFactor |"; o.width(7); o<< OldSlidingFactor << " | " << NewSlidingFactor << std::endl;
+o << " FreeSliding |"; o.width(7); o<< OldFreeSliding << " | " << NewFreeSliding << std::endl;
+o << " ConstrOrder1 |"; o.width(7); o<< OldConstraintOrder1 << " | " << NewConstraintOrder1 << std::endl;
+o << " ConstrOrder2 |" ; o.width(7); o<< OldConstraintOrder2 << " | " << NewConstraintOrder2 << std::endl;
switch (myCode) {
case FairCurve_OK :
- o << "AnalysisCode : Ok" << endl;
+ o << "AnalysisCode : Ok" << std::endl;
break;
case FairCurve_NotConverged :
- o << "AnalysisCode : NotConverged" << endl;
+ o << "AnalysisCode : NotConverged" << std::endl;
break;
case FairCurve_InfiniteSliding :
- o << "AnalysisCode : InfiniteSliding" << endl;
+ o << "AnalysisCode : InfiniteSliding" << std::endl;
break;
case FairCurve_NullHeight :
- o << "AnalysisCode : NullHeight" << endl;
+ o << "AnalysisCode : NullHeight" << std::endl;
break;
}
}
// is free as the last value of X is reserved.
// calculation of pole constraints
// for (ii=MyPoles->Lower();ii<=MyPoles->Upper();ii++) {
-// cout << ii << " X = " << MyPoles->Value(ii).X() <<
-// " Y = " << MyPoles->Value(ii).Y() << endl;}
+// std::cout << ii << " X = " << MyPoles->Value(ii).X() <<
+// " Y = " << MyPoles->Value(ii).Y() << std::endl;}
if (MyContrOrder1 >= 1) {
IndexDeb1 += 1;
}
-// For eventual debug Newton.Dump(cout);
+// For eventual debug Newton.Dump(std::cout);
return OkCompute;
}
//======================================================================================
{
-o << " MVCurve |"; o.width(7); o<< "Old | New" << endl;
-o << " P1 X |"; o.width(7); o<< OldP1.X() << " | " << NewP1.X() << endl;
-o << " Y |"; o.width(7); o<< OldP1.Y() << " | " << NewP1.Y() << endl;
-o << " P2 X |"; o.width(7); o<< OldP2.X() << " | " << NewP2.X() << endl;
-o << " Y |"; o.width(7); o<< OldP2.Y() << " | " << NewP2.Y() << endl;
-o << " Angle1 |"; o.width(7); o<< OldAngle1 << " | " << NewAngle1 << endl;
-o << " Angle2 |"; o.width(7); o<< OldAngle2 << " | " << NewAngle2 << endl;
-o << " Curvature1 |"; o.width(7); o<< OldCurvature1 << " | " << NewCurvature1 << endl;
-o << " Curvature2 |"; o.width(7); o<< OldCurvature2 << " | " << NewCurvature2 << endl;
-o << " Height |"; o.width(7); o<< OldHeight << " | " << NewHeight << endl;
-o << " Slope |"; o.width(7); o<< OldSlope << " | " << NewSlope << endl;
-o << " PhysicalRatio |"; o.width(7); o<< OldPhysicalRatio << " | " << NewPhysicalRatio << endl;
-o << " SlidingFactor |"; o.width(7); o<< OldSlidingFactor << " | " << NewSlidingFactor << endl;
-o << " FreeSliding |"; o.width(7); o<< OldFreeSliding << " | " << NewFreeSliding << endl;
-o << " ConstrOrder1 |"; o.width(7); o<< OldConstraintOrder1 << " | " << NewConstraintOrder1 << endl;
-o << " ConstrOrder2 |"; o.width(7); o<< OldConstraintOrder2 << " | " << NewConstraintOrder2 << endl;
+o << " MVCurve |"; o.width(7); o<< "Old | New" << std::endl;
+o << " P1 X |"; o.width(7); o<< OldP1.X() << " | " << NewP1.X() << std::endl;
+o << " Y |"; o.width(7); o<< OldP1.Y() << " | " << NewP1.Y() << std::endl;
+o << " P2 X |"; o.width(7); o<< OldP2.X() << " | " << NewP2.X() << std::endl;
+o << " Y |"; o.width(7); o<< OldP2.Y() << " | " << NewP2.Y() << std::endl;
+o << " Angle1 |"; o.width(7); o<< OldAngle1 << " | " << NewAngle1 << std::endl;
+o << " Angle2 |"; o.width(7); o<< OldAngle2 << " | " << NewAngle2 << std::endl;
+o << " Curvature1 |"; o.width(7); o<< OldCurvature1 << " | " << NewCurvature1 << std::endl;
+o << " Curvature2 |"; o.width(7); o<< OldCurvature2 << " | " << NewCurvature2 << std::endl;
+o << " Height |"; o.width(7); o<< OldHeight << " | " << NewHeight << std::endl;
+o << " Slope |"; o.width(7); o<< OldSlope << " | " << NewSlope << std::endl;
+o << " PhysicalRatio |"; o.width(7); o<< OldPhysicalRatio << " | " << NewPhysicalRatio << std::endl;
+o << " SlidingFactor |"; o.width(7); o<< OldSlidingFactor << " | " << NewSlidingFactor << std::endl;
+o << " FreeSliding |"; o.width(7); o<< OldFreeSliding << " | " << NewFreeSliding << std::endl;
+o << " ConstrOrder1 |"; o.width(7); o<< OldConstraintOrder1 << " | " << NewConstraintOrder1 << std::endl;
+o << " ConstrOrder2 |"; o.width(7); o<< OldConstraintOrder2 << " | " << NewConstraintOrder2 << std::endl;
switch (myCode) {
case FairCurve_OK :
- o << "AnalysisCode : Ok" << endl;
+ o << "AnalysisCode : Ok" << std::endl;
break;
case FairCurve_NotConverged :
- o << "AnalysisCode : NotConverged" << endl;
+ o << "AnalysisCode : NotConverged" << std::endl;
break;
case FairCurve_InfiniteSliding :
- o << "AnalysisCode : InfiniteSliding" << endl;
+ o << "AnalysisCode : InfiniteSliding" << std::endl;
break;
case FairCurve_NullHeight :
- o << "AnalysisCode : NullHeight" << endl;
+ o << "AnalysisCode : NullHeight" << std::endl;
break;
}
}
myAlong.SetValue(3,IsQPunctual(BS,U1,GeomAbs_IsoU,TolMin,Tol));
myAlong.SetValue(4,IsQPunctual(BS,U2,GeomAbs_IsoU,TolMin,Tol));
#ifdef OCCT_DEBUG
- cout<<myAlong(1)<<endl<<myAlong(2)<<endl<<myAlong(3)<<endl<<myAlong(4)<<endl;
+ std::cout<<myAlong(1)<<std::endl<<myAlong(2)<<std::endl<<myAlong(3)<<std::endl<<myAlong(4)<<std::endl;
#endif
if (myAlong(1) || myAlong(2) || myAlong(3) || myAlong(4))
{
InitSurf = Handle(Geom_BSplineSurface)::DownCast(myBasisSurf);
}
#ifdef OCCT_DEBUG
- cout<<"UDEG: "<<InitSurf->UDegree()<<endl;
- cout<<"VDEG: "<<InitSurf->VDegree()<<endl;
+ std::cout<<"UDEG: "<<InitSurf->UDegree()<<std::endl;
+ std::cout<<"VDEG: "<<InitSurf->VDegree()<<std::endl;
#endif
if(IsAlongU() && IsAlongV()) ClearOsculFlags();
if(!OsculSurf) break;
k++;
#ifdef OCCT_DEBUG
- cout<<"1.k = "<<k<<endl;
+ std::cout<<"1.k = "<<k<<std::endl;
#endif
IsQPunc=IsQPunctual(L,V1,GeomAbs_IsoV,0.,Tol);
UKnot=1;
if(!OsculSurf) break;
k++;
#ifdef OCCT_DEBUG
- cout<<"2.k = "<<k<<endl;
+ std::cout<<"2.k = "<<k<<std::endl;
#endif
IsQPunc=IsQPunctual(L,V2,GeomAbs_IsoV,0.,Tol);
UKnot=1;
if(!OsculSurf) break;
k++;
#ifdef OCCT_DEBUG
- cout<<"2.k = "<<k<<endl;
+ std::cout<<"2.k = "<<k<<std::endl;
#endif
IsQPunc=IsQPunctual(L,V2,GeomAbs_IsoV,0.,Tol);
UKnot=1;
if(!OsculSurf) break;
k++;
#ifdef OCCT_DEBUG
- cout<<"1.k = "<<k<<endl;
+ std::cout<<"1.k = "<<k<<std::endl;
#endif
IsQPunc=IsQPunctual(L,U1,GeomAbs_IsoU,0.,Tol);
UKnot=1;
if(!OsculSurf) break;
k++;
#ifdef OCCT_DEBUG
- cout<<"2.k = "<<k<<endl;
+ std::cout<<"2.k = "<<k<<std::endl;
#endif
IsQPunc=IsQPunctual(L,U2,GeomAbs_IsoU,0.,Tol);
UKnot=1;
if(!OsculSurf) break;
k++;
#ifdef OCCT_DEBUG
- cout<<"2.k = "<<k<<endl;
+ std::cout<<"2.k = "<<k<<std::endl;
#endif
IsQPunc=IsQPunctual(L,U2,GeomAbs_IsoU,0.,Tol);
UKnot=1;
Standard_Integer i, j;
Standard_Boolean OsculSurf=Standard_True;
#ifdef OCCT_DEBUG
- cout<<"t = "<<Param<<endl;
- cout<<"======================================"<<endl<<endl;
+ std::cout<<"t = "<<Param<<std::endl;
+ std::cout<<"======================================"<<std::endl<<std::endl;
#endif
// for cache
if( (IsAlongU() && vdeg <=1) || (IsAlongV() && udeg <=1))
{
#ifdef OCCT_DEBUG
- cout<<" surface osculatrice nulle "<<endl;
+ std::cout<<" surface osculatrice nulle "<<std::endl;
#endif
//throw Standard_ConstructionError("Geom_OsculatingSurface");
OsculSurf=Standard_False;
if (IsAlongU())
{
#ifdef OCCT_DEBUG
- cout<<">>>>>>>>>>> AlongU"<<endl;
+ std::cout<<">>>>>>>>>>> AlongU"<<std::endl;
#endif
OscUNumCoeff = (Standard_Integer ) udeg + 1;
OscVNumCoeff = (Standard_Integer ) vdeg;
if (IsAlongV())
{
#ifdef OCCT_DEBUG
- cout<<">>>>>>>>>>> AlongV"<<endl;
+ std::cout<<">>>>>>>>>>> AlongV"<<std::endl;
#endif
OscUNumCoeff = (Standard_Integer ) udeg;
OscVNumCoeff = (Standard_Integer ) vdeg + 1;
Data.VDegree(),
0, 0);
#ifdef OCCT_DEBUG
- cout<<"^====================================^"<<endl<<endl;
+ std::cout<<"^====================================^"<<std::endl<<std::endl;
#endif
// L=BSpl;
}
#ifdef OCCT_DEBUG
- cout << " D1NormMax = " << D1NormMax << endl;
+ std::cout << " D1NormMax = " << D1NormMax << std::endl;
#endif
if (D1NormMax >TolMax || D1NormMax < TolMin )
Along = Standard_False;
D1NormMax=Max(D1NormMax,D1V.Magnitude());
}
#ifdef OCCT_DEBUG
- cout << " D1NormMax = " << D1NormMax << endl;
+ std::cout << " D1NormMax = " << D1NormMax << std::endl;
#endif
if (D1NormMax >TolMax || D1NormMax < TolMin )
Along = Standard_False;
void Geom2dConvert_ApproxCurve::Dump(Standard_OStream& o) const
{
- o << "******* Dump of ApproxCurve *******" << endl;
- o << "******* Error " << MaxError() << endl;
+ o << "******* Dump of ApproxCurve *******" << std::endl;
+ o << "******* Error " << MaxError() << std::endl;
}
(Vec1.Dot(Vec2)/(NormeD1*NormeD1)+
Vec1.Dot(TheDirection)/(NormeDir*NormeDir));
- // cout << "U = "<< X << " F ="<< Fval <<" DF ="<< Deriv<<endl;
+ // std::cout << "U = "<< X << " F ="<< Fval <<" DF ="<< Deriv<<std::endl;
return Standard_True;
}
Geom2dHatch_Elements::Geom2dHatch_Elements(const Geom2dHatch_Elements& )
{
#ifdef OCCT_DEBUG
- cout<<" Magic Constructor in Geom2dHatch_Elements:: "<<endl;
+ std::cout<<" Magic Constructor in Geom2dHatch_Elements:: "<<std::endl;
#endif
}
static void IntersectionPointDump (const IntRes2d_IntersectionPoint& Pnt,
const Standard_Integer Index)
{
- Standard_Integer SavedPrecision = cout.precision() ;
- cout.precision (15) ;
- cout << "----- IntRes2d:: Point # " << setw(3) << Index << " ---------------" << endl ;
- cout << "-- U: "<<Pnt.Value().X()<<" V: "<<Pnt.Value().Y()<<endl;
- cout << "-- Parameter on first : " << Pnt.ParamOnFirst() << endl ;
- cout << "-- Position on first : " ;
+ Standard_Integer SavedPrecision = std::cout.precision() ;
+ std::cout.precision (15) ;
+ std::cout << "----- IntRes2d:: Point # " << std::setw(3) << Index << " ---------------" << std::endl ;
+ std::cout << "-- U: "<<Pnt.Value().X()<<" V: "<<Pnt.Value().Y()<<std::endl;
+ std::cout << "-- Parameter on first : " << Pnt.ParamOnFirst() << std::endl ;
+ std::cout << "-- Position on first : " ;
switch (Pnt.TransitionOfFirst().PositionOnCurve()) {
- case IntRes2d_Head : cout << "HEAD" ; break ;
- case IntRes2d_Middle : cout << "MIDDLE" ; break ;
- case IntRes2d_End : cout << "END" ; break ;
+ case IntRes2d_Head : std::cout << "HEAD" ; break ;
+ case IntRes2d_Middle : std::cout << "MIDDLE" ; break ;
+ case IntRes2d_End : std::cout << "END" ; break ;
}
- cout << endl ;
- cout << "-- IntRes2d:: Transition on first : " ;
+ std::cout << std::endl ;
+ std::cout << "-- IntRes2d:: Transition on first : " ;
switch (Pnt.TransitionOfFirst().TransitionType()) {
- case IntRes2d_In : cout << "IN" ; break ;
- case IntRes2d_Out : cout << "OUT" ; break ;
- case IntRes2d_Touch : cout << "TOUCH" ; break ;
- case IntRes2d_Undecided : cout << "UNDECIDED" ; break ;
+ case IntRes2d_In : std::cout << "IN" ; break ;
+ case IntRes2d_Out : std::cout << "OUT" ; break ;
+ case IntRes2d_Touch : std::cout << "TOUCH" ; break ;
+ case IntRes2d_Undecided : std::cout << "UNDECIDED" ; break ;
}
- cout << endl ;
+ std::cout << std::endl ;
if (Pnt.TransitionOfFirst().TransitionType() == IntRes2d_Touch) {
- cout << "-- IntRes2d:: Situation on first : " ;
+ std::cout << "-- IntRes2d:: Situation on first : " ;
switch (Pnt.TransitionOfFirst().Situation()) {
- case IntRes2d_Inside : cout << "INSIDE" ; break ;
- case IntRes2d_Outside : cout << "OUTSIDE" ; break ;
- case IntRes2d_Unknown : cout << "UNKNOWN" ; break ;
+ case IntRes2d_Inside : std::cout << "INSIDE" ; break ;
+ case IntRes2d_Outside : std::cout << "OUTSIDE" ; break ;
+ case IntRes2d_Unknown : std::cout << "UNKNOWN" ; break ;
}
- cout << endl ;
+ std::cout << std::endl ;
}
- cout << "--------------------------------------------" << endl ;
- cout << "-- Parameter on second : " << Pnt.ParamOnSecond() << endl ;
- cout << "-- Position on second : " ;
+ std::cout << "--------------------------------------------" << std::endl ;
+ std::cout << "-- Parameter on second : " << Pnt.ParamOnSecond() << std::endl ;
+ std::cout << "-- Position on second : " ;
switch (Pnt.TransitionOfSecond().PositionOnCurve()) {
- case IntRes2d_Head : cout << "HEAD" ; break ;
- case IntRes2d_Middle : cout << "MIDDLE" ; break ;
- case IntRes2d_End : cout << "END" ; break ;
+ case IntRes2d_Head : std::cout << "HEAD" ; break ;
+ case IntRes2d_Middle : std::cout << "MIDDLE" ; break ;
+ case IntRes2d_End : std::cout << "END" ; break ;
}
- cout << endl ;
- cout << "-- IntRes2d:: Transition on second : " ;
+ std::cout << std::endl ;
+ std::cout << "-- IntRes2d:: Transition on second : " ;
switch (Pnt.TransitionOfSecond().TransitionType()) {
- case IntRes2d_In : cout << "IN" ; break ;
- case IntRes2d_Out : cout << "OUT" ; break ;
- case IntRes2d_Touch : cout << "TOUCH" ; break ;
- case IntRes2d_Undecided : cout << "UNDECIDED" ; break ;
+ case IntRes2d_In : std::cout << "IN" ; break ;
+ case IntRes2d_Out : std::cout << "OUT" ; break ;
+ case IntRes2d_Touch : std::cout << "TOUCH" ; break ;
+ case IntRes2d_Undecided : std::cout << "UNDECIDED" ; break ;
}
- cout << endl ;
+ std::cout << std::endl ;
if (Pnt.TransitionOfSecond().TransitionType() == IntRes2d_Touch) {
- cout << "-- IntRes2d:: Situation on second : " ;
+ std::cout << "-- IntRes2d:: Situation on second : " ;
switch (Pnt.TransitionOfSecond().Situation()) {
- case IntRes2d_Inside : cout << "INSIDE" ; break ;
- case IntRes2d_Outside : cout << "OUTSIDE" ; break ;
- case IntRes2d_Unknown : cout << "UNKNOWN" ; break ;
+ case IntRes2d_Inside : std::cout << "INSIDE" ; break ;
+ case IntRes2d_Outside : std::cout << "OUTSIDE" ; break ;
+ case IntRes2d_Unknown : std::cout << "UNKNOWN" ; break ;
}
- cout << endl ;
+ std::cout << std::endl ;
}
- cout << "--------------------------------------------" << endl ;
- cout.precision (SavedPrecision) ;
+ std::cout << "--------------------------------------------" << std::endl ;
+ std::cout.precision (SavedPrecision) ;
}
#endif
myIntersector.Intersect (hatching, element) ;
#if TRACE_HATCHER
- cout << "--- Hatcher - Trim:: Hatching # " << setw(3);
- cout << IndH << " with Element # " << setw(3);
- cout << IndE << " ----------" << endl ;
+ std::cout << "--- Hatcher - Trim:: Hatching # " << std::setw(3);
+ std::cout << IndH << " with Element # " << std::setw(3);
+ std::cout << IndE << " ----------" << std::endl ;
#endif
if (!myIntersector.IsDone()) {
- cout<<" Intersector -> Done = False ";
+ std::cout<<" Intersector -> Done = False ";
return Standard_False ;
}
#if TRACE_HATCHER
if (myIntersector.IsEmpty()) {
- cout << "No intersection" << endl ;
- cout << "--------------------------------------------------------------------" << endl ;
+ std::cout << "No intersection" << std::endl ;
+ std::cout << "--------------------------------------------------------------------" << std::endl ;
}
#endif
if (myIntersector.IsEmpty()) return Standard_True ;
#if TRACE_HATCHER
- cout << "Number of intersection points : " << setw(3) << (myIntersector.NbPoints()) << endl ;
- cout << "Number of intersection segments : " << setw(3) << (myIntersector.NbSegments()) << endl ;
+ std::cout << "Number of intersection points : " << std::setw(3) << (myIntersector.NbPoints()) << std::endl ;
+ std::cout << "Number of intersection segments : " << std::setw(3) << (myIntersector.NbSegments()) << std::endl ;
#endif
//-----------------------------------------------------------------------
const IntRes2d_IntersectionSegment& Seg = myIntersector.Segment (ISeg) ;
#if TRACE_HATCHER
- cout << "----- Segment # " << setw(3) << ISeg << " -------------" << endl ;
+ std::cout << "----- Segment # " << std::setw(3) << ISeg << " -------------" << std::endl ;
#endif
Standard_Boolean FirstPoint = Seg.HasFirstPoint() ;
#if TRACE_HATCHER
IntersectionPointDump (Pnt1, 1) ;
IntersectionPointDump (Pnt2, 2) ;
- cout << "THESE TWO POINTS ARE "
+ std::cout << "THESE TWO POINTS ARE "
<< (Conf2d ? "2D" : "3D")
- << " CONFUSED INTO THE FOLLOWING" << endl ;
+ << " CONFUSED INTO THE FOLLOWING" << std::endl ;
PntH.Dump() ;
#endif
continue ;
#if TRACE_HATCHER
}
else {
- cout << "----- Has no first point --------" << endl ;
- cout << "---------------------------------" << endl ;
+ std::cout << "----- Has no first point --------" << std::endl ;
+ std::cout << "---------------------------------" << std::endl ;
#endif
}
#if TRACE_HATCHER
}
else {
- cout << "----- Has no last point ---------" << endl ;
- cout << "---------------------------------" << endl ;
+ std::cout << "----- Has no last point ---------" << std::endl ;
+ std::cout << "---------------------------------" << std::endl ;
#endif
}
}
#if TRACE_HATCHER
- cout << "--------------------------------------------------------------------" << endl ;
+ std::cout << "--------------------------------------------------------------------" << std::endl ;
#endif
}
if(NbPnt == 0)
{
- //-- cout << "The hatching # " << setw(3) << IndH << " has to be classified" << endl ;
+ //-- std::cout << "The hatching # " << std::setw(3) << IndH << " has to be classified" << std::endl ;
Geom2dHatch_Classifier Classifier(myElements,Hatching.ClassificationPoint(),0.0000001);
if(Classifier.State() == TopAbs_IN)
{
const HatchGen_PointOnHatching& CurPnt = Hatching.Point (IPnt) ;
#if TRACE_HATCHER
- cout << "===== ComputeDomains:: Hatching # " << setw(3) << IndH << " =====" << endl ;
+ std::cout << "===== ComputeDomains:: Hatching # " << std::setw(3) << IndH << " =====" << std::endl ;
CurPnt.Dump (IPnt) ;
- cout << "==========================================" << endl ;
+ std::cout << "==========================================" << std::endl ;
#endif
void Geom2dHatch_Hatcher::Dump () const
{
- cout << endl ;
- cout << "========================================================" << endl ;
- cout << "=== Dump of the hatcher ================================" << endl ;
- cout << "========================================================" << endl ;
- cout << endl ;
+ std::cout << std::endl ;
+ std::cout << "========================================================" << std::endl ;
+ std::cout << "=== Dump of the hatcher ================================" << std::endl ;
+ std::cout << "========================================================" << std::endl ;
+ std::cout << std::endl ;
- cout << "The points are "
+ std::cout << "The points are "
<< (myKeepPoints ? " " : "not ")
<< "considered."
- << endl ;
- cout << "The segments are "
+ << std::endl ;
+ std::cout << "The segments are "
<< (myKeepSegments ? " " : "not ")
<< "considered."
- << endl ;
- cout << "2D Confusion tolerance : " << myConfusion2d << endl ;
- cout << "3D Confusion tolerance : " << myConfusion3d << endl ;
+ << std::endl ;
+ std::cout << "2D Confusion tolerance : " << myConfusion2d << std::endl ;
+ std::cout << "3D Confusion tolerance : " << myConfusion3d << std::endl ;
- cout << myNbHatchings
+ std::cout << myNbHatchings
<< " hatching"
<< ((myNbHatchings == 1) ? "" : "s")
- << endl ;
- cout << myNbElements
+ << std::endl ;
+ std::cout << myNbElements
<< " element"
<< ((myNbElements == 1) ? "" : "s")
- << endl ;
+ << std::endl ;
- cout << endl ;
- cout << "========================================================" << endl ;
- cout << "=== Hatchings ==========================================" << endl ;
- cout << "========================================================" << endl ;
- cout << endl ;
+ std::cout << std::endl ;
+ std::cout << "========================================================" << std::endl ;
+ std::cout << "=== Hatchings ==========================================" << std::endl ;
+ std::cout << "========================================================" << std::endl ;
+ std::cout << std::endl ;
for (Standard_Integer IndH = 1 ; IndH <= myNbHatchings ; IndH++) {
- cout << "Hatching # " << IndH ;
+ std::cout << "Hatching # " << IndH ;
if (!myHatchings.IsBound (IndH)) {
- cout << " is not bound" << endl ;
+ std::cout << " is not bound" << std::endl ;
} else {
const Geom2dHatch_Hatching& Hatching = myHatchings.Find (IndH) ;
Standard_Integer NbPnt = Hatching.NbPoints() ;
- cout << " contains " << NbPnt << " restriction points :" << endl ;
+ std::cout << " contains " << NbPnt << " restriction points :" << std::endl ;
for (Standard_Integer IPnt = 1 ; IPnt <= NbPnt ; IPnt++) {
const HatchGen_PointOnHatching& PntH = Hatching.Point (IPnt) ;
PntH.Dump (IPnt) ;
}
- cout << "----------------------------------------------" << endl ;
+ std::cout << "----------------------------------------------" << std::endl ;
}
}
- cout << endl ;
- cout << "========================================================" << endl ;
- cout << "=== Elements ===========================================" << endl ;
- cout << "========================================================" << endl ;
- cout << endl ;
+ std::cout << std::endl ;
+ std::cout << "========================================================" << std::endl ;
+ std::cout << "=== Elements ===========================================" << std::endl ;
+ std::cout << "========================================================" << std::endl ;
+ std::cout << std::endl ;
for (Standard_Integer IndE = 1 ; IndE <= myNbElements ; IndE++) {
- cout << "Element # " << IndE ;
+ std::cout << "Element # " << IndE ;
if (!myElements.IsBound (IndE)) {
- cout << " is not bound" << endl ;
+ std::cout << " is not bound" << std::endl ;
} else {
const Geom2dHatch_Element& Element = myElements.Find (IndE) ;
switch (Element.Orientation()) {
- case TopAbs_FORWARD : cout << " is FORWARD" << endl ; break ;
- case TopAbs_REVERSED : cout << " is REVERSED" << endl ; break ;
- case TopAbs_INTERNAL : cout << " is INTERNAL" << endl ; break ;
- case TopAbs_EXTERNAL : cout << " is EXTERNAL" << endl ; break ;
+ case TopAbs_FORWARD : std::cout << " is FORWARD" << std::endl ; break ;
+ case TopAbs_REVERSED : std::cout << " is REVERSED" << std::endl ; break ;
+ case TopAbs_INTERNAL : std::cout << " is INTERNAL" << std::endl ; break ;
+ case TopAbs_EXTERNAL : std::cout << " is EXTERNAL" << std::endl ; break ;
}
}
}
- cout << endl ;
+ std::cout << std::endl ;
}
void GeomConvert_ApproxCurve::Dump(Standard_OStream& o) const
{
- o << "******* Dump of ApproxCurve *******" << endl;
- o << "*******Error " << MaxError() << endl;
+ o << "******* Dump of ApproxCurve *******" << std::endl;
+ o << "*******Error " << MaxError() << std::endl;
}
void GeomConvert_ApproxSurface::Dump(Standard_OStream& o) const
{
- o<<endl;
- if (!myHasResult) { o<<"No result"<<endl; }
+ o<<std::endl;
+ if (!myHasResult) { o<<"No result"<<std::endl; }
else {
- o<<"Result max error :"<< myMaxError <<endl;
+ o<<"Result max error :"<< myMaxError <<std::endl;
}
- o<<endl;
+ o<<std::endl;
}
myPath->Intervals(ICenter, GeomFillNextShape(S));
myCurve1->Intervals(ICb1, S);
myCurve2->Intervals(ICb2, S);
-/* cout << "Intervals : " << S << endl;
- cout << "-- Center-> " << endl;
- for (ii=1; ii<=ICenter.Length(); ii++) cout << " , "<< ICenter(ii);
- cout << endl; cout << endl;
- cout << "-- Cb1-> " << endl;
- for (ii=1; ii<=ICb1.Length(); ii++) cout << " , "<< ICb1(ii);
- cout << endl; cout << endl;
- cout << "-- Cb2-> " << endl;
- for (ii=1; ii<=ICb2.Length(); ii++) cout << " , "<< ICb1(ii);
- cout << endl; cout << endl;*/
+/* std::cout << "Intervals : " << S << std::endl;
+ std::cout << "-- Center-> " << std::endl;
+ for (ii=1; ii<=ICenter.Length(); ii++) std::cout << " , "<< ICenter(ii);
+ std::cout << std::endl; std::cout << std::endl;
+ std::cout << "-- Cb1-> " << std::endl;
+ for (ii=1; ii<=ICb1.Length(); ii++) std::cout << " , "<< ICb1(ii);
+ std::cout << std::endl; std::cout << std::endl;
+ std::cout << "-- Cb2-> " << std::endl;
+ for (ii=1; ii<=ICb2.Length(); ii++) std::cout << " , "<< ICb1(ii);
+ std::cout << std::endl; std::cout << std::endl;*/
GeomFillFusInt(ICb1, ICb2, Inter);
cTangent = (Tangent_ - cTangent)/h;
cNormal = (Normal_ - cNormal)/h;
cBiNormal = (BiNormal_ - cBiNormal)/h;
- cout<<"DTangent = ("<<DTangent.X()<<", "<<DTangent.Y()<<", "<<DTangent.Z()<<")"<<endl;
- cout<<"CTangent = ("<<cTangent.X()<<", "<<cTangent.Y()<<", "<<cTangent.Z()<<")"<<endl;
- cout<<"DNormal = ("<<DNormal.X()<<", "<<DNormal.Y()<<", "<<DNormal.Z()<<")"<<endl;
- cout<<"CNormal = ("<<cNormal.X()<<", "<<cNormal.Y()<<", "<<cNormal.Z()<<")"<<endl;
- cout<<"DBiNormal = ("<<DBiNormal.X()<<", "<<DBiNormal.Y()<<", "<<DBiNormal.Z()<<")"<<endl;
- cout<<"CBiNormal = ("<<cBiNormal.X()<<", "<<cBiNormal.Y()<<", "<<cBiNormal.Z()<<")"<<endl;
+ std::cout<<"DTangent = ("<<DTangent.X()<<", "<<DTangent.Y()<<", "<<DTangent.Z()<<")"<<std::endl;
+ std::cout<<"CTangent = ("<<cTangent.X()<<", "<<cTangent.Y()<<", "<<cTangent.Z()<<")"<<std::endl;
+ std::cout<<"DNormal = ("<<DNormal.X()<<", "<<DNormal.Y()<<", "<<DNormal.Z()<<")"<<std::endl;
+ std::cout<<"CNormal = ("<<cNormal.X()<<", "<<cNormal.Y()<<", "<<cNormal.Z()<<")"<<std::endl;
+ std::cout<<"DBiNormal = ("<<DBiNormal.X()<<", "<<DBiNormal.Y()<<", "<<DBiNormal.Z()<<")"<<std::endl;
+ std::cout<<"CBiNormal = ("<<cBiNormal.X()<<", "<<cBiNormal.Y()<<", "<<cBiNormal.Z()<<")"<<std::endl;
*/
return Standard_True;
}
DNormal = BiNormal.Crossed(DTangent);
D2Normal = BiNormal.Crossed(D2Tangent);
}
-/* cout<<"Param = "<<Param<<endl;
- cout<<"Tangent = ("<<Tangent.X()<<", "<<Tangent.Y()<<", "<<Tangent.Z()<<")"<<endl;
- cout<<"DTangent = ("<<DTangent.X()<<", "<<DTangent.Y()<<", "<<DTangent.Z()<<")"<<endl;
- cout<<"D2Tangent = ("<<D2Tangent.X()<<", "<<D2Tangent.Y()<<", "<<D2Tangent.Z()<<")"<<endl;
+/* std::cout<<"Param = "<<Param<<std::endl;
+ std::cout<<"Tangent = ("<<Tangent.X()<<", "<<Tangent.Y()<<", "<<Tangent.Z()<<")"<<std::endl;
+ std::cout<<"DTangent = ("<<DTangent.X()<<", "<<DTangent.Y()<<", "<<DTangent.Z()<<")"<<std::endl;
+ std::cout<<"D2Tangent = ("<<D2Tangent.X()<<", "<<D2Tangent.Y()<<", "<<D2Tangent.Z()<<")"<<std::endl;
- cout<<"BiNormal = ("<<BiNormal.X()<<", "<<BiNormal.Y()<<", "<<BiNormal.Z()<<")"<<endl;
- cout<<"DBiNormal = ("<<DBiNormal.X()<<", "<<DBiNormal.Y()<<", "<<DBiNormal.Z()<<")"<<endl;
- cout<<"D2BiNormal = ("<<D2BiNormal.X()<<", "<<D2BiNormal.Y()<<", "<<D2BiNormal.Z()<<")"<<endl;
+ std::cout<<"BiNormal = ("<<BiNormal.X()<<", "<<BiNormal.Y()<<", "<<BiNormal.Z()<<")"<<std::endl;
+ std::cout<<"DBiNormal = ("<<DBiNormal.X()<<", "<<DBiNormal.Y()<<", "<<DBiNormal.Z()<<")"<<std::endl;
+ std::cout<<"D2BiNormal = ("<<D2BiNormal.X()<<", "<<D2BiNormal.Y()<<", "<<D2BiNormal.Z()<<")"<<std::endl;
*/
return Standard_True;
}
Standard_Real killfactor = tolang/scal1;
stat[i].DoKill(killfactor);
#ifdef OCCT_DEBUG
- cout<<"pb coons cnd coin : "<<i<<" fact = "<<killfactor<<endl;
+ std::cout<<"pb coons cnd coin : "<<i<<" fact = "<<killfactor<<std::endl;
#endif
}
}
parclock.Show(partime);
appclock.Show(apptime);
cstclock.Show(csttime);
- cout<<"temp total : "<<tottime<<" secondes"<<endl;
- cout<<endl;
- cout<<"dont"<<endl;
- cout<<endl;
- cout<<"reparametrage : "<<partime<<" secondes"<<endl;
- cout<<"approximation : "<<apptime<<" secondes"<<endl;
- cout<<"construction formelle : "<<csttime<<" secondes"<<endl;
- cout<<endl;
+ std::cout<<"temp total : "<<tottime<<" secondes"<<std::endl;
+ std::cout<<std::endl;
+ std::cout<<"dont"<<std::endl;
+ std::cout<<std::endl;
+ std::cout<<"reparametrage : "<<partime<<" secondes"<<std::endl;
+ std::cout<<"approximation : "<<apptime<<" secondes"<<std::endl;
+ std::cout<<"construction formelle : "<<csttime<<" secondes"<<std::endl;
+ std::cout<<std::endl;
#endif
}
if(Abs(alpha) > maxang) maxang = Abs(alpha);
}
}
- cout<<"KAlgo angle max sur bord "<<I<<" : "<<maxang<<endl;
- if(caplisse) cout<<"sur bord "<<I<<" le champ tangent change de cote!"<<endl;
+ std::cout<<"KAlgo angle max sur bord "<<I<<" : "<<maxang<<std::endl;
+ if(caplisse) std::cout<<"sur bord "<<I<<" le champ tangent change de cote!"<<std::endl;
}
}
if(papp.Distance(pbound) > maxdist) maxdist = papp.Distance(pbound);
}
- cout<<"Controle approx/contrainte sur bord "<<I<<" : "<<endl;
- cout<<"Distance max : "<<maxdist<<endl;
+ std::cout<<"Controle approx/contrainte sur bord "<<I<<" : "<<std::endl;
+ std::cout<<"Distance max : "<<maxdist<<std::endl;
if (donor) {
maxang = maxang*180./M_PI;
- cout<<"Angle max : "<<maxang<<" deg"<<endl;
+ std::cout<<"Angle max : "<<maxang<<" deg"<<std::endl;
}
}
vv += dvv;
ww += dww;
}
- cout<<"Controle resultat/contrainte sur bord "<<I<<" : "<<endl;
- cout<<"Distance max : "<<maxdist<<endl;
+ std::cout<<"Controle resultat/contrainte sur bord "<<I<<" : "<<std::endl;
+ std::cout<<"Distance max : "<<maxdist<<std::endl;
if (donor) {
Standard_Real angdeg = maxang*180./M_PI;
- cout<<"Angle max : "<<angdeg<<" deg"<<endl;
+ std::cout<<"Angle max : "<<angdeg<<" deg"<<std::endl;
}
#ifdef DRAW
Standard_Boolean scale = maxang>1.e-10;
tol = (Tol-tol)/2;
else {
#ifdef OCCT_DEBUG
- cout << "smooth law echec" << endl;
+ std::cout << "smooth law echec" << std::endl;
#endif
return; // Echec
}
}
if (!Ok) {
#ifdef OCCT_DEBUG
- cout << "smooth law echec" << endl;
+ std::cout << "smooth law echec" << std::endl;
#endif
}
}
#ifdef OCCT_DEBUG
if (Affich) {
- cout << "Knots Law : " << endl;
+ std::cout << "Knots Law : " << std::endl;
for (ii=1; ii<=BS->NbKnots(); ii++) {
- cout << ii << " : " << BS->Knot(ii) << endl;
+ std::cout << ii << " : " << BS->Knot(ii) << std::endl;
}
}
#endif
#ifdef OCCT_DEBUG
if (Affich) {
- cout<<"NormalEvolution"<<endl;
+ std::cout<<"NormalEvolution"<<std::endl;
for (i = 1; i <= Length; i++) {
- cout<<"("<<pararr->Value(i)<<", "<<angleATarr->Value(i)<<")" << endl;
+ std::cout<<"("<<pararr->Value(i)<<", "<<angleATarr->Value(i)<<")" << std::endl;
}
- cout<<endl;
+ std::cout<<std::endl;
}
#endif
if (Param + h > myTrimmed->LastParameter()) h = -h;
D0(Param + h, Tf, Nf, BNf);
FDN = (Nf - Normal)/h;
- cout<<"Param = "<<Param<<endl;
- cout<<"DN = ("<<DNormal.X()<<", "<<DNormal.Y()<<", "<<DNormal.Z()<<")"<<endl;
- cout<<"FDN = ("<<FDN.X()<<", "<<FDN.Y()<<", "<<FDN.Z()<<")"<<endl;
+ std::cout<<"Param = "<<Param<<std::endl;
+ std::cout<<"DN = ("<<DNormal.X()<<", "<<DNormal.Y()<<", "<<DNormal.Z()<<")"<<std::endl;
+ std::cout<<"FDN = ("<<FDN.X()<<", "<<FDN.Y()<<", "<<FDN.Z()<<")"<<std::endl;
*/
return Standard_True;
FD2N = (DNf - DNormal)/h;
FD2T = (DTf - DTangent)/h;
FD2BN = (DBNf - DBiNormal)/h;
- cout<<"Param = "<<Param<<endl;
- cout<<"D2N = ("<<D2Normal.X()<<", "<<D2Normal.Y()<<", "<<D2Normal.Z()<<")"<<endl;
- cout<<"FD2N = ("<<FD2N.X()<<", "<<FD2N.Y()<<", "<<FD2N.Z()<<")"<<endl<<endl;
- cout<<"D2T = ("<<D2Tangent.X()<<", "<<D2Tangent.Y()<<", "<<D2Tangent.Z()<<")"<<endl;
- cout<<"FD2T = ("<<FD2T.X()<<", "<<FD2T.Y()<<", "<<FD2T.Z()<<")"<<endl<<endl;
- cout<<"D2BN = ("<<D2BiNormal.X()<<", "<<D2BiNormal.Y()<<", "<<D2BiNormal.Z()<<")"<<endl;
- cout<<"FD2BN = ("<<FD2BN.X()<<", "<<FD2BN.Y()<<", "<<FD2BN.Z()<<")"<<endl<<endl;
+ std::cout<<"Param = "<<Param<<std::endl;
+ std::cout<<"D2N = ("<<D2Normal.X()<<", "<<D2Normal.Y()<<", "<<D2Normal.Z()<<")"<<std::endl;
+ std::cout<<"FD2N = ("<<FD2N.X()<<", "<<FD2N.Y()<<", "<<FD2N.Z()<<")"<<std::endl<<std::endl;
+ std::cout<<"D2T = ("<<D2Tangent.X()<<", "<<D2Tangent.Y()<<", "<<D2Tangent.Z()<<")"<<std::endl;
+ std::cout<<"FD2T = ("<<FD2T.X()<<", "<<FD2T.Y()<<", "<<FD2T.Z()<<")"<<std::endl<<std::endl;
+ std::cout<<"D2BN = ("<<D2BiNormal.X()<<", "<<D2BiNormal.Y()<<", "<<D2BiNormal.Z()<<")"<<std::endl;
+ std::cout<<"FD2BN = ("<<FD2BN.X()<<", "<<FD2BN.Y()<<", "<<FD2BN.Z()<<")"<<std::endl<<std::endl;
*/
//
return Standard_True;
if (NStatus != CSLib_Defined) {
#ifdef OCCT_DEBUG
- cout << U << ", " << V<< endl;
+ std::cout << U << ", " << V<< std::endl;
for(i=0;i<=MaxOrder;i++)
for(j=0;j<=MaxOrder;j++){
- cout <<"("<<i <<"," << j << ") = "<< DerSurf(i,j).X() <<","
- << DerSurf(i,j).Y() <<"," << DerSurf(i,j).Z() << endl;
+ std::cout <<"("<<i <<"," << j << ") = "<< DerSurf(i,j).X() <<","
+ << DerSurf(i,j).Y() <<"," << DerSurf(i,j).Z() << std::endl;
}
#endif
throw Geom_UndefinedValue();
}
#ifdef OCCT_DEBUG
for(i = 1; i <= mySngl->Length(); i++) {
- cout<<"Sngl("<<i<<") = "<<mySngl->Value(i)<<" Length = "<<mySnglLen->Value(i)<<endl;
+ std::cout<<"Sngl("<<i<<") = "<<mySngl->Value(i)<<" Length = "<<mySnglLen->Value(i)<<std::endl;
}
#endif
if(mySngl->Length() > 1) {
}
}
#ifdef OCCT_DEBUG
- cout<<"After merging"<<endl;
+ std::cout<<"After merging"<<std::endl;
for(i = 1; i <= mySngl->Length(); i++) {
- cout<<"Sngl("<<i<<") = "<<mySngl->Value(i)<<" Length = "<<mySnglLen->Value(i)<<endl;
+ std::cout<<"Sngl("<<i<<") = "<<mySngl->Value(i)<<" Length = "<<mySnglLen->Value(i)<<std::endl;
}
#endif
isSngl = Standard_True;
if(RotateTrihedron(Tangent,Normal,BiNormal,aTn) == Standard_False)
{
#ifdef OCCT_DEBUG
- cout << "Cannot coincide two tangents." << endl;
+ std::cout << "Cannot coincide two tangents." << std::endl;
#endif
return Standard_False;
}
gp_XYZ& Q = Pc.ChangeCoord(), DQ(0, 0, 0); //Q
if (!isconst) {
- cout << "Not implemented" << endl;
+ std::cout << "Not implemented" << std::endl;
}
if (Norm < 1.e-12) {
Norm = 1;
#ifdef OCCT_DEBUG
- cout << "GuideTrihedronAC : Normal indefinie" << endl;
+ std::cout << "GuideTrihedronAC : Normal indefinie" << std::endl;
#endif
}
#ifdef OCCT_DEBUG
static void TracePlan(const Handle(Geom_Surface)& /*Plan*/)
{
- cout << "Pas d'intersection Guide/Plan" << endl;
+ std::cout << "Pas d'intersection Guide/Plan" << std::endl;
#if DRAW
char* Temp = "ThePlan" ;
DrawTrSurf::Set(Temp, Plan);
#ifdef OCCT_DEBUG
if (Abs(Diff) > DeltaG) {
- cout << "Trihedron Plan Diff on Guide : " <<
- Diff << endl;
+ std::cout << "Trihedron Plan Diff on Guide : " <<
+ Diff << std::endl;
}
#endif
}
}
else { // Erreur...
#ifdef OCCT_DEBUG
- cout << "D0 :";
+ std::cout << "D0 :";
// plan ortho a la trajectoire pour determiner Pprime
Handle(Geom_Plane) Plan = new (Geom_Plane)(P, Tangent);
TracePlan(Plan);
E.Value(Res, e);
E.Value(Res+h, etg);
if ( Abs( (etg-e)/h - dedx) > 1.e-4) {
- cout << "err :" << (etg-e)/h - dedx << endl;
+ std::cout << "err :" << (etg-e)/h - dedx << std::endl;
}
gp_Pnt pdbg;
gp_Vec td, nb, bnb;
GeomFill_PlanFunc Edeb(pdbg, td, myGuide);
Edeb.Value(Res, etc);
if ( Abs( (etc-e)/h - dedt) > 1.e-4) {
- cout << "err :" << (etc-e)/h - dedt << endl;
+ std::cout << "err :" << (etc-e)/h - dedt << std::endl;
} */
dn.SetLinearForm(dtg_dt, TG, -1, To);
}
else {// Erreur...
#ifdef OCCT_DEBUG
- cout << "D1 :";
+ std::cout << "D1 :";
// plan ortho a la trajectoire
Handle(Geom_Plane) Plan = new (Geom_Plane)(P, Tangent);
TracePlan(Plan);
}
else {// Erreur...
#ifdef OCCT_DEBUG
- cout << "D2 :";
+ std::cout << "D2 :";
TracePlan(Plan);
#endif
myStatus = GeomFill_PlaneNotIntersectGuide;
// Surface de revolution
Handle (Geom_Surface) Revol = new(Geom_SurfaceOfRevolution) (S, Ax);
- cout << "Surf Revol at parameter t = " << t << endl;
+ std::cout << "Surf Revol at parameter t = " << t << std::endl;
#if DRAW
Standard_CString aName = "TheRevol" ;
if (!DistMini.IsDone() || DistMini.NbExt() == 0) {
#ifdef OCCT_DEBUG
- cout <<"LocationGuide : Pas d'intersection"<<endl;
+ std::cout <<"LocationGuide : Pas d'intersection"<<std::endl;
TraceRevol(t, U, myLaw, mySec, myCurve, Trans);
#endif
Standard_Boolean SOS=Standard_False;
if (Result.IsDone() &&
(Result.FunctionSetErrors().Norm() < TolRes(1)*TolRes(1)) ) {
#ifdef OCCT_DEBUG
- cout << "Ratrappage Reussi !" << endl;
+ std::cout << "Ratrappage Reussi !" << std::endl;
#endif
SOS = Standard_True;
math_Vector RR(1,3);
}
else {
#ifdef OCCT_DEBUG
- cout << "Echec du Ratrappage !" << endl;
+ std::cout << "Echec du Ratrappage !" << std::endl;
#endif
}
}
#ifdef OCCT_DEBUG
if (Abs(Diff) > DeltaG) {
- cout << "Location :: Diff on Guide : " <<
- Diff << endl;
+ std::cout << "Location :: Diff on Guide : " <<
+ Diff << std::endl;
}
#endif
}
}
#ifdef OCCT_DEBUG
if (Abs(Diff) > M_PI/4) {
- cout << "Diff d'angle trop grand !!" << endl;
+ std::cout << "Diff d'angle trop grand !!" << std::endl;
}
#endif
}
Diff = v - myPoles2d->Value(2, ii-1).Y();
#ifdef OCCT_DEBUG
if (Abs(Diff) > (Ul-Uf)/(2+NbKnots)) {
- cout << "Diff sur section trop grand !!" << endl;
+ std::cout << "Diff sur section trop grand !!" << std::endl;
}
#endif
}
}
else {
#ifdef OCCT_DEBUG
- cout << "LocationGuide::D0 : No Result !"<<endl;
+ std::cout << "LocationGuide::D0 : No Result !"<<std::endl;
TraceRevol(Param, U, myLaw, mySec, myCurve, Trans);
#endif
myStatus = GeomFill_ImpossibleContact;
else {
#ifdef OCCT_DEBUG
Standard_Real U = myFirstS + ratio*(Param-myCurve->FirstParameter());
- cout << "LocationGuide::D0 : No Result !"<<endl;
+ std::cout << "LocationGuide::D0 : No Result !"<<std::endl;
TraceRevol(Param, U, myLaw, mySec, myCurve, Trans);
#endif
myStatus = GeomFill_ImpossibleContact;
}//if
else {
#ifdef OCCT_DEBUG
- cout << "DEDX = " << DEDX << endl;
- cout << "DEDT = " << DEDT << endl;
+ std::cout << "DEDX = " << DEDX << std::endl;
+ std::cout << "DEDT = " << DEDT << std::endl;
#endif
throw Standard_ConstructionError(
"LocationGuide::D1 : No Result dans la derivee");
else {
#ifdef OCCT_DEBUG
- cout << "LocationGuide::D1 : No Result !!"<<endl;
+ std::cout << "LocationGuide::D1 : No Result !!"<<std::endl;
TraceRevol(Param, U, myLaw, mySec, myCurve, Trans);
#endif
myStatus = GeomFill_ImpossibleContact;
//gp_Vec2d dp (DSDT(2), DSDT(3)); // surface
//DPoles2d.SetValue(1, dp);
}//if
- else cout <<"LocationGuide::D2 : No Result dans la derivee premiere"<<endl;
+ else std::cout <<"LocationGuide::D2 : No Result dans la derivee premiere"<<std::endl;
// deuxieme derivee
GeomFill_Tensor D2EDX2(3,3,3);
//D2Poles2d.SetValue(1, d2p);
}//if
else {
- cout <<"LocationGuide::D2 : No Result dans la derivee seconde"<<endl;
+ std::cout <<"LocationGuide::D2 : No Result dans la derivee seconde"<<std::endl;
myStatus = GeomFill_ImpossibleContact;
}
}//if_result
else {
#ifdef OCCT_DEBUG
- cout << "LocationGuide::D2 : No Result !!" <<endl;
+ std::cout << "LocationGuide::D2 : No Result !!" <<std::endl;
TraceRevol(Param, U, myLaw, mySec, myCurve, Trans);
#endif
return Standard_False;
dw = (W2(ii)-W1(ii)) / pas;
if (Abs(dw-DWeights(ii))>wTol) {
if (Affich) {
- cout<<"erreur dans la derivee 1ere du poids pour l'indice "<<ii<<endl;
- cout<<"par diff finies : "<<dw<<endl;
- cout<<"resultat obtenu : "<<DWeights(ii)<<endl;
+ std::cout<<"erreur dans la derivee 1ere du poids pour l'indice "<<ii<<std::endl;
+ std::cout<<"par diff finies : "<<dw<<std::endl;
+ std::cout<<"resultat obtenu : "<<DWeights(ii)<<std::endl;
}
ok = Standard_False;
}
gp_Vec diff = dP - DPoles(ii);
if (diff.Magnitude()>pTol) {
if (Affich) {
- cout<<"erreur dans la derivee 1ere du pole pour l'indice "<<ii<<endl;
- cout<<"par diff finies : ("<<dP.X()
+ std::cout<<"erreur dans la derivee 1ere du pole pour l'indice "<<ii<<std::endl;
+ std::cout<<"par diff finies : ("<<dP.X()
<<" "<<dP.Y()
- <<" "<<dP.Z()<<")"<<endl;
- cout<<"resultat obtenu : ("<<DPoles(ii).X()
+ <<" "<<dP.Z()<<")"<<std::endl;
+ std::cout<<"resultat obtenu : ("<<DPoles(ii).X()
<<" "<<DPoles(ii).Y()
- <<" "<<DPoles(ii).Z()<<")"<<endl;
+ <<" "<<DPoles(ii).Z()<<")"<<std::endl;
}
ok = Standard_False;
}
d2w = (dw2-dw1) / pas;
if (Abs(d2w-D2Weights(ii))>wTol) {
if (Affich) {
- cout<<"erreur dans la derivee 2nde du poids pour l'indice "<<ii<<endl;
- cout<<"par diff finies : "<<d2w<<endl;
- cout<<"resultat obtenu : "<<D2Weights(ii)<<endl;
+ std::cout<<"erreur dans la derivee 2nde du poids pour l'indice "<<ii<<std::endl;
+ std::cout<<"par diff finies : "<<d2w<<std::endl;
+ std::cout<<"resultat obtenu : "<<D2Weights(ii)<<std::endl;
}
ok = Standard_False;
}
gp_Vec diff = d2P - D2Poles(ii);
if (diff.Magnitude()>pTol) {
if (Affich) {
- cout<<"erreur dans la derivee 2nde du pole pour l'indice "<<ii<<endl;
- cout<<"par diff finies : ("<<d2P.X()
+ std::cout<<"erreur dans la derivee 2nde du pole pour l'indice "<<ii<<std::endl;
+ std::cout<<"par diff finies : ("<<d2P.X()
<<" "<<d2P.Y()
- <<" "<<d2P.Z()<<")"<<endl;
- cout<<"resultat obtenu : ("<<D2Poles(ii).X()
+ <<" "<<d2P.Z()<<")"<<std::endl;
+ std::cout<<"resultat obtenu : ("<<D2Poles(ii).X()
<<" "<<D2Poles(ii).Y()
- <<" "<<D2Poles(ii).Z()<<")"<<endl;
+ <<" "<<D2Poles(ii).Z()<<")"<<std::endl;
}
ok = Standard_False;
}
V2 = V+pas;
ok1 = D0(V1,P1,W1);
ok2 = D0(V2,P2,W2);
- if (!ok1 || !ok2) cout<<"probleme en D0"<<endl;
+ if (!ok1 || !ok2) std::cout<<"probleme en D0"<<std::endl;
Standard_Boolean check = verifD1(P1,W1,P2,W2,DPoles,DWeights,pTol,wTol,pas);
- if (!check) cout<<"D1 incorrecte en V = "<<V<<endl;
+ if (!check) std::cout<<"D1 incorrecte en V = "<<V<<std::endl;
}
#endif
V2 = V+pas;
ok1 = D1(V1,P1,DP1,W1,DW1);
ok2 = D1(V2,P2,DP2,W2,DW2);
- if (!ok1 || !ok2) cout<<"probleme en D0 ou en D1"<<endl;
+ if (!ok1 || !ok2) std::cout<<"probleme en D0 ou en D1"<<std::endl;
Standard_Boolean check = verifD2(DP1,DW1,DP2,DW2,D2Poles,D2Weights,pTol,wTol,pas);
- if (!check) cout<<"D2 incorrecte en V = "<<V<<endl;
+ if (!check) std::cout<<"D2 incorrecte en V = "<<V<<std::endl;
}
#endif
char name[256];
sprintf(name,"NS_Surf_%d",NbSurf);
DrawTrSurf::Set(name,BS);
- cout<<endl<<"RESULTAT de ComputeSurface : NS_Surf_"<<NbSurf<<endl<<endl;
+ std::cout<<std::endl<<"RESULTAT de ComputeSurface : NS_Surf_"<<NbSurf<<std::endl<<std::endl;
#endif
}
#endif
case GeomFill_IsDarboux :
#ifdef OCCT_DEBUG
{
- cout << "Option Darboux: non realisable" << endl;
+ std::cout << "Option Darboux: non realisable" << std::endl;
}
#endif
case GeomFill_IsFrenet :
Tol, Tol, 0., 0.01,
TheConti, DegMax, NbMaxSegment);
#ifdef OCCT_DEBUG
- cout << "Tuyau : ";
- App.Dump(cout);
- cout << endl;
+ std::cout << "Tuyau : ";
+ App.Dump(std::cout);
+ std::cout << std::endl;
#endif
if (App.IsDone()) {
mySurface = new Geom_BSplineSurface(App.SurfPoles(),
Ok = Standard_True;
#ifdef OCCT_DEBUG
- Approx.Dump(cout);
+ Approx.Dump(std::cout);
#endif
// La surface
eval,
Preferentiel);
#ifdef OCCT_DEBUG
- Approx.Dump(cout);
+ Approx.Dump(std::cout);
#endif
Ok = Approx.HasResult();
#ifdef OCCT_DEBUG
if (isUPeriodic && !mySurface->IsUPeriodic())
- cout<<"Pb de periodicite en U" << endl;
+ std::cout<<"Pb de periodicite en U" << std::endl;
if (isUPeriodic && !mySurface->IsUClosed())
- cout<<"Pb de fermeture en U" << endl;
+ std::cout<<"Pb de fermeture en U" << std::endl;
if (isVPeriodic && !mySurface->IsVPeriodic())
- cout << "Pb de periodicite en V" << endl;
+ std::cout << "Pb de periodicite en V" << std::endl;
if (isVPeriodic && !mySurface->IsVClosed())
- cout<<"Pb de fermeture en V" << endl;
+ std::cout<<"Pb de fermeture en V" << std::endl;
#endif
}
else
if (D1Ref.IsOpposite(D1, Precision::Angular()))
#ifdef OCCT_DEBUG
- cout <<"Que fais-je ???? " << endl;
+ std::cout <<"Que fais-je ???? " << std::endl;
#endif
// TR is the transformation between (i-1) section and the i-th.
gp_Vec dummyD1 = myAdpPath->DN(U,1);
gp_Vec dummyTg = Axis.Direction();
Standard_Real Cos = dummyD1.Dot(dummyTg);
- if ( Cos > 0.) cout << "+" ;
- else cout << "-" ;
+ if ( Cos > 0.) std::cout << "+" ;
+ else std::cout << "-" ;
}
*/
#endif
if (NullWeight) {
#ifdef OCCT_DEBUG
- cout << "Echec de l'Extension rationnelle" << endl;
+ std::cout << "Echec de l'Extension rationnelle" << std::endl;
#endif
lambmin /= 3.;
NullWeight = Standard_False;
math_Jacobi J(M);
if (!J.IsDone()) {
#ifdef OCCT_DEBUG
- cout << "Erreur dans Jacobbi" << endl;
- M.Dump(cout);
+ std::cout << "Erreur dans Jacobbi" << std::endl;
+ M.Dump(std::cout);
#endif
}
catch(Standard_Failure const&)
{
#ifdef OCCT_DEBUG
- cout << "ERROR! BRepLib_CheckCurveOnSurface.cxx, "
- "FillSubIntervals(): Incorrect filling!" << endl;
+ std::cout << "ERROR! BRepLib_CheckCurveOnSurface.cxx, "
+ "FillSubIntervals(): Incorrect filling!" << std::endl;
#endif
aNbSubIntervals = 0;
theBestValue, anOutputParam))
{
#ifdef OCCT_DEBUG
- cout << "BRepLib_CheckCurveOnSurface::Compute(): math_PSO is failed!" << endl;
+ std::cout << "BRepLib_CheckCurveOnSurface::Compute(): math_PSO is failed!" << std::endl;
#endif
return Standard_False;
}
catch(Standard_Failure const&)
{
#ifdef OCCT_DEBUG
- cout << "BRepLib_CheckCurveOnSurface.cxx: Exception in MinComputing()!" << endl;
+ std::cout << "BRepLib_CheckCurveOnSurface.cxx: Exception in MinComputing()!" << std::endl;
#endif
return Standard_False;
}
{
Curve2d.Nullify(); // No continuous solution
#ifdef OCCT_DEBUG
- cout << "BuildPlateSurace :: No continuous projection" << endl;
+ std::cout << "BuildPlateSurace :: No continuous projection" << std::endl;
#endif
}
}
HProjector.Nullify(); // No continuous solution
#ifdef OCCT_DEBUG
- cout << "BuildPlateSurace :: No continuous projection" << endl;
+ std::cout << "BuildPlateSurace :: No continuous projection" << std::endl;
#endif
}
else
{
HProjector.Nullify(); // No continuous solution
#ifdef OCCT_DEBUG
- cout << "BuildPlateSurace :: No complete projection" << endl;
+ std::cout << "BuildPlateSurace :: No complete projection" << std::endl;
#endif
}
}
if ((NTLinCont + NTPntCont) == 0)
{
#ifdef OCCT_DEBUG
- cout << "WARNING : GeomPlate : The number of constraints is null." << endl;
+ std::cout << "WARNING : GeomPlate : The number of constraints is null." << std::endl;
#endif
return;
if (!CourbeJointive(myTol3d))
{// throw Standard_Failure("Curves are not joined");
#ifdef OCCT_DEBUG
- cout<<"WARNING : Courbes non jointives a "<<myTol3d<<" pres"<<endl;
+ std::cout<<"WARNING : Courbes non jointives a "<<myTol3d<<" pres"<<std::endl;
#endif
}
TrierTab(myInitOrder); // Reorder the table of transformations
{
#ifdef OCCT_DEBUG
if (Affich && NbBoucle) {
- cout<<"Resultats boucle"<< NbBoucle << endl;
- cout<<"DistMax="<<myG0Error<<endl;
+ std::cout<<"Resultats boucle"<< NbBoucle << std::endl;
+ std::cout<<"DistMax="<<myG0Error<<std::endl;
if (myG1Error!=0)
- cout<<"AngleMax="<<myG1Error<<endl;
+ std::cout<<"AngleMax="<<myG1Error<<std::endl;
if (myG2Error!=0)
- cout<<"CourbMax="<<myG2Error<<endl;
+ std::cout<<"CourbMax="<<myG2Error<<std::endl;
}
#endif
NbBoucle++;
if (!myPlate.IsDone())
{
#ifdef OCCT_DEBUG
- cout << "WARNING : GeomPlate : calculation of Plate failed" << endl;
+ std::cout << "WARNING : GeomPlate : calculation of Plate failed" << std::endl;
#endif
return;
}
if ((NbBoucle >= myNbIter)&&(!Fini))
{
#ifdef OCCT_DEBUG
- cout<<"Warning: objective was not reached"<<endl;
+ std::cout<<"Warning: objective was not reached"<<std::endl;
#endif
Fini = Standard_True;
}
if (!myPlate.IsDone())
{
#ifdef OCCT_DEBUG
- cout << "WARNING : GeomPlate : calculation of Plate failed" << endl;
+ std::cout << "WARNING : GeomPlate : calculation of Plate failed" << std::endl;
#endif
return;
}
} while (!Fini); // End loop for better surface
#ifdef OCCT_DEBUG
if (NTLinCont != 0)
- { cout<<"======== Global results ==========="<<endl;
- cout<<"DistMax="<<myG0Error<<endl;
+ { std::cout<<"======== Global results ==========="<<std::endl;
+ std::cout<<"DistMax="<<myG0Error<<std::endl;
if (myG1Error!=0)
- cout<<"AngleMax="<<myG1Error<<endl;
+ std::cout<<"AngleMax="<<myG1Error<<std::endl;
if (myG2Error!=0)
- cout<<"CourbMax="<<myG2Error<<endl;
+ std::cout<<"CourbMax="<<myG2Error<<std::endl;
}
Chrono.Stop();
Standard_Real Tps;
Chrono.Show(Tps);
- cout<<"*** END OF GEOMPLATE ***"<<endl;
- cout<<"Time of calculation : "<<Tps<<endl;
- cout<<"Number of loops : "<<NbBoucle<<endl;
+ std::cout<<"*** END OF GEOMPLATE ***"<<std::endl;
+ std::cout<<"Time of calculation : "<<Tps<<std::endl;
+ std::cout<<"Number of loops : "<<NbBoucle<<std::endl;
#endif
}
{
#ifdef OCCT_DEBUG
if (Seq2d.Length()!=4)
- cout<<"Number of points should be equal to 4 for Disc2dContour"<<endl;
+ std::cout<<"Number of points should be equal to 4 for Disc2dContour"<<std::endl;
#endif
// initialization
Seq2d.Clear();
{
#ifdef OCCT_DEBUG
if (Seq3d.Length()!=4)
- cout<<"nbp should be equal to 4 for Disc3dContour"<<endl;
+ std::cout<<"nbp should be equal to 4 for Disc3dContour"<<std::endl;
if (iordre!=0&&iordre!=1)
- cout<<"incorrect order for Disc3dContour"<<endl;
+ std::cout<<"incorrect order for Disc3dContour"<<std::endl;
#endif
// initialization
Seq3d.Clear();
if (!isHalfSpace)
{
#ifdef OCCT_DEBUG
- cout<<endl<<"Normals are not in half space"<<endl<<endl;
+ std::cout<<std::endl<<"Normals are not in half space"<<std::endl<<std::endl;
#endif
myIsLinear = Standard_False;
nopt = 2;
else if (!CourbeJoint || NTLinCont != myNbBounds)
{// throw Standard_Failure("Curves are not joined");
#ifdef OCCT_DEBUG
- cout << "WARNING : Curves are non-adjacent with tolerance " << myTol3d << endl;
+ std::cout << "WARNING : Curves are non-adjacent with tolerance " << myTol3d << std::endl;
#endif
nopt = 1;
}
if (!BAP.IsPlane())
{
#ifdef OCCT_DEBUG
- cout << "WARNING : GeomPlate : the initial surface is not a plane." << endl;
+ std::cout << "WARNING : GeomPlate : the initial surface is not a plane." << std::endl;
#endif
return;
}
#ifdef OCCT_DEBUG
if (! myIsLinear)
- cout <<"Metrics are too different :"<< Ratio<<endl;
+ std::cout <<"Metrics are too different :"<< Ratio<<std::endl;
#endif
// myIsLinear = Standard_True; // !!
} //comparing metrics of curves and projected curves
if (!myPlate.IsDone())
{
#ifdef OCCT_DEBUG
- cout << "WARNING : GeomPlate : calculation of Plate failed" << endl;
+ std::cout << "WARNING : GeomPlate : calculation of Plate failed" << std::endl;
#endif
return;
}
#ifdef OCCT_DEBUG
if (Affich> 1)
{
- cout << " Intersection "<< k << " entre " << i
- << " &" << j << endl;
- cout <<" Distance = "<< P1.Distance(P2) << endl;
+ std::cout << " Intersection "<< k << " entre " << i
+ << " &" << j << std::endl;
+ std::cout <<" Distance = "<< P1.Distance(P2) << std::endl;
}
#endif
if (P1.Distance( P2 ) < myTol3d)
A1= M_PI - A1;
if (Abs(Abs(A1)-M_PI)<myTolAng) Tol = 100000 * myTol3d;
#ifdef OCCT_DEBUG
- if (Affich) cout <<"Angle between curves "<<i<<","<<j
- <<" "<<Abs(Abs(A1)-M_PI)<<endl;
+ if (Affich) std::cout <<"Angle between curves "<<i<<","<<j
+ <<" "<<Abs(Abs(A1)-M_PI)<<std::endl;
#endif
coin = Ci.Resolution(Tol);
A1= M_PI - A1;
if (Abs(Abs(A1) - M_PI) < myTolAng) Tol = 100000 * myTol3d;
#ifdef OCCT_DEBUG
- if (Affich) cout <<"Angle entre Courbe "<<i<<","<<j
- <<" "<<Abs(Abs(A1)-M_PI)<<endl;
+ if (Affich) std::cout <<"Angle entre Courbe "<<i<<","<<j
+ <<" "<<Abs(Abs(A1)-M_PI)<<std::endl;
#endif
if (myLinCont->Value(i)->Order() == 1)
{
coin = Ci.Resolution(Tol);
coin *= Angle / myTolAng * 10.;
#ifdef OCCT_DEBUG
- cout<<endl<<"coin = "<<coin<<endl;
+ std::cout<<std::endl<<"coin = "<<coin<<std::endl;
#endif
Standard_Real Par1 = int2d.ParamOnFirst() - coin;
Standard_Real Par2 = int2d.ParamOnFirst() + coin;
coin = Cj.Resolution(Tol);
coin *= Angle / myTolAng * 10.;
#ifdef OCCT_DEBUG
- cout<<endl<<"coin = "<<coin<<endl;
+ std::cout<<std::endl<<"coin = "<<coin<<std::endl;
#endif
Standard_Real Par1 = int2d.ParamOnSecond() - coin;
Standard_Real Par2 = int2d.ParamOnSecond() + coin;
}
#ifdef OCCT_DEBUG
- cout << "Attention: Two points 3d have the same projection dist = " << Dist << endl;
+ std::cout << "Attention: Two points 3d have the same projection dist = " << Dist << std::endl;
#endif
#ifdef DRAW
if (Affich > 1)
#ifdef OCCT_DEBUG
if (Affich > 1) {
- cout << "Courbe : " << i << endl;
- cout << " NbPnt, NbPtInter, NbPtG1G1 :" << NbPnt_i << ", "
- << NbPtInter << ", " << NbPtG1G1 << endl;
+ std::cout << "Courbe : " << i << std::endl;
+ std::cout << " NbPnt, NbPtInter, NbPtG1G1 :" << NbPnt_i << ", "
+ << NbPtInter << ", " << NbPtG1G1 << std::endl;
}
#endif
for (Standard_Integer j=1; j<=NbPnt_i; j++)
if (my3dCurve.IsNull())
{// GCPnts_AbscissaPoint A(myFrontiere->Curve(),AP.Length(myFrontiere->Curve())/2,myFrontiere->FirstParameter());
// Standard_Real toto=A.Parameter();
-//cout<<toto<<endl;
+//std::cout<<toto<<std::endl;
return AP.Length(myFrontiere->GetCurve());
}
else
{ // GCPnts_AbscissaPoint A(my3dCurve->Curve(),AP.Length(my3dCurve->Curve())/2,my3dCurve->FirstParameter());
// Standard_Real toto=A.Parameter();
-//cout<<toto<<endl;
+//std::cout<<toto<<std::endl;
return AP.Length(my3dCurve->GetCurve());
}
myAppError = AppPlate.MaxError(3,1);
myCritError = AppPlate.CritError(3,1);
#ifdef OCCT_DEBUG
- cout<<"Approximation results"<<endl;
- cout<<" Approximation error : "<<myAppError<<endl;
- cout<<" Criterium error : "<<myCritError<<endl;
+ std::cout<<"Approximation results"<<std::endl;
+ std::cout<<" Approximation error : "<<myAppError<<std::endl;
+ std::cout<<" Criterium error : "<<myCritError<<std::endl;
#endif
}
if (CritOrder==0&&Tol3d<10*dmax) {
seuil=10*dmax;
#ifdef OCCT_DEBUG
- cout<<"Seuil G0 choisi trop faible par rapport au contour. On prend "<<seuil<<endl;
+ std::cout<<"Seuil G0 choisi trop faible par rapport au contour. On prend "<<seuil<<std::endl;
#endif
}
if (CritOrder==1&&Tol3d<10*dmax) {
seuil=10*dmax;
#ifdef OCCT_DEBUG
- cout<<"Seuil G1 choisi trop faible par rapport au contour. On prend "<<seuil<<endl;
+ std::cout<<"Seuil G1 choisi trop faible par rapport au contour. On prend "<<seuil<<std::endl;
#endif
}
Standard_Integer nb1 = 0, nb2 = 0, nb3 = 1;
myAppError = AppPlate.MaxError(3,1);
myCritError = 0.;
#ifdef OCCT_DEBUG
- cout<<"Approximation results"<<endl;
- cout<<" Approximation error : "<<myAppError<<endl;
+ std::cout<<"Approximation results"<<std::endl;
+ std::cout<<" Approximation error : "<<myAppError<<std::endl;
#endif
}
else if (CritOrder==0) {
myAppError = AppPlate.MaxError(3,1);
myCritError = AppPlate.CritError(3,1);
#ifdef OCCT_DEBUG
- cout<<"Approximation results"<<endl;
- cout<<" Approximation error : "<<myAppError<<endl;
- cout<<" Criterium error : "<<myCritError<<endl;
+ std::cout<<"Approximation results"<<std::endl;
+ std::cout<<" Approximation error : "<<myAppError<<std::endl;
+ std::cout<<" Criterium error : "<<myCritError<<std::endl;
#endif
}
else if (CritOrder==1) {
myAppError = AppPlate.MaxError(3,1);
myCritError = AppPlate.CritError(3,1);
#ifdef OCCT_DEBUG
- cout<<"Approximation results"<<endl;
- cout<<" Approximation error : "<<myAppError<<endl;
- cout<<" Criterium error : "<<myCritError<<endl;
+ std::cout<<"Approximation results"<<std::endl;
+ std::cout<<" Approximation error : "<<myAppError<<std::endl;
+ std::cout<<" Criterium error : "<<myCritError<<std::endl;
#endif
}
}
}
catch ( Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Warning: GeomToIGES_GeomCurve: can't trim bspline" << endl;
- cout << "Warning: Exception in Segment(): " ;
- anException.Print(cout);
+ std::cout << "Warning: GeomToIGES_GeomCurve: can't trim bspline" << std::endl;
+ std::cout << "Warning: Exception in Segment(): " ;
+ anException.Print(std::cout);
#endif
(void)anException;
}
}
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "writing non-planar offset curve."<<endl;
- cout << "Warning: GeomConvert::CurveToBSplineCurve raised an exception: ";
- anException.Print(cout);
+ std::cout << "writing non-planar offset curve."<<std::endl;
+ std::cout << "Warning: GeomConvert::CurveToBSplineCurve raised an exception: ";
+ anException.Print(std::cout);
#endif
(void)anException;
}
}
else {
#ifdef OCCT_DEBUG
- cout<<"MakeBoundedCurve, type : "<<C->DynamicType()->Name()<<" not processed"<<endl;
+ std::cout<<"MakeBoundedCurve, type : "<<C->DynamicType()->Name()<<" not processed"<<std::endl;
#endif
done = Standard_False;
}
}
else {
#ifdef OCCT_DEBUG
- cout << "3D Curve Type : " << C->DynamicType() << endl;
+ std::cout << "3D Curve Type : " << C->DynamicType() << std::endl;
#endif
done = Standard_False;
}
// Attention : Other 2d conics shall be implemented ...
// To be performed later !
#ifdef OCCT_DEBUG
- cout << "2D conic not yet implemented" << endl;
+ std::cout << "2D conic not yet implemented" << std::endl;
#endif
done = Standard_False;
}
}
else {
#ifdef OCCT_DEBUG
- cout<<"GeomToStep_MakeCurve, TrimmedCurve, BasisCurve is transferred not trimmed"<<endl;
- cout<<"BasisCurve Type : "<<B->DynamicType()->Name()<<endl;
+ std::cout<<"GeomToStep_MakeCurve, TrimmedCurve, BasisCurve is transferred not trimmed"<<std::endl;
+ std::cout<<"BasisCurve Type : "<<B->DynamicType()->Name()<<std::endl;
#endif
}
GeomToStep_MakeCurve MkBasisC(B);
gp_Circ2d C2d = theC2d->Circ2d();
if (!C2d.IsDirect()) {
#ifdef OCCT_DEBUG
- cout << "Warning : Circle converted to BSpline." << endl;
+ std::cout << "Warning : Circle converted to BSpline." << std::endl;
#endif
Handle(Geom2d_BSplineCurve) aBSplineCurve2d =
Geom2dConvert::CurveToBSplineCurve(theC2d);
gp_Elips2d E2d = theE2d->Elips2d();
if (!E2d.IsDirect()) {
#ifdef OCCT_DEBUG
- cout << "Warning : Ellipse converted to BSpline." << endl;
+ std::cout << "Warning : Ellipse converted to BSpline." << std::endl;
#endif
Handle(Geom2d_BSplineCurve) aBSplineCurve2d =
Geom2dConvert::CurveToBSplineCurve(theE2d);
else {
done = Standard_False;
#ifdef OCCT_DEBUG
- cout << " unknown type " << S->DynamicType()->Name() << endl;
+ std::cout << " unknown type " << S->DynamicType()->Name() << std::endl;
#endif
}
}
OS << degree << " ";
for (i = 1; i <= degree+1; i++) {
- if (!compact) OS << "\n "<<setw(2)<<i<<" : ";
+ if (!compact) OS << "\n "<<std::setw(2)<<i<<" : ";
Print(B->Pole(i),OS,compact);
if (rational)
OS << " " << B->Weight(i);
if (!compact) OS << "Poles :\n";
for (i = 1; i <= nbpoles; i++) {
- if (!compact) OS << "\n "<<setw(2)<<i<<" : ";
+ if (!compact) OS << "\n "<<std::setw(2)<<i<<" : ";
else OS << " ";
Print(B->Pole(i),OS,compact);
if (rational)
if (!compact) OS << "Knots :\n";
for (i = 1; i <= nbknots; i++) {
- if (!compact) OS << "\n "<<setw(2)<<i<<" : ";
+ if (!compact) OS << "\n "<<std::setw(2)<<i<<" : ";
else OS << " ";
OS << B->Knot(i) << " " << B->Multiplicity(i);
}
//if (!compact)
// OS << "****** UNKNOWN CURVE2d TYPE ******\n";
//else
- // cout << "****** UNKNOWN CURVE2d TYPE ******" << endl;
+ // std::cout << "****** UNKNOWN CURVE2d TYPE ******" << std::endl;
}
}
OS << "\n -------\n\n";
for (i = 1; i <= nbsurf; i++) {
- OS << setw(4) << i << " : ";
+ OS << std::setw(4) << i << " : ";
PrintCurve2d(Handle(Geom2d_Curve)::DownCast(myMap(i)),OS,Standard_False);
}
}
}
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout <<"EXCEPTION in GeomTools_Curve2dSet::ReadCurve2d(..)!!!" << endl;
- cout << anException << endl;
+ std::cout <<"EXCEPTION in GeomTools_Curve2dSet::ReadCurve2d(..)!!!" << std::endl;
+ std::cout << anException << std::endl;
#endif
(void)anException;
}
char buffer[255];
IS >> buffer;
if (strcmp(buffer,"Curve2ds")) {
- cout << "Not a Curve2d table"<<endl;
+ std::cout << "Not a Curve2d table"<<std::endl;
return;
}
OS << degree << " ";
for (i = 1; i <= degree+1; i++) {
- if (!compact) OS << "\n "<<setw(2)<<i<<" : ";
+ if (!compact) OS << "\n "<<std::setw(2)<<i<<" : ";
Print(B->Pole(i),OS,compact);
if (rational)
OS << " " << B->Weight(i);
if (!compact) OS << "Poles :\n";
for (i = 1; i <= nbpoles; i++) {
- if (!compact) OS << "\n "<<setw(2)<<i<<" : ";
+ if (!compact) OS << "\n "<<std::setw(2)<<i<<" : ";
else OS << " ";
Print(B->Pole(i),OS,compact);
if (rational)
if (!compact) OS << "Knots :\n";
for (i = 1; i <= nbknots; i++) {
- if (!compact) OS << "\n "<<setw(2)<<i<<" : ";
+ if (!compact) OS << "\n "<<std::setw(2)<<i<<" : ";
OS << " " << B->Knot(i) << " " << B->Multiplicity(i);
}
//if (!compact)
// OS << "****** UNKNOWN CURVE TYPE ******\n";
//else
- // cout << "****** UNKNOWN CURVE TYPE ******" << endl;
+ // std::cout << "****** UNKNOWN CURVE TYPE ******" << std::endl;
}
}
OS << "\n -------\n\n";
for (i = 1; i <= nbsurf; i++) {
- OS << setw(4) << i << " : ";
+ OS << std::setw(4) << i << " : ";
PrintCurve(Handle(Geom_Curve)::DownCast(myMap(i)),OS,Standard_False);
}
}
}
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout <<"EXCEPTION in GeomTools_CurveSet::ReadCurve(..)!!!" << endl;
- cout << anException << endl;
+ std::cout <<"EXCEPTION in GeomTools_CurveSet::ReadCurve(..)!!!" << std::endl;
+ std::cout << anException << std::endl;
#endif
(void)anException;
}
char buffer[255];
IS >> buffer;
if (strcmp(buffer,"Curves")) {
- cout << "Not a Curve table"<<endl;
+ std::cout << "Not a Curve table"<<std::endl;
return;
}
Handle(Geom_Surface) GS = Handle(Geom_Surface)::DownCast(aHandle);
if (!GS.IsNull()) {
- cout << "\n\n";
- GeomTools_SurfaceSet::PrintSurface (GS,cout);
- cout << endl;
- return "Found Geom_Surface, see dump in cout";
+ std::cout << "\n\n";
+ GeomTools_SurfaceSet::PrintSurface (GS,std::cout);
+ std::cout << std::endl;
+ return "Found Geom_Surface, see dump in std::cout";
}
Handle(Geom_Curve) GC = Handle(Geom_Curve)::DownCast(aHandle);
if (!GC.IsNull()) {
- cout << "\n\n";
- GeomTools_CurveSet::PrintCurve(GC,cout);
- cout << endl;
- return "Found Geom_Curve, see dump in cout";
+ std::cout << "\n\n";
+ GeomTools_CurveSet::PrintCurve(GC,std::cout);
+ std::cout << std::endl;
+ return "Found Geom_Curve, see dump in std::cout";
}
Handle(Geom2d_Curve) GC2d = Handle(Geom2d_Curve)::DownCast(aHandle);
if (!GC2d.IsNull()) {
- cout << "\n\n";
- GeomTools_Curve2dSet::PrintCurve2d(GC2d,cout);
- cout << endl;
- return "Found Geom2d_Curve, see dump in cout";
+ std::cout << "\n\n";
+ GeomTools_Curve2dSet::PrintCurve2d(GC2d,std::cout);
+ std::cout << std::endl;
+ return "Found Geom2d_Curve, see dump in std::cout";
}
return "Error: Not a geometric object";
for (i = 1; i <= udegree+1; i++) {
for (j = 1; j <= vdegree+1; j++) {
- if (!compact) OS << "\n "<<setw(2)<<i<<", "<<setw(2)<<j<<" : ";
+ if (!compact) OS << "\n "<<std::setw(2)<<i<<", "<<std::setw(2)<<j<<" : ";
Print(S->Pole(i,j),OS,compact);
if (urational || vrational)
OS << " " << S->Weight(i,j);
if (!compact) OS << "\n Poles :\n";
for (i = 1; i <= nbupoles; i++) {
for (j = 1; j <= nbvpoles; j++) {
- if (!compact) OS << "\n "<<setw(2)<<i<<", "<<setw(2)<<j<<" : ";
+ if (!compact) OS << "\n "<<std::setw(2)<<i<<", "<<std::setw(2)<<j<<" : ";
Print(S->Pole(i,j),OS,compact);
if (urational || vrational)
OS << " " << S->Weight(i,j);
OS << "\n";
if (!compact) OS << "\n UKnots :\n";
for (i = 1; i <= nbuknots; i++) {
- if (!compact) OS << "\n "<<setw(2)<<i<<" : ";
+ if (!compact) OS << "\n "<<std::setw(2)<<i<<" : ";
OS << S->UKnot(i) << " " << S->UMultiplicity(i) <<"\n";
}
OS << "\n";
if (!compact) OS << "\n VKnots :\n";
for (i = 1; i <= nbvknots; i++) {
- if (!compact) OS << "\n "<<setw(2)<<i<<" : ";
+ if (!compact) OS << "\n "<<std::setw(2)<<i<<" : ";
OS << S->VKnot(i) << " " << S->VMultiplicity(i) <<"\n";
}
OS << "\n";
//if (!compact)
// OS << "***** Unknown Surface ********\n";
//else
- // cout << "***** Unknown Surface ********"<<endl;
+ // std::cout << "***** Unknown Surface ********"<<std::endl;
}
}
OS << "\n -------\n\n";
for (i = 1; i <= nbsurf; i++) {
- OS << setw(4) << i << " : ";
+ OS << std::setw(4) << i << " : ";
PrintSurface(Handle(Geom_Surface)::DownCast(myMap(i)),OS,Standard_False);
}
}
}
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout <<"EXCEPTION in GeomTools_SurfaceSet::ReadSurface(..)!!!" << endl;
- cout << anException << endl;
+ std::cout <<"EXCEPTION in GeomTools_SurfaceSet::ReadSurface(..)!!!" << std::endl;
+ std::cout << anException << std::endl;
#endif
(void)anException;
}
char buffer[255];
IS >> buffer;
if (strcmp(buffer,"Surfaces")) {
- cout << "Not a surface table"<<endl;
+ std::cout << "Not a surface table"<<std::endl;
return;
}
if (!compact)
OS << "****** UNKNOWN CURVE TYPE ******\n";
else
- cout << "****** UNKNOWN CURVE TYPE ******" << endl;
+ std::cout << "****** UNKNOWN CURVE TYPE ******" << std::endl;
}
//=======================================================================
if (!compact)
OS << "****** UNKNOWN CURVE2d TYPE ******\n";
else
- cout << "****** UNKNOWN CURVE2d TYPE ******" << endl;
+ std::cout << "****** UNKNOWN CURVE2d TYPE ******" << std::endl;
}
//=======================================================================
if (!compact)
OS << "****** UNKNOWN SURFACE TYPE ******\n";
else
- cout << "****** UNKNOWN SURFACE TYPE ******" << endl;
+ std::cout << "****** UNKNOWN SURFACE TYPE ******" << std::endl;
}
Standard_IStream& GeomTools_UndefinedTypeHandler::ReadSurface(const Standard_Integer /*ctype*/,
{
if ( n < 5)
{
- cout << " Use proj curve/surf x y z [{extrema algo: g(grad)/t(tree)}|{u v}]" << endl;
+ std::cout << " Use proj curve/surf x y z [{extrema algo: g(grad)/t(tree)}|{u v}]" << std::endl;
return 1;
}
if(proj.NbPoints() == 0)
{
- cout << "No project point was found." << endl;
+ std::cout << "No project point was found." << std::endl;
return 0;
}
// lecture du fichier.
// nbpoints, 2d ou 3d, puis valeurs.
const char* nomfic = a[2];
- ifstream iFile(nomfic, ios::in);
+ std::ifstream iFile(nomfic, std::ios::in);
if (!iFile) return 1;
Standard_Integer nbp, i;
Standard_Real x, y, z;
LocalAnalysis_SurfaceContinuity RES (surf1, U1, V1, surf2, U2, V2,
TypeCont, epsnl, epsC0, epsC1, epsC2, epsG1, perce, maxlen);
- //LocalAnalysis::Dump(RES,cout);
+ //LocalAnalysis::Dump(RES,std::cout);
Standard_SStream aSStream;
LocalAnalysis::Dump(RES,aSStream);
di << aSStream;
LocalAnalysis_SurfaceContinuity RES (surf1, U1, V1, surf2, U2, V2,
TypeCont, epsnl, epsC0, epsC1, epsC2, epsG1, perce, maxlen);
- //LocalAnalysis::Dump(RES,cout);
+ //LocalAnalysis::Dump(RES,std::cout);
Standard_SStream aSStream;
LocalAnalysis::Dump(RES,aSStream);
di << aSStream;
LocalAnalysis_CurveContinuity RES (curv1, U1, curv2, U2, TypeCont,
epsnl, epsC0, epsC1, epsC2, epsG1, epsG2, percent, maxlen);
- //LocalAnalysis::Dump(RES,cout);
+ //LocalAnalysis::Dump(RES,std::cout);
Standard_SStream aSStream;
LocalAnalysis::Dump(RES,aSStream);
di << aSStream;
LocalAnalysis_CurveContinuity RES (curv1, U1, curv2, U2, TypeCont,
epsnl, epsC0, epsC1, epsC2, epsG1, epsG2, percent, maxlen);
- //LocalAnalysis::Dump(RES,cout);
+ //LocalAnalysis::Dump(RES,std::cout);
Standard_SStream aSStream;
LocalAnalysis::Dump(RES,aSStream);
di << aSStream;
Sprintf(newname,"%s_%d",name,k);
Sprintf(newname1,"%s2d_%d",name,k);
if(Projector.IsSinglePnt(k, P2d)){
-// cout<<"Part "<<k<<" of the projection is punctual"<<endl;
+// std::cout<<"Part "<<k<<" of the projection is punctual"<<std::endl;
Projector.GetSurface()->D0(P2d.X(), P2d.Y(), P);
DrawTrSurf::Set(temp, P);
DrawTrSurf::Set(temp1, P2d);
gp_Dir2d Dir; // Only for isoparametric projection
if (Projector.IsUIso(k, UIso)) {
-// cout<<"Part "<<k<<" of the projection is U-isoparametric curve"<<endl;
+// std::cout<<"Part "<<k<<" of the projection is U-isoparametric curve"<<std::endl;
Projector.D0(Udeb, Pdeb);
Projector.D0(Ufin, Pfin);
Udeb = Pdeb.Y();
Only3d = Standard_True;
}
else if(Projector.IsVIso(k, VIso)) {
-// cout<<"Part "<<k<<" of the projection is V-isoparametric curve"<<endl;
+// std::cout<<"Part "<<k<<" of the projection is V-isoparametric curve"<<std::endl;
Projector.D0(Udeb, Pdeb);
Projector.D0(Ufin, Pfin);
Udeb = Pdeb.X();
TopoDS_Wire aWire = TopoDS::Wire(DBRep::Get(a[2], TopAbs_WIRE));
if (aWire.IsNull())
{
- cout << "cannot evaluate the argument " << a[2] << " as a curve" << endl;
+ std::cout << "cannot evaluate the argument " << a[2] << " as a curve" << std::endl;
return 1;
}
BRepAdaptor_CompCurve aCompCurve(aWire);
TopoDS_Wire aWire = TopoDS::Wire(DBRep::Get(a[2], TopAbs_WIRE));
if (aWire.IsNull())
{
- cout << "cannot evaluate the argument " << a[2] << " as a curve" << endl;
+ std::cout << "cannot evaluate the argument " << a[2] << " as a curve" << std::endl;
return 1;
}
BRepAdaptor_CompCurve aCompCurve(aWire);
Standard_Integer Compt = 1;
if(nblines >= 1)
- cout << " Lines: " << endl;
+ std::cout << " Lines: " << std::endl;
for (i = 1; i <= nblines; i++, Compt++)
{
}
if(nbpoints >= 1)
- cout << " Points: " << endl;
+ std::cout << " Points: " << std::endl;
const Standard_Integer imax = nblines+nbpoints;
{
if (theArgsNb < 5)
{
- cout << "Error: wrong number of arguments.\n";
+ std::cout << "Error: wrong number of arguments.\n";
return 1;
}
{
if (theArgsNb < 6)
{
- cout << "Error: wrong number of arguments.\n";
+ std::cout << "Error: wrong number of arguments.\n";
return 1;
}
aResult2d = new Geom2d_Line (gp_Pnt2d (Draw::Atof (theArgVec[2]), Draw::Atof (theArgVec[3])),
}
else
{
- cout << "Error: wrong command name.\n";
+ std::cout << "Error: wrong command name.\n";
return 1;
}
{
if (!theCirTan3.IsDone())
{
- cout << "GccAna_Circ2d3Tan is not done";
+ std::cout << "GccAna_Circ2d3Tan is not done";
return 1;
}
{
if (theArgsNb < 5)
{
- cout << "Error: wrong number of arguments.\n";
+ std::cout << "Error: wrong number of arguments.\n";
return 1;
}
{
if (!anIsPoint1 || !anIsPoint2 || !anIsPoint3)
{
- cout << "Error: wrong points definition.\n";
+ std::cout << "Error: wrong points definition.\n";
return 1;
}
GccAna_Circ2d3Tan aCircBuilder (aPoint1, aPoint2, aPoint3, aTolerance);
{
if (!anIsPoint2 || !anIsPoint3)
{
- cout << "Error: wrong points definition.\n";
+ std::cout << "Error: wrong points definition.\n";
return 1;
}
Geom2dAdaptor_Curve anAdaptorCurve1 (aQCurve1->GetCurve());
GccAna_Circ2d3Tan aCircBuilder (aQualifiedLin1, aPoint2, aPoint3, aTolerance);
return solutions (theDI, aCircBuilder, theArgVec[1]);
}
- cout << "Error: wrong curve type.\n";
+ std::cout << "Error: wrong curve type.\n";
return 1;
}
{
if (!anIsPoint3)
{
- cout << "Error: wrong point definition.\n";
+ std::cout << "Error: wrong point definition.\n";
return 1;
}
Geom2dAdaptor_Curve anAdaptorCurve1 (aQCurve1->GetCurve());
GccAna_Circ2d3Tan aCircBuilder (aQualifiedLin1, aQualifiedLin2, aPoint3, aTolerance);
return solutions (theDI, aCircBuilder, theArgVec[1]);
}
- cout << "Error: wrong curve type.\n";
+ std::cout << "Error: wrong curve type.\n";
return 1;
}
return solutions (theDI, aCircBuilder, theArgVec[1]);
}
- cout << "Error: wrong curve type.\n";
+ std::cout << "Error: wrong curve type.\n";
return 1;
}
{
if (n < 5)
{
- cout<<" Use xdistcc c1 c2 t1 t2 nbp"<<endl;
+ std::cout<<" Use xdistcc c1 c2 t1 t2 nbp"<<std::endl;
return 0;
}
aC1=DrawTrSurf::GetCurve(a[1]);
if (aC1.IsNull())
{
- cout<<a[1]<<" is null curve"<<endl;
+ std::cout<<a[1]<<" is null curve"<<std::endl;
return 0;
}
aC2=DrawTrSurf::GetCurve(a[2]);
if (aC2.IsNull())
{
- cout<<a[2]<<" is null curve"<<endl;
+ std::cout<<a[2]<<" is null curve"<<std::endl;
return 0;
}
dout << aMr;
}
- cout << "Max distance = " << aMaxDist << endl;
- cout << "Param = " << aMaxParam << endl;
+ std::cout << "Max distance = " << aMaxDist << std::endl;
+ std::cout << "Param = " << aMaxParam << std::endl;
return 0;
}
{
if (n < 7)
{
- cout<<" Use xdistc2dc2dss c2d_1 c2d_2 s1 s2 t1 t2 nbp"<<endl;
+ std::cout<<" Use xdistc2dc2dss c2d_1 c2d_2 s1 s2 t1 t2 nbp"<<std::endl;
return 0;
}
aC2d1=DrawTrSurf::GetCurve2d(a[1]);
if (aC2d1.IsNull())
{
- cout<<a[1]<<" is null 2dcurve"<<endl;
+ std::cout<<a[1]<<" is null 2dcurve"<<std::endl;
return 0;
}
aC2d2=DrawTrSurf::GetCurve2d(a[2]);
if (aC2d2.IsNull())
{
- cout<<a[2]<<" is null 2dcurve"<<endl;
+ std::cout<<a[2]<<" is null 2dcurve"<<std::endl;
return 0;
}
aS1=DrawTrSurf::GetSurface(a[3]);
if (aS1.IsNull())
{
- cout<<a[3]<<" is null surface"<<endl;
+ std::cout<<a[3]<<" is null surface"<<std::endl;
return 0;
}
aS2=DrawTrSurf::GetSurface(a[4]);
if (aS2.IsNull())
{
- cout<<a[4]<<" is null surface"<<endl;
+ std::cout<<a[4]<<" is null surface"<<std::endl;
return 0;
}
dout << aMr;
}
- cout << "Max distance = " << aMaxDist << endl;
- cout << "Param = " << aMaxParam << endl;
+ std::cout << "Max distance = " << aMaxDist << std::endl;
+ std::cout << "Param = " << aMaxParam << std::endl;
return 0;
}
{
if (n < 6)
{
- cout<<" Use xdistcc2ds c c2d s t1 t2 nbp"<<endl;
+ std::cout<<" Use xdistcc2ds c c2d s t1 t2 nbp"<<std::endl;
return 0;
}
aC=DrawTrSurf::GetCurve(a[1]);
if (aC.IsNull())
{
- cout<<a[1]<<" is null curve"<<endl;
+ std::cout<<a[1]<<" is null curve"<<std::endl;
return 0;
}
aC2d=DrawTrSurf::GetCurve2d(a[2]);
if (aC2d.IsNull())
{
- cout<<a[2]<<" is null 2dcurve"<<endl;
+ std::cout<<a[2]<<" is null 2dcurve"<<std::endl;
return 0;
}
aS=DrawTrSurf::GetSurface(a[3]);
if (aS.IsNull())
{
- cout<<a[3]<<" is null surface"<<endl;
+ std::cout<<a[3]<<" is null surface"<<std::endl;
return 0;
}
dout << aMr;
}
- cout << "Max distance = " << aMaxDist << endl;
- cout << "Param = " << aMaxParam << endl;
+ std::cout << "Max distance = " << aMaxDist << std::endl;
+ std::cout << "Param = " << aMaxParam << std::endl;
return 0;
}
static Standard_Integer xdistcs(Draw_Interpretor& di, Standard_Integer n, const char** a)
{
if (n < 6) {
- cout << "Use: xdistcs curve surface t1 t2 nbpoints [tol [warn_tol]]" << endl;
- cout << "Measures distances from curve to surface by nbpoints probing points on a curve" << endl;
- cout << "Error will be reported for points where distance is greater than tol" << endl;
- cout << "Warning will be reported for points where distance is greater than warn_tol" << endl;
+ std::cout << "Use: xdistcs curve surface t1 t2 nbpoints [tol [warn_tol]]" << std::endl;
+ std::cout << "Measures distances from curve to surface by nbpoints probing points on a curve" << std::endl;
+ std::cout << "Error will be reported for points where distance is greater than tol" << std::endl;
+ std::cout << "Warning will be reported for points where distance is greater than warn_tol" << std::endl;
return 0;
}
//
{
if (n < 2)
{
- cout << "2dintana circle circle " << endl;
+ std::cout << "2dintana circle circle " << std::endl;
return 1;
}
{
if( n < 2)
{
- cout<< "intconcon con1 con2 "<<endl;
+ std::cout<< "intconcon con1 con2 "<<std::endl;
return 1;
}
Handle(Geom2d_Curve) C1 = DrawTrSurf::GetCurve2d(a[1]);
if (C1.IsNull())
{
- cout << a[1] << " is Null " << endl;
+ std::cout << a[1] << " is Null " << std::endl;
return 1;
}
Handle(Geom2d_Curve) C2 = DrawTrSurf::GetCurve2d(a[2]);
if (C2.IsNull())
{
- cout << a[2] << " is Null " << endl;
+ std::cout << a[2] << " is Null " << std::endl;
return 1;
}
break;
}
default:
- cout << a[2] << " is not conic " << endl;
+ std::cout << a[2] << " is not conic " << std::endl;
return 1;
}
Intersector.Perform(AC1.Parabola(), *pCon);
break;
default:
- cout << a[1] << " is not conic " << endl;
+ std::cout << a[1] << " is not conic " << std::endl;
return 1;
}
//=======================================================================
static void PointsByFile(Handle(AppDef_HArray1OfMultiPointConstraint)& MPC,
Handle(AppParCurves_HArray1OfConstraintCouple)& TABofCC,
- ifstream& iFile,
+ std::ifstream& iFile,
Draw_Interpretor& di)
{
Standard_Integer nbp, i, nbc;
// lecture du fichier.
// nbpoints, 2d ou 3d, puis valeurs.
const char* nomfic = a[ific];
- ifstream iFile(nomfic, ios::in);
+ std::ifstream iFile(nomfic, std::ios::in);
if (!iFile) {
di << a[ific] <<"do not exist !\n";
return 1;
Variation.Approximate();
# ifdef GEOMLITETEST_DEB
- //Variation.Dump(cout);
+ //Variation.Dump(std::cout);
Standard_SStream aSStream;
Variation.Dump(aSStream);
di << aSStream;
if (Tolerance>0) { Variation.SetWithMinMax(Standard_True);}
Variation.Approximate();
# ifdef GEOMLITETEST_DEB
- //Variation.Dump(cout);
+ //Variation.Dump(std::cout);
Standard_SStream aSStream;
Variation.Dump(aSStream);
di << aSStream;
// lecture du fichier.
// nbpoints, 2d ou 3d, puis valeurs.
const char* nomfic = a[5];
- ifstream iFile(nomfic, ios::in);
+ std::ifstream iFile(nomfic, std::ios::in);
if (!iFile) {
di << a[6] <<"do not exist !\n";
return 1;
if (Case == 1) {
GeomConvert_ApproxCurve appr(curve, Tol, Continuity, MaxSeg, MaxDeg);
if(appr.HasResult()) {
- //appr.Dump(cout);
+ //appr.Dump(std::cout);
Standard_SStream aSStream;
appr.Dump(aSStream);
di << aSStream;
else if (Case == 2) {
Geom2dConvert_ApproxCurve appr(curve2d, Tol, Continuity, MaxSeg, MaxDeg);
if(appr.HasResult()) {
- //appr.Dump(cout);
+ //appr.Dump(std::cout);
Standard_SStream aSStream;
appr.Dump(aSStream);
di << aSStream;
Handle(Adaptor3d_HCurve) HACur = new GeomAdaptor_HCurve(curve);
Approx_CurvilinearParameter appr(HACur, Tol, Continuity, MaxDeg, MaxSeg);
if(appr.HasResult()) {
- //appr.Dump(cout);
+ //appr.Dump(std::cout);
Standard_SStream aSStream;
appr.Dump(aSStream);
di << aSStream;
Handle(Adaptor3d_HSurface) HASur = new GeomAdaptor_HSurface(surface);
Approx_CurvilinearParameter appr(HACur2d, HASur, Tol, Continuity, MaxDeg, MaxSeg);
if(appr.HasResult()) {
- //appr.Dump(cout);
+ //appr.Dump(std::cout);
Standard_SStream aSStream;
appr.Dump(aSStream);
di << aSStream;
Handle(Adaptor3d_HSurface) HASur2 = new GeomAdaptor_HSurface(surface2);
Approx_CurvilinearParameter appr(HACur2d, HASur, HACur2d2, HASur2, Tol, Continuity, MaxDeg, MaxSeg);
if(appr.HasResult()) {
- //appr.Dump(cout);
+ //appr.Dump(std::cout);
Standard_SStream aSStream;
appr.Dump(aSStream);
di << aSStream;
{
if (n < 2)
{
- cout<<"Invalid number of parameters"<<endl;
+ std::cout<<"Invalid number of parameters"<<std::endl;
return 1;
}
Handle(Geom_BSplineSurface) GBs1 = DrawTrSurf::GetBSplineSurface(a[1]);
Handle(Geom_BSplineSurface) GBs2 = DrawTrSurf::GetBSplineSurface(a[2]);
if (GBs1.IsNull() || GBs2.IsNull()) {
- cout<<"Invalid surface"<<endl;
+ std::cout<<"Invalid surface"<<std::endl;
return 1;
}
{
nbErr++;
Standard_Real aD = sqrt(aDist);
- cout<<"Surfaces differ for U,V,Dist: "<<aU<<" "<<aV<<" "<<aD<<endl;
+ std::cout<<"Surfaces differ for U,V,Dist: "<<aU<<" "<<aV<<" "<<aD<<std::endl;
}
}
}
}
#ifdef OCCT_DEBUG
else if (HLRAlgo_PolyData_ERROR) {
- cout << " error : HLRAlgo_PolyData::HideByOneTriangle " << endl;
- cout << " ( more than 2 points )." << endl;
+ std::cout << " error : HLRAlgo_PolyData::HideByOneTriangle " << std::endl;
+ std::cout << " ( more than 2 points )." << std::endl;
}
#endif
}
}
#ifdef OCCT_DEBUG
else if (HLRAlgo_PolyData_ERROR) {
- cout << " error : HLRAlgo_PolyData::HideByOneTriangle " << endl;
- cout << " ( more than 2 points )." << endl;
+ std::cout << " error : HLRAlgo_PolyData::HideByOneTriangle " << std::endl;
+ std::cout << " ( more than 2 points )." << std::endl;
}
#endif
}
}
#ifdef OCCT_DEBUG
else if (HLRAlgo_PolyData_ERROR) {
- cout << " error : HLRAlgo_PolyData::HideByOneTriangle " << endl;
- cout << " ( more than 2 points )." << endl;
+ std::cout << " error : HLRAlgo_PolyData::HideByOneTriangle " << std::endl;
+ std::cout << " ( more than 2 points )." << std::endl;
}
#endif
}
Nod3RValues.Normal = gp_XYZ(1., 0., 0.);
#ifdef OCCT_DEBUG
if (HLRAlgo_PolyInternalData_ERROR)
- cout << "HLRAlgo_PolyInternalData::AddNode" << endl;
+ std::cout << "HLRAlgo_PolyInternalData::AddNode" << std::endl;
#endif
}
return ip3;
myNbPISeg--;
#ifdef OCCT_DEBUG
if (HLRAlgo_PolyInternalData_ERROR) {
- cout << "HLRAlgo_PolyInternalData::UpdateLinks : segment error";
- cout << endl;
+ std::cout << "HLRAlgo_PolyInternalData::UpdateLinks : segment error";
+ std::cout << std::endl;
}
#endif
}
}
#ifdef OCCT_DEBUG
else if (HLRAlgo_PolyInternalData_ERROR) {
- cout << "HLRAlgo_PolyInternalData::UpdateLinks : triangle error ";
- cout << endl;
+ std::cout << "HLRAlgo_PolyInternalData::UpdateLinks : triangle error ";
+ std::cout << std::endl;
}
#endif
}
const Handle(HLRAlgo_PolyInternalNode)* pi = &PINod->ChangeValue(i);
HLRAlgo_PolyInternalNode::NodeIndices& aNodIndices1 = (*pi)->Indices();
HLRAlgo_PolyInternalNode::NodeData& Nod1RValues = (*pi)->Data();
- cout << "Node " << setw(6) << i << " : ";
- cout << setw(6) << aNodIndices1.NdSg;
- cout << setw(20)<< Nod1RValues.Point.X();
- cout << setw(20)<< Nod1RValues.Point.Y();
- cout << setw(20)<< Nod1RValues.Point.Z();
- cout << endl;
+ std::cout << "Node " << std::setw(6) << i << " : ";
+ std::cout << std::setw(6) << aNodIndices1.NdSg;
+ std::cout << std::setw(20)<< Nod1RValues.Point.X();
+ std::cout << std::setw(20)<< Nod1RValues.Point.Y();
+ std::cout << std::setw(20)<< Nod1RValues.Point.Z();
+ std::cout << std::endl;
}
for (i = 1; i <= myNbPISeg; i++) {
HLRAlgo_PolyInternalSegment* aSegIndices = &PISeg->ChangeValue(i);
- cout << "Segment " << setw(6) << i << " : ";
- cout << setw(6) << aSegIndices->LstSg1;
- cout << setw(6) << aSegIndices->LstSg2;
- cout << setw(6) << aSegIndices->NxtSg1;
- cout << setw(6) << aSegIndices->NxtSg2;
- cout << setw(6) << aSegIndices->Conex1;
- cout << setw(6) << aSegIndices->Conex2;
- cout << endl;
+ std::cout << "Segment " << std::setw(6) << i << " : ";
+ std::cout << std::setw(6) << aSegIndices->LstSg1;
+ std::cout << std::setw(6) << aSegIndices->LstSg2;
+ std::cout << std::setw(6) << aSegIndices->NxtSg1;
+ std::cout << std::setw(6) << aSegIndices->NxtSg2;
+ std::cout << std::setw(6) << aSegIndices->Conex1;
+ std::cout << std::setw(6) << aSegIndices->Conex2;
+ std::cout << std::endl;
}
for (i = 1; i <= myNbTData; i++) {
HLRAlgo_TriangleData& aTriangle = TData->ChangeValue(i);
- cout << "Triangle " << setw(6) << i << " : ";
- cout << setw(6) << aTriangle.Node1;
- cout << setw(6) << aTriangle.Node2;
- cout << setw(6) << aTriangle.Node3;
- cout << endl;
+ std::cout << "Triangle " << std::setw(6) << i << " : ";
+ std::cout << std::setw(6) << aTriangle.Node1;
+ std::cout << std::setw(6) << aTriangle.Node2;
+ std::cout << std::setw(6) << aTriangle.Node3;
+ std::cout << std::endl;
}
}
if (myNbTData >= myMxTData) {
#ifdef OCCT_DEBUG
if (HLRAlgo_PolyInternalData_TRACE)
- cout << "HLRAlgo_PolyInternalData::IncTData : " << myMxTData << endl;
+ std::cout << "HLRAlgo_PolyInternalData::IncTData : " << myMxTData << std::endl;
#endif
Standard_Integer i,j,k;
j = myMxTData;
if (myNbPISeg >= myMxPISeg) {
#ifdef OCCT_DEBUG
if (HLRAlgo_PolyInternalData_TRACE)
- cout << "HLRAlgo_PolyInternalData::IncPISeg : " << myMxPISeg << endl;
+ std::cout << "HLRAlgo_PolyInternalData::IncPISeg : " << myMxPISeg << std::endl;
#endif
Standard_Integer i,j,k;
j = myMxPISeg;
if (myNbPINod >= myMxPINod) {
#ifdef OCCT_DEBUG
if (HLRAlgo_PolyInternalData_TRACE)
- cout << "HLRAlgo_PolyInternalData::IncPINod : " << myMxPINod << endl;
+ std::cout << "HLRAlgo_PolyInternalData::IncPINod : " << myMxPINod << std::endl;
#endif
Standard_Integer i,j,k;
j = myMxPINod;
HLRBRep_CurveTool::Bezier (const Standard_Address /*C*/)
{
#ifdef OCCT_DEBUG
- cout<<" HLRBRep_CurveTool::Bezier : Not Implemented "<<endl;
+ std::cout<<" HLRBRep_CurveTool::Bezier : Not Implemented "<<std::endl;
#endif
//-- return(((HLRBRep_Curve *)C)->Bezier());
return(0);
HLRBRep_CurveTool::BSpline (const Standard_Address /*C*/)
{
#ifdef OCCT_DEBUG
- cout<<" HLRBRep_CurveTool::BSpline : Not Implemented "<<endl;
+ std::cout<<" HLRBRep_CurveTool::BSpline : Not Implemented "<<std::endl;
#endif
//-- return(((HLRBRep_Curve *)C)->BSpline());
return(0);
//-- ============================================================
void SetDim(const Standard_Integer n) {
#ifdef OCCT_DEBUG
- cout<<"\n@#@#@#@#@# SetDim "<<n<<endl;
+ std::cout<<"\n@#@#@#@#@# SetDim "<<n<<std::endl;
#endif
if(UV)
Destroy();
}
//-- ============================================================
~TableauRejection() {
- //-- cout<<"\n Destructeur TableauRejection"<<endl;
+ //-- std::cout<<"\n Destructeur TableauRejection"<<std::endl;
Destroy();
}
//-- ============================================================
}
#ifdef OCCT_DEBUG
else
- cout<<" IndUV ~~~~~~~~~~~~~~~~~~~~~~~~~~~~"<<endl;
+ std::cout<<" IndUV ~~~~~~~~~~~~~~~~~~~~~~~~~~~~"<<std::endl;
#endif
}
for(i=0;i<N;i++) {
UV[i]=NULL;
}
#ifdef OCCT_DEBUG
- else { cout<<" UV ~~~~~~~~~~~~~~~~~~~~~~~~~~~~"<<endl; }
+ else { std::cout<<" UV ~~~~~~~~~~~~~~~~~~~~~~~~~~~~"<<std::endl; }
#endif
}
//-- declaration de la Nv ligne de taille : ancienne taille + SIZEUV
//--
- //-- cout<<" \n alloc nbUV["<<i0<<"]="<<nbUV[i0];
+ //-- std::cout<<" \n alloc nbUV["<<i0<<"]="<<nbUV[i0];
Standard_Real *NvLigneUV = (Standard_Real *) malloc((nbUV[i0]+SIZEUV)*sizeof(Standard_Real));
Standard_Integer *NvLigneInd = (Standard_Integer *)malloc((nbUV[i0]+SIZEUV)*sizeof(Standard_Integer));
}
//-- ============================================================
void ResetTabBit(const Standard_Integer nbedgs) {
- //-- cout<<"\n ResetTabBit"<<endl;
+ //-- std::cout<<"\n ResetTabBit"<<std::endl;
if(TabBit) {
for(Standard_Integer i=0;i<nbedgs;i++) {
if(TabBit[i]) {
}
//-- ============================================================
void InitTabBit(const Standard_Integer nbedgs) {
- //-- cout<<"\n InitTabBit"<<endl;
+ //-- std::cout<<"\n InitTabBit"<<std::endl;
if(TabBit && nTabBit) {
ResetTabBit(nTabBit);
}
}
//-- ============================================================
void SetNoIntersection(Standard_Integer i0,Standard_Integer i1) {
- // cout<<" SetNoIntersection : "<<i0<<" "<<i1<<endl;
+ // std::cout<<" SetNoIntersection : "<<i0<<" "<<i1<<std::endl;
i0--;
i1--;
if(i0>i1) {
}
//-- ============================================================
Standard_Boolean NoIntersection(Standard_Integer i0,Standard_Integer i1) {
- // cout<<" ??NoIntersection : "<<i0<<" "<<i1<<" ";
+ // std::cout<<" ??NoIntersection : "<<i0<<" "<<i1<<" ";
i0--;
i1--;
if(i0>i1) {
Standard_Integer c=i1>>5;
Standard_Integer o=i1 & 31;
if(TabBit[i0][c] & Mask32[o]) {
- //-- cout<<" TRUE "<<endl;
+ //-- std::cout<<" TRUE "<<std::endl;
return(Standard_True);
}
- //-- cout<<" FALSE "<<endl;
+ //-- std::cout<<" FALSE "<<std::endl;
return(Standard_False);
}
//-- ============================================================
}
void HLRBRep_Data::Destroy() {
- //-- cout<<"\n HLRBRep_Data::~HLRBRep_Data()"<<endl;
+ //-- std::cout<<"\n HLRBRep_Data::~HLRBRep_Data()"<<std::endl;
((TableauRejection *)myReject)->Destroy();
delete ((TableauRejection *)myReject);
}
GetSingleIntersection(myLE,myFE,su,sv);
if(su!=RealLast()) {
myIntersector.SimulateOnePoint(myLEData,su,myFEData,sv);
- //-- cout<<"p";
+ //-- std::cout<<"p";
}
else {
myIntersector.Perform
else {
myNbPoints = myNbSegments = 0;
#ifdef OCCT_DEBUG
- cout << "HLRBRep_Data::NextInterference : ";
+ std::cout << "HLRBRep_Data::NextInterference : ";
if (myLE == myFE)
- cout << "Edge " << myLE
- << " : Intersection not done" << endl;
+ std::cout << "Edge " << myLE
+ << " : Intersection not done" << std::endl;
else
- cout << "Edges " << myLE << " , " << myFE
- << " : Intersection not done" << endl;
+ std::cout << "Edges " << myLE << " , " << myFE
+ << " : Intersection not done" << std::endl;
#endif
}
}
}
}
else {
- //-- cout<<"+";
+ //-- std::cout<<"+";
}
}
}
stbef = TopAbs_OUT;
staft = TopAbs_OUT;
#ifdef OCCT_DEBUG
- cout << "HLRBRep_Data::EdgeState : undefined" << endl;
+ std::cout << "HLRBRep_Data::EdgeState : undefined" << std::endl;
#endif
}
}
stbef = TopAbs_OUT;
staft = TopAbs_OUT;
#ifdef OCCT_DEBUG
- cout << "HLRBRep_Data::EdgeState : undefined" << endl;
+ std::cout << "HLRBRep_Data::EdgeState : undefined" << std::endl;
#endif
}
}
Loop = Standard_False;
else {
#ifdef OCCT_DEBUG
- cout << "HLRBRep_Data::HidingStartLevel : ";
- cout << "Bad Parameter." << endl;
+ std::cout << "HLRBRep_Data::HidingStartLevel : ";
+ std::cout << "Bad Parameter." << std::endl;
#endif
}
It.Next();
gp_Vec Nm = mySLProps.Normal();
if (curv == 0) {
#ifdef OCCT_DEBUG
- cout << "HLRBRep_Data::OrientOutLine " << I;
- cout << " Edge " << myFE << " : ";
- cout << "CurvatureValue == 0." << endl;
+ std::cout << "HLRBRep_Data::OrientOutLine " << I;
+ std::cout << " Edge " << myFE << " : ";
+ std::cout << "CurvatureValue == 0." << std::endl;
#endif
}
if (curv > 0)
Nm.Cross(Tg);
if (Tg.Magnitude() < gp::Resolution()) {
#ifdef OCCT_DEBUG
- cout << "HLRBRep_Data::OrientOutLine " << I;
- cout << " Edge " << myFE << " : ";
- cout << "Tg.Magnitude() == 0." << endl;
+ std::cout << "HLRBRep_Data::OrientOutLine " << I;
+ std::cout << " Edge " << myFE << " : ";
+ std::cout << "Tg.Magnitude() == 0." << std::endl;
#endif
}
if (myProj.Perspective())
}
else {
#ifdef OCCT_DEBUG
- cout << "HLRBRep_Data::OrientOutLine " << I;
- cout << " Edge " << myFE << " : ";
- cout << "UVPoint not found, OutLine not Oriented" << endl;
+ std::cout << "HLRBRep_Data::OrientOutLine " << I;
+ std::cout << " Edge " << myFE << " : ";
+ std::cout << "UVPoint not found, OutLine not Oriented" << std::endl;
#endif
}
ed1.Used(Standard_True);
}
#ifdef OCCT_DEBUG
else {
- cout << "HLRBRep_Data::OrientOthEdge " << I;
- cout << " Edge " << myFE << " : ";
- cout << "UVPoint not found, Edge not Oriented" << endl;
+ std::cout << "HLRBRep_Data::OrientOthEdge " << I;
+ std::cout << " Edge " << myFE << " : ";
+ std::cout << "UVPoint not found, Edge not Oriented" << std::endl;
}
#else
(void)I; // avoid compiler warning
q2 = (q& 0x0000FFFF);
printf("\nmot: %3d q1 = %+10d q2=%+10d Mask : %d",qwe+8,(q1>32768)? (32768-q1) : q1,(q2>32768)? (32768-q2) : q2,q&0x80008000);
}
- cout<<endl;
+ std::cout<<std::endl;
}
#endif
*/
ILOn.Remove(It); break;
case TopAbs_UNKNOWN :
#ifdef OCCT_DEBUG
- cout << "UNKNOWN state staft" << endl;
+ std::cout << "UNKNOWN state staft" << std::endl;
#endif
case TopAbs_ON :
It.Next(); break;
ILOn.Remove(It); break;
case TopAbs_UNKNOWN :
#ifdef OCCT_DEBUG
- cout << "UNKNOWN state stbef" << endl;
+ std::cout << "UNKNOWN state stbef" << std::endl;
#endif
case TopAbs_ON :
It.Next(); break;
ILOn.Remove(It); break;
case TopAbs_UNKNOWN :
#ifdef OCCT_DEBUG
- cout << "UNKNOWN state after" << endl;
+ std::cout << "UNKNOWN state after" << std::endl;
#endif
It.Next(); break;
} break;
Int.Transition(TopAbs_REVERSED); break;
case TopAbs_UNKNOWN :
#ifdef OCCT_DEBUG
- cout << "UNKNOWN state after" << endl;
+ std::cout << "UNKNOWN state after" << std::endl;
#endif
break;
}
ILOn.Remove(It); break;
case TopAbs_UNKNOWN :
#ifdef OCCT_DEBUG
- cout << "UNKNOWN state after" << endl;
+ std::cout << "UNKNOWN state after" << std::endl;
#endif
It.Next(); break;
} break;
case TopAbs_UNKNOWN :
#ifdef OCCT_DEBUG
- cout << "UNKNOWN state stbef" << endl;
+ std::cout << "UNKNOWN state stbef" << std::endl;
#endif
break;
}
{
ToRemove.Append(Int.Intersection().Parameter());
#ifdef OCCT_DEBUG
- cout<<"Two adjacent interferences with transition FORWARD"<<endl;
+ std::cout<<"Two adjacent interferences with transition FORWARD"<<std::endl;
#endif
}
else if (aTrans == TopAbs_REVERSED)
{
ToRemove.Append(PrevParam);
#ifdef OCCT_DEBUG
- cout<<"Two adjacent interferences with transition REVERSED"<<endl;
+ std::cout<<"Two adjacent interferences with transition REVERSED"<<std::endl;
#endif
}
}
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "An exception was catched when hiding edge " << E;
- cout << " by the face " << FI << endl;
- cout << anException << endl;
+ std::cout << "An exception was catched when hiding edge " << E;
+ std::cout << " by the face " << FI << std::endl;
+ std::cout << anException << std::endl;
#endif
(void)anException;
}
catch(Standard_Failure const& anException) {
if (myDebug)
{
- cout << "An exception was catched when preparing the Shape " << i;
- cout << " and computing its OutLines " << endl;
- cout << anException << endl;
+ std::cout << "An exception was catched when preparing the Shape " << i;
+ std::cout << " and computing its OutLines " << std::endl;
+ std::cout << anException << std::endl;
}
DS[i-1] = new HLRBRep_Data(0,0,0);
dv = 0;
Standard_Integer i,n = myShapes.Length();
if (myDebug)
- cout << " Partial hiding" << endl << endl;
+ std::cout << " Partial hiding" << std::endl << std::endl;
for (i = 1; i <= n; i++)
Hide(i);
Standard_Integer i,j,n = myShapes.Length();
if (myDebug)
- cout << " Total hiding" << endl;
+ std::cout << " Total hiding" << std::endl;
for (i = 1; i <= n; i++)
Hide(i);
"HLRBRep_InternalAlgo::Hide : unknown Shape");
if (myDebug)
- cout << " hiding the shape " << I << " by itself" << endl;
+ std::cout << " hiding the shape " << I << " by itself" << std::endl;
Select(I);
InitEdgeStatus();
((MinMaxShBJ->Max[6] - MinMaxShBI->Min[6]) & 0x80008000) == 0 &&
((MinMaxShBJ->Max[7] - MinMaxShBI->Min[7]) & 0x80008000) == 0) {
if (myDebug) {
- cout << " hiding the shape " << I;
- cout << " by the shape : " << J << endl;
+ std::cout << " hiding the shape " << I;
+ std::cout << " by the shape : " << J << std::endl;
}
SelectEdge(I);
SelectFace(J);
if (myDebug)
{
- cout << endl;
- cout << "Vertices : " << setw(5) << myDS->NbVertices() << endl;
- cout << "Edges : " << setw(5) << myDS->NbEdges() << " , ";
- cout << "Selected : " << setw(5) << nbSelEdges << " , ";
- cout << "Visibles : " << setw(5) << nbVisEdges << endl;
- cout << "Faces : " << setw(5) << myDS->NbFaces() << " , ";
- cout << "Selected : " << setw(5) << nbSelFaces << " , ";
- cout << "Simple : " << setw(5) << nbFSimp << endl;
+ std::cout << std::endl;
+ std::cout << "Vertices : " << std::setw(5) << myDS->NbVertices() << std::endl;
+ std::cout << "Edges : " << std::setw(5) << myDS->NbEdges() << " , ";
+ std::cout << "Selected : " << std::setw(5) << nbSelEdges << " , ";
+ std::cout << "Visibles : " << std::setw(5) << nbVisEdges << std::endl;
+ std::cout << "Faces : " << std::setw(5) << myDS->NbFaces() << " , ";
+ std::cout << "Selected : " << std::setw(5) << nbSelFaces << " , ";
+ std::cout << "Simple : " << std::setw(5) << nbFSimp << std::endl;
if (SideFace)
- cout << "Side : " << setw(5) << nbFSide << " , ";
- cout << "Cachantes : " << setw(5) << nbCache << endl << endl;
+ std::cout << "Side : " << std::setw(5) << nbFSide << " , ";
+ std::cout << "Cachantes : " << std::setw(5) << nbCache << std::endl << std::endl;
}
}
if(++QWE>QWEQWE) {
QWE=0;
if (myDebug)
- cout<<"*";
+ std::cout<<"*";
}
}
else {
if (myDebug && HLRBRep_InternalAlgo_TRACE) {
j++;
- cout << " OwnHiding " << j << " of face : " << f << endl;
+ std::cout << " OwnHiding " << j << " of face : " << f << std::endl;
}
}
Cache.OwnHiding(f);
if(HLRBRep_InternalAlgo_TRACE10 && HLRBRep_InternalAlgo_TRACE==Standard_False) {
if(++QWE>QWEQWE) {
if (myDebug)
- cout<<".";
+ std::cout<<".";
QWE=0;
}
}
nbFSimp++;
}
- cout << "\n";
- cout << "Simple Faces : ";
- cout << nbFSimp << "\n";
- cout << "Intersections calculees : ";
- cout << nbCal2Intersection << "\n";
- cout << "Intersections Ok : ";
- cout << nbOkIntersection << "\n";
- cout << "Points : ";
- cout << nbPtIntersection << "\n";
- cout << "Segments : ";
- cout << nbSegIntersection << "\n";
- cout << "Classification : ";
- cout << nbClassification << "\n";
- cout << "Intersections curve-surface : ";
- cout << nbCal3Intersection << "\n";
- cout << endl << endl;
+ std::cout << "\n";
+ std::cout << "Simple Faces : ";
+ std::cout << nbFSimp << "\n";
+ std::cout << "Intersections calculees : ";
+ std::cout << nbCal2Intersection << "\n";
+ std::cout << "Intersections Ok : ";
+ std::cout << nbOkIntersection << "\n";
+ std::cout << "Points : ";
+ std::cout << nbPtIntersection << "\n";
+ std::cout << "Segments : ";
+ std::cout << nbSegIntersection << "\n";
+ std::cout << "Classification : ";
+ std::cout << nbClassification << "\n";
+ std::cout << "Intersections curve-surface : ";
+ std::cout << nbCal3Intersection << "\n";
+ std::cout << std::endl << std::endl;
}
#endif
}
}
#ifdef OCCT_DEBUG
else if (DoError) {
- cout << " HLRBRep_PolyAlgo::StoreShell : Face ";
- cout << f << " non triangulated" << endl;
+ std::cout << " HLRBRep_PolyAlgo::StoreShell : Face ";
+ std::cout << f << " non triangulated" << std::endl;
}
#endif
NT = &(((HLRAlgo_Array1OfTData*)TData)->ChangeValue(1));
}
#ifdef OCCT_DEBUG
else if (DoError) {
- cout << "HLRBRep_PolyAlgo::StoreShell : Face ";
- cout << f << " deja stockee" << endl;
+ std::cout << "HLRBRep_PolyAlgo::StoreShell : Face ";
+ std::cout << f << " deja stockee" << std::endl;
}
#endif
}
Nod1RValues.Normal = gp_XYZ(1., 0., 0.);
#ifdef OCCT_DEBUG
if (DoError) {
- cout << "HLRBRep_PolyAlgo::Normal : AverageNormal error";
- cout << endl;
+ std::cout << "HLRBRep_PolyAlgo::Normal : AverageNormal error";
+ std::cout << std::endl;
}
#endif
}
OK = Standard_False;
#ifdef OCCT_DEBUG
if (DoError) {
- cout << "HLRAlgo_PolyInternalData:: inverted normals on ";
- cout << "node " << iNode << endl;
+ std::cout << "HLRAlgo_PolyInternalData:: inverted normals on ";
+ std::cout << "node " << iNode << std::endl;
}
#endif
}
else if (aNode12Indices->Edg2 == e) U2 = Nod12RValues->PCu2;
#ifdef OCCT_DEBUG
else {
- cout << " HLRBRep_PolyAlgo::InitBiPointsWithConnexity : ";
- cout << "Parameter error on Node " << i1p2 << endl;
+ std::cout << " HLRBRep_PolyAlgo::InitBiPointsWithConnexity : ";
+ std::cout << "Parameter error on Node " << i1p2 << std::endl;
}
#endif
aNode12Indices->Flag |= NMsk_Edge;
if (Nod11RValues->Normal.X()*Nod12RValues->Normal.X() +
Nod11RValues->Normal.Y()*Nod12RValues->Normal.Y() +
Nod11RValues->Normal.Z()*Nod12RValues->Normal.Z() < 0) {
- cout << " HLRBRep_PolyAlgo::InitBiPointsWithConnexity : ";
- cout << "Too big angle between " << i1p1 << setw(6);
- cout << " and " << i1p2 << setw(6);
- cout << " in face " << i1 << endl;
+ std::cout << " HLRBRep_PolyAlgo::InitBiPointsWithConnexity : ";
+ std::cout << "Too big angle between " << i1p1 << std::setw(6);
+ std::cout << " and " << i1p2 << std::setw(6);
+ std::cout << " in face " << i1 << std::endl;
}
}
#endif
else if (aNode12Indices->Edg2 == e) U2 = Nod12RValues->PCu2;
#ifdef OCCT_DEBUG
else {
- cout << " HLRBRep_PolyAlgo::InitBiPointsWithConnexity : ";
- cout << "Parameter error on Node " << i1p2 << endl;
+ std::cout << " HLRBRep_PolyAlgo::InitBiPointsWithConnexity : ";
+ std::cout << "Parameter error on Node " << i1p2 << std::endl;
}
#endif
aNode12Indices->Flag |= NMsk_Edge;
}
#ifdef OCCT_DEBUG
else if (DoError) {
- cout << "HLRBRep_PolyAlgo::InitBiPointsWithConnexity : Edge ";
- cout << e << " connex 1 sans PolygonOnTriangulation" << endl;
+ std::cout << "HLRBRep_PolyAlgo::InitBiPointsWithConnexity : Edge ";
+ std::cout << e << " connex 1 sans PolygonOnTriangulation" << std::endl;
}
#endif
}
else if (aNode12Indices->Edg2 == e) U2 = Nod12RValues->PCu2;
#ifdef OCCT_DEBUG
else {
- cout << " HLRBRep_PolyAlgo::InitBiPointsWithConnexity : ";
- cout << "Parameter error on Node " << i1p2 << endl;
+ std::cout << " HLRBRep_PolyAlgo::InitBiPointsWithConnexity : ";
+ std::cout << "Parameter error on Node " << i1p2 << std::endl;
}
#endif
aNode12Indices->Flag |= NMsk_Edge;
if (Nod11RValues->Normal.X()*Nod12RValues->Normal.X() +
Nod11RValues->Normal.Y()*Nod12RValues->Normal.Y() +
Nod11RValues->Normal.Z()*Nod12RValues->Normal.Z() < 0) {
- cout << " HLRBRep_PolyAlgo::InitBiPointsWithConnexity : ";
- cout << "To big angle between " << i1p1 << setw(6);
- cout << " and " << i1p2 << setw(6);
- cout << " in face " << i1 << endl;
+ std::cout << " HLRBRep_PolyAlgo::InitBiPointsWithConnexity : ";
+ std::cout << "To big angle between " << i1p1 << std::setw(6);
+ std::cout << " and " << i1p2 << std::setw(6);
+ std::cout << " in face " << i1 << std::endl;
}
if (Nod21RValues->Normal.X()*Nod22RValues->Normal.X() +
Nod21RValues->Normal.Y()*Nod22RValues->Normal.Y() +
Nod21RValues->Normal.Z()*Nod22RValues->Normal.Z() < 0) {
- cout << " HLRBRep_PolyAlgo::InitBiPointsWithConnexity : ";
- cout << "To big angle between " << i2p1 << setw(6);
- cout << " and " << i2p2 << setw(6);
- cout<< " in face " << i2 << endl;
+ std::cout << " HLRBRep_PolyAlgo::InitBiPointsWithConnexity : ";
+ std::cout << "To big angle between " << i2p1 << std::setw(6);
+ std::cout << " and " << i2p2 << std::setw(6);
+ std::cout<< " in face " << i2 << std::endl;
}
}
#endif
else if (aNode12Indices->Edg2 == e) U2 = Nod12RValues->PCu2;
#ifdef OCCT_DEBUG
else {
- cout << " HLRBRep_PolyAlgo::InitBiPointsWithConnexity : ";
- cout << "Parameter error on Node " << i1p2 << endl;
+ std::cout << " HLRBRep_PolyAlgo::InitBiPointsWithConnexity : ";
+ std::cout << "Parameter error on Node " << i1p2 << std::endl;
}
#endif
aNode12Indices->Flag |= NMsk_Edge;
}
#ifdef OCCT_DEBUG
else if (DoError) {
- cout << "HLRBRep_PolyAlgo::InitBiPointsWithConnexity : Edge ";
- cout << e << " connect 2 without PolygonOnTriangulation" << endl;
+ std::cout << "HLRBRep_PolyAlgo::InitBiPointsWithConnexity : Edge ";
+ std::cout << e << " connect 2 without PolygonOnTriangulation" << std::endl;
}
#endif
}
}
#ifdef OCCT_DEBUG
else if (DoError) {
- cout << "HLRBRep_PolyAlgo::InitBiPointsWithConnexity : Edge ";
- cout << e << " Isolated, without Polygone 3D" << endl;
+ std::cout << "HLRBRep_PolyAlgo::InitBiPointsWithConnexity : Edge ";
+ std::cout << e << " Isolated, without Polygone 3D" << std::endl;
}
#endif
}
else if (Nod11Indices.Edg2 == e) Nod11RValues.PCu2 = U3;
#ifdef OCCT_DEBUG
else {
- cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
- cout << "Parameter error on Node " << i1p1 << endl;
+ std::cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
+ std::cout << "Parameter error on Node " << i1p1 << std::endl;
}
#endif
Nod11RValues.Scal = 0;
else if (Nod12Indices.Edg2 == e) Nod12RValues.PCu2 = U3;
#ifdef OCCT_DEBUG
else {
- cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
- cout << "Parameter error on Node " << i1p2 << endl;
+ std::cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
+ std::cout << "Parameter error on Node " << i1p2 << std::endl;
}
#endif
Nod12RValues.Scal = 0;
else if (Nod11Indices.Edg2 == e) Nod11RValues.PCu2 = U3;
#ifdef OCCT_DEBUG
else {
- cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
- cout << "Parameter error on Node " << i1p1 << endl;
+ std::cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
+ std::cout << "Parameter error on Node " << i1p1 << std::endl;
}
#endif
Nod11RValues.Scal = 0;
else if (Nod21Indices.Edg2 == e) Nod21RValues.PCu2 = U3;
#ifdef OCCT_DEBUG
else {
- cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
- cout << "Parameter error on Node " << i2p1 << endl;
+ std::cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
+ std::cout << "Parameter error on Node " << i2p1 << std::endl;
}
#endif
Nod21RValues.Scal = 0;
else if (Nod12Indices.Edg2 == e) Nod12RValues.PCu2 = U3;
#ifdef OCCT_DEBUG
else {
- cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
- cout << "Parameter error on Node " << i1p2 << endl;
+ std::cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
+ std::cout << "Parameter error on Node " << i1p2 << std::endl;
}
#endif
Nod12RValues.Scal = 0;
else if (Nod22Indices.Edg2 == e) Nod22RValues.PCu2 = U3;
#ifdef OCCT_DEBUG
else {
- cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
- cout << "Parameter error on Node " << i2p2 << endl;
+ std::cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
+ std::cout << "Parameter error on Node " << i2p2 << std::endl;
}
#endif
Nod22RValues.Scal = 0;
else if (Nod11Indices.Edg2 == e) Nod11RValues.PCu2 = U3;
#ifdef OCCT_DEBUG
else {
- cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
- cout << "Parameter error on Node " << i1p1 << endl;
+ std::cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
+ std::cout << "Parameter error on Node " << i1p1 << std::endl;
}
#endif
Nod11RValues.Scal = 0;
else if (Nod21Indices.Edg2 == e) Nod21RValues.PCu2 = U3;
#ifdef OCCT_DEBUG
else {
- cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
- cout << "Parameter error on Node " << i2p1 << endl;
+ std::cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
+ std::cout << "Parameter error on Node " << i2p1 << std::endl;
}
#endif
Nod21RValues.Scal = 0;
else if (Nod12Indices.Edg2 == e) Nod12RValues.PCu2 = U4;
#ifdef OCCT_DEBUG
else {
- cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
- cout << "Parameter error on Node " << i1p2 << endl;
+ std::cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
+ std::cout << "Parameter error on Node " << i1p2 << std::endl;
}
#endif
Nod12RValues.Scal = 0;
else if (Nod22Indices.Edg2 == e) Nod22RValues.PCu2 = U4;
#ifdef OCCT_DEBUG
else {
- cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
- cout << "Parameter error on Node " << i2p2 << endl;
+ std::cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
+ std::cout << "Parameter error on Node " << i2p2 << std::endl;
}
#endif
Nod22RValues.Scal = 0;
#ifdef OCCT_DEBUG
if (DoTrace) {
- cout << " InsertOnOutLine : NbTData " << (*pid)->NbTData() << endl;
- cout << " InsertOnOutLine : NbPISeg " << (*pid)->NbPISeg() << endl;
- cout << " InsertOnOutLine : NbPINod " << (*pid)->NbPINod() << endl;
+ std::cout << " InsertOnOutLine : NbTData " << (*pid)->NbTData() << std::endl;
+ std::cout << " InsertOnOutLine : NbPISeg " << (*pid)->NbPISeg() << std::endl;
+ std::cout << " InsertOnOutLine : NbPINod " << (*pid)->NbPINod() << std::endl;
}
#endif
#ifdef OCCT_DEBUG
if (DoTrace) {
- cout << " InsertOnOutLine : NbTData " << (*pid)->NbTData() << endl;
- cout << " InsertOnOutLine : NbPISeg " << (*pid)->NbPISeg() << endl;
- cout << " InsertOnOutLine : NbPINod " << (*pid)->NbPINod() << endl;
+ std::cout << " InsertOnOutLine : NbTData " << (*pid)->NbTData() << std::endl;
+ std::cout << " InsertOnOutLine : NbPISeg " << (*pid)->NbPISeg() << std::endl;
+ std::cout << " InsertOnOutLine : NbPINod " << (*pid)->NbPINod() << std::endl;
}
#endif
}
(tdata->Flags & HLRAlgo_PolyMask_FMskFrBack)) {
#ifdef OCCT_DEBUG
if (DoTrace)
- cout << " face : " << f << " , triangle " << i << endl;
+ std::cout << " face : " << f << " , triangle " << i << std::endl;
#endif
Modif = Standard_True;
const Handle(HLRAlgo_PolyInternalNode)* pi1p1 =
FrBackInList = Standard_True;
#ifdef OCCT_DEBUG
if (DoTrace) {
- cout << tdata->Node1 << " modifies : DX,DY ";
- cout << X1 << " , " << Y1 << endl;
+ std::cout << tdata->Node1 << " modifies : DX,DY ";
+ std::cout << X1 << " , " << Y1 << std::endl;
}
#endif
}
FrBackInList = Standard_True;
#ifdef OCCT_DEBUG
if (DoTrace) {
- cout << tdata->Node2 << " modifies : DX,DY ";
- cout << X2 << " , " << Y2 << endl;
+ std::cout << tdata->Node2 << " modifies : DX,DY ";
+ std::cout << X2 << " , " << Y2 << std::endl;
}
#endif
}
FrBackInList = Standard_True;
#ifdef OCCT_DEBUG
if (DoTrace) {
- cout << tdata->Node3 << " modifies : DX,DY ";
- cout << X3 << " , " << Y3 << endl;
+ std::cout << tdata->Node3 << " modifies : DX,DY ";
+ std::cout << X3 << " , " << Y3 << std::endl;
}
#endif
}
#ifdef OCCT_DEBUG
else if (DoTrace)
- cout << "modification error" << endl;
+ std::cout << "modification error" << std::endl;
#endif
}
tdata++;
if (Nod11Indices->Flag & NMsk_Move) {
#ifdef OCCT_DEBUG
if (DoTrace)
- cout << theIndices.Face1Pt1 << " modifies 11" << endl;
+ std::cout << theIndices.Face1Pt1 << " modifies 11" << std::endl;
#endif
Nod11RValues = &PINod1->ChangeValue(theIndices.Face1Pt1)->Data();
HLRAlgo_BiPoint::PointsT& aPoints = BP.Points();
if (Nod11Indices->Flag & NMsk_Move) {
#ifdef OCCT_DEBUG
if (DoTrace)
- cout << theIndices.Face1Pt2 << " modifies 12" << endl;
+ std::cout << theIndices.Face1Pt2 << " modifies 12" << std::endl;
#endif
Nod11RValues = &PINod1->ChangeValue(theIndices.Face1Pt2)->Data();
HLRAlgo_BiPoint::PointsT& aPoints = BP.Points();
if (Nod11Indices->Flag & NMsk_Move) {
#ifdef OCCT_DEBUG
if (DoTrace)
- cout << theIndices.Face2Pt1 << " modifies 21" << endl;
+ std::cout << theIndices.Face2Pt1 << " modifies 21" << std::endl;
#endif
Nod11RValues = &PINod2->ChangeValue(theIndices.Face2Pt1)->Data();
HLRAlgo_BiPoint::PointsT& aPoints = BP.Points();
if (Nod11Indices->Flag & NMsk_Move) {
#ifdef OCCT_DEBUG
if (DoTrace)
- cout << theIndices.Face2Pt2 << " modifies 22" << endl;
+ std::cout << theIndices.Face2Pt2 << " modifies 22" << std::endl;
#endif
Nod11RValues = &PINod2->ChangeValue(theIndices.Face2Pt2)->Data();
HLRAlgo_BiPoint::PointsT& aPoints = BP.Points();
Nod1RValues.Normal = gp_XYZ(1., 0., 0.);
#ifdef OCCT_DEBUG
if (DoError) {
- cout << "HLRBRep_PolyAlgo::ChangeNode between " << ip1;
- cout << " and " << ip2 << endl;
+ std::cout << "HLRBRep_PolyAlgo::ChangeNode between " << ip1;
+ std::cout << " and " << ip2 << std::endl;
}
#endif
}
Nod2RValues.Normal = gp_XYZ(1., 0., 0.);
#ifdef OCCT_DEBUG
if (DoError) {
- cout << "HLRBRep_PolyAlgo::ChangeNode between " << ip2;
- cout << " and " << ip1 << endl;
+ std::cout << "HLRBRep_PolyAlgo::ChangeNode between " << ip2;
+ std::cout << " and " << ip1 << std::endl;
}
#endif
}
theTriangle.Flags |= HLRAlgo_PolyMask_FMskOnOutL;
#ifdef OCCT_DEBUG
if (DoTrace) {
- cout << "HLRBRep_PolyAlgo::OrientTriangle : OnOutL";
- cout << " triangle " << iTri << endl;
+ std::cout << "HLRBRep_PolyAlgo::OrientTriangle : OnOutL";
+ std::cout << " triangle " << iTri << std::endl;
}
#endif
}
if (aD12Norm <= 1.e-10) {
#ifdef OCCT_DEBUG
if (DoTrace) {
- cout << "HLRBRep_PolyAlgo::OrientTriangle : Flat";
- cout << " triangle " << iTri << endl;
+ std::cout << "HLRBRep_PolyAlgo::OrientTriangle : Flat";
+ std::cout << " triangle " << iTri << std::endl;
}
#endif
theTriangle.Flags |= HLRAlgo_PolyMask_FMskFlat;
if (aD23Norm < 1.e-10) {
#ifdef OCCT_DEBUG
if (DoTrace) {
- cout << "HLRBRep_PolyAlgo::OrientTriangle : Flat";
- cout << " triangle " << iTri << endl;
+ std::cout << "HLRBRep_PolyAlgo::OrientTriangle : Flat";
+ std::cout << " triangle " << iTri << std::endl;
}
#endif
theTriangle.Flags |= HLRAlgo_PolyMask_FMskFlat;
if (aD31Norm < 1.e-10) {
#ifdef OCCT_DEBUG
if (DoTrace) {
- cout << "HLRBRep_PolyAlgo::OrientTriangle : Flat";
- cout << " triangle " << iTri << endl;
+ std::cout << "HLRBRep_PolyAlgo::OrientTriangle : Flat";
+ std::cout << " triangle " << iTri << std::endl;
}
#endif
theTriangle.Flags |= HLRAlgo_PolyMask_FMskFlat;
if (aDNorm < 1.e-5) {
#ifdef OCCT_DEBUG
if (DoTrace) {
- cout << "HLRBRep_PolyAlgo::OrientTriangle : Flat";
- cout << " triangle " << iTri << endl;
+ std::cout << "HLRBRep_PolyAlgo::OrientTriangle : Flat";
+ std::cout << " triangle " << iTri << std::endl;
}
#endif
theTriangle.Flags |= HLRAlgo_PolyMask_FMskFlat;
iTri2 = 0;
#ifdef OCCT_DEBUG
if (DoError) {
- cout << "HLRBRep_PolyAlgo::Triangles : error";
- cout << " between " << ip1 << " and " << ip2 << endl;
+ std::cout << "HLRBRep_PolyAlgo::Triangles : error";
+ std::cout << " between " << ip1 << " and " << ip2 << std::endl;
}
#endif
return Standard_False;
aTriangle.Flags |= HLRAlgo_PolyMask_EMskOutLin3;
#ifdef OCCT_DEBUG
else if (DoError) {
- cout << "HLRAlgo_PolyInternalData::UpdateOutLines";
- cout << " : segment not found" << endl;
+ std::cout << "HLRAlgo_PolyInternalData::UpdateOutLines";
+ std::cout << " : segment not found" << std::endl;
}
#endif
tn1 = aTriangle2.Node1;
aTriangle2.Flags |= HLRAlgo_PolyMask_EMskOutLin3;
#ifdef OCCT_DEBUG
else if (DoError) {
- cout << "HLRAlgo_PolyInternalData::UpdateOutLines";
- cout << " : segment not found" << endl;
+ std::cout << "HLRAlgo_PolyInternalData::UpdateOutLines";
+ std::cout << " : segment not found" << std::endl;
}
#endif
HLRAlgo_PolyInternalNode::NodeData& Nod1RValues =
}
#ifdef OCCT_DEBUG
else if (DoError) {
- cout << "HLRBRep_PolyAlgo::UpdateEdgesBiPoints : error ";
- cout << " between " << aIndices.FaceConex1 << setw(6);
- cout << " and " << aIndices.FaceConex2 << endl;
+ std::cout << "HLRBRep_PolyAlgo::UpdateEdgesBiPoints : error ";
+ std::cout << " between " << aIndices.FaceConex1 << std::setw(6);
+ std::cout << " and " << aIndices.FaceConex2 << std::endl;
}
#endif
}
if (!(OT->Flags & HLRAlgo_PolyMask_FMskSide)) {
#ifdef OCCT_DEBUG
if ((OT->Flags & HLRAlgo_PolyMask_FMskFrBack) && DoTrace) {
- cout << "HLRBRep_PolyAlgo::ReverseBackTriangle :";
- cout << " face " << f << setw(6);
- cout << " triangle " << i << endl;
+ std::cout << "HLRBRep_PolyAlgo::ReverseBackTriangle :";
+ std::cout << " face " << f << std::setw(6);
+ std::cout << " triangle " << i << std::endl;
}
#endif
if (OT->Flags & HLRAlgo_PolyMask_FMskOrBack) {
//purpose :
//=======================================================================
-static void ssave (const Handle(Draw_Drawable3D)&d, ostream& OS)
+static void ssave (const Handle(Draw_Drawable3D)&d, std::ostream& OS)
{
Handle(HLRTest_Projector) HP =
Handle(HLRTest_Projector)::DownCast(d);
//purpose :
//=======================================================================
-static Handle(Draw_Drawable3D) srestore (istream& IS)
+static Handle(Draw_Drawable3D) srestore (std::istream& IS)
{
Standard_Boolean pers;
IS >> pers;
}
if (myDebug) {
ChronHide.Stop();
- cout << " Temps Hide :";
+ std::cout << " Temps Hide :";
ChronHide.Show();
}
}
void HLRTest_OutLiner::Dump (Standard_OStream& S) const
{
- S << "This is an outliner" << endl;
+ S << "This is an outliner" << std::endl;
}
//=======================================================================
for (Standard_Integer i = 1; i <= 3; i++) {
for (Standard_Integer j = 1; j <= 4; j++) {
- S << setw(15) << myProjector.Transformation().Value(i,j);
+ S << std::setw(15) << myProjector.Transformation().Value(i,j);
}
S << "\n";
}
- S << endl;
+ S << std::endl;
}
//=======================================================================
if(ipL-ipF < 1) {
InsuffisantNumberOfPoints=Standard_True;
- //cout<<"\n !! Pb ds HLRTopoBRep_DSFiller.cxx (Contour App Nbp <3)"<<endl;
+ //std::cout<<"\n !! Pb ds HLRTopoBRep_DSFiller.cxx (Contour App Nbp <3)"<<std::endl;
}
/*
else if(ipL-ipF < 6) {
TOL3d=TOL*Maxx; if(TOL3d<1e-12) TOL3d=1e-12; else if(TOL3d>0.1) TOL3d=0.1;
TOL2d=TOL*Maxu; if(TOL2d<1e-12) TOL2d=1e-12; else if(TOL2d>0.1) TOL2d=0.1;
- //-- cout<<"\nHLRTopoBRep_DSFiller : nbp="<<nbp<<" Tol3d="<<TOL3d<<" Tol2d="<<TOL2d<<endl;
+ //-- std::cout<<"\nHLRTopoBRep_DSFiller : nbp="<<nbp<<" Tol3d="<<TOL3d<<" Tol2d="<<TOL2d<<std::endl;
Approx.SetParameters(TOL3d, TOL2d, dmin, dmax, niter, 30, tg);
Approx.Perform(AppLine,Standard_True,Standard_True,Standard_False,1,nbp);
Hatcher.ComputeDomains (IndH);
if (!Hatcher.IsDone (IndH)) {
#ifdef OCCT_DEBUG
- cout << "HLRTopoBRep::MakeIsoLines : Face " << FI << endl;
- cout << "U iso of parameter: " << UPrm;
+ std::cout << "HLRTopoBRep::MakeIsoLines : Face " << FI << std::endl;
+ std::cout << "U iso of parameter: " << UPrm;
switch (Hatcher.Status (IndH)) {
case HatchGen_NoProblem :
- cout << " No Problem" << endl;
+ std::cout << " No Problem" << std::endl;
break;
case HatchGen_TrimFailure :
- cout << " Trim Failure" << endl;
+ std::cout << " Trim Failure" << std::endl;
break;
case HatchGen_TransitionFailure :
- cout << " Transition Failure" << endl;
+ std::cout << " Transition Failure" << std::endl;
break;
case HatchGen_IncoherentParity :
- cout << " Incoherent Parity" << endl;
+ std::cout << " Incoherent Parity" << std::endl;
break;
case HatchGen_IncompatibleStates :
- cout << " Incompatible States" << endl;
+ std::cout << " Incompatible States" << std::endl;
break;
}
#endif
Hatcher.ComputeDomains (IndH);
if (!Hatcher.IsDone (IndH)) {
#ifdef OCCT_DEBUG
- cout << "HLRTopoBRep::MakeIsoLines : Face " << FI << endl;
- cout << "V iso of parameter: " << VPrm;
+ std::cout << "HLRTopoBRep::MakeIsoLines : Face " << FI << std::endl;
+ std::cout << "V iso of parameter: " << VPrm;
switch (Hatcher.Status (IndH)) {
case HatchGen_NoProblem :
- cout << " No Problem" << endl;
+ std::cout << " No Problem" << std::endl;
break;
case HatchGen_TrimFailure :
- cout << " Trim Failure" << endl;
+ std::cout << " Trim Failure" << std::endl;
break;
case HatchGen_TransitionFailure :
- cout << " Transition Failure" << endl;
+ std::cout << " Transition Failure" << std::endl;
break;
case HatchGen_IncoherentParity :
- cout << " Incoherent Parity" << endl;
+ std::cout << " Incoherent Parity" << std::endl;
break;
case HatchGen_IncompatibleStates :
- cout << " Incompatible States" << endl;
+ std::cout << " Incompatible States" << std::endl;
break;
}
#endif
void HatchGen_Domain::Dump (const Standard_Integer Index) const
{
- cout << "=== Domain " ;
+ std::cout << "=== Domain " ;
if (Index > 0) {
- cout << "# " << setw(3) << Index << " " ;
+ std::cout << "# " << std::setw(3) << Index << " " ;
} else {
- cout << "======" ;
+ std::cout << "======" ;
}
- cout << "=============================" << endl ;
+ std::cout << "=============================" << std::endl ;
if (myHasFirstPoint) {
myFirstPoint.Dump (1) ;
} else {
- cout << " Has not a first point" << endl ;
+ std::cout << " Has not a first point" << std::endl ;
}
if (myHasSecondPoint) {
mySecondPoint.Dump (2) ;
} else {
- cout << " Has not a second point" << endl ;
+ std::cout << " Has not a second point" << std::endl ;
}
- cout << "==============================================" << endl ;
+ std::cout << "==============================================" << std::endl ;
}
void HatchGen_PointOnElement::Dump (const Standard_Integer Index) const
{
- cout << " --- Point on element " ;
+ std::cout << " --- Point on element " ;
if (Index > 0) {
- cout << "# " << setw(3) << Index << " " ;
+ std::cout << "# " << std::setw(3) << Index << " " ;
} else {
- cout << "------" ;
+ std::cout << "------" ;
}
- cout << "---------------" << endl ;
+ std::cout << "---------------" << std::endl ;
- cout << " Index of the element = " << myIndex << endl ;
- cout << " Parameter on element = " << myParam << endl ;
- cout << " Position on element = " ;
+ std::cout << " Index of the element = " << myIndex << std::endl ;
+ std::cout << " Parameter on element = " << myParam << std::endl ;
+ std::cout << " Position on element = " ;
switch (myPosit) {
- case TopAbs_FORWARD : cout << "FORWARD (i.e. BEGIN )" ; break ;
- case TopAbs_INTERNAL : cout << "INTERNAL (i.e. MIDDLE )" ; break ;
- case TopAbs_REVERSED : cout << "REVERSED (i.e. END )" ; break ;
- case TopAbs_EXTERNAL : cout << "EXTERNAL (i.e. UNKNOWN)" ; break ;
+ case TopAbs_FORWARD : std::cout << "FORWARD (i.e. BEGIN )" ; break ;
+ case TopAbs_INTERNAL : std::cout << "INTERNAL (i.e. MIDDLE )" ; break ;
+ case TopAbs_REVERSED : std::cout << "REVERSED (i.e. END )" ; break ;
+ case TopAbs_EXTERNAL : std::cout << "EXTERNAL (i.e. UNKNOWN)" ; break ;
}
- cout << endl ;
- cout << " Intersection Type = " ;
+ std::cout << std::endl ;
+ std::cout << " Intersection Type = " ;
switch (myType) {
- case HatchGen_TRUE : cout << "TRUE" ; break ;
- case HatchGen_TOUCH : cout << "TOUCH" ; break ;
- case HatchGen_TANGENT : cout << "TANGENT" ; break ;
- case HatchGen_UNDETERMINED : cout << "UNDETERMINED" ; break ;
+ case HatchGen_TRUE : std::cout << "TRUE" ; break ;
+ case HatchGen_TOUCH : std::cout << "TOUCH" ; break ;
+ case HatchGen_TANGENT : std::cout << "TANGENT" ; break ;
+ case HatchGen_UNDETERMINED : std::cout << "UNDETERMINED" ; break ;
}
- cout << endl ;
- cout << " State Before = " ;
+ std::cout << std::endl ;
+ std::cout << " State Before = " ;
switch (myBefore) {
- case TopAbs_IN : cout << "IN" ; break ;
- case TopAbs_OUT : cout << "OUT" ; break ;
- case TopAbs_ON : cout << "ON" ; break ;
- case TopAbs_UNKNOWN : cout << "UNKNOWN" ; break ;
+ case TopAbs_IN : std::cout << "IN" ; break ;
+ case TopAbs_OUT : std::cout << "OUT" ; break ;
+ case TopAbs_ON : std::cout << "ON" ; break ;
+ case TopAbs_UNKNOWN : std::cout << "UNKNOWN" ; break ;
}
- cout << endl ;
- cout << " State After = " ;
+ std::cout << std::endl ;
+ std::cout << " State After = " ;
switch (myAfter) {
- case TopAbs_IN : cout << "IN" ; break ;
- case TopAbs_OUT : cout << "OUT" ; break ;
- case TopAbs_ON : cout << "ON" ; break ;
- case TopAbs_UNKNOWN : cout << "UNKNOWN" ; break ;
+ case TopAbs_IN : std::cout << "IN" ; break ;
+ case TopAbs_OUT : std::cout << "OUT" ; break ;
+ case TopAbs_ON : std::cout << "ON" ; break ;
+ case TopAbs_UNKNOWN : std::cout << "UNKNOWN" ; break ;
}
- cout << endl ;
- cout << " Beginning of segment = " << (mySegBeg ? "TRUE" : "FALSE") << endl ;
- cout << " End of segment = " << (mySegEnd ? "TRUE" : "FALSE") << endl ;
+ std::cout << std::endl ;
+ std::cout << " Beginning of segment = " << (mySegBeg ? "TRUE" : "FALSE") << std::endl ;
+ std::cout << " End of segment = " << (mySegEnd ? "TRUE" : "FALSE") << std::endl ;
- cout << " ------------------------------------------" << endl ;
+ std::cout << " ------------------------------------------" << std::endl ;
}
void HatchGen_PointOnHatching::Dump (const Standard_Integer Index) const
{
- cout << "--- Point on hatching " ;
+ std::cout << "--- Point on hatching " ;
if (Index > 0) {
- cout << "# " << setw(3) << Index << " " ;
+ std::cout << "# " << std::setw(3) << Index << " " ;
} else {
- cout << "------" ;
+ std::cout << "------" ;
}
- cout << "------------------" << endl ;
+ std::cout << "------------------" << std::endl ;
- cout << " Index of the hatching = " << myIndex << endl ;
- cout << " Parameter on hatching = " << myParam << endl ;
- cout << " Position on hatching = " ;
+ std::cout << " Index of the hatching = " << myIndex << std::endl ;
+ std::cout << " Parameter on hatching = " << myParam << std::endl ;
+ std::cout << " Position on hatching = " ;
switch (myPosit) {
- case TopAbs_FORWARD : cout << "FORWARD (i.e. BEGIN )" ; break ;
- case TopAbs_INTERNAL : cout << "INTERNAL (i.e. MIDDLE )" ; break ;
- case TopAbs_REVERSED : cout << "REVERSED (i.e. END )" ; break ;
- case TopAbs_EXTERNAL : cout << "EXTERNAL (i.e. UNKNOWN)" ; break ;
+ case TopAbs_FORWARD : std::cout << "FORWARD (i.e. BEGIN )" ; break ;
+ case TopAbs_INTERNAL : std::cout << "INTERNAL (i.e. MIDDLE )" ; break ;
+ case TopAbs_REVERSED : std::cout << "REVERSED (i.e. END )" ; break ;
+ case TopAbs_EXTERNAL : std::cout << "EXTERNAL (i.e. UNKNOWN)" ; break ;
}
- cout << endl ;
- cout << " State Before = " ;
+ std::cout << std::endl ;
+ std::cout << " State Before = " ;
switch (myBefore) {
- case TopAbs_IN : cout << "IN" ; break ;
- case TopAbs_OUT : cout << "OUT" ; break ;
- case TopAbs_ON : cout << "ON" ; break ;
- case TopAbs_UNKNOWN : cout << "UNKNOWN" ; break ;
+ case TopAbs_IN : std::cout << "IN" ; break ;
+ case TopAbs_OUT : std::cout << "OUT" ; break ;
+ case TopAbs_ON : std::cout << "ON" ; break ;
+ case TopAbs_UNKNOWN : std::cout << "UNKNOWN" ; break ;
}
- cout << endl ;
- cout << " State After = " ;
+ std::cout << std::endl ;
+ std::cout << " State After = " ;
switch (myAfter) {
- case TopAbs_IN : cout << "IN" ; break ;
- case TopAbs_OUT : cout << "OUT" ; break ;
- case TopAbs_ON : cout << "ON" ; break ;
- case TopAbs_UNKNOWN : cout << "UNKNOWN" ; break ;
+ case TopAbs_IN : std::cout << "IN" ; break ;
+ case TopAbs_OUT : std::cout << "OUT" ; break ;
+ case TopAbs_ON : std::cout << "ON" ; break ;
+ case TopAbs_UNKNOWN : std::cout << "UNKNOWN" ; break ;
}
- cout << endl ;
- cout << " Beginning of segment = " << (mySegBeg ? "TRUE" : "FALSE") << endl ;
- cout << " End of segment = " << (mySegEnd ? "TRUE" : "FALSE") << endl ;
+ std::cout << std::endl ;
+ std::cout << " Beginning of segment = " << (mySegBeg ? "TRUE" : "FALSE") << std::endl ;
+ std::cout << " End of segment = " << (mySegEnd ? "TRUE" : "FALSE") << std::endl ;
Standard_Integer NbPnt = myPoints.Length () ;
if (NbPnt == 0) {
- cout << " No points on element" << endl ;
+ std::cout << " No points on element" << std::endl ;
} else {
- cout << " Contains " << NbPnt << " points on element" << endl ;
+ std::cout << " Contains " << NbPnt << " points on element" << std::endl ;
for (Standard_Integer IPnt = 1 ; IPnt <= NbPnt ; IPnt++) {
const HatchGen_PointOnElement& Point = myPoints.Value (IPnt) ;
Point.Dump (IPnt) ;
}
}
- cout << "----------------------------------------------" << endl ;
+ std::cout << "----------------------------------------------" << std::endl ;
}
// Interface_Graph G(Model());
Interface_Graph G(thegraph);
#ifdef OCCT_DEBUG
- cout<<" SCRoots:"<<endl;
+ std::cout<<" SCRoots:"<<std::endl;
#endif
G.ResetStatus();
for (complist.Start(); complist.More(); complist.Next()) {
Handle(Standard_Transient) ent = complist.FirstEntity();
Standard_Integer num = G.EntityNumber(ent);
#ifdef OCCT_DEBUG
- cout<<" Iteration,num="<<num<<(G.IsPresent(num) ? " Pris" : " A prendre")<<endl;
+ std::cout<<" Iteration,num="<<num<<(G.IsPresent(num) ? " Pris" : " A prendre")<<std::endl;
#endif
if (!G.IsPresent(num)) { // enregistrer pour suivants
G.GetFromEntity(ent,Standard_True);
{
#ifdef OCCT_DEBUG
if (thedico.IsBound(command)) {
- cout << "**** XSTEP commands, name conflict on " << command << " first defined remains ****" << endl;
+ std::cout << "**** XSTEP commands, name conflict on " << command << " first defined remains ****" << std::endl;
// throw Standard_DomainError("IFSelect_Activator : Add");
}
#endif
if (modif.IsNull()) return;
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- sout << "--- Run Modifier:" << endl;
+ sout << "--- Run Modifier:" << Message_EndLine;
Handle(IFSelect_Selection) sel = modif->Selection();
if (!sel.IsNull()) sout<<" Selection:"<<sel->Label();
else sout<<" (no Selection)";
for (Standard_Integer i = 1; i <= nb; i ++) {
if (thelist.Value(i) != ' ') ne ++;
}
- if (nb == ne) sout<<" All Model ("<<nb<<" Entities)"<<endl;
- else sout<<" Entities,Total:"<<nb<<" Concerned:"<<ne<<endl;
+ if (nb == ne) sout<<" All Model ("<<nb<<" Entities)"<<Message_EndLine;
+ else sout<<" Entities,Total:"<<nb<<" Concerned:"<<ne<<Message_EndLine;
}
if (thecurr <= 0) return;
Handle(Message_Messenger) sout = Message::DefaultMessenger();
if (ValueOriginal() == ValueResult())
- sout<<"-- ContextModif. Entity n0 "<<thecurr<<endl;
+ sout<<"-- ContextModif. Entity n0 "<<thecurr<<Message_EndLine;
else
sout<<"-- ContextModif. Entity in Original, n0 "<<thecurr<<" in Result, n0 "
- <<thecurt<<endl;
- if (mess[0] != '\0') sout<<"-- Message:"<<mess<<endl;
+ <<thecurt<<Message_EndLine;
+ if (mess[0] != '\0') sout<<"-- Message:"<<mess<<Message_EndLine;
}
void IFSelect_EditForm::PrintDefs (const Handle(Message_Messenger)& S) const
{
Standard_Integer iv, nbv = NbValues(Standard_True);
- S<<"***** EditForm, Label : "<<Label()<<endl;
- if (IsComplete()) S<<"Complete, "<<nbv<<" Values"<<endl;
+ S<<"***** EditForm, Label : "<<Label()<<Message_EndLine;
+ if (IsComplete()) S<<"Complete, "<<nbv<<" Values"<<Message_EndLine;
else {
- S<<"Extraction on "<<nbv<<" Values : (extracted<-editor)"<<endl;
+ S<<"Extraction on "<<nbv<<" Values : (extracted<-editor)"<<Message_EndLine;
for (iv = 1; iv <= nbv; iv ++) S<<" "<<iv<<"<-"<<NumberFromRank(iv);
- S<<endl;
+ S<<Message_EndLine;
}
- S<<"*****"<<endl;
+ S<<"*****"<<Message_EndLine;
}
(const Handle(TColStd_HSequenceOfHAsciiString)& list,
const Handle(Message_Messenger)& S, const Standard_Boolean alsolist)
{
- if (list.IsNull()) { S<<"(NULL LIST)"<<endl; return; }
+ if (list.IsNull()) { S<<"(NULL LIST)"<<Message_EndLine; return; }
Standard_Integer i,nb = list->Length();
- S<<"(List : "<<nb<<" Items)"<<endl;
+ S<<"(List : "<<nb<<" Items)"<<Message_EndLine;
if (!alsolist) return;
for (i = 1; i <= nb; i ++) {
Handle(TCollection_HAsciiString) str = list->Value(i);
- S<<" ["<<i<<"] "<< (str.IsNull() ? "(NULL)" : str->ToCString())<<endl;
+ S<<" ["<<i<<"] "<< (str.IsNull() ? "(NULL)" : str->ToCString())<<Message_EndLine;
}
}
const Standard_Boolean names, const Standard_Boolean alsolist) const
{
Standard_Integer iv, nbv = NbValues(Standard_True);
- S<< "****************************************************"<<endl;
- S<<"***** "<<Label()<<Interface_MSG::Blanks(Label(),40)<<"*****"<<endl;
- S<<"***** *****"<<endl;
+ S<< "****************************************************"<<Message_EndLine;
+ S<<"***** "<<Label()<<Interface_MSG::Blanks(Label(),40)<<"*****"<<Message_EndLine;
+ S<<"***** *****"<<Message_EndLine;
if (!theloaded)
- S<<"***** Values are NOT loaded *****"<<endl;
+ S<<"***** Values are NOT loaded *****"<<Message_EndLine;
else {
// Donnees sur lesquelles on a travaille
else { S<<"***** Loaded entity : "; themodel->PrintLabel (theent,S); }
}
}
- S<<endl<<"****************************************************"<<endl<<endl;
+ S<<Message_EndLine<<"****************************************************"<<Message_EndLine<<Message_EndLine;
// Affichage des valeurs
Standard_Boolean nams = names;
Standard_Integer maxnam = theeditor->MaxNameLength (names ? 0 : -1);
if (maxnam == 0) { maxnam = theeditor->MaxNameLength (0); nams = Standard_True; }
Standard_Integer nbmod = 0;
- if (what != 0) S<<"Mod N0 Name Value"<<endl;
- else S<<" N0 Name Value"<<endl;
+ if (what != 0) S<<"Mod N0 Name Value"<<Message_EndLine;
+ else S<<" N0 Name Value"<<Message_EndLine;
for (iv = 1; iv <= nbv; iv ++) {
Standard_Integer jv = NumberFromRank(iv);
if (what < 0) str = OriginalValue (jv);
if (what > 0) str = EditedValue (jv);
- S << (str.IsNull() ? "(NULL)" : str->ToCString()) <<endl;
+ S << (str.IsNull() ? "(NULL)" : str->ToCString()) <<Message_EndLine;
// Modified only
} else {
Handle(TCollection_HAsciiString) str = OriginalValue (jv);
S <<Interface_MSG::Blanks(iv,3)<<iv<<" "
<<name<<Interface_MSG::Blanks(name,maxnam)<<" ORIG:"
- << (str.IsNull() ? "(NULL)" : str->ToCString()) <<endl;
+ << (str.IsNull() ? "(NULL)" : str->ToCString()) <<Message_EndLine;
str = EditedValue (jv);
- S<<Interface_MSG::Blanks("",maxnam+4)<<" MOD :"<< (str.IsNull() ? "(NULL)" : str->ToCString()) <<endl;
+ S<<Interface_MSG::Blanks("",maxnam+4)<<" MOD :"<< (str.IsNull() ? "(NULL)" : str->ToCString()) <<Message_EndLine;
}
}
- if (what == 0) S<<"On "<<nbv<<" Values, "<<nbmod<<" Modified"<<endl;
+ if (what == 0) S<<"On "<<nbv<<" Values, "<<nbmod<<" Modified"<<Message_EndLine;
}
void IFSelect_Editor::PrintNames (const Handle(Message_Messenger)& S) const
{
Standard_Integer i, nb = NbValues();
- S<<"**** Editor : "<<Label()<<endl;
- S<<"**** Nb Values = "<<nb<<" **** Names / Labels"<<endl;
+ S<<"**** Editor : "<<Label()<<Message_EndLine;
+ S<<"**** Nb Values = "<<nb<<" **** Names / Labels"<<Message_EndLine;
S<<" Num ";
if (themaxsh > 0) S<<"Short"<<Interface_MSG::Blanks("Short",themaxsh)<<" ";
- S<<"Complete"<<Interface_MSG::Blanks("Complete",themaxco)<<" Label"<<endl;
+ S<<"Complete"<<Interface_MSG::Blanks("Complete",themaxco)<<" Label"<<Message_EndLine;
for (i = 1; i <= nb; i ++) {
Handle(Interface_TypedValue) tv = TypedValue(i);
const TCollection_AsciiString& sho = theshorts(i);
S<<sho<<Interface_MSG::Blanks(sho.ToCString(),themaxsh)<<" ";
}
- S<<tv->Name()<<Interface_MSG::Blanks(tv->Name(),themaxco)<<" "<<tv->Label()<<endl;
+ S<<tv->Name()<<Interface_MSG::Blanks(tv->Name(),themaxco)<<" "<<tv->Label()<<Message_EndLine;
}
}
(const Handle(Message_Messenger)& S, const Standard_Boolean labels) const
{
Standard_Integer i, nb = NbValues();
- S<<"**** Editor : "<<Label()<<endl;
- S<<"**** Nb Values = "<<nb<<" **** "<<(labels ? "Labels" : "Names")<<" / Definitions"<<endl;
+ S<<"**** Editor : "<<Label()<<Message_EndLine;
+ S<<"**** Nb Values = "<<nb<<" **** "<<(labels ? "Labels" : "Names")<<" / Definitions"<<Message_EndLine;
S<<" Num ";
if (labels) S<<"Label"<<Interface_MSG::Blanks("Label",themaxla);
else {
if (themaxsh > 0) S<<"Short"<<Interface_MSG::Blanks("Short",themaxsh+1);
S<<"Complete"<<Interface_MSG::Blanks("Complete",themaxco);
}
- S<<" Edit Mode & Definition"<<endl;
+ S<<" Edit Mode & Definition"<<Message_EndLine;
for (i = 1; i <= nb; i ++) {
Handle(Interface_TypedValue) tv = TypedValue(i);
default : S<<"?????????"; break;
}
- S<<" "<<tv->Definition()<<endl;
+ S<<" "<<tv->Definition()<<Message_EndLine;
}
}
// **** Version & cie ****
//#58 rln
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- sout<<"Processor Version : "<<XSTEP_PROCESSOR_VERSION<<endl;
- sout<<"OL Version : "<<XSTEP_SYSTEM_VERSION<<endl;
- sout<<"Configuration : "<<XSTEP_Config<<endl;
- sout<<"UL Names : "<<XSTEP_ULNames<<endl;
+ sout<<"Processor Version : "<<XSTEP_PROCESSOR_VERSION<<Message_EndLine;
+ sout<<"OL Version : "<<XSTEP_SYSTEM_VERSION<<Message_EndLine;
+ sout<<"Configuration : "<<XSTEP_Config<<Message_EndLine;
+ sout<<"UL Names : "<<XSTEP_ULNames<<Message_EndLine;
return IFSelect_RetVoid;
}
// **** ToggleHandler ****
Standard_Boolean hand = !WS->ErrorHandle();
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (hand) sout << " -- Mode Catch Error now Active" <<endl;
- else sout << " -- Mode Catch Error now Inactive" <<endl;
+ if (hand) sout << " -- Mode Catch Error now Active" <<Message_EndLine;
+ else sout << " -- Mode Catch Error now Inactive" <<Message_EndLine;
WS->SetErrorHandle(hand);
return IFSelect_RetDone;
}
const Standard_CString arg1 = pilot->Arg(1);
// **** XRead / Load ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 2) { sout<<"Read/Load : give file name !"<<endl; return IFSelect_RetError; }
- if (WS->Protocol().IsNull()) { sout<<"Protocol not defined"<<endl; return IFSelect_RetError; }
- if (WS->WorkLibrary().IsNull()) { sout<<"WorkLibrary not defined"<<endl; return IFSelect_RetError; }
+ if (argc < 2) { sout<<"Read/Load : give file name !"<<Message_EndLine; return IFSelect_RetError; }
+ if (WS->Protocol().IsNull()) { sout<<"Protocol not defined"<<Message_EndLine; return IFSelect_RetError; }
+ if (WS->WorkLibrary().IsNull()) { sout<<"WorkLibrary not defined"<<Message_EndLine; return IFSelect_RetError; }
IFSelect_ReturnStatus status = WS->ReadFile (arg1);
// status : 0 OK, 1 erreur lecture, 2 Fail(try/catch),
// -1 fichier non trouve, -2 lecture faite mais resultat vide
switch (status) {
- case IFSelect_RetVoid : sout<<"file:"<<arg1<<" gives empty result"<<endl; break;
- case IFSelect_RetError : sout<<"file:"<<arg1<<" could not be opened"<<endl; break;
- case IFSelect_RetDone : sout<<"file:"<<arg1<<" read"<<endl; break;
- case IFSelect_RetFail : sout<<"file:"<<arg1<<" : error while reading"<<endl; break;
- case IFSelect_RetStop : sout<<"file:"<<arg1<<" : EXCEPTION while reading"<<endl; break;
- default : sout<<"file:"<<arg1<<" could not be read"<<endl; break;
+ case IFSelect_RetVoid : sout<<"file:"<<arg1<<" gives empty result"<<Message_EndLine; break;
+ case IFSelect_RetError : sout<<"file:"<<arg1<<" could not be opened"<<Message_EndLine; break;
+ case IFSelect_RetDone : sout<<"file:"<<arg1<<" read"<<Message_EndLine; break;
+ case IFSelect_RetFail : sout<<"file:"<<arg1<<" : error while reading"<<Message_EndLine; break;
+ case IFSelect_RetStop : sout<<"file:"<<arg1<<" : EXCEPTION while reading"<<Message_EndLine; break;
+ default : sout<<"file:"<<arg1<<" could not be read"<<Message_EndLine; break;
}
if (status != IFSelect_RetDone) return status;
-// sout<<" - clearing list of already written files"<<endl;
+// sout<<" - clearing list of already written files"<<std::endl;
WS->BeginSentFiles(Standard_True);
return status;
}
const Standard_CString arg1 = pilot->Arg(1);
// **** Write All ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 2) { sout<<"Write All : give file name !"<<endl; return IFSelect_RetError; }
+ if (argc < 2) { sout<<"Write All : give file name !"<<Message_EndLine; return IFSelect_RetError; }
return WS->SendAll (arg1);
}
// const Standard_CString arg2 = pilot->Arg(2);
// **** Write Selected ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 3) { sout<<"Write Selected : give file name + givelist !"<<endl; return IFSelect_RetError; }
+ if (argc < 3) { sout<<"Write Selected : give file name + givelist !"<<Message_EndLine; return IFSelect_RetError; }
Handle(TColStd_HSequenceOfTransient) result =
IFSelect_Functions::GiveList (WS,pilot->CommandPart( 2));
- if (result.IsNull()) { sout<<"No entity selected"<<endl; return IFSelect_RetError; }
- else sout<<"Nb Entities selected : "<<result->Length()<<endl;
+ if (result.IsNull()) { sout<<"No entity selected"<<Message_EndLine; return IFSelect_RetError; }
+ else sout<<"Nb Entities selected : "<<result->Length()<<Message_EndLine;
Handle(IFSelect_SelectPointed) sp = new IFSelect_SelectPointed;
sp->SetList (result);
return WS->SendSelected (arg1,sp);
const Standard_CString arg1 = pilot->Arg(1);
// **** Write Entite(s) ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 3) { sout<<"Write Entitie(s) : give file name + n0s entitie(s)!"<<endl; return IFSelect_RetError; }
+ if (argc < 3) { sout<<"Write Entitie(s) : give file name + n0s entitie(s)!"<<Message_EndLine; return IFSelect_RetError; }
int ko = 0;
Handle(IFSelect_SelectPointed) sp = new IFSelect_SelectPointed;
for (Standard_Integer ia = 2; ia < argc ; ia ++) {
Standard_Integer id = pilot->Number(pilot->Arg(ia));
if (id > 0) {
Handle(Standard_Transient) item = WS->StartingEntity(id);
- if (sp->Add(item)) sout<<"Added:no."<<id<<endl;
- else { sout<<" Fail Add n0."<<id<<endl; ko ++; }
+ if (sp->Add(item)) sout<<"Added:no."<<id<<Message_EndLine;
+ else { sout<<" Fail Add n0."<<id<<Message_EndLine; ko ++; }
}
- else { sout<<"Not an entity number:"<<pilot->Arg(ia)<<endl; ko ++; }
+ else { sout<<"Not an entity number:"<<pilot->Arg(ia)<<Message_EndLine; ko ++; }
}
- if (ko > 0) { sout<<ko<<" bad arguments, abandon"<<endl; return IFSelect_RetError; }
+ if (ko > 0) { sout<<ko<<" bad arguments, abandon"<<Message_EndLine; return IFSelect_RetError; }
return WS->SendSelected (arg1,sp);
}
const Standard_CString arg1 = pilot->Arg(1);
// **** Entity Label ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 2) { sout<<"Give entity number"<<endl; return IFSelect_RetError; }
- if (!WS->HasModel()) { sout<<"No loaded model, abandon"<<endl; return IFSelect_RetError; }
+ if (argc < 2) { sout<<"Give entity number"<<Message_EndLine; return IFSelect_RetError; }
+ if (!WS->HasModel()) { sout<<"No loaded model, abandon"<<Message_EndLine; return IFSelect_RetError; }
Standard_Integer nument = WS->NumberFromLabel (arg1);
if (nument <= 0 || nument > WS->NbStartingEntities())
- { sout<<"Not a suitable number: "<<arg1<<endl; return IFSelect_RetError; }
+ { sout<<"Not a suitable number: "<<arg1<<Message_EndLine; return IFSelect_RetError; }
sout<<"N0."<<nument<<" ->Label in Model : ";
WS->Model()->PrintLabel(WS->StartingEntity(nument),sout);
- sout<<endl;
+ sout<<Message_EndLine;
return IFSelect_RetVoid;
}
const Standard_CString arg1 = pilot->Arg(1);
// **** Entity Number ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 2) { sout<<"Give label to search"<<endl; return IFSelect_RetError; }
- if (!WS->HasModel()) { sout<<"No loaded model, abandon"<<endl; return IFSelect_RetError; }
+ if (argc < 2) { sout<<"Give label to search"<<Message_EndLine; return IFSelect_RetError; }
+ if (!WS->HasModel()) { sout<<"No loaded model, abandon"<<Message_EndLine; return IFSelect_RetError; }
const Handle(Interface_InterfaceModel) &model = WS->Model();
Standard_Integer i, cnt = 0;
Standard_Boolean exact = Standard_False;
- sout<<" ** Search Entity Number for Label : "<<arg1<<endl;
+ sout<<" ** Search Entity Number for Label : "<<arg1<<Message_EndLine;
for (i = model->NextNumberForLabel (arg1, 0, exact) ; i != 0;
i = model->NextNumberForLabel (arg1, i, exact)) {
cnt ++;
- sout<<" ** Found n0/id:"; model->Print (model->Value(i),sout); sout<<endl;
+ sout<<" ** Found n0/id:"; model->Print (model->Value(i),sout); sout<<Message_EndLine;
}
- if (cnt == 0) sout<<" ** No Match"<<endl;
- else if (cnt == 1) sout<<" ** 1 Match"<<endl;
- else sout<<cnt<<" Matches"<<endl;
+ if (cnt == 0) sout<<" ** No Match"<<Message_EndLine;
+ else if (cnt == 1) sout<<" ** 1 Match"<<Message_EndLine;
+ else sout<<cnt<<" Matches"<<Message_EndLine;
return IFSelect_RetVoid;
}
Handle(Message_Messenger) sout = Message::DefaultMessenger();
if (argc < 2) {
- sout<<"Designer signature ou compteur, + facultatif selection + facultatif entite"<<endl;
- sout<<" signature/compteur seul -> tout le modele"<<endl
- << " sign/compteur + selection -> cette selection, evaluation normale"<<endl
- <<" sign/compteur + sel + num -> cette selection evaluee sur entite n0 num"<<endl;
+ sout<<"Designer signature ou compteur, + facultatif selection + facultatif entite"<<Message_EndLine;
+ sout<<" signature/compteur seul -> tout le modele"<<Message_EndLine
+ << " sign/compteur + selection -> cette selection, evaluation normale"<<Message_EndLine
+ <<" sign/compteur + sel + num -> cette selection evaluee sur entite n0 num"<<Message_EndLine;
return IFSelect_RetError;
}
DeclareAndCast(IFSelect_SignCounter,counter,WS->NamedItem(arg1));
// if (argc > 2) sel = GetCasted(IFSelect_Selection,WS->NamedItem(arg2));
// if (counter.IsNull() || (argc > 2 && n3 <= 0 && sel.IsNull()) ) {
// sout<<"Nom:"<<arg1; if (argc > 2) sout<<" et/ou "<<arg2;
-// sout<<" incorrect (demande: compteur ou signature [selection])"<<endl;
+// sout<<" incorrect (demande: compteur ou signature [selection])"<<std::endl;
// return IFSelect_RetError;
// }
for (i = 1; i < onflag; i ++) {
sel = WS->GiveSelection(pilot->Arg(i));
if (!suite->AddInput(sel)) {
- sout<<"Incorrect definition for applied selection"<<endl;
+ sout<<"Incorrect definition for applied selection"<<Message_EndLine;
return IFSelect_RetError;
}
}
}
if (counter.IsNull()) {
- sout<<"Neither Counter nor Signature : "<<arg1<<endl;
+ sout<<"Neither Counter nor Signature : "<<arg1<<Message_EndLine;
return IFSelect_RetError;
}
// **** Sign Type ****
Handle(IFSelect_Signature) signtype = WS->SignType();
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (signtype.IsNull()) sout<<"signtype actually undefined"<<endl;
+ if (signtype.IsNull()) sout<<"signtype actually undefined"<<Message_EndLine;
else {
Handle(TCollection_HAsciiString) str = WS->Name (signtype);
Standard_Integer id = WS->ItemIdent (signtype);
- sout<<signtype->Label()<<endl;
+ sout<<signtype->Label()<<Message_EndLine;
if (str.IsNull()) {
- if (id > 0) sout<<"signtype : item n0 "<<id<<endl;
+ if (id > 0) sout<<"signtype : item n0 "<<id<<Message_EndLine;
} else {
- sout<<"signtype : also named as "<<str->ToCString()<<endl;
+ sout<<"signtype : also named as "<<str->ToCString()<<Message_EndLine;
}
}
- if (argc < 2) sout<<"signtype newitem to change, signtype . to clear"<<endl;
+ if (argc < 2) sout<<"signtype newitem to change, signtype . to clear"<<Message_EndLine;
else {
if (arg1[0] == '.' && arg1[1] == '\0') {
signtype.Nullify();
- sout<<"signtype now cleared"<<endl;
+ sout<<"signtype now cleared"<<Message_EndLine;
} else {
signtype = GetCasted(IFSelect_Signature,WS->NamedItem(arg1));
- if (signtype.IsNull()) { sout<<"Not a Signature : "<<arg1<<endl; return IFSelect_RetError; }
- else sout<<"signtype now set to "<<arg1<<endl;
+ if (signtype.IsNull()) { sout<<"Not a Signature : "<<arg1<<Message_EndLine; return IFSelect_RetError; }
+ else sout<<"signtype now set to "<<arg1<<Message_EndLine;
}
WS->SetSignType(signtype);
return IFSelect_RetDone;
// **** Sign Case ****
Handle(IFSelect_Signature) signcase = GetCasted(IFSelect_Signature,WS->NamedItem(arg1));
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (signcase.IsNull()) sout<<"Not a Signature : "<<arg1<<endl;
+ if (signcase.IsNull()) sout<<"Not a Signature : "<<arg1<<Message_EndLine;
else {
Standard_Boolean hasmin,hasmax; Standard_Integer valmin,valmax;
if (signcase->IsIntCase(hasmin,valmin,hasmax,valmax)) {
sout<<"Signature "<<arg1<<" : Integer Case";
if (hasmin) sout<<" - Mini:"<<valmin;
if (hasmax) sout<<" - Maxi:"<<valmax;
- sout<<endl;
+ sout<<Message_EndLine;
}
Handle(TColStd_HSequenceOfAsciiString) caselist = signcase->CaseList();
- if (caselist.IsNull()) sout<<"Signature "<<arg1<<" : no predefined case, see command count "<<arg1<<endl;
+ if (caselist.IsNull()) sout<<"Signature "<<arg1<<" : no predefined case, see command count "<<arg1<<Message_EndLine;
else {
Standard_Integer i, nb = caselist->Length();
- sout<<"Signature "<<arg1<<" : "<<nb<<" basic cases :"<<endl;
+ sout<<"Signature "<<arg1<<" : "<<nb<<" basic cases :"<<Message_EndLine;
for (i = 1; i <= nb; i ++) sout<<" "<<caselist->Value(i);
- sout<<endl;
+ sout<<Message_EndLine;
}
}
return IFSelect_RetVoid;
sout<<" Categories defined :"<<nb<<" i.e. :\n";
for (i = 0; i <= nb; i ++)
sout<<"Cat."<<i<<" : "<<Interface_Category::Name(i)<<"\n";
- sout<<" On a given entity : give its number"<<endl;
+ sout<<" On a given entity : give its number"<<Message_EndLine;
return IFSelect_RetVoid;
}
Standard_Integer num = pilot->Number(arg1);
if (num <= 0 || num > WS->NbStartingEntities())
- { sout<<"Not a suitable entity number : "<<arg1<<endl; return IFSelect_RetError; }
+ { sout<<"Not a suitable entity number : "<<arg1<<Message_EndLine; return IFSelect_RetError; }
Handle(Standard_Transient) ent = WS->StartingEntity(num);
WS->PrintEntityStatus(ent,sout);
return IFSelect_RetVoid;
<<" check CheckList (complete) per message (counting)\n"
<<" totalcheck CheckList (complete) per message (listing n0 ents)\n"
<<" FAILS CheckList (fails) per message (listing complete)\n"
- <<" TOTALCHECK CheckList (complete) per message (listing complete)"<<endl;
+ <<" TOTALCHECK CheckList (complete) per message (listing complete)"<<Message_EndLine;
return IFSelect_RetVoid;
case 'g' : niv = 0; break;
case 'r' : niv = 1; break;
case 'T' : niv = 7; break;
case 'f' : niv = 8; break;
case 'F' : niv =10; break;
- default : sout<<"Unknown Mode . data tout court pour help"<<endl; return IFSelect_RetError;
+ default : sout<<"Unknown Mode . data tout court pour help"<<Message_EndLine; return IFSelect_RetError;
}
WS->TraceDumpModel(niv);
return IFSelect_RetVoid;
Handle(Message_Messenger) sout = Message::DefaultMessenger();
if (argc < 2 || (argc == 2 && levmax < 0)) {
sout<<"Give n0 or id of entity";
- if (levmax < 0) sout<<" and dump level"<<endl;
- else sout<<" + optinal, dump level in [0 - "<<levmax<<"] , default = "<<levdef<<endl;
+ if (levmax < 0) sout<<" and dump level"<<Message_EndLine;
+ else sout<<" + optinal, dump level in [0 - "<<levmax<<"] , default = "<<levdef<<Message_EndLine;
for (level = 0; level <= levmax; level ++) {
Standard_CString help = WL->DumpHelp (level);
- if (help[0] != '\0') sout<<level<<" : "<<help<<endl;
+ if (help[0] != '\0') sout<<level<<" : "<<help<<Message_EndLine;
}
return IFSelect_RetError;
}
if (argc > 2) level = atoi(arg2);
Handle(Standard_Transient) ent = WS->StartingEntity(num);
if ( ent.IsNull() ) {
- sout << "No entity with given id " << arg1 << " (" << num << ") is found in the current model" << endl;
+ sout << "No entity with given id " << arg1 << " (" << num << ") is found in the current model" << Message_EndLine;
}
else {
- sout << " -- DUMP Entity n0 " << num << " level " << level << endl;
+ sout << " -- DUMP Entity n0 " << num << " level " << level << Message_EndLine;
WL->DumpEntity (WS->Model(),WS->Protocol(),ent,sout,level);
Interface_CheckIterator chl = WS->CheckOne (ent);
if (!chl.IsEmpty(Standard_False)) chl.Print(sout,WS->Model(),Standard_False);
}
-// sout << flush;
+// sout << std::flush;
return IFSelect_RetVoid;
}
const Standard_CString arg1 = pilot->Arg(1);
const Standard_CString arg2 = pilot->Arg(2);
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 3) { sout<<" Give signature name + n0 or id of entity"<<endl; return IFSelect_RetError; }
+ if (argc < 3) { sout<<" Give signature name + n0 or id of entity"<<Message_EndLine; return IFSelect_RetError; }
DeclareAndCast(IFSelect_Signature,sign,WS->NamedItem(arg1));
- if (sign.IsNull()) { sout<<"Not a signature : "<<arg1<<endl; return IFSelect_RetError; }
+ if (sign.IsNull()) { sout<<"Not a signature : "<<arg1<<Message_EndLine; return IFSelect_RetError; }
Standard_Integer num = pilot->Number(arg2);
Handle(Standard_Transient) ent = WS->StartingEntity (num);
if (num == 0) return IFSelect_RetError;
- sout<<"Entity n0 "<<num<<" : "<<WS->SignValue(sign,ent)<<endl;
+ sout<<"Entity n0 "<<num<<" : "<<WS->SignValue(sign,ent)<<Message_EndLine;
return IFSelect_RetVoid;
}
const Standard_CString arg1 = pilot->Arg(1);
const Standard_CString arg2 = pilot->Arg(2);
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 3) { sout<<" Give 2 numeros or labels : dad son"<<endl; return IFSelect_RetError; }
+ if (argc < 3) { sout<<" Give 2 numeros or labels : dad son"<<Message_EndLine; return IFSelect_RetError; }
Standard_Integer n1 = WS->NumberFromLabel(arg1);
Standard_Integer n2 = WS->NumberFromLabel(arg2);
- sout<<"QueryParent for dad:"<<arg1<<":"<<n1<<" and son:"<<arg2<<":"<<n2<<endl;
+ sout<<"QueryParent for dad:"<<arg1<<":"<<n1<<" and son:"<<arg2<<":"<<n2<<Message_EndLine;
Standard_Integer qp = WS->QueryParent(WS->StartingEntity(n1),WS->StartingEntity(n2));
- if (qp < 0) sout<<arg1<<" is not super-entity of "<<arg2<<endl;
- else if (qp == 0) sout<<arg1<<" is same as "<<arg2<<endl;
- else sout<<arg1<<" is super-entity of "<<arg2<<" , max level found="<<qp<<endl;
-// sout<<" Trouve "<<qp<<endl;
+ if (qp < 0) sout<<arg1<<" is not super-entity of "<<arg2<<Message_EndLine;
+ else if (qp == 0) sout<<arg1<<" is same as "<<arg2<<Message_EndLine;
+ else sout<<arg1<<" is super-entity of "<<arg2<<" , max level found="<<qp<<Message_EndLine;
+// sout<<" Trouve "<<qp<<std::endl;
return IFSelect_RetVoid;
}
const Standard_CString arg1 = pilot->Arg(1);
// **** NewInt ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 1) { sout<<"Donner la valeur entiere pour IntParam"<<endl; return IFSelect_RetError; }
+ if (argc < 1) { sout<<"Donner la valeur entiere pour IntParam"<<Message_EndLine; return IFSelect_RetError; }
Handle(IFSelect_IntParam) intpar = new IFSelect_IntParam;
if (argc >= 1) intpar->SetValue(atoi(arg1));
return pilot->RecordItem (intpar);
// **** SetInt ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
if (argc < 3)
- { sout<<"Donner 2 arguments : nom Parametre et Valeur"<<endl; return IFSelect_RetError; }
+ { sout<<"Donner 2 arguments : nom Parametre et Valeur"<<Message_EndLine; return IFSelect_RetError; }
Standard_Integer val = atoi(arg2);
DeclareAndCast(IFSelect_IntParam,par,WS->NamedItem(arg1));
if (!WS->SetIntValue(par,val)) return IFSelect_RetFail;
const Standard_CString arg1 = pilot->Arg(1);
// **** NewText ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 1) { sout<<"Donner la valeur texte pour TextParam"<<endl; return IFSelect_RetError; }
+ if (argc < 1) { sout<<"Donner la valeur texte pour TextParam"<<Message_EndLine; return IFSelect_RetError; }
Handle(TCollection_HAsciiString) textpar = new TCollection_HAsciiString();
if (argc >= 1) textpar->AssignCat(arg1);
return pilot->RecordItem (textpar);
// **** SetText ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
if (argc < 3)
- { sout<<"Donner 2 arguments : nom Parametre et Valeur"<<endl; return IFSelect_RetError; }
+ { sout<<"Donner 2 arguments : nom Parametre et Valeur"<<Message_EndLine; return IFSelect_RetError; }
DeclareAndCast(TCollection_HAsciiString,par,WS->NamedItem(arg1));
if (!WS->SetTextValue(par,arg2)) return IFSelect_RetFail;
return IFSelect_RetDone;
const Standard_CString arg1 = pilot->Arg(1);
// **** DumpSel ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 2) { sout<<"Give 1 argument : Selection Name"<<endl; return IFSelect_RetError; }
+ if (argc < 2) { sout<<"Give 1 argument : Selection Name"<<Message_EndLine; return IFSelect_RetError; }
WS->DumpSelection (GetCasted(IFSelect_Selection,WS->NamedItem(arg1)));
return IFSelect_RetVoid;
}
char mode = pilot->Arg(0)[0]; // givelist/makelist
if (mode == 'g') mode = pilot->Arg(0)[4]; // l list s short p pointed
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 2) { sout<<"Give Entity ID, or Selection Name [+ optional other selection or entity]"<<endl; return IFSelect_RetError; }
+ if (argc < 2) { sout<<"Give Entity ID, or Selection Name [+ optional other selection or entity]"<<Message_EndLine; return IFSelect_RetError; }
// MakeList : sur Pointed existante ou a creer
Handle(IFSelect_SelectPointed) pnt;
Handle(Standard_Transient) item = WS->NamedItem (arg1);
pnt = GetCasted(IFSelect_SelectPointed,item);
if (!pnt.IsNull()) {
- sout<<arg1<<":Already existing Selection for List, cleared then filled"<<endl;
+ sout<<arg1<<":Already existing Selection for List, cleared then filled"<<Message_EndLine;
pnt->Clear();
} else if (!item.IsNull()) {
- sout<<arg1<<":Already existing Item not for a List, command ignored"<<endl;
+ sout<<arg1<<":Already existing Item not for a List, command ignored"<<Message_EndLine;
return IFSelect_RetFail;
} else {
pnt = new IFSelect_SelectPointed;
sout<<iter.NbEntities()<<" Entities : ";
for (iter.Start(); iter.More(); iter.Next())
sout<<" +"<<WS->StartingNumber (iter.Value());
- sout<<endl;
+ sout<<Message_EndLine;
}
if (!pnt.IsNull()) {
pnt->SetList (result);
- sout<<"List set to a SelectPointed : "<<pilot->Arg(1)<<endl;
- sout<<"Later editable by command setlist"<<endl;
+ sout<<"List set to a SelectPointed : "<<pilot->Arg(1)<<Message_EndLine;
+ sout<<"Later editable by command setlist"<<Message_EndLine;
}
return IFSelect_RetVoid;
Standard_Integer argc = pilot->NbWords();
// **** GiveCount ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 2) { sout<<"Give Entity ID, or Selection Name [+ optional other selection or entity]"<<endl; return IFSelect_RetError; }
+ if (argc < 2) { sout<<"Give Entity ID, or Selection Name [+ optional other selection or entity]"<<Message_EndLine; return IFSelect_RetError; }
// WS->EvaluateSelection(GetCasted(IFSelect_Selection,WS->NamedItem(arg1)));
Handle(TColStd_HSequenceOfTransient) result =
IFSelect_Functions::GiveList (WS,pilot->CommandPart(1));
if (result.IsNull()) return IFSelect_RetError;
- sout<<pilot->CommandPart(1)<<" : List of "<<result->Length()<<" Entities"<<endl;
+ sout<<pilot->CommandPart(1)<<" : List of "<<result->Length()<<" Entities"<<Message_EndLine;
return IFSelect_RetVoid;
}
Standard_Integer argc = pilot->NbWords();
// **** SelSuite ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 2) { sout<<"Give Entity ID, or Selection Name [+ optional other selection or entity]"<<endl; return IFSelect_RetError; }
+ if (argc < 2) { sout<<"Give Entity ID, or Selection Name [+ optional other selection or entity]"<<Message_EndLine; return IFSelect_RetError; }
// WS->EvaluateSelection(GetCasted(IFSelect_Selection,WS->NamedItem(arg1)));
Handle(IFSelect_SelectSuite) selsuite = new IFSelect_SelectSuite;
for (Standard_Integer i = 1; i < argc; i ++) {
Handle(IFSelect_Selection) sel = WS->GiveSelection(pilot->Arg(i));
if (!selsuite->AddInput(sel)) {
- sout<<pilot->Arg(i-1)<<" : not a SelectDeduct, no more can be added. Abandon"<<endl;
+ sout<<pilot->Arg(i-1)<<" : not a SelectDeduct, no more can be added. Abandon"<<Message_EndLine;
return IFSelect_RetError;
}
}
if (mode <= 0) {
if (mode < 0) sout<<"Give a suitable mode";
sout<<" Available Modes :\n"
- <<" a : all data g : graph+check c : check p : selectpointed"<<endl;
+ <<" a : all data g : graph+check c : check p : selectpointed"<<Message_EndLine;
return (mode < 0 ? IFSelect_RetError : IFSelect_RetVoid);
}
WS->ClearData (mode);
// **** Item Label ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
TCollection_AsciiString label;
- if (argc < 2) { sout<<" Give label to search"<<endl; return IFSelect_RetError; }
+ if (argc < 2) { sout<<" Give label to search"<<Message_EndLine; return IFSelect_RetError; }
for (int i = 1; i < argc; i ++) {
label.AssignCat(pilot->Arg(i));
if (i < argc-1) label.AssignCat(" ");
for (int mode = 0; mode <= 2; mode ++) {
int nbitems = 0; int id;
sout<<"Searching label : "<<label<<". in mode ";
- if (mode == 0) sout <<" exact" << endl;
- if (mode == 1) sout <<" same head" << endl;
- if (mode == 2) sout <<" search if present" << endl;
+ if (mode == 0) sout <<" exact" << Message_EndLine;
+ if (mode == 1) sout <<" same head" << Message_EndLine;
+ if (mode == 2) sout <<" search if present" << Message_EndLine;
for (id = WS->NextIdentForLabel(label.ToCString(), 0,mode) ; id != 0;
id = WS->NextIdentForLabel(label.ToCString(),id,mode)) {
sout<<" "<<id; nbitems ++;
}
- sout<<" -- giving " << nbitems << " found" << endl;
+ sout<<" -- giving " << nbitems << " found" << Message_EndLine;
}
return IFSelect_RetVoid;
}
const Standard_CString arg1 = pilot->Arg(1);
// **** Save (Dump) ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 2) { sout<<"Donner nom du Fichier"<<endl; return IFSelect_RetError; }
+ if (argc < 2) { sout<<"Donner nom du Fichier"<<Message_EndLine; return IFSelect_RetError; }
IFSelect_SessionFile dumper(WS,arg1);
if (!dumper.IsDone()) return IFSelect_RetFail;
return IFSelect_RetDone;
const Standard_CString arg1 = pilot->Arg(1);
// **** Restore (Dump) ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 2) { sout<<"Donner nom du Fichier"<<endl; return IFSelect_RetError; }
+ if (argc < 2) { sout<<"Donner nom du Fichier"<<Message_EndLine; return IFSelect_RetError; }
IFSelect_SessionFile dumper(WS);
Standard_Integer readstat = dumper.Read(arg1);
if (readstat == 0) return IFSelect_RetDone;
- else if (readstat > 0) sout << "-- Erreur Lecture Fichier "<<arg1<<endl;
- else sout << "-- Pas pu ouvrir Fichier "<<arg1<<endl;
+ else if (readstat > 0) sout << "-- Erreur Lecture Fichier "<<arg1<<Message_EndLine;
+ else sout << "-- Pas pu ouvrir Fichier "<<arg1<<Message_EndLine;
return IFSelect_RetDone;
}
if (argc < 2) {
Handle(TColStd_HSequenceOfHAsciiString) li = Interface_Static::Items();
Standard_Integer i,nb = li->Length();
- sout<<" List of parameters : "<<nb<<" items : "<<endl;
+ sout<<" List of parameters : "<<nb<<" items : "<<Message_EndLine;
for (i = 1; i <= nb; i ++) {
sout<<li->Value(i);
- sout<<" : "<<Interface_Static::CVal(li->Value(i)->ToCString())<<endl;
+ sout<<" : "<<Interface_Static::CVal(li->Value(i)->ToCString())<<Message_EndLine;
}
return IFSelect_RetVoid;
} else if (atoi(arg1) > 0) {
Standard_Integer use = atoi (arg1);
WS->TraceStatics (use);
} else {
- if (argc > 2) sout<<" FORMER STATUS of Static Parameter "<<arg1<<endl;
- else sout<<" ACTUAL STATUS of Static Parameter "<<arg1<<endl;
- if (!Interface_Static::IsPresent(arg1)) { sout<<" Parameter "<<arg1<<" undefined"<<endl; return IFSelect_RetError; }
- if (!Interface_Static::IsSet(arg1)) sout<<" Parameter "<<arg1<<" not valued"<<endl;
+ if (argc > 2) sout<<" FORMER STATUS of Static Parameter "<<arg1<<Message_EndLine;
+ else sout<<" ACTUAL STATUS of Static Parameter "<<arg1<<Message_EndLine;
+ if (!Interface_Static::IsPresent(arg1)) { sout<<" Parameter "<<arg1<<" undefined"<<Message_EndLine; return IFSelect_RetError; }
+ if (!Interface_Static::IsSet(arg1)) sout<<" Parameter "<<arg1<<" not valued"<<Message_EndLine;
else if (argc == 2) Interface_Static::Static (arg1) -> Print(sout);
- else sout<<" Value : "<<Interface_Static::CVal(arg1)<<endl;
+ else sout<<" Value : "<<Interface_Static::CVal(arg1)<<Message_EndLine;
- if (argc == 2) sout<<"To modify, param name_param new_val"<<endl;
+ if (argc == 2) sout<<"To modify, param name_param new_val"<<Message_EndLine;
else {
sout<<" New demanded value : "<<arg2;
if (Interface_Static::SetCVal (arg1,arg2))
- { sout<<" OK"<<endl; return IFSelect_RetDone; }
- else { sout <<" , refused"<<endl; return IFSelect_RetError; }
+ { sout<<" OK"<<Message_EndLine; return IFSelect_RetDone; }
+ else { sout <<" , refused"<<Message_EndLine; return IFSelect_RetError; }
}
}
return IFSelect_RetVoid;
if (argc < 2) {
Handle(TColStd_HSequenceOfHAsciiString) li = Interface_Static::Items();
Standard_Integer i,nb = li->Length();
- sout<<" List of parameters : "<<nb<<" items :"<<endl;
+ sout<<" List of parameters : "<<nb<<" items :"<<Message_EndLine;
for (i = 1; i <= nb; i ++) sout<<" "<<li->Value(i)->ToCString();
- sout<<endl<<" defparam name_param to known more about one"<<endl;
- sout<<" defparam nom_param e options to edit a definition"<<endl;
+ sout<<Message_EndLine<<" defparam name_param to known more about one"<<Message_EndLine;
+ sout<<" defparam nom_param e options to edit a definition"<<Message_EndLine;
} else if (argc == 2) {
- sout<<" Definition of Parameter : "<<arg1<<endl;
+ sout<<" Definition of Parameter : "<<arg1<<Message_EndLine;
Handle(Interface_Static) unst = Interface_Static::Static (arg1);
- if (unst.IsNull()) sout<<" undefined"<<endl;
+ if (unst.IsNull()) sout<<" undefined"<<Message_EndLine;
else unst->Print(sout);
return IFSelect_RetVoid;
} else if (arg2[0] == 'i') {
// initialisation : arg1=nompar a2='i' a3=family a4=type [a5=val]
- if (argc < 5) { sout<<" name init family type [valinit]"<<endl; return IFSelect_RetVoid; }
+ if (argc < 5) { sout<<" name init family type [valinit]"<<Message_EndLine; return IFSelect_RetVoid; }
char typ = (pilot->Arg(4))[0];
Standard_Boolean ok= (argc==5 ? Interface_Static::Init(arg3,arg1,typ) :
Interface_Static::Init(arg3,arg1,typ,pilot->Arg(5)));
sout<<" give name and options ! Options (according type), 1 a time\n"
<<" imin ival / imax ival / rmin rval / rmax rval /\n"
<<" enum stnum / enum stnum match / eval e1 e2 e3 ... (maxi 10)\n"
- <<endl;
+ <<Message_EndLine;
return IFSelect_RetVoid;
}
- if (argc > 4) sout<<"Only the command and ONE more arg are considered"<<endl;
+ if (argc > 4) sout<<"Only the command and ONE more arg are considered"<<Message_EndLine;
sprintf(comm,"%s %s",pilot->Arg(3),pilot->Arg(4));
- sout<<"Editing parameter : "<<arg1<<" , by command : "<<comm<<endl;
+ sout<<"Editing parameter : "<<arg1<<" , by command : "<<comm<<Message_EndLine;
Handle(Interface_Static) unst = Interface_Static::Static (arg1);
- if (unst.IsNull()) { sout<<arg1<<" undefined"<<endl; return IFSelect_RetError; }
+ if (unst.IsNull()) { sout<<arg1<<" undefined"<<Message_EndLine; return IFSelect_RetError; }
if (Interface_Static::Init(unst->Family(),arg1,'&',comm))
- { sout<<"Editing done"<<endl; return IFSelect_RetDone; }
- else { sout<<"Command not processed : "<<comm<<endl; return IFSelect_RetFail; }
+ { sout<<"Editing done"<<Message_EndLine; return IFSelect_RetDone; }
+ else { sout<<"Command not processed : "<<comm<<Message_EndLine; return IFSelect_RetFail; }
}
- sout<<"Unknown Option : "<<arg2<<endl;
+ sout<<"Unknown Option : "<<arg2<<Message_EndLine;
return IFSelect_RetVoid;
}
Handle(TColStd_HSequenceOfHAsciiString) list = WS->SentFiles();
Handle(Message_Messenger) sout = Message::DefaultMessenger();
if (list.IsNull())
- { sout<<"List of Sent Files not enabled"<<endl; return IFSelect_RetVoid; }
+ { sout<<"List of Sent Files not enabled"<<Message_EndLine; return IFSelect_RetVoid; }
Standard_Integer i, nb = list->Length();
- sout<<" Sent Files : "<<nb<<" : "<<endl;
+ sout<<" Sent Files : "<<nb<<" : "<<Message_EndLine;
for (i = 1; i <= nb; i ++)
- sout<<list->Value(i)->ToCString()<<endl;
+ sout<<list->Value(i)->ToCString()<<Message_EndLine;
return IFSelect_RetVoid;
}
// **** FilePrefix ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
if (argc < 2) {
- if (WS->FilePrefix().IsNull()) sout<<"Pas de prefixe defini"<<endl;
- else sout<<"Prefixe : "<<WS->FilePrefix()->ToCString()<<endl;
- sout<<"Pour changer : filepref newprefix"<<endl;
+ if (WS->FilePrefix().IsNull()) sout<<"Pas de prefixe defini"<<Message_EndLine;
+ else sout<<"Prefixe : "<<WS->FilePrefix()->ToCString()<<Message_EndLine;
+ sout<<"Pour changer : filepref newprefix"<<Message_EndLine;
return IFSelect_RetVoid;
}
WS->SetFilePrefix(arg1);
// **** FileExtension ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
if (argc < 2) {
- if (WS->FileExtension().IsNull()) sout<<"Pas d extension definie"<<endl;
- else sout<<"Extension : "<<WS->FileExtension()->ToCString()<<endl;
- sout<<"Pour changer : fileext newext"<<endl;
+ if (WS->FileExtension().IsNull()) sout<<"Pas d extension definie"<<Message_EndLine;
+ else sout<<"Extension : "<<WS->FileExtension()->ToCString()<<Message_EndLine;
+ sout<<"Pour changer : fileext newext"<<Message_EndLine;
return IFSelect_RetVoid;
}
WS->SetFileExtension(arg1);
const Standard_CString arg2 = pilot->Arg(2);
// **** FileRoot ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 2) { sout<<"Donner Dispatch et nom de Root"<<endl; return IFSelect_RetError; }
+ if (argc < 2) { sout<<"Donner Dispatch et nom de Root"<<Message_EndLine; return IFSelect_RetError; }
DeclareAndCast(IFSelect_Dispatch,disp,WS->NamedItem(arg1));
if (argc < 3) {
- if (WS->FileRoot(disp).IsNull()) sout<<"Pas de racine definie pour "<<arg1<<endl;
- else sout<<"Racine pour "<<arg1<<" : "<<WS->FileRoot(disp)->ToCString()<<endl;
- sout<<"Pour changer : fileroot nomdisp newroot"<<endl;
+ if (WS->FileRoot(disp).IsNull()) sout<<"Pas de racine definie pour "<<arg1<<Message_EndLine;
+ else sout<<"Racine pour "<<arg1<<" : "<<WS->FileRoot(disp)->ToCString()<<Message_EndLine;
+ sout<<"Pour changer : fileroot nomdisp newroot"<<Message_EndLine;
return IFSelect_RetVoid;
}
if (!WS->SetFileRoot(disp,arg2)) return IFSelect_RetFail;
// **** Default File Root ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
if (argc < 2) {
- if (WS->DefaultFileRoot().IsNull()) sout<<"Pas de racine par defaut definie"<<endl;
- else sout<<"Racine par defaut : "<<WS->DefaultFileRoot()->ToCString()<<endl;
- sout<<"Pour changer : filedef newdef"<<endl;
+ if (WS->DefaultFileRoot().IsNull()) sout<<"Pas de racine par defaut definie"<<Message_EndLine;
+ else sout<<"Racine par defaut : "<<WS->DefaultFileRoot()->ToCString()<<Message_EndLine;
+ sout<<"Pour changer : filedef newdef"<<Message_EndLine;
return IFSelect_RetVoid;
}
WS->SetDefaultFileRoot(arg1);
// **** EvalFile ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
if (!WS->HasModel())
- { sout<<"Pas de Modele charge, abandon"<<endl; return IFSelect_RetFail; }
+ { sout<<"Pas de Modele charge, abandon"<<Message_EndLine; return IFSelect_RetFail; }
- sout<<"Evaluation avec Memorisation des resultats"<<endl;
+ sout<<"Evaluation avec Memorisation des resultats"<<Message_EndLine;
WS->EvaluateFile();
Standard_Integer nbf = WS->NbFiles();
for (Standard_Integer i = 1; i <= nbf; i ++) {
Handle(Interface_InterfaceModel) mod = WS->FileModel(i);
if (mod.IsNull())
- { sout<<"Modele "<<i<<" Model non genere ..."<<endl; continue; }
+ { sout<<"Modele "<<i<<" Model non genere ..."<<Message_EndLine; continue; }
TCollection_AsciiString name = WS->FileName(i);
sout<<"Fichier n0 "<<i<<" Nb Entites : "<<mod->NbEntities()<<" Nom: ";
- sout<<name<<endl;
+ sout<<name<<Message_EndLine;
}
return IFSelect_RetDone;
}
// **** Split ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
IFSelect_ReturnStatus stat = IFSelect_RetVoid;
- if (argc < 2) sout<<"Split : derniere liste de dispatches definie"<<endl;
+ if (argc < 2) sout<<"Split : derniere liste de dispatches definie"<<Message_EndLine;
else {
WS->ClearShareOut(Standard_True);
for (Standard_Integer i = 1; i < argc; i ++) {
DeclareAndCast(IFSelect_Dispatch,disp,WS->NamedItem(pilot->Arg(i)));
if (disp.IsNull()) {
- sout<<"Pas un dispatch:"<<pilot->Arg(i)<<", Splitt abandonne"<<endl;
+ sout<<"Pas un dispatch:"<<pilot->Arg(i)<<", Splitt abandonne"<<Message_EndLine;
stat = IFSelect_RetError;
}
else WS->SetActive(disp,Standard_True);
else {
Handle(Message_Messenger) sout = Message::DefaultMessenger();
if (argc<2) sout<<"Donner un Mode - ";
- sout<<"Modes possibles : l list, c compute, u undo, f forget"<<endl;
+ sout<<"Modes possibles : l list, c compute, u undo, f forget"<<Message_EndLine;
if (mode == '?') return IFSelect_RetDone; else return IFSelect_RetError;
}
if (!WS->SetRemaining(numod)) return IFSelect_RetVoid;
const Standard_CString arg2 = pilot->Arg(2);
// **** SetModelContent ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 3) { sout<<"Donner nom selection et mode (k=keep,r=remove)"<<endl; return IFSelect_RetError; }
+ if (argc < 3) { sout<<"Donner nom selection et mode (k=keep,r=remove)"<<Message_EndLine; return IFSelect_RetError; }
Standard_Boolean keepmode;
DeclareAndCast(IFSelect_Selection,sel,WS->NamedItem(arg1));
if (sel.IsNull())
- { sout<<"Pas de Selection de Nom : "<<arg1<<endl; return IFSelect_RetError; }
+ { sout<<"Pas de Selection de Nom : "<<arg1<<Message_EndLine; return IFSelect_RetError; }
if (arg2[0] == 'k') { sout<<" -- SetContent keep ..."; keepmode = Standard_True; }
else if (arg2[0] == 'r') { sout<<" -- SetContent remove ..."; keepmode = Standard_False; }
- else { sout<<"Donner nom selection et mode (k=keep,r=remove)"<<endl; return IFSelect_RetError; }
+ else { sout<<"Donner nom selection et mode (k=keep,r=remove)"<<Message_EndLine; return IFSelect_RetError; }
- if (WS->SetModelContent(sel,keepmode)) sout<<" Done"<<endl;
- else sout<<" Result empty, ignored"<<endl;
+ if (WS->SetModelContent(sel,keepmode)) sout<<" Done"<<Message_EndLine;
+ else sout<<" Result empty, ignored"<<Message_EndLine;
return IFSelect_RetDone;
}
const Standard_CString arg1 = pilot->Arg(1);
// **** Modifier ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 2) { sout<<"Donner Nom du Modifier"<<endl; return IFSelect_RetError; }
+ if (argc < 2) { sout<<"Donner Nom du Modifier"<<Message_EndLine; return IFSelect_RetError; }
DeclareAndCast(IFSelect_GeneralModifier,modif,WS->NamedItem(arg1));
if (modif.IsNull())
- { sout<<"Pas de Modifier de Nom : "<<arg1<<endl; return IFSelect_RetVoid; }
+ { sout<<"Pas de Modifier de Nom : "<<arg1<<Message_EndLine; return IFSelect_RetVoid; }
Handle(IFSelect_IntParam) low,up;
Handle(IFSelect_Dispatch) disp = modif->Dispatch();
- sout<<"Modifier : "<<arg1<<" Label : "<<modif->Label()<<endl;
+ sout<<"Modifier : "<<arg1<<" Label : "<<modif->Label()<<Message_EndLine;
Standard_Integer rank = WS->ModifierRank(modif);
if (modif->IsKind(STANDARD_TYPE(IFSelect_Modifier)))
sout<< "Model Modifier n0." << rank;
else sout<< "File Modifier n0." << rank;
- if (disp.IsNull()) sout<<" Applique a tous les Dispatchs" << endl;
+ if (disp.IsNull()) sout<<" Applique a tous les Dispatchs" << Message_EndLine;
else {
sout << " Dispatch : "<<disp->Label();
if (WS->HasName(disp)) sout << " - Nom:"<<WS->Name(disp)->ToCString();
- sout<<endl;
+ sout<<Message_EndLine;
}
Handle(IFSelect_Selection) sel = modif->Selection();
if (!sel.IsNull()) sout<<" Selection : "<< sel->Label();
if (WS->HasName(sel)) sout<<" - Nom:"<< WS->Name(sel)->ToCString();
- sout<<endl;
+ sout<<Message_EndLine;
return IFSelect_RetVoid;
}
// **** ModifSel ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
if (argc < 2) { sout<<"Donner Nom Modifier; + Nom Selection optionnel\n"
- <<"Selection pour Mettre une Selection, sinon Annule"<<endl; return IFSelect_RetError; }
+ <<"Selection pour Mettre une Selection, sinon Annule"<<Message_EndLine; return IFSelect_RetError; }
DeclareAndCast(IFSelect_GeneralModifier,modif,WS->NamedItem(arg1));
if (modif.IsNull())
- { sout<<"Pas un nom de Modifier : "<<arg1<<endl; return IFSelect_RetError; }
+ { sout<<"Pas un nom de Modifier : "<<arg1<<Message_EndLine; return IFSelect_RetError; }
Handle(IFSelect_Selection) sel;
if (arg2[0] != '\0') {
sel = GetCasted(IFSelect_Selection,WS->NamedItem(arg2));
if (sel.IsNull())
- { sout<<"Pas un nom de Selection : "<<arg2<<endl; return IFSelect_RetError; }
+ { sout<<"Pas un nom de Selection : "<<arg2<<Message_EndLine; return IFSelect_RetError; }
}
if (!WS->SetItemSelection(modif,sel)) return IFSelect_RetFail;
return IFSelect_RetDone;
Handle(Message_Messenger) sout = Message::DefaultMessenger();
if (argc < 2) { sout<<"Donner Nom Modifier; + Nom Dispatch ou Transformer optionnel :\n"
<<" - rien : tous Dispatches\n - Dispatch : ce Dispatch seul\n"
- <<" - Transformer : pas un Dispatch mais un Transformer"<<endl;
+ <<" - Transformer : pas un Dispatch mais un Transformer"<<Message_EndLine;
return IFSelect_RetError; }
DeclareAndCast(IFSelect_GeneralModifier,modif,WS->NamedItem(arg1));
if (modif.IsNull())
- { sout<<"Pas un nom de Modifier : "<<arg1<<endl; return IFSelect_RetError; }
+ { sout<<"Pas un nom de Modifier : "<<arg1<<Message_EndLine; return IFSelect_RetError; }
Handle(Standard_Transient) item;
if (arg2[0] != '\0') {
item = WS->NamedItem(arg2);
if (item.IsNull())
- { sout<<"Pas un nom connu : "<<arg2<<endl; return IFSelect_RetError; }
+ { sout<<"Pas un nom connu : "<<arg2<<Message_EndLine; return IFSelect_RetError; }
}
else item = WS->ShareOut();
if (!WS->SetAppliedModifier(modif,item)) return IFSelect_RetFail;
const Standard_CString arg1 = pilot->Arg(1);
// **** ResetApplied (modifier) ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 2) { sout<<"Designer un modifier"<<endl; return IFSelect_RetError; }
+ if (argc < 2) { sout<<"Designer un modifier"<<Message_EndLine; return IFSelect_RetError; }
DeclareAndCast(IFSelect_GeneralModifier,modif,WS->NamedItem(arg1));
if (modif.IsNull())
- { sout<<"Pas un nom de Modifier : "<<arg1<<endl; return IFSelect_RetError; }
+ { sout<<"Pas un nom de Modifier : "<<arg1<<Message_EndLine; return IFSelect_RetError; }
if (!WS->ResetAppliedModifier(modif)) return IFSelect_RetFail;
return IFSelect_RetDone;
}
const Standard_CString arg3 = pilot->Arg(3);
// **** ModifMove ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 4) { sout<<"modifmove MF rang1 rang2, M pour Model F pour File"<<endl; return IFSelect_RetError; }
+ if (argc < 4) { sout<<"modifmove MF rang1 rang2, M pour Model F pour File"<<Message_EndLine; return IFSelect_RetError; }
Standard_Boolean formodel;
if (arg1[0] == 'm' || arg1[0] == 'M') formodel = Standard_True;
else if (arg1[0] == 'f' || arg1[0] == 'F') formodel = Standard_False;
- else { sout<<"preciser M pour Model, F pour File"<<endl; return IFSelect_RetError; }
+ else { sout<<"preciser M pour Model, F pour File"<<Message_EndLine; return IFSelect_RetError; }
Standard_Integer before = atoi(arg2);
Standard_Integer after = atoi(arg3);
- if (before == 0 || after == 0) { sout<<"Donner 2 Entiers Positifs"<<endl; return IFSelect_RetError; }
+ if (before == 0 || after == 0) { sout<<"Donner 2 Entiers Positifs"<<Message_EndLine; return IFSelect_RetError; }
if (!WS->ChangeModifierRank(formodel,before,after)) return IFSelect_RetFail;
return IFSelect_RetDone;
}
const Standard_CString arg2 = pilot->Arg(2);
// **** DispSel ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 3) { sout<<"Donner Noms Dispatch et Selection Finale"<<endl; return IFSelect_RetError; }
+ if (argc < 3) { sout<<"Donner Noms Dispatch et Selection Finale"<<Message_EndLine; return IFSelect_RetError; }
DeclareAndCast(IFSelect_Dispatch,disp,WS->NamedItem(arg1));
if (disp.IsNull())
- { sout<<"Pas un nom de Dispatch : "<<arg1<<endl; return IFSelect_RetError; }
+ { sout<<"Pas un nom de Dispatch : "<<arg1<<Message_EndLine; return IFSelect_RetError; }
DeclareAndCast(IFSelect_Selection,sel,WS->NamedItem(arg2));
if (sel.IsNull())
- { sout<<"Pas un nom de Selection : "<<arg2<<endl; return IFSelect_RetError; }
+ { sout<<"Pas un nom de Selection : "<<arg2<<Message_EndLine; return IFSelect_RetError; }
if (!WS->SetItemSelection(disp,sel)) return IFSelect_RetFail;
return IFSelect_RetDone;
}
const Standard_CString arg1 = pilot->Arg(1);
// **** DispCount ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 2) { sout<<"Donner Nom IntParam pour Count"<<endl; return IFSelect_RetError; }
+ if (argc < 2) { sout<<"Donner Nom IntParam pour Count"<<Message_EndLine; return IFSelect_RetError; }
DeclareAndCast(IFSelect_IntParam,par,WS->NamedItem(arg1));
if (par.IsNull())
- { sout<<"Pas un nom de IntParam : "<<arg1<<endl; return IFSelect_RetError; }
+ { sout<<"Pas un nom de IntParam : "<<arg1<<Message_EndLine; return IFSelect_RetError; }
Handle(IFSelect_DispPerCount) disp = new IFSelect_DispPerCount;
disp->SetCount (par);
return pilot->RecordItem(disp);
const Standard_CString arg1 = pilot->Arg(1);
// **** DispFiles ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 2) { sout<<"Donner Nom IntParam pour NbFiles"<<endl; return IFSelect_RetError; }
+ if (argc < 2) { sout<<"Donner Nom IntParam pour NbFiles"<<Message_EndLine; return IFSelect_RetError; }
DeclareAndCast(IFSelect_IntParam,par,WS->NamedItem(arg1));
if (par.IsNull())
- { sout<<"Pas un nom de IntParam : "<<arg1<<endl; return IFSelect_RetError; }
+ { sout<<"Pas un nom de IntParam : "<<arg1<<Message_EndLine; return IFSelect_RetError; }
Handle(IFSelect_DispPerFiles) disp = new IFSelect_DispPerFiles;
disp->SetCount (par);
return pilot->RecordItem(disp);
const Standard_CString arg1 = pilot->Arg(1);
// **** DispFiles ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 2) { sout<<"Donner Nom Signature"<<endl; return IFSelect_RetError; }
+ if (argc < 2) { sout<<"Donner Nom Signature"<<Message_EndLine; return IFSelect_RetError; }
DeclareAndCast(IFSelect_Signature,sig,WS->NamedItem(arg1));
if (sig.IsNull())
- { sout<<"Pas un nom de Signature : "<<arg1<<endl; return IFSelect_RetError; }
+ { sout<<"Pas un nom de Signature : "<<arg1<<Message_EndLine; return IFSelect_RetError; }
Handle(IFSelect_DispPerSignature) disp = new IFSelect_DispPerSignature;
disp->SetSignCounter (new IFSelect_SignCounter(sig));
return pilot->RecordItem(disp);
const Standard_CString arg1 = pilot->Arg(1);
// **** Dispatch ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 2) { sout<<"Donner Nom du Dispatch"<<endl; return IFSelect_RetError; }
+ if (argc < 2) { sout<<"Donner Nom du Dispatch"<<Message_EndLine; return IFSelect_RetError; }
DeclareAndCast(IFSelect_Dispatch,disp,WS->NamedItem(arg1));
- if (disp.IsNull()) { sout<<"Pas un dispatch : "<<arg1<<endl; return IFSelect_RetError; }
+ if (disp.IsNull()) { sout<<"Pas un dispatch : "<<arg1<<Message_EndLine; return IFSelect_RetError; }
Standard_Integer num = WS->DispatchRank(disp);
sout<<"Dispatch de Nom : "<<arg1<<" , en ShareOut, Numero "<<num<<" : ";
Handle(IFSelect_Selection) sel = WS->ItemSelection(disp);
Handle(TCollection_HAsciiString) selname = WS->Name(sel);
- if (sel.IsNull()) sout<<"Pas de Selection Finale"<<endl;
- else if (selname.IsNull()) sout<<"Selection Finale : #"<<WS->ItemIdent(sel)<<endl;
- else sout<<"Selection Finale : "<<selname->ToCString()<<endl;
+ if (sel.IsNull()) sout<<"Pas de Selection Finale"<<Message_EndLine;
+ else if (selname.IsNull()) sout<<"Selection Finale : #"<<WS->ItemIdent(sel)<<Message_EndLine;
+ else sout<<"Selection Finale : "<<selname->ToCString()<<Message_EndLine;
if (disp->HasRootName()) sout<<"-- Racine nom de fichier : "
- <<disp->RootName()->ToCString()<<endl;
+ <<disp->RootName()->ToCString()<<Message_EndLine;
return IFSelect_RetVoid;
}
const Standard_CString arg1 = pilot->Arg(1);
// **** Remove ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 2) { sout<<"Give Name to Remove !"<<endl; return IFSelect_RetError; }
+ if (argc < 2) { sout<<"Give Name to Remove !"<<Message_EndLine; return IFSelect_RetError; }
if (!WS->RemoveNamedItem(arg1)) return IFSelect_RetFail;
return IFSelect_RetDone;
}
// **** EvalDisp ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
if (argc < 3) { sout<<"evaldisp mode disp [disp ...] : Mode + Name(s) of Dispatch(es). Mode:\n"
- <<" 0 brief 1 +forgotten ents 2 +duplicata 3 1+2"<<endl
- <<"See also : evaladisp writedisp xsplit"<<endl;
+ <<" 0 brief 1 +forgotten ents 2 +duplicata 3 1+2"<<Message_EndLine
+ <<"See also : evaladisp writedisp xsplit"<<Message_EndLine;
return IFSelect_RetVoid; }
Standard_Boolean OK = Standard_True;
Standard_Integer i , mode = atoi(arg1); sout<<" Mode "<<mode<<"\n";
for (i = 2; i < argc; i ++) {
DeclareAndCast(IFSelect_Dispatch,disp,WS->NamedItem(pilot->Arg(i)));
if (disp.IsNull())
- { sout<<"Not a dispatch:"<<pilot->Arg(i)<<endl; OK = Standard_False; }
+ { sout<<"Not a dispatch:"<<pilot->Arg(i)<<Message_EndLine; OK = Standard_False; }
}
if (!OK) {
- sout<<"Some of the parameters are not correct"<<endl;
+ sout<<"Some of the parameters are not correct"<<Message_EndLine;
return IFSelect_RetError;
}
// **** EvalADisp [GiveList] ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
if (argc < 3) { sout<<"evaladisp mode(=0-1-2-3) disp [givelist] : Mode + Dispatch [+ GiveList]\n If GiveList not given, computed from Selection of the Dispatch. Mode:\n"
- <<" 0 brief 1 +forgotten ents 2 +duplicata 3 1+2"<<endl
- <<"See also : writedisp"<<endl;
+ <<" 0 brief 1 +forgotten ents 2 +duplicata 3 1+2"<<Message_EndLine
+ <<"See also : writedisp"<<Message_EndLine;
return IFSelect_RetVoid; }
- if (arg1[1] != '\0') { sout<<"first parameter : mode, must be a number between 0 and 3"<<endl; return IFSelect_RetError; }
+ if (arg1[1] != '\0') { sout<<"first parameter : mode, must be a number between 0 and 3"<<Message_EndLine; return IFSelect_RetError; }
Standard_Integer mode = atoi(arg1); sout<<" Mode "<<mode<<"\n";
// DeclareAndCast(IFSelect_Dispatch,disp,WS->NamedItem(pilot->Arg(2)));
Handle(IFSelect_Dispatch) disp = IFSelect_Functions::GiveDispatch (WS,pilot->Arg(2),Standard_True);
if (disp.IsNull())
- { sout<<"Not a dispatch:"<<pilot->Arg(2)<<endl; return IFSelect_RetError; }
+ { sout<<"Not a dispatch:"<<pilot->Arg(2)<<Message_EndLine; return IFSelect_RetError; }
Handle(IFSelect_Selection) selsav = disp->FinalSelection();
Handle(IFSelect_Selection) sel;
if (argc > 3) {
}
if (sel.IsNull() && selsav.IsNull())
- { sout<<"No Selection nor GiveList defined"<<endl; return IFSelect_RetError; }
+ { sout<<"No Selection nor GiveList defined"<<Message_EndLine; return IFSelect_RetError; }
if (sel.IsNull() && !selsav.IsNull()) {
- if (argc > 3) sout<<"GiveList is empty, hence computed from the Selection of the Dispatch"<<endl;
+ if (argc > 3) sout<<"GiveList is empty, hence computed from the Selection of the Dispatch"<<Message_EndLine;
sel = selsav;
}
disp->SetFinalSelection(sel);
if (argc < 3) { sout<<"writedisp filename disp [givelist] : FileName + Dispatch [+ GiveList]\n If GiveList not given, computed from Selection of the Dispatch.\n"
<<"FileName : rootname.ext will gives rootname_1.ext etc...\n"
<<" path/rootname.ext gives path/rootname_1.ext etc...\n"
- <<"See also : evaladisp"<<endl;
+ <<"See also : evaladisp"<<Message_EndLine;
return IFSelect_RetVoid; }
TCollection_AsciiString prefix,rootname,suffix;
SplitFileName (arg1,prefix,rootname,suffix);
if (rootname.Length() == 0 || suffix.Length() == 0) {
- sout<<"Empty Root Name or Extension"<<endl;
+ sout<<"Empty Root Name or Extension"<<Message_EndLine;
return IFSelect_RetError;
}
// DeclareAndCast(IFSelect_Dispatch,disp,WS->NamedItem(pilot->Arg(2)));
Handle(IFSelect_Dispatch) disp = IFSelect_Functions::GiveDispatch (WS,pilot->Arg(2),Standard_True);
if (disp.IsNull())
- { sout<<"Not a dispatch:"<<pilot->Arg(2)<<endl; return IFSelect_RetError; }
+ { sout<<"Not a dispatch:"<<pilot->Arg(2)<<Message_EndLine; return IFSelect_RetError; }
Handle(IFSelect_Selection) selsav = disp->FinalSelection();
Handle(IFSelect_Selection) sel;
if (argc > 3) {
}
if (sel.IsNull() && selsav.IsNull())
- { sout<<"No Selection nor GiveList defined"<<endl; return IFSelect_RetError; }
+ { sout<<"No Selection nor GiveList defined"<<Message_EndLine; return IFSelect_RetError; }
if (sel.IsNull() && !selsav.IsNull()) {
- if (argc > 3) sout<<"GiveList is empty, hence computed from the Selection of the Dispatch"<<endl;
+ if (argc > 3) sout<<"GiveList is empty, hence computed from the Selection of the Dispatch"<<Message_EndLine;
sel = selsav;
}
Standard_Integer mode = 0;
Handle(Message_Messenger) sout = Message::DefaultMessenger();
if (argc < 2) sout << " -- mode par defaut 0\n";
- else { mode = atoi(arg1); sout << " -- mode : " << mode << endl; }
+ else { mode = atoi(arg1); sout << " -- mode : " << mode << Message_EndLine; }
WS->EvaluateComplete(mode); return IFSelect_RetVoid;
}
const Standard_CString arg1 = pilot->Arg(1);
// **** RunTransformer ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 2) { sout<<"Donner Nom de Transformer"<<endl; return IFSelect_RetError; }
+ if (argc < 2) { sout<<"Donner Nom de Transformer"<<Message_EndLine; return IFSelect_RetError; }
DeclareAndCast(IFSelect_Transformer,tsf,WS->NamedItem(arg1));
Standard_Integer effect = WS->RunTransformer(tsf);
switch (effect) {
- case -4 : sout<<"Edition sur place, nouveau Protocole, erreur recalcul graphe"<<endl; break;
- case -3 : sout<<"Erreur, Transformation ignoree"<<endl; break;
- case -2 : sout<<"Erreur sur edition sur place, risque de corruption (verifier)"<<endl; break;
- case -1 : sout<<"Erreur sur edition locale, risque de corruption (verifier)"<<endl; break;
+ case -4 : sout<<"Edition sur place, nouveau Protocole, erreur recalcul graphe"<<Message_EndLine; break;
+ case -3 : sout<<"Erreur, Transformation ignoree"<<Message_EndLine; break;
+ case -2 : sout<<"Erreur sur edition sur place, risque de corruption (verifier)"<<Message_EndLine; break;
+ case -1 : sout<<"Erreur sur edition locale, risque de corruption (verifier)"<<Message_EndLine; break;
case 0 :
- if (tsf.IsNull()) sout<<"Erreur, pas un Transformer: "<<arg1<<endl;
- else sout<<"Execution non faite"<<endl;
+ if (tsf.IsNull()) sout<<"Erreur, pas un Transformer: "<<arg1<<Message_EndLine;
+ else sout<<"Execution non faite"<<Message_EndLine;
break;
- case 1 : sout<<"Transformation locale (graphe non touche)"<<endl; break;
- case 2 : sout<<"Edition sur place (graphe recalcule)"<<endl; break;
- case 3 : sout<<"Modele reconstruit"<<endl; break;
- case 4 : sout<<"Edition sur place, nouveau Protocole"<<endl; break;
- case 5 : sout<<"Nouveau Modele avec nouveau Protocole"<<endl; break;
+ case 1 : sout<<"Transformation locale (graphe non touche)"<<Message_EndLine; break;
+ case 2 : sout<<"Edition sur place (graphe recalcule)"<<Message_EndLine; break;
+ case 3 : sout<<"Modele reconstruit"<<Message_EndLine; break;
+ case 4 : sout<<"Edition sur place, nouveau Protocole"<<Message_EndLine; break;
+ case 5 : sout<<"Nouveau Modele avec nouveau Protocole"<<Message_EndLine; break;
default : break;
}
return ((effect > 0) ? IFSelect_RetDone : IFSelect_RetFail);
}
Handle(Message_Messenger) sout = Message::DefaultMessenger();
if (modif.IsNull())
- { sout<<"Pas un nom de Modifier : "<<arg1<<endl; return IFSelect_RetError; }
+ { sout<<"Pas un nom de Modifier : "<<arg1<<Message_EndLine; return IFSelect_RetError; }
Handle(TColStd_HSequenceOfTransient) list;
Handle(IFSelect_SelectPointed) sp;
Standard_Integer effect = 0;
effect = WS->RunModifierSelected (modif,sp,runcopy);
-// sout<<"Modifier applique sur TransformStandard #"<<WS->ItemIdent(tsf)<<endl;
+// sout<<"Modifier applique sur TransformStandard #"<<WS->ItemIdent(tsf)<<std::endl;
switch (effect) {
- case -4 : sout<<"Edition sur place, nouveau Protocole, erreur recalcul graphe"<<endl; break;
- case -3 : sout<<"Erreur, Transformation ignoree"<<endl; break;
- case -2 : sout<<"Erreur sur edition sur place, risque de corruption (verifier)"<<endl; break;
- case -1 : sout<<"Erreur sur edition locale, risque de corruption (verifier)"<<endl; break;
+ case -4 : sout<<"Edition sur place, nouveau Protocole, erreur recalcul graphe"<<Message_EndLine; break;
+ case -3 : sout<<"Erreur, Transformation ignoree"<<Message_EndLine; break;
+ case -2 : sout<<"Erreur sur edition sur place, risque de corruption (verifier)"<<Message_EndLine; break;
+ case -1 : sout<<"Erreur sur edition locale, risque de corruption (verifier)"<<Message_EndLine; break;
case 0 :
- if (modif.IsNull()) sout<<"Erreur, pas un Modifier: "<<arg1<<endl;
- else sout<<"Execution non faite"<<endl;
+ if (modif.IsNull()) sout<<"Erreur, pas un Modifier: "<<arg1<<Message_EndLine;
+ else sout<<"Execution non faite"<<Message_EndLine;
break;
- case 1 : sout<<"Transformation locale (graphe non touche)"<<endl; break;
- case 2 : sout<<"Edition sur place (graphe recalcule)"<<endl; break;
- case 3 : sout<<"Modele reconstruit"<<endl; break;
- case 4 : sout<<"Edition sur place, nouveau Protocole"<<endl; break;
- case 5 : sout<<"Nouveau Modele avec nouveau Protocole"<<endl; break;
+ case 1 : sout<<"Transformation locale (graphe non touche)"<<Message_EndLine; break;
+ case 2 : sout<<"Edition sur place (graphe recalcule)"<<Message_EndLine; break;
+ case 3 : sout<<"Modele reconstruit"<<Message_EndLine; break;
+ case 4 : sout<<"Edition sur place, nouveau Protocole"<<Message_EndLine; break;
+ case 5 : sout<<"Nouveau Modele avec nouveau Protocole"<<Message_EndLine; break;
default : break;
}
return ((effect > 0) ? IFSelect_RetDone : IFSelect_RetFail);
if (argc >= 2) opt = pilot->Word(1).Value(1);
Handle(Message_Messenger) sout = Message::DefaultMessenger();
if (opt != 'f' && opt != 'l')
- { sout<<"Donner option : f -> root-first l -> root-last"<<endl; return IFSelect_RetError; }
+ { sout<<"Donner option : f -> root-first l -> root-last"<<Message_EndLine; return IFSelect_RetError; }
return pilot->RecordItem(new IFSelect_ModifReorder(opt == 'l'));
}
const Standard_CString arg1 = pilot->Arg(1);
// **** SelToggle ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 2) { sout<<"Donner Nom de Selection"<<endl; return IFSelect_RetError; }
+ if (argc < 2) { sout<<"Donner Nom de Selection"<<Message_EndLine; return IFSelect_RetError; }
DeclareAndCast(IFSelect_Selection,sel,WS->NamedItem(arg1));
if (!WS->ToggleSelectExtract(sel))
- { sout<<"Pas une SelectExtract : "<<arg1<<endl; return IFSelect_RetFail; }
- if (WS->IsReversedSelectExtract(sel)) sout<<arg1<<" a present Reversed"<<endl;
- else sout<<arg1<<" a present Directe"<<endl;
+ { sout<<"Pas une SelectExtract : "<<arg1<<Message_EndLine; return IFSelect_RetFail; }
+ if (WS->IsReversedSelectExtract(sel)) sout<<arg1<<" a present Reversed"<<Message_EndLine;
+ else sout<<arg1<<" a present Directe"<<Message_EndLine;
return IFSelect_RetDone;
}
const Standard_CString arg2 = pilot->Arg(2);
// **** SelInput ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 3) { sout<<"Donner Noms Selections cible et input"<<endl; return IFSelect_RetError; }
+ if (argc < 3) { sout<<"Donner Noms Selections cible et input"<<Message_EndLine; return IFSelect_RetError; }
DeclareAndCast(IFSelect_Selection,sel,WS->NamedItem(arg1));
DeclareAndCast(IFSelect_Selection,sou,WS->NamedItem(arg2));
if (sel.IsNull() || sou.IsNull())
- { sout<<"Incorrect : "<<arg1<<","<<arg2<<endl; return IFSelect_RetError; }
+ { sout<<"Incorrect : "<<arg1<<","<<arg2<<Message_EndLine; return IFSelect_RetError; }
if (!WS->SetInputSelection(sel,sou)) {
- sout<<"Nom incorrect ou Selection "<<arg1<<" ni Extract ni Deduct"<<endl;
+ sout<<"Nom incorrect ou Selection "<<arg1<<" ni Extract ni Deduct"<<Message_EndLine;
return IFSelect_RetFail;
}
return IFSelect_RetDone;
sout<<"Donner la description du SelectRange"
<<" Formes admises :\n <n1> <n2> : Range de <n1> a <n2>\n"
<<" <n1> tout seul : Range n0 <n1>\n from <n1> : Range From <n1>\n"
- <<" until <n2> : Range Until <n2>"<<endl;
+ <<" until <n2> : Range Until <n2>"<<Message_EndLine;
return IFSelect_RetVoid;
}
Handle(IFSelect_SelectRange) sel;
// Range From
if (pilot->Word(1).IsEqual("from")) {
- if (argc < 3) { sout<<"Forme admise : from <i>"<<endl; return IFSelect_RetError; }
+ if (argc < 3) { sout<<"Forme admise : from <i>"<<Message_EndLine; return IFSelect_RetError; }
low = GetCasted(IFSelect_IntParam,WS->NamedItem(arg2));
sel = new IFSelect_SelectRange;
sel->SetFrom (low);
// Range Until
} else if (pilot->Word(1).IsEqual("until")) {
- if (argc < 3) { sout<<"Forme admise : until <i>"<<endl; return IFSelect_RetError; }
+ if (argc < 3) { sout<<"Forme admise : until <i>"<<Message_EndLine; return IFSelect_RetError; }
up = GetCasted(IFSelect_IntParam,WS->NamedItem(arg2));
sel = new IFSelect_SelectRange;
sel->SetUntil (up);
Handle(IFSelect_Selection) sel = new IFSelect_SelectDiff;
if (sel.IsNull()) return IFSelect_RetFail;
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 3) sout<<"Diff sans input : ne pas oublier de les definir (ctlmain, ctlsec)!"<<endl;
+ if (argc < 3) sout<<"Diff sans input : ne pas oublier de les definir (ctlmain, ctlsec)!"<<Message_EndLine;
DeclareAndCast(IFSelect_Selection,selmain,WS->NamedItem(arg1));
DeclareAndCast(IFSelect_Selection,selsec ,WS->NamedItem(arg2));
if (argc >= 2)
if (!WS->SetControl(sel,selmain,Standard_True))
- sout<<"Echec ControlMain:"<<arg1<<" , a refaire (ctlmain)"<<endl;
+ sout<<"Echec ControlMain:"<<arg1<<" , a refaire (ctlmain)"<<Message_EndLine;
if (argc >= 3)
if (!WS->SetControl(sel,selsec,Standard_False))
- sout<<"Echec ControlSecond:"<<arg2<<" , a refaire (ctlsec)"<<endl;
+ sout<<"Echec ControlSecond:"<<arg2<<" , a refaire (ctlsec)"<<Message_EndLine;
return pilot->RecordItem (sel);
}
const Standard_CString arg2 = pilot->Arg(2);
// **** SelControlMain ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 3) { sout<<"Donner Noms de Control et MainInput"<<endl; return IFSelect_RetError; }
+ if (argc < 3) { sout<<"Donner Noms de Control et MainInput"<<Message_EndLine; return IFSelect_RetError; }
DeclareAndCast(IFSelect_Selection,sel,WS->NamedItem(arg1));
DeclareAndCast(IFSelect_Selection,selmain,WS->NamedItem(arg2));
if (WS->SetControl(sel,selmain,Standard_True)) return IFSelect_RetDone;
- sout<<"Nom incorrect ou Selection "<<arg1<<" pas de type Control"<<endl;
+ sout<<"Nom incorrect ou Selection "<<arg1<<" pas de type Control"<<Message_EndLine;
return IFSelect_RetFail;
}
const Standard_CString arg2 = pilot->Arg(2);
// **** SelControlSecond ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 3) { sout<<"Donner Noms de Control et SecondInput"<<endl; return IFSelect_RetError; }
+ if (argc < 3) { sout<<"Donner Noms de Control et SecondInput"<<Message_EndLine; return IFSelect_RetError; }
DeclareAndCast(IFSelect_Selection,sel,WS->NamedItem(arg1));
DeclareAndCast(IFSelect_Selection,seldif,WS->NamedItem(arg2));
if (WS->SetControl(sel,seldif,Standard_False)) return IFSelect_RetDone;
- sout<<"Nom incorrect ou Selection "<<arg1<<" pas de type Control"<<endl;
+ sout<<"Nom incorrect ou Selection "<<arg1<<" pas de type Control"<<Message_EndLine;
return IFSelect_RetFail;
}
const Standard_CString arg2 = pilot->Arg(2);
// **** SelCombAdd ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 3) { sout<<"Donner n0 Combine et une Input"<<endl; return IFSelect_RetError; }
+ if (argc < 3) { sout<<"Donner n0 Combine et une Input"<<Message_EndLine; return IFSelect_RetError; }
DeclareAndCast(IFSelect_Selection,sel,WS->NamedItem(arg1));
DeclareAndCast(IFSelect_Selection,seladd,WS->NamedItem(arg2));
if (WS->CombineAdd(sel,seladd)) return IFSelect_RetDone;
- sout<<"Nom incorrect ou Selection "<<arg1<<" pas Combine"<<endl;
+ sout<<"Nom incorrect ou Selection "<<arg1<<" pas Combine"<<Message_EndLine;
return IFSelect_RetFail;
}
const Standard_CString arg2 = pilot->Arg(2);
// **** SelCombRem ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 3) { sout<<"Donner n0 Combine et RANG a supprimer"<<endl; return IFSelect_RetError; }
+ if (argc < 3) { sout<<"Donner n0 Combine et RANG a supprimer"<<Message_EndLine; return IFSelect_RetError; }
DeclareAndCast(IFSelect_Selection,sel,WS->NamedItem(arg1));
DeclareAndCast(IFSelect_Selection,inp,WS->NamedItem(arg2));
if (WS->CombineRemove(sel,inp)) return IFSelect_RetDone;
- sout<<"Nom incorrect ou Selection "<<arg1<<" ni Union ni Intersection"<<endl;
+ sout<<"Nom incorrect ou Selection "<<arg1<<" ni Union ni Intersection"<<Message_EndLine;
return IFSelect_RetFail;
}
const Standard_CString arg1 = pilot->Arg(1);
// **** SelEntNumber ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 2) { sout<<"Donner Nom IntParam pour n0 Entite"<<endl; return IFSelect_RetError; }
+ if (argc < 2) { sout<<"Donner Nom IntParam pour n0 Entite"<<Message_EndLine; return IFSelect_RetError; }
DeclareAndCast(IFSelect_IntParam,par,WS->NamedItem(arg1));
Handle(IFSelect_SelectEntityNumber) sel = new IFSelect_SelectEntityNumber;
sel->SetNumber(par);
const Standard_CString arg1 = pilot->Arg(1);
// **** SelTextType Exact ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 2) { sout<<"Donner le TYPE a selectionner"<<endl; return IFSelect_RetError; }
+ if (argc < 2) { sout<<"Donner le TYPE a selectionner"<<Message_EndLine; return IFSelect_RetError; }
return pilot->RecordItem (new IFSelect_SelectSignature
(new IFSelect_SignType,arg1,Standard_True));
}
const Standard_CString arg1 = pilot->Arg(1);
// **** SelTextType Contain **
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 2) { sout<<"Donner le TYPE a selectionner"<<endl; return IFSelect_RetError; }
+ if (argc < 2) { sout<<"Donner le TYPE a selectionner"<<Message_EndLine; return IFSelect_RetError; }
return pilot->RecordItem (new IFSelect_SelectSignature
(new IFSelect_SignType,arg1,Standard_False));
}
(pilot->Session(),pilot->CommandPart(1));
if (list.IsNull()) return IFSelect_RetFail;
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- sout<<"SelectPointed : "<<list->Length()<<" entities"<<endl;
+ sout<<"SelectPointed : "<<list->Length()<<" entities"<<Message_EndLine;
sp->AddList (list);
}
return pilot->RecordItem (sp);
if (argc < 2) {
sout<<"Donner NOM SelectPointed + Option(s) :\n"
<<" aucune : liste des entites pointees\n"
- <<" 0: Clear +nn ajout entite nn -nn enleve nn /nn toggle nn"<<endl;
+ <<" 0: Clear +nn ajout entite nn -nn enleve nn /nn toggle nn"<<Message_EndLine;
return IFSelect_RetError;
}
DeclareAndCast(IFSelect_SelectPointed,sp,WS->NamedItem(arg1));
- if (sp.IsNull()) { sout<<"Pas une SelectPointed:"<<arg1<<endl; return IFSelect_RetError; }
+ if (sp.IsNull()) { sout<<"Pas une SelectPointed:"<<arg1<<Message_EndLine; return IFSelect_RetError; }
const Handle(Interface_InterfaceModel) &model = WS->Model(); // pour Print
if (argc == 2) { // listage simple
Standard_Integer nb = sp->NbItems();
- sout<<" SelectPointed : "<<arg1<<" : "<<nb<<" Items :"<<endl;
+ sout<<" SelectPointed : "<<arg1<<" : "<<nb<<" Items :"<<Message_EndLine;
for (Standard_Integer i = 1; i <= nb; i ++) {
Handle(Standard_Transient) pointed = sp->Item(i);
Standard_Integer id = WS->StartingNumber(pointed);
if (id == 0) sout <<" (inconnu)";
else { sout<<" "; model->Print(pointed,sout); }
}
- if (nb > 0) sout<<endl;
+ if (nb > 0) sout<<Message_EndLine;
return IFSelect_RetDone;
}
const TCollection_AsciiString argi = pilot->Word(ia);
Standard_Integer id = pilot->Number(&(argi.ToCString())[1]);
if (id == 0) {
- if (!argi.IsEqual("0")) sout<<"Incorrect,ignore:"<<argi<<endl;
- else { sout<<"Clear SelectPointed"<<endl; sp->Clear(); }
+ if (!argi.IsEqual("0")) sout<<"Incorrect,ignore:"<<argi<<Message_EndLine;
+ else { sout<<"Clear SelectPointed"<<Message_EndLine; sp->Clear(); }
} else if (argi.Value(1) == '-') {
Handle(Standard_Transient) item = WS->StartingEntity(id);
if (sp->Remove(item)) sout<<"Removed:no."<<id;
else sout<<" Echec Remove "<<id;
- sout<<": "; model->Print(item,sout); sout<<endl;
+ sout<<": "; model->Print(item,sout); sout<<Message_EndLine;
} else if (argi.Value(1) == '/') {
Handle(Standard_Transient) item = WS->StartingEntity(id);
if (sp->Remove(item)) sout<<"Toggled:n0."<<id;
else sout<<" Echec Toggle "<<id;
- sout<<": "; model->Print(item,sout); sout<<endl;
+ sout<<": "; model->Print(item,sout); sout<<Message_EndLine;
} else if (argi.Value(1) == '+') {
Handle(Standard_Transient) item = WS->StartingEntity(id);
if (sp->Add(item)) sout<<"Added:no."<<id;
else sout<<" Echec Add "<<id;
- sout<<": "; model->Print(item,sout); sout<<endl;
+ sout<<": "; model->Print(item,sout); sout<<Message_EndLine;
} else {
- sout<<"Ignore:"<<argi<<" , donner n0 PRECEDE de + ou - ou /"<<endl;
+ sout<<"Ignore:"<<argi<<" , donner n0 PRECEDE de + ou - ou /"<<Message_EndLine;
}
}
return IFSelect_RetDone;
Handle(IFSelect_WorkSession) WS = pilot->Session();
// **** SelSignature ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 3) { sout<<"Give name of Signature or Counter, text + option exact(D) else contains"<<endl; return IFSelect_RetError; }
+ if (argc < 3) { sout<<"Give name of Signature or Counter, text + option exact(D) else contains"<<Message_EndLine; return IFSelect_RetError; }
Standard_Boolean exact = Standard_True;
if (argc > 3) { if (pilot->Arg(3)[0] == 'c') exact = Standard_False; }
if (!sign.IsNull()) sel = new IFSelect_SelectSignature (sign,arg2,exact);
else if (!cnt.IsNull()) sel = new IFSelect_SelectSignature (cnt,arg2,exact);
- else { sout<<arg1<<":neither Signature nor Counter"<<endl; return IFSelect_RetError; }
+ else { sout<<arg1<<":neither Signature nor Counter"<<Message_EndLine; return IFSelect_RetError; }
return pilot->RecordItem(sel);
}
Handle(IFSelect_WorkSession) WS = pilot->Session();
// **** SignCounter ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 2) { sout<<"Donner nom signature"<<endl; return IFSelect_RetError; }
+ if (argc < 2) { sout<<"Donner nom signature"<<Message_EndLine; return IFSelect_RetError; }
DeclareAndCast(IFSelect_Signature,sign,WS->NamedItem(arg1));
- if (sign.IsNull()) { sout<<arg1<<":pas une signature"<<endl; return IFSelect_RetError; }
+ if (sign.IsNull()) { sout<<arg1<<":pas une signature"<<Message_EndLine; return IFSelect_RetError; }
Handle(IFSelect_SignCounter) cnt = new IFSelect_SignCounter (sign,Standard_True,Standard_True);
return pilot->RecordItem(cnt);
}
Handle(IFSelect_WorkSession) WS = pilot->Session();
// **** NbSelected = GraphCounter ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 2) { sout<<"Donner nom selection (deduction) a appliquer"<<endl; return IFSelect_RetError; }
+ if (argc < 2) { sout<<"Donner nom selection (deduction) a appliquer"<<Message_EndLine; return IFSelect_RetError; }
DeclareAndCast(IFSelect_SelectDeduct,applied,WS->GiveSelection(arg1));
- if (applied.IsNull()) { sout<<arg1<<":pas une SelectDeduct"<<endl; return IFSelect_RetError; }
+ if (applied.IsNull()) { sout<<arg1<<":pas une SelectDeduct"<<Message_EndLine; return IFSelect_RetError; }
Handle(IFSelect_GraphCounter) cnt = new IFSelect_GraphCounter (Standard_True,Standard_True);
cnt->SetApplied (applied);
return pilot->RecordItem(cnt);
{
Standard_Integer argc = pilot->NbWords();
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 2) { sout<<"Give the name of an EditForm or an Editor"<<endl;
+ if (argc < 2) { sout<<"Give the name of an EditForm or an Editor"<<Message_EndLine;
return IFSelect_RetError; }
const Standard_CString arg1 = pilot->Arg(1);
const Standard_CString arg2 = pilot->Arg(2);
DeclareAndCast(IFSelect_EditForm,edf,WS->NamedItem(arg1));
Handle(IFSelect_Editor) edt;
if (!edf.IsNull()) {
- sout<<"Print EditForm "<<arg1<<endl;
+ sout<<"Print EditForm "<<arg1<<Message_EndLine;
edt = edf->Editor();
if (argc < 3) {
if (edt.IsNull()) edt = GetCasted(IFSelect_Editor,WS->NamedItem(arg1));
if (edt.IsNull()) return IFSelect_RetVoid;
- sout<<"Editor, Label : "<<edt->Label()<<endl;
- sout<<endl<<" -- Names (short - complete) + Labels of Values"<<endl;
+ sout<<"Editor, Label : "<<edt->Label()<<Message_EndLine;
+ sout<<Message_EndLine<<" -- Names (short - complete) + Labels of Values"<<Message_EndLine;
edt->PrintNames(sout);
- sout<<endl<<" -- Definitions --"<<endl;
+ sout<<Message_EndLine<<" -- Definitions --"<<Message_EndLine;
edt->PrintDefs (sout);
if (!edf.IsNull()) {
edf->PrintDefs(sout);
- sout<<endl<<"To display values, add an option : o original f final m modified"<<endl;
+ sout<<Message_EndLine<<"To display values, add an option : o original f final m modified"<<Message_EndLine;
}
return IFSelect_RetVoid;
{
Standard_Integer argc = pilot->NbWords();
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 3) { sout<<"Give the name of an EditForm + name of Value [+ newvalue or . to nullify]"<<endl;
+ if (argc < 3) { sout<<"Give the name of an EditForm + name of Value [+ newvalue or . to nullify]"<<Message_EndLine;
return IFSelect_RetError; }
const Standard_CString arg1 = pilot->Arg(1);
const Standard_CString arg2 = pilot->Arg(2);
Handle(IFSelect_WorkSession) WS = pilot->Session();
DeclareAndCast(IFSelect_EditForm,edf,WS->NamedItem(arg1));
if (edf.IsNull())
- { sout<<"Not an EditForm : "<<arg1<<endl; return IFSelect_RetError; }
+ { sout<<"Not an EditForm : "<<arg1<<Message_EndLine; return IFSelect_RetError; }
Standard_Integer num = edf->NameNumber (arg2);
- if (num == 0) sout<<"Unknown Value Name : "<<arg2<<endl;
- if (num < 0) sout<<"Not Extracted Value Name : "<<arg2<<endl;
+ if (num == 0) sout<<"Unknown Value Name : "<<arg2<<Message_EndLine;
+ if (num < 0) sout<<"Not Extracted Value Name : "<<arg2<<Message_EndLine;
if (num <= 0) return IFSelect_RetError;
Standard_Boolean islist = edf->Editor()->IsList(num);
if (islist) {
listr = edf->EditedList(num);
- if (listr.IsNull()) sout<<"(NULL LIST)"<<endl;
+ if (listr.IsNull()) sout<<"(NULL LIST)"<<Message_EndLine;
else {
Standard_Integer ilist,nblist = listr->Length();
- sout<<"(List : "<<nblist<<" Items)"<<endl;
+ sout<<"(List : "<<nblist<<" Items)"<<Message_EndLine;
for (ilist = 1; ilist <= nblist; ilist ++) {
str = listr->Value(ilist);
- sout<<" ["<<ilist<<"] "<< (str.IsNull() ? "(NULL)" : str->ToCString())<<endl;
+ sout<<" ["<<ilist<<"] "<< (str.IsNull() ? "(NULL)" : str->ToCString())<<Message_EndLine;
}
}
- if (argc < 4) sout<<"To Edit, options by editval edit-form value-name ?"<<endl;
+ if (argc < 4) sout<<"To Edit, options by editval edit-form value-name ?"<<Message_EndLine;
} else {
str = edf->EditedValue (num);
- sout<<(str.IsNull() ? "(NULL)" : str->ToCString())<<endl;
+ sout<<(str.IsNull() ? "(NULL)" : str->ToCString())<<Message_EndLine;
}
if (argc < 4) return IFSelect_RetVoid;
const Standard_CString argval = pilot->Arg(numarg);
if (islist) {
if (argval[0] == '?') {
- sout<<"To Edit, options"<<endl<<" + val : add value at end (blanks allowed)"
- <<endl<<" +nn text : insert val before item nn"<<endl
- <<" nn text : replace item nn with a new value"<<endl
- <<" -nn : remove item nn"<<endl<<" . : clear the list"<<endl;
+ sout<<"To Edit, options"<<Message_EndLine<<" + val : add value at end (blanks allowed)"
+ <<Message_EndLine<<" +nn text : insert val before item nn"<<Message_EndLine
+ <<" nn text : replace item nn with a new value"<<Message_EndLine
+ <<" -nn : remove item nn"<<Message_EndLine<<" . : clear the list"<<Message_EndLine;
return IFSelect_RetVoid;
}
Standard_Boolean stated = Standard_False;
(new TCollection_HAsciiString(pilot->CommandPart(numarg+1)),numset);
}
if (stated) stated = edf->ModifyList (num,listed,Standard_True);
- if (stated) sout<<"List Edition done"<<endl;
- else sout<<"List Edition not done, option"<<argval<<endl;
+ if (stated) sout<<"List Edition done"<<Message_EndLine;
+ else sout<<"List Edition not done, option"<<argval<<Message_EndLine;
} else {
if (argval[0] == '.' && argval[1] == '\0') str.Nullify();
else str = new TCollection_HAsciiString (pilot->CommandPart(numarg));
if (edf->Modify (num,str,Standard_True)) {
- sout<<"Now set to "<<(str.IsNull() ? "(NULL)" : str->ToCString())<<endl;
+ sout<<"Now set to "<<(str.IsNull() ? "(NULL)" : str->ToCString())<<Message_EndLine;
} else {
- sout<<"Modify not done"<<endl; return IFSelect_RetFail;
+ sout<<"Modify not done"<<Message_EndLine; return IFSelect_RetFail;
}
}
return IFSelect_RetDone;
{
Standard_Integer argc = pilot->NbWords();
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 2) { sout<<"Give the name of an EditForm [+ name of Value else all]"<<endl;
+ if (argc < 2) { sout<<"Give the name of an EditForm [+ name of Value else all]"<<Message_EndLine;
return IFSelect_RetError; }
const Standard_CString arg1 = pilot->Arg(1);
const Standard_CString arg2 = pilot->Arg(2);
Handle(IFSelect_WorkSession) WS = pilot->Session();
DeclareAndCast(IFSelect_EditForm,edf,WS->NamedItem(arg1));
if (edf.IsNull())
- { sout<<"Not an EditForm : "<<arg1<<endl; return IFSelect_RetError; }
- if (argc < 3) { edf->ClearEdit(); sout<<"All Modifications Cleared"<<endl; }
+ { sout<<"Not an EditForm : "<<arg1<<Message_EndLine; return IFSelect_RetError; }
+ if (argc < 3) { edf->ClearEdit(); sout<<"All Modifications Cleared"<<Message_EndLine; }
else {
Standard_Integer num = edf->NameNumber (arg2);
- if (num == 0) sout<<"Unknown Value Name : "<<arg2<<endl;
- if (num < 0) sout<<"Not Extracted Value Name : "<<arg2<<endl;
+ if (num == 0) sout<<"Unknown Value Name : "<<arg2<<Message_EndLine;
+ if (num < 0) sout<<"Not Extracted Value Name : "<<arg2<<Message_EndLine;
if (num <= 0) return IFSelect_RetError;
if (!edf->IsModified(num))
- { sout<<"Value "<<arg2<<" was not modified"<<endl; return IFSelect_RetVoid; }
+ { sout<<"Value "<<arg2<<" was not modified"<<Message_EndLine; return IFSelect_RetVoid; }
edf->ClearEdit (num);
- sout<<"Modification on Value "<<arg2<<" Cleared"<<endl;
+ sout<<"Modification on Value "<<arg2<<" Cleared"<<Message_EndLine;
}
return IFSelect_RetDone;
}
{
Standard_Integer argc = pilot->NbWords();
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 2) { sout<<"Give the name of an EditForm [+ option keep to re-apply edited values]"<<endl;
+ if (argc < 2) { sout<<"Give the name of an EditForm [+ option keep to re-apply edited values]"<<Message_EndLine;
return IFSelect_RetError; }
const Standard_CString arg1 = pilot->Arg(1);
const Standard_CString arg2 = pilot->Arg(2);
Handle(IFSelect_WorkSession) WS = pilot->Session();
DeclareAndCast(IFSelect_EditForm,edf,WS->NamedItem(arg1));
if (edf.IsNull())
- { sout<<"Not an EditForm : "<<arg1<<endl; return IFSelect_RetError; }
+ { sout<<"Not an EditForm : "<<arg1<<Message_EndLine; return IFSelect_RetError; }
Handle(Standard_Transient) ent = edf->Entity();
Handle(Interface_InterfaceModel) model = edf->Model();
if (!model.IsNull()) {
- if (ent.IsNull()) sout<<"Applying modifications on loaded model"<<endl;
+ if (ent.IsNull()) sout<<"Applying modifications on loaded model"<<Message_EndLine;
else {
sout<<"Applying modifications on loaded entity : ";
model->PrintLabel (ent,sout);
}
}
- else sout<<"Applying modifications"<<endl;
+ else sout<<"Applying modifications"<<Message_EndLine;
if (!edf->ApplyData (edf->Entity(),edf->Model())) {
- sout<<"Modifications could not be applied"<<endl;
+ sout<<"Modifications could not be applied"<<Message_EndLine;
return IFSelect_RetFail;
}
- sout<<"Modifications have been applied"<<endl;
+ sout<<"Modifications have been applied"<<Message_EndLine;
Standard_Boolean stat = Standard_True;
if (argc > 2 && arg2[0] == 'k') stat = Standard_False;
if (stat) {
edf->ClearEdit();
- sout<<"Edited values are cleared"<<endl;
+ sout<<"Edited values are cleared"<<Message_EndLine;
}
- else sout<<"Edited values are kept for another loading/applying"<<endl;
+ else sout<<"Edited values are kept for another loading/applying"<<Message_EndLine;
return IFSelect_RetDone;
}
{
Standard_Integer argc = pilot->NbWords();
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 2) { sout<<"Give the name of an EditForm [+ Entity-Ident]"<<endl;
+ if (argc < 2) { sout<<"Give the name of an EditForm [+ Entity-Ident]"<<Message_EndLine;
return IFSelect_RetError; }
const Standard_CString arg1 = pilot->Arg(1);
const Standard_CString arg2 = pilot->Arg(2);
Handle(IFSelect_WorkSession) WS = pilot->Session();
DeclareAndCast(IFSelect_EditForm,edf,WS->NamedItem(arg1));
if (edf.IsNull())
- { sout<<"Not an EditForm : "<<arg1<<endl; return IFSelect_RetError; }
+ { sout<<"Not an EditForm : "<<arg1<<Message_EndLine; return IFSelect_RetError; }
Standard_Integer num = (argc < 3 ? 0 : pilot->Number (arg2));
Standard_Boolean stat = Standard_False;
if (argc < 3) {
- sout<<"EditForm "<<arg1<<" : Loading Model"<<endl;
+ sout<<"EditForm "<<arg1<<" : Loading Model"<<Message_EndLine;
stat = edf->LoadModel(WS->Model());
} else if (num <= 0) {
- sout<<"Not an entity ident : "<<arg2<<endl;
+ sout<<"Not an entity ident : "<<arg2<<Message_EndLine;
return IFSelect_RetError;
} else {
- sout<<"EditForm "<<arg1<<" : Loading Entity "<<arg2<<endl;
+ sout<<"EditForm "<<arg1<<" : Loading Entity "<<arg2<<Message_EndLine;
stat = edf->LoadData (WS->StartingEntity(num),WS->Model());
}
if (!stat) {
- sout<<"Loading not done"<<endl;
+ sout<<"Loading not done"<<Message_EndLine;
return IFSelect_RetFail;
}
- sout<<"Loading done"<<endl;
+ sout<<"Loading done"<<Message_EndLine;
return IFSelect_RetDone;
}
Standard_Integer num = 0;
if (!name || name[0] == '\0') {
char ligne[80]; ligne[0] = '\0';
- cin >> ligne;
-// cin.clear(); cin.getline (ligne,79);
+ std::cin >> ligne;
+// std::cin.clear(); std::cin.getline (ligne,79);
if (ligne[0] == '\0') return 0;
num = WS->NumberFromLabel (ligne);
}
if (!dc.IsNull()) {
Standard_Integer nb = atoi( &(nam.ToCString())[paro]);
if (nb <= 0) {
- sout<<" DispPerCount, count is not positive"<<endl;
+ sout<<" DispPerCount, count is not positive"<<Message_EndLine;
disp.Nullify();
return disp;
}
if (!dp.IsNull()) {
Standard_Integer nb = atoi( &(nam.ToCString())[paro]);
if (nb <= 0) {
- sout<<" DispPerFiles, count is not positive"<<endl;
+ sout<<" DispPerFiles, count is not positive"<<Message_EndLine;
disp.Nullify();
return disp;
}
if (!ds.IsNull()) {
DeclareAndCast(IFSelect_Signature,sg,WS->NamedItem( &(nam.ToCString())[paro]));
if (sg.IsNull()) {
- sout<<"DispPerSignature "<<nam<<" , Signature not valid : "<<&(nam.ToCString())[paro]<<endl;
+ sout<<"DispPerSignature "<<nam<<" , Signature not valid : "<<&(nam.ToCString())[paro]<<Message_EndLine;
disp.Nullify();
return disp;
}
if (mode) ds->SetSignCounter (new IFSelect_SignCounter(sg));
return ds;
}
- sout<<"Dispatch : "<<name<<" , Parameter : "<<&(nam.ToCString())[paro]<<endl;
+ sout<<"Dispatch : "<<name<<" , Parameter : "<<&(nam.ToCString())[paro]<<Message_EndLine;
return disp;
}
Interface_CopyTool& TC)
{
Message::DefaultMessenger() <<
- "** WorkSession : Copying split data before sending"<<endl;
+ "** WorkSession : Copying split data before sending"<<Message_EndLine;
const Interface_Graph& G = eval.Graph();
Interface_CheckIterator checks;
theshareout = eval.ShareOut();
const Handle(Interface_Protocol)& protocol)
{
Message::DefaultMessenger() <<
- "** WorkSession : Sending split data already copied"<<endl;
+ "** WorkSession : Sending split data already copied"<<Message_EndLine;
Standard_Integer nb = NbFiles();
Interface_CheckIterator checks;
if (nb > 0) {
checks.Merge(checklst);
// (FileName(i).ToCString(), FileModel(i),protocol,curapp,checks);
// if (!checks.IsEmpty(Standard_False)) {
-// sout<<" ** On Sending File n0."<<i<<", Check Messages : **"<<endl;
+// sout<<" ** On Sending File n0."<<i<<", Check Messages : **"<<std::endl;
// checks.Print (sout,Standard_False);
// }
if (!res) {
char mess[100]; sprintf(mess,"Split Send (WriteFile) abandon on file n0.%d",i);
checks.CCheck(0)->AddFail (mess);
Message::DefaultMessenger() <<
- " ** Sending File n0."<<i<<" has failed, abandon **"<<endl;
+ " ** Sending File n0."<<i<<" has failed, abandon **"<<Message_EndLine;
return checks;
}
AddSentFile (FileName(i).ToCString());
Interface_CheckIterator checks;
Standard_Integer i = 0;
Message::DefaultMessenger() <<
- "** WorkSession : Copying then sending split data"<<endl;
+ "** WorkSession : Copying then sending split data"<<Message_EndLine;
theshareout = eval.ShareOut();
theremain = new TColStd_HArray1OfInteger(0,G.Size()); theremain->Init(0);
for (eval.Evaluate(); eval.More(); eval.Next()) {
checks.Merge(checklst);
// (filename.ToCString(), model, protocol, curapp, checks);
// if (!checks.IsEmpty(Standard_False)) {
-// sout<<" ** On Sending File "<<filename<<", Check Messages : **"<<endl;
+// sout<<" ** On Sending File "<<filename<<", Check Messages : **"<<std::endl;
// checks.Print (sout,model,Standard_False);
// }
if (!res) {
char mess[100]; sprintf(mess,"Split Send (WriteFile) abandon on file n0.%d",i);
checks.CCheck(0)->AddFail (mess);
Message::DefaultMessenger() <<
- " ** Sending File "<<filename<<" has failed, abandon **"<<endl;
+ " ** Sending File "<<filename<<" has failed, abandon **"<<Message_EndLine;
checks.SetName ("X-STEP WorkSession : Split Send (only Write)");
return checks;
}
Interface_CheckIterator checks;
checks.SetName ("X-STEP WorkSession : Send All");
Message::DefaultMessenger() <<
- "** WorkSession : Sending all data"<<endl;
+ "** WorkSession : Sending all data"<<Message_EndLine;
Handle(Interface_InterfaceModel) model = G.Model();
if (model.IsNull() || protocol.IsNull() || WL.IsNull()) return checks;
if (!res) checks.CCheck(0)->AddFail ("SendAll (WriteFile) has failed");
// if (!checks.IsEmpty(Standard_False)) {
// Message::DefaultMessenger() <<
-// " ** SendAll has produced Check Messages : **"<<endl;
+// " ** SendAll has produced Check Messages : **"<<std::endl;
// checks.Print (sout,model,Standard_False);
// }
return checks;
Interface_CheckIterator checks;
checks.SetName ("X-STEP WorkSession : Send Selected");
Message::DefaultMessenger() <<
- "** WorkSession : Sending selected data"<<endl;
+ "** WorkSession : Sending selected data"<<Message_EndLine;
Handle(Interface_InterfaceModel) original = G.Model();
if (original.IsNull() || protocol.IsNull() || WL.IsNull()) return checks;
Handle(Interface_InterfaceModel) newmod = original->NewEmptyModel();
if (!res) checks.CCheck(0)->AddFail ("SendSelected (WriteFile) has failed");
// if (!checks.IsEmpty(Standard_False)) {
// Message::DefaultMessenger() <<
-// " ** SendSelected has produced Check Messages : **"<<endl;
+// " ** SendSelected has produced Check Messages : **"<<std::endl;
// checks.Print (sout,original,Standard_False);
// }
return checks;
// Faut-il enregistrer les erreurs dans newmod ? bonne question
// if (!checks.IsEmpty(Standard_False)) {
// Message::DefaultMessenger() <<
-// " Messages on Copied Model n0 "<<numod<<", Dispatch Rank "<<dispnum<<endl;
+// " Messages on Copied Model n0 "<<numod<<", Dispatch Rank "<<dispnum<<std::endl;
// checks.Print(sout,newmod,Standard_False);
// }
}
}
// qq impressions de mise au point
#ifdef MISOPOINT
- cout << " Remaining Model : " << newmod->NbEntities() << " Entities"<<endl;
+ std::cout << " Remaining Model : " << newmod->NbEntities() << " Entities"<<std::endl;
Standard_Integer ne = 0;
for (i = 1; i <= nb; i ++) {
if (theremain->Value(i) == 0) {
- if (ne == 0) cout << " Refractaires : ";
- ne ++; cout << " " << i;
+ if (ne == 0) std::cout << " Refractaires : ";
+ ne ++; std::cout << " " << i;
}
}
- if (ne > 0) cout << " -- " << ne << " Entities" << endl;
- else cout<<" -- Remaining data complete"<<endl;
+ if (ne > 0) std::cout << " -- " << ne << " Entities" << std::endl;
+ else std::cout<<" -- Remaining data complete"<<std::endl;
#endif
}
}
Handle(Message_Messenger) sout = Message::DefaultMessenger();
SplitLine (headerline);
- if (theline.Length() != 4) { sout<<"File Form Incorrect"<<endl; return Standard_False; }
+ if (theline.Length() != 4) { sout<<"File Form Incorrect"<<Message_EndLine; return Standard_False; }
Handle(Standard_Type) sesstype = thesess->DynamicType();
if (!theline.Value(1).IsEqual("!XSTEP") ||
!theline.Value(2).IsEqual("SESSION") ||
!theline.Value(4).IsEqual(sesstype->Name()) )
- { sout<<"Lineno."<<thenl<<" : File Header Description Incorrect"<<endl; return Standard_False; }
+ { sout<<"Lineno."<<thenl<<" : File Header Description Incorrect"<<Message_EndLine; return Standard_False; }
// Value(3) definit la VERSION du format de fichier
return Standard_True;
}
thenames.Clear();
// .. Donnees generales, controle
if (!ReadLine()) return 1;
- if (theline.Length() != 4) { sout<<"File Form Incorrect"<<endl; return 1; }
+ if (theline.Length() != 4) { sout<<"File Form Incorrect"<<Message_EndLine; return 1; }
Handle(Standard_Type) sesstype = thesess->DynamicType();
if (!theline.Value(1).IsEqual("!XSTEP") ||
!theline.Value(2).IsEqual("SESSION") ||
!theline.Value(4).IsEqual(sesstype->Name()) )
- { sout<<"Lineno."<<thenl<<" : File Header Description Incorrect"<<endl; return 1; }
+ { sout<<"Lineno."<<thenl<<" : File Header Description Incorrect"<<Message_EndLine; return 1; }
// Value(3) definit la VERSION du format de fichier
if (!ReadLine()) return 1;
if (ungen.Value(1) == '!') break; // fin des generaux
if (ungen.IsEqual("ErrorHandle")) {
if (theline.Length() != 2)
- { sout<<"Lineno."<<thenl<<" : ErrorHandle Description Incorrect"<<endl; continue; }
+ { sout<<"Lineno."<<thenl<<" : ErrorHandle Description Incorrect"<<Message_EndLine; continue; }
if (theline.Value(2).IsEqual("0"))
thesess->SetErrorHandle(Standard_False);
else if (theline.Value(2).IsEqual("1"))
thesess->SetErrorHandle(Standard_True);
- else { sout<<"Lineno."<<thenl<<" : ErrorHandle Incorrect : "<<theline.Value(2)<<endl; continue; }
+ else { sout<<"Lineno."<<thenl<<" : ErrorHandle Incorrect : "<<theline.Value(2)<<Message_EndLine; continue; }
continue;
}
- else sout<<"Lineno."<<thenl<<" : Unknown General Parameter : "<<ungen<<" , ignored"<<endl;
+ else sout<<"Lineno."<<thenl<<" : Unknown General Parameter : "<<ungen<<" , ignored"<<Message_EndLine;
}
// .. IntParams
if (!ReadLine()) return 1;
if (theline.Value(1).Value(1) == '!') break; // liste suivante
if (theline.Length() != 2)
- { sout<<"Lineno."<<thenl<<" : An Integer Parameter is badly defined"<<endl; continue; }
+ { sout<<"Lineno."<<thenl<<" : An Integer Parameter is badly defined"<<Message_EndLine; continue; }
Handle(IFSelect_IntParam) par = new IFSelect_IntParam;
par->SetValue ( atoi(theline.Value(2).ToCString()) );
AddItem (par);
if (!ReadLine()) return 1;
if (theline.Value(1).Value(1) == '!') break; // liste suivante
if (theline.Length() != 2)
- { sout<<"Lineno."<<thenl<<" : A Text Parameter is badly defined"<<endl; continue; }
+ { sout<<"Lineno."<<thenl<<" : A Text Parameter is badly defined"<<Message_EndLine; continue; }
// Attention, un texte peut contenir des blancs ... repartir de line(thenl)
TCollection_AsciiString oneline = thelist.Value(thenl);
Standard_Integer iw = 0, inc = 0;
if (!ReadLine()) return 1;
if (theline.Value(1).Value(1) == '!') break; // liste suivante
if (theline.Length() < 2)
- { sout<<"Lineno."<<thenl<<" : A Selection is badly defined"<<endl; continue; }
+ { sout<<"Lineno."<<thenl<<" : A Selection is badly defined"<<Message_EndLine; continue; }
// .. Analyse de certains cas generaux
Handle(IFSelect_IntParam) low,up;
Standard_Integer firstown = 3;
if (item.IsNull()) continue;
DeclareAndCast(IFSelect_SelectExtract,sxt,item);
if (!sxt.IsNull()) {
- if (direct == 0) sout<<"Lineno."<<thenl<<" : A SelectExtract is badly defined"<<endl;
+ if (direct == 0) sout<<"Lineno."<<thenl<<" : A SelectExtract is badly defined"<<Message_EndLine;
else sxt->SetDirect( (direct > 0) );
}
DeclareAndCast(IFSelect_SelectAnyList,sli,item);
if (!sli.IsNull()) {
- if (numlist == 0) sout<<"Lineno."<<thenl<<" : A SelectAnyList is badly defined"<<endl;
+ if (numlist == 0) sout<<"Lineno."<<thenl<<" : A SelectAnyList is badly defined"<<Message_EndLine;
else sli->SetRange(low,up);
}
AddItem(item);
if (!ReadLine()) return 1;
if (theline.Value(1).Value(1) == '!') break; // liste suivante
if (theline.Length() < 3)
- { sout<<"Lineno."<<thenl<<" : A Selection Source List is badly defined"<<endl; continue; }
+ { sout<<"Lineno."<<thenl<<" : A Selection Source List is badly defined"<<Message_EndLine; continue; }
DeclareAndCast(IFSelect_Selection,sel,ItemValue(1));
if (sel.IsNull())
- { sout<<"Lineno."<<thenl<<" : A Source List is not for a Selection"<<endl; continue; }
+ { sout<<"Lineno."<<thenl<<" : A Source List is not for a Selection"<<Message_EndLine; continue; }
Standard_Integer nbs = atoi(theline.Value(2).ToCString());
// .. Differents cas reconnus
DeclareAndCast(IFSelect_SelectExtract,sxt,sel);
if (!sxt.IsNull()) {
if (nbs > 1)
- sout<<"Lineno."<<thenl<<" : SelectExtract, more than one source, followings ignored"<<endl;
+ sout<<"Lineno."<<thenl<<" : SelectExtract, more than one source, followings ignored"<<Message_EndLine;
DeclareAndCast(IFSelect_Selection,source,ItemValue(3));
sxt->SetInput(source);
}
DeclareAndCast(IFSelect_SelectDeduct,sdt,sel);
if (!sdt.IsNull()) {
if (nbs > 1)
- sout<<"Lineno."<<thenl<<" : SelectDeduct, more than one source, followings ignored"<<endl;
+ sout<<"Lineno."<<thenl<<" : SelectDeduct, more than one source, followings ignored"<<Message_EndLine;
sdt->SetInput(GetCasted(IFSelect_Selection,ItemValue(3)));
}
DeclareAndCast(IFSelect_SelectControl,sct,sel);
if (!sct.IsNull()) {
if (nbs != 2)
- sout<<"Lineno."<<thenl<<" : SelectControl, not two sources, followings ignored"<<endl;
+ sout<<"Lineno."<<thenl<<" : SelectControl, not two sources, followings ignored"<<Message_EndLine;
sct->SetMainInput (GetCasted(IFSelect_Selection,ItemValue(3)));
sct->SetSecondInput (GetCasted(IFSelect_Selection,ItemValue(4)));
}
if (!ReadLine()) return 1;
if (theline.Value(1).Value(1) == '!') break; // liste suivante
if (theline.Length() < 2)
- { sout<<"Lineno."<<thenl<<" : A Modifier is badly defined"<<endl; continue; }
+ { sout<<"Lineno."<<thenl<<" : A Modifier is badly defined"<<Message_EndLine; continue; }
Handle(Standard_Transient) item; // a fournir ...
ReadOwn(item);
if (item.IsNull()) continue;
DeclareAndCast(IFSelect_GeneralModifier,modif,item);
if (modif.IsNull())
- { sout<<"Lineno."<<thenl<<" : A Modifier has not been Recognized"<<endl; continue; }
+ { sout<<"Lineno."<<thenl<<" : A Modifier has not been Recognized"<<Message_EndLine; continue; }
AddItem(modif,Standard_False); // active plus tard
}
if (!ReadLine()) return 1;
if (theline.Value(1).Value(1) == '!') break; // liste suivante
if (theline.Length() < 2)
- { sout<<"Lineno."<<thenl<<" : A Transformer is badly defined"<<endl; continue; }
+ { sout<<"Lineno."<<thenl<<" : A Transformer is badly defined"<<Message_EndLine; continue; }
Handle(Standard_Transient) item; // a fournir ...
ReadOwn(item);
if (item.IsNull()) continue;
DeclareAndCast(IFSelect_Transformer,trf,item);
if (trf.IsNull())
- { sout<<"Lineno."<<thenl<<" : A Transformer has not been Recognized"<<endl; continue; }
+ { sout<<"Lineno."<<thenl<<" : A Transformer has not been Recognized"<<Message_EndLine; continue; }
AddItem(trf,Standard_False); // active plus tard
}
if (!ReadLine()) return 1;
if (theline.Value(1).Value(1) == '!') break; // liste suivante
if (theline.Length() < 3)
- { sout<<"Lineno."<<thenl<<" : A Dispatch is badly defined"<<endl; continue; }
+ { sout<<"Lineno."<<thenl<<" : A Dispatch is badly defined"<<Message_EndLine; continue; }
DeclareAndCast(IFSelect_Selection,input,ItemValue(3));
SetLastGeneral(3);
Handle(Standard_Transient) item; // a fournir ...
if (item.IsNull()) continue;
DeclareAndCast(IFSelect_Dispatch,disp,item);
if (disp.IsNull())
- { sout<<"Lineno."<<thenl<<" : A Dispatch has not been Recognized"<<endl; continue; }
+ { sout<<"Lineno."<<thenl<<" : A Dispatch has not been Recognized"<<Message_EndLine; continue; }
AddItem(disp);
thesess->SetItemSelection(disp,input);
}
if (!ReadLine()) return 1;
if (theline.Value(1).Value(1) == '!') break; // liste suivante
if (theline.Length() != 2)
- { sout<<"Lineno."<<thenl<<" : A File Root is badly defined"<<endl; continue; }
+ { sout<<"Lineno."<<thenl<<" : A File Root is badly defined"<<Message_EndLine; continue; }
DeclareAndCast(IFSelect_Dispatch,disp,ItemValue(1));
thesess->SetFileRoot (disp,theline.Value(2).ToCString());
}
(formod == 0 && theline.Value(1).IsEqual("!FILEMODIFIERS")) ) );
// if ( formod == 1 && ( theline.Length() != 1 ||
// !theline.Value(1).IsEqual("!MODELMODIFIERS")) )
-// { sout<<"Lineno."<<thenl<<" : Model Modifier List Incorrect"<<endl; return 1; }
+// { sout<<"Lineno."<<thenl<<" : Model Modifier List Incorrect"<<std::endl; return 1; }
// if ( formod == 0 && ( theline.Length() != 1 ||
// !theline.Value(1).IsEqual("!FILEMODIFIERS")) )
-// { sout<<"Lineno."<<thenl<<" : File Modifier List Incorrect"<<endl; return 1; }
+// { sout<<"Lineno."<<thenl<<" : File Modifier List Incorrect"<<std::endl; return 1; }
while (rubr) {
if (!ReadLine()) return 1;
if (theline.Value(1).Value(1) == '!') break; // liste suivante
if (theline.Length() < 3)
- { sout<<"Lineno."<<thenl<<" : A General Modifier is badly defined"<<endl; continue; }
+ { sout<<"Lineno."<<thenl<<" : A General Modifier is badly defined"<<Message_EndLine; continue; }
DeclareAndCast(IFSelect_GeneralModifier,modif,ItemValue(1));
DeclareAndCast(IFSelect_Selection,input,ItemValue(2));
DeclareAndCast(IFSelect_Dispatch,disp,ItemValue(3));
if (modif.IsNull())
- { sout<<"Lineno."<<thenl<<" : A General Modifier has not been Recognized"<<endl; continue; }
+ { sout<<"Lineno."<<thenl<<" : A General Modifier has not been Recognized"<<Message_EndLine; continue; }
thesess->SetItemSelection (modif,input);
if (!disp.IsNull()) thesess->SetAppliedModifier (modif,disp);
else thesess->SetAppliedModifier (modif,thesess->ShareOut());
if ( theline.Length() != 2 ||
!theline.Value(1).IsEqual("!XSTEP") ||
!theline.Value(2).IsEqual("END"))
- { sout<<"End of File Incorrect, lineno"<<thenl<<endl; return 1; }
+ { sout<<"End of File Incorrect, lineno"<<thenl<<Message_EndLine; return 1; }
return 0;
}
if (dumper->ReadOwn(*this,type,item)) break;
dumper = dumper->Next();
}
- if (dumper.IsNull()) sout<<" -- Lineno."<<thenl<<" : an Item could not be read"<<endl;
+ if (dumper.IsNull()) sout<<" -- Lineno."<<thenl<<" : an Item could not be read"<<Message_EndLine;
return (!dumper.IsNull()); // IsNull -> echec
}
else id = thesess->AddNamedItem(name.ToCString(),item,active);
}
else sout<<"Lineno."<<thenl<<" -- Name : "<<name
- <<" : Item could not be defined" << endl;
+ <<" : Item could not be defined" << Message_EndLine;
thenames.Bind(name,id);
}
if (id != 0) filenum = thenums->Value(id);
if (filenum == 0) {
if (!par.IsNull()) sout << "Lineno " << thenl << " -- Unknown Item : "
- << " Type:" << par->DynamicType()->Name() << endl; //sout<<Handle par
+ << " Type:" << par->DynamicType()->Name() << Message_EndLine; //sout<<Handle par
SendVoid();
thedone = Standard_False;
return;
if (name.IsEqual("$")) return res; // item non-defini justement
if (!thenames.Find(name, id)) {
sout << " -- Item Unknown in File : " << name
- << " lineno " << thenl << " param." << nm << endl;
+ << " lineno " << thenl << " param." << nm << Message_EndLine;
id = 0;
}
return thesess->Item(id);
(const TCollection_AsciiString& command)
{
Standard_Integer lc = command.Length();
- if (lc > 200) cout<<" Commande TRES LONGUE : "<<lc<<" caracteres :"<<endl
- <<command.ToCString()<<endl;
+ if (lc > 200) std::cout<<" Commande TRES LONGUE : "<<lc<<" caracteres :"<<std::endl
+ <<command.ToCString()<<std::endl;
thecommand = command;
if (thecommand.Value(lc) <= ' ') { thecommand.Remove(lc); lc --; }
thenbwords = 0;
unarg[nc] = '\0';
thewords(thenbwords).Clear(); thewords(thenbwords).AssignCat(unarg);
#ifdef DEBUG_TRACE
- cout<<"thewords("<<thenbwords<<") ="<<unarg<<endl;
+ std::cout<<"thewords("<<thenbwords<<") ="<<unarg<<std::endl;
#endif
thenbwords ++; nc = 0;
continue;
}
if (nc == 0) thewordeb.SetValue (thenbwords,i);
- if (nc > MAXCARS) { cout<<"Arg."<<thenbwords<<" > "<<MAXCARS<<" car.s, tronque"<<endl; continue; }
+ if (nc > MAXCARS) { std::cout<<"Arg."<<thenbwords<<" > "<<MAXCARS<<" car.s, tronque"<<std::endl; continue; }
unarg[nc] = val; nc ++;
}
if (nc > 0) {
unarg[nc] = '\0'; thewords(thenbwords).Clear();
thewords(thenbwords).AssignCat(unarg);
#ifdef DEBUG_TRACE
- cout<<"thewords("<<thenbwords<<")="<<unarg<<endl<<" .. Fin avec thenbwords="<<thenbwords+1<<endl;
+ std::cout<<"thewords("<<thenbwords<<")="<<unarg<<std::endl<<" .. Fin avec thenbwords="<<thenbwords+1<<std::endl;
#endif
thenbwords ++;
}
if (file != NULL && file[0] != '\0') {
fic = OSD_OpenFile (file,"r");
if (fic) lefic = 1;
- else { cout<<" ... Script File "<<file<<" not found"<<endl; return IFSelect_RetFail; }
- cout << " ... Reading Script File " << file << endl;
+ else { std::cout<<" ... Script File "<<file<<" not found"<<std::endl; return IFSelect_RetFail; }
+ std::cout << " ... Reading Script File " << file << std::endl;
}
else fic = stdin;
IFSelect_ReturnStatus stat = IFSelect_RetVoid;
if (ligne[0] == '\0') continue;
// On interprete cette commande
TCollection_AsciiString command(ligne);
- if (lefic) cout<<file<<":"<<command; // le return est dans la ligne ... !
+ if (lefic) std::cout<<file<<":"<<command; // le return est dans la ligne ... !
stat = Execute(command);
if (stat == IFSelect_RetStop) break;
if ((stat == IFSelect_RetError || stat == IFSelect_RetFail) && lefic)
- { cout << " ... Error in Script File, abandon"<<endl; break; }
+ { std::cout << " ... Error in Script File, abandon"<<std::endl; break; }
}
if (!lefic) return IFSelect_RetStop;
fclose(fic);
- cout<<"End of Reading Script File " << file << endl;
+ std::cout<<"End of Reading Script File " << file << std::endl;
if (stat == IFSelect_RetError || stat == IFSelect_RetFail) return stat;
return IFSelect_RetVoid; // fin fichier : depiler
}
if (!theobjrec.IsNull()) {
thesession->RemoveItem(theobjrec); //// depannage ?
Standard_Integer addws = thesession->AddItem(theobjrec);
- if (addws == 0) { cout<<"Could not add item to session, sorry"<<endl; return IFSelect_RetFail; }
+ if (addws == 0) { std::cout<<"Could not add item to session, sorry"<<std::endl; return IFSelect_RetFail; }
}
if (stat == IFSelect_RetVoid || stat == IFSelect_RetDone) {
if (therecord) thecomlist.Append(thecommand);
}
- else if (stat == IFSelect_RetError) cout<<"Error in Command : "<<thecommand<<endl;
- else if (stat == IFSelect_RetFail) cout << "Execution Failure for : " <<thecommand<<endl;
+ else if (stat == IFSelect_RetError) std::cout<<"Error in Command : "<<thecommand<<std::endl;
+ else if (stat == IFSelect_RetFail) std::cout << "Execution Failure for : " <<thecommand<<std::endl;
return stat;
}
- cout << " Command : " << thewords(0) << " unknown" << endl;
+ std::cout << " Command : " << thewords(0) << " unknown" << std::endl;
return IFSelect_RetError; // pas reconnu donc incorrect
}
// on demande un givelist
Handle(TColStd_HSequenceOfTransient) list = thesession->GiveList (CommandPart(numword));
if (list.IsNull()) {
- cout<<"Nothing selected from : "<<CommandPart(numword)<<endl;
+ std::cout<<"Nothing selected from : "<<CommandPart(numword)<<std::endl;
return IFSelect_RetError;
}
counter->AddWithGraph (list,thesession->Graph());
(const Standard_CString val) const
{
Standard_Integer num = thesession->NumberFromLabel (val);
- if (num < 0) cout<<" Label:"<<val<<" ->"<<-num<<" ent.s, refus"<<endl;
+ if (num < 0) std::cout<<" Label:"<<val<<" ->"<<-num<<" ent.s, refus"<<std::endl;
return num;
}
switch (number) {
case -1 : // **** HELP-XSNEW
modhelp = 1;
- cout<<" -- Commands candidate for xsnew --"<<endl;
+ std::cout<<" -- Commands candidate for xsnew --"<<std::endl;
// HELP : soit complet (par defaut) soit limite a xsnew
Standard_FALLTHROUGH
case 0 : { // **** HELP
list = IFSelect_Activator::Commands(modhelp);
Standard_Integer nbcom = 0;
Standard_Integer nb = list->Length();
- cout << " -- Liste des Commands Disponibles --"<<endl;
+ std::cout << " -- Liste des Commands Disponibles --"<<std::endl;
for (Standard_Integer i = 1; i <= nb; i ++) {
const TCollection_AsciiString& uncom = list->Value(i);
Standard_Integer loncom = uncom.Length();
nbcom ++;
- if (nbcom > MAXCOMPERLINE) { cout<<endl; nbcom = 1; }
- cout<<" "<<uncom;
+ if (nbcom > MAXCOMPERLINE) { std::cout<<std::endl; nbcom = 1; }
+ std::cout<<" "<<uncom;
if (nbcom == MAXCOMPERLINE) continue;
- for (Standard_Integer j = loncom; j < LENGTHFORCOM; j ++) cout<<" ";
+ for (Standard_Integer j = loncom; j < LENGTHFORCOM; j ++) std::cout<<" ";
}
- if (nbcom > 0) cout<<endl;
- cout<<"\nhelp * liste toutes les commandes avec un help sur chacune\n"
+ if (nbcom > 0) std::cout<<std::endl;
+ std::cout<<"\nhelp * liste toutes les commandes avec un help sur chacune\n"
<<"help <com> liste la ou les commande debutant par <com>"
- <<" avec un help sur chacune"<<endl;
+ <<" avec un help sur chacune"<<std::endl;
// Un Help particulier
} else {
if (IFSelect_Activator::Select
(list->Value(i).ToCString(),num,actor)) {
if (IFSelect_Activator::Mode (list->Value(i).ToCString()) == 1)
- cout<<"[xsnew name] ";
- cout << list->Value(i) << " : " << actor->Help(num) << endl;
+ std::cout<<"[xsnew name] ";
+ std::cout << list->Value(i) << " : " << actor->Help(num) << std::endl;
}
}
- if (nb == 0 && thenbwords > 1) cout<<" Command "<<Word(1)<<" unknown. "
- << " help (without command) lists all the commands" << endl;
+ if (nb == 0 && thenbwords > 1) std::cout<<" Command "<<Word(1)<<" unknown. "
+ << " help (without command) lists all the commands" << std::endl;
}
return IFSelect_RetVoid;
}
return Do(0,this);
}
case 3 : { // **** COMMAND
- if (argc < 2) { cout << "Donner une option :\n"
+ if (argc < 2) { std::cout << "Donner une option :\n"
<<"a : analyse une ligne r : toggle record mode\n"
<<"l : list recorded c : clear f nom : sauver dans fichier de nom"
- << endl; return IFSelect_RetVoid; }
+ << std::endl; return IFSelect_RetVoid; }
switch (arg1[0]) {
case 'a' : { // **** command analyse
- cout<<"Command n0 " << number <<" : "<< session->CommandLine()<<endl;
- cout<<"Nb Words : " << argc-2 << " :\n";
+ std::cout<<"Command n0 " << number <<" : "<< session->CommandLine()<<std::endl;
+ std::cout<<"Nb Words : " << argc-2 << " :\n";
for (Standard_Integer i = 2; i < argc; i ++) {
- cout << " Word." << i-1 << " : " << session->Word(i) <<endl;
+ std::cout << " Word." << i-1 << " : " << session->Word(i) <<std::endl;
}
break;
}
case 'c' : session->Clear(); break; // **** command clear
case 'f' : {
- if (argc < 3) { cout<<"Donner nom de fichier"<<endl; return IFSelect_RetError; }
+ if (argc < 3) { std::cout<<"Donner nom de fichier"<<std::endl; return IFSelect_RetError; }
Standard_Integer nb = session->NbCommands();
- if (nb == 0) { cout<<"Aucune commande enregistree"<<endl; break; }
- cout << "Nb Commandes enregistrees : " << nb <<endl;
- ofstream fout(Word(2).ToCString(),ios::out);
+ if (nb == 0) { std::cout<<"Aucune commande enregistree"<<std::endl; break; }
+ std::cout << "Nb Commandes enregistrees : " << nb <<std::endl;
+ std::ofstream fout(Word(2).ToCString(),std::ios::out);
for (Standard_Integer i = 1; i <= nb; i ++)
- fout<<session->Command(i)<<endl;
+ fout<<session->Command(i)<<std::endl;
break;
}
case 'l' : { // **** command list
- if (session->RecordMode()) cout<<" -- Record Mode Actif"<<endl;
- else cout<<" -- Record Mode Inactif"<<endl;
+ if (session->RecordMode()) std::cout<<" -- Record Mode Actif"<<std::endl;
+ else std::cout<<" -- Record Mode Inactif"<<std::endl;
Standard_Integer nb = session->NbCommands();
- cout << "Nb Commandes enregistrees : " << nb << " :"<<endl;
+ std::cout << "Nb Commandes enregistrees : " << nb << " :"<<std::endl;
for (Standard_Integer i = 1; i <= nb; i ++) {
- cout<<" "<<i<<" "<<session->Command(i)<<endl;
+ std::cout<<" "<<i<<" "<<session->Command(i)<<std::endl;
}
break;
}
case 'r' : { // **** command record
Standard_Boolean mode = session->RecordMode();
- if (mode) cout << " -- Record Mode a present Inactif" <<endl;
- else cout << " -- Record Mode a present Actif" <<endl;
+ if (mode) std::cout << " -- Record Mode a present Inactif" <<std::endl;
+ else std::cout << " -- Record Mode a present Actif" <<std::endl;
session->SetRecordMode(!mode);
break;
}
- default : cout << "Option de controle de commande non comprise"<<endl;
+ default : std::cout << "Option de controle de commande non comprise"<<std::endl;
}
return IFSelect_RetVoid;
}
case 4 : { // **** FILE
- if (argc < 2) { cout<<"Donner nom de fichier"<<endl; return IFSelect_RetError; }
+ if (argc < 2) { std::cout<<"Donner nom de fichier"<<std::endl; return IFSelect_RetError; }
return session->ReadScript
(TCollection_AsciiString(session->Word(1)).ToCString());
// On recopie la string parce que Word(1) change tout le temps !
case 5 : { // **** XSTEP
if (argc < 2) {
- cout<<"xstep : prefixe neutre pour toute commande xstep-draw"<<endl
- <<"xstep command args equivaut a command args"<<endl;
+ std::cout<<"xstep : prefixe neutre pour toute commande xstep-draw"<<std::endl
+ <<"xstep command args equivaut a command args"<<std::endl;
return Do(2,this);
} else {
RemoveWord(0);
}
case 6 : { // **** XSNEW(variable)
if (argc < 3) {
- cout<<"xsnew nomvar command [args] creates an item"<<endl
- <<" nomvar : name of item (must be a new name) in the session"<<endl;
+ std::cout<<"xsnew nomvar command [args] creates an item"<<std::endl
+ <<" nomvar : name of item (must be a new name) in the session"<<std::endl;
return Do (-1,this);
} else {
theobjrec.Nullify();
TCollection_AsciiString name = Word(1);
// Le nom ne doit pas etre deja pris !
- if (thesession.IsNull()) { cout<<"Command with a Name and no Session defined !"<<endl; return IFSelect_RetFail; }
+ if (thesession.IsNull()) { std::cout<<"Command with a Name and no Session defined !"<<std::endl; return IFSelect_RetFail; }
////// if (thesession->NameIdent(thewords(0).ToCString()) > 0)
-////// { cout<<"Command with name:"<<thewords(0)<<", already taken"<<endl; return IFSelect_RetFail; }
+////// { std::cout<<"Command with name:"<<thewords(0)<<", already taken"<<std::endl; return IFSelect_RetFail; }
RemoveWord(0); RemoveWord(0);
// Commande pour un Acteur
Standard_Integer addws =
thesession->AddNamedItem(name.ToCString(),theobjrec);
theobjrec.Nullify();
- if (addws == 0) { cout<<"Could not add named item:"<<name<<", sorry"<<endl; return IFSelect_RetFail; }
+ if (addws == 0) { std::cout<<"Could not add named item:"<<name<<", sorry"<<std::endl; return IFSelect_RetFail; }
}
- else cout<<"Remark : xsnew with name:"<<name<<" and no result"<<endl;
+ else std::cout<<"Remark : xsnew with name:"<<name<<" and no result"<<std::endl;
return stat;
}
- cout << " Command : " << thewords(0) << " unknown" << endl;
+ std::cout << " Command : " << thewords(0) << " unknown" << std::endl;
return IFSelect_RetError; // pas reconnu donc incorrect
}
}
else {
thenbindisp = 0;
#if !defined No_Exception
-// cout<<" ** ** IFSelect_ShareOutResult::Next, void dispatch ignored"<<endl;
+// std::cout<<" ** ** IFSelect_ShareOutResult::Next, void dispatch ignored"<<std::endl;
#endif
return;
}
{
Standard_Integer nbtot = 0, nbsign = 0;
NCollection_IndexedDataMap<TCollection_AsciiString, Standard_Integer>::Iterator iter(thedicount);
- S << " Count "<<thename->ToCString()<<"\n ----- -----------"<<endl;
+ S << " Count "<<thename->ToCString()<<"\n ----- -----------"<<Message_EndLine;
for (; iter.More(); iter.Next()) {
Standard_Integer val = iter.Value();
- S << Interface_MSG::Blanks(val,6) << val <<" "<<iter.Key()<<endl;
+ S << Interface_MSG::Blanks(val,6) << val <<" "<<iter.Key()<<Message_EndLine;
nbtot += val;
nbsign ++;
}
- if (thenbnuls > 0) S << thename->ToCString()<< " Nul : " << thenbnuls<<endl;
- S<<" Nb Total:"<<nbtot<<" for "<<nbsign<<" items"<<endl;
+ if (thenbnuls > 0) S << thename->ToCString()<< " Nul : " << thenbnuls<<Message_EndLine;
+ S<<" Nb Total:"<<nbtot<<" for "<<nbsign<<" items"<<Message_EndLine;
}
void IFSelect_SignatureList::PrintList
if (mod == IFSelect_CountByItem) { PrintCount (S); return; }
if (mod == IFSelect_CountSummary) { PrintSum (S); return; }
if (!HasEntities()) {
- S <<" SignatureList "<<Name()<<" : PrintList, list not available"<<endl;
+ S <<" SignatureList "<<Name()<<" : PrintList, list not available"<<Message_EndLine;
PrintCount(S);
return;
}
NCollection_IndexedDataMap<TCollection_AsciiString, Handle(Standard_Transient)>::Iterator iter(thediclist);
for (; iter.More(); iter.Next()) {
DeclareAndCast(TColStd_HSequenceOfTransient,list,iter.Value());
- S<<Name()<<" : "<<iter.Key()<<endl;
- if (list.IsNull()) { S<<" - (empty list)"<<endl; continue; }
+ S<<Name()<<" : "<<iter.Key()<<Message_EndLine;
+ if (list.IsNull()) { S<<" - (empty list)"<<Message_EndLine; continue; }
Standard_Integer nb = list->Length();
S<<" - Nb: "<<nb<<" : ";
Standard_Integer nc = nb; if (nb > 5 && mod == IFSelect_ShortByItem) nc = 5;
{ S<<":"; model->PrintLabel(list->Value(i),S); }
}
if (nc < nb) S<<" .. etc";
- S<<endl;
+ S<<Message_EndLine;
nbtot += nb;
nbsign ++;
}
- S<<" Nb Total:"<<nbtot<<" for "<<nbsign<<" items"<<endl;
+ S<<" Nb Total:"<<nbtot<<" for "<<nbsign<<" items"<<Message_EndLine;
}
void IFSelect_SignatureList::PrintSum (const Handle(Message_Messenger)& S) const
{
NCollection_IndexedDataMap<TCollection_AsciiString, Standard_Integer>::Iterator iter(thedicount);
- S << " Summary "<<thename->ToCString()<<"\n ----- -----------"<<endl;
+ S << " Summary "<<thename->ToCString()<<"\n ----- -----------"<<Message_EndLine;
Standard_Integer nbtot = 0, nbsign = 0, maxent = 0, nbval = 0, nbve = 0, minval = 0, maxval = 0, totval = 0;
for (; iter.More(); iter.Next()) {
Standard_Integer nbent = iter.Value();
nbve += nbent;
totval += (val*nbent);
}
- S << " Nb Total:"<<nbtot<<" for "<<nbsign<<" items"<<endl;
- S << " Highest count of entities : "<<maxent<<" on one item"<<endl;
+ S << " Nb Total:"<<nbtot<<" for "<<nbsign<<" items"<<Message_EndLine;
+ S << " Highest count of entities : "<<maxent<<" on one item"<<Message_EndLine;
if (nbval > 0) {
- S<<" Summary on Integer Values"<<endl;
- S<<" Nb Integer Items : "<<nbval<<endl;
- S<<" For Nb Entities : "<<nbve<<endl;
- S<<" Cumulated Values : "<<totval<<endl;
- S<<" Maximum Value : "<<maxval<<endl;
+ S<<" Summary on Integer Values"<<Message_EndLine;
+ S<<" Nb Integer Items : "<<nbval<<Message_EndLine;
+ S<<" For Nb Entities : "<<nbve<<Message_EndLine;
+ S<<" Cumulated Values : "<<totval<<Message_EndLine;
+ S<<" Maximum Value : "<<maxval<<Message_EndLine;
Standard_Integer avg1, avg2;
avg1 = totval/nbve;
avg2 = ((totval - (avg1*nbve)) * 10) / nbve;
- S<<" Average Value : "<<avg1<<" "<<avg2<<"/10"<<endl;
- S<<" Minimum Value : "<<minval<<endl;
+ S<<" Average Value : "<<avg1<<" "<<avg2<<"/10"<<Message_EndLine;
+ S<<" Minimum Value : "<<minval<<Message_EndLine;
}
}
Interface_CheckIterator checklist = ctx.CheckList();
if (!checklist.IsEmpty(Standard_False)) {
checks.Merge(checklist);
- sout<<"IFSelect_TransformStandard : Messages from Modifier n0 "<<i<<" of "<<nb<<endl;
+ sout<<"IFSelect_TransformStandard : Messages from Modifier n0 "<<i<<" of "<<nb<<Message_EndLine;
checklist.Print(sout,newmod,Standard_False);
}
if (!checklist.IsEmpty(Standard_True)) {
- sout<<" -- Abandon TransformStandard --"<<endl;
+ sout<<" -- Abandon TransformStandard --"<<Message_EndLine;
res = Standard_False; break;
}
}
Handle(Message_Messenger) sout = Message::DefaultMessenger();
sout<<" **** Interruption ReadFile par Exception : ****\n";
sout << anException.GetMessageString();
- sout<<"\n Abandon"<<endl;
+ sout<<"\n Abandon"<<Message_EndLine;
status = IFSelect_RetFail;
}
if (status != IFSelect_RetDone) return status;
Handle(Message_Messenger) sout = Message::DefaultMessenger();
sout<<" **** Interruption EvalSelection par Exception : ****\n";
sout<<anException.GetMessageString();
- sout<<"\n Abandon"<<endl;
+ sout<<"\n Abandon"<<Message_EndLine;
}
errhand = theerrhand;
return iter;
Handle(Message_Messenger) sout = Message::DefaultMessenger();
sout<<" **** Interruption SelectionResult par Exception : ****\n";
sout<<anException.GetMessageString();
- sout<<"\n Abandon"<<endl;
+ sout<<"\n Abandon"<<Message_EndLine;
}
errhand = theerrhand;
return res;
}
if (!IsLoaded()) {
- cout<< " *** Data for Evaluation not available ***"<<endl;
+ std::cout<< " *** Data for Evaluation not available ***"<<std::endl;
return new TColStd_HSequenceOfTransient();
}
// if (ItemIdent(sel) == 0)
if (sel.IsNull())
- { cout << " Selection : Unknown"<<endl; return res; } //cout<<Handle
+ { std::cout << " Selection : Unknown"<<std::endl; return res; } //std::cout<<Handle
return EvalSelection (sel).Content();
}
if (!checks.IsEmpty(Standard_False)) {
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- sout<<" ** RunTransformer has produced Check Messages : **"<<endl;
+ sout<<" ** RunTransformer has produced Check Messages : **"<<Message_EndLine;
checks.Print (sout,myModel,Standard_False);
}
thecheckdone = Standard_False;
Handle(Message_Messenger) sout = Message::DefaultMessenger();
sout<<" **** Interruption EvaluateFile par Exception : ****\n";
sout<<anException.GetMessageString();
- sout<<"\n Abandon"<<endl;
+ sout<<"\n Abandon"<<Message_EndLine;
checks.CCheck(0)->AddFail ("Exception Raised -> Abandon");
}
errhand = theerrhand;
checks = thecopier->Copy (R,thelibrary,theprotocol);
if (!checks.IsEmpty(Standard_False)) {
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- sout<<" ** EvaluateFile has produced Check Messages : **"<<endl;
+ sout<<" ** EvaluateFile has produced Check Messages : **"<<Message_EndLine;
checks.Print (sout,myModel,Standard_False);
}
thecopier->SetRemaining (thegraph->CGraph());
Handle(Message_Messenger) sout = Message::DefaultMessenger();
sout<<" **** Interruption SendSplit par Exception : ****\n";
sout<<anException.GetMessageString();
- sout<<"\n Abandon"<<endl;
+ sout<<"\n Abandon"<<Message_EndLine;
checks.CCheck(0)->AddFail ("Exception Raised -> Abandon");
}
errhand = theerrhand;
}
if (!IsLoaded()) {
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- sout<< " *** Data for SendSplit not available ***"<<endl;
+ sout<< " *** Data for SendSplit not available ***"<<Message_EndLine;
checks.CCheck(0)->AddFail("Data not available");
thecheckrun = checks;
return Standard_False;
filepart = FileExtension();
if (!filepart.IsNull()) filnam.AssignCat (filepart->ToCString());
IFSelect_ReturnStatus stat = SendSelected (filnam.ToCString(),sp);
- if (stat != IFSelect_RetDone) cout<<"File "<<filnam<<" failed"<<endl;
+ if (stat != IFSelect_RetDone) std::cout<<"File "<<filnam<<" failed"<<std::endl;
}
}
- sout<<" .. Files Written : "<<nf<<endl;
+ sout<<" .. Files Written : "<<nf<<Message_EndLine;
}
thecheckrun = checks;
return Standard_True;
Interface_CopyTool TC(myModel,theprotocol);
thecopier->CopiedRemaining (thegraph->Graph(),thelibrary,TC,newmod);
if (newmod.IsNull()) {
- sout<<" No Remaining Data recorded"<<endl; return Standard_False;
+ sout<<" No Remaining Data recorded"<<Message_EndLine; return Standard_False;
} else if (newmod == myModel) {
- sout<<" Remaining causes all original data to be kept"<<endl;
+ sout<<" Remaining causes all original data to be kept"<<Message_EndLine;
thecopier->SetRemaining (thegraph->CGraph());
return Standard_False;
} else {
for (Standard_Integer i = 1; i <= nb; i ++)
{ if (thegraph->Graph().Status(i) >= 0) ne ++; }
if (ne == 0) {
- sout<<" - All entities are remaining, none yet sent"<<endl; return Standard_True;
+ sout<<" - All entities are remaining, none yet sent"<<Message_EndLine; return Standard_True;
}
Interface_EntityIterator iter = SentList(0);
nb = iter.NbEntities();
if (nb == 0) {
- sout<<" - No recorded remaining entities"<<endl; return Standard_True;
+ sout<<" - No recorded remaining entities"<<Message_EndLine; return Standard_True;
}
- sout <<" -- Recorded Remaining (not yet sent) Entities --"<<endl;
+ sout <<" -- Recorded Remaining (not yet sent) Entities --"<<Message_EndLine;
ListEntities(iter,2);
sout << " -- Maximum Sending Count (i.e. duplication in files) "<<
- MaxSendingCount() << endl;
+ MaxSendingCount() << Message_EndLine;
/*
- sout<< " - Now, dispatches are deactivated"<<endl;
+ sout<< " - Now, dispatches are deactivated"<<std::endl;
nb = theshareout->NbDispatches();
for (Standard_Integer i = nb; i > theshareout->LastRun(); i --)
theshareout->RemoveDispatch(i);
Handle(Message_Messenger) sout = Message::DefaultMessenger();
sout<<" **** Interruption SendAll par Exception : ****\n";
sout<<anException.GetMessageString();
- sout<<"\n Abandon"<<endl;
+ sout<<"\n Abandon"<<Message_EndLine;
errhand = theerrhand;
checks.CCheck(0)->AddFail ("Exception Raised -> Abandon");
thecheckrun = checks;
Handle(Message_Messenger) sout = Message::DefaultMessenger();
sout<<" **** Interruption SendSelected par Exception : ****\n";
sout<<anException.GetMessageString();
- sout<<"\n Abandon"<<endl;
+ sout<<"\n Abandon"<<Message_EndLine;
checks.CCheck(0)->AddFail ("Exception Raised -> Abandon");
errhand = theerrhand;
thecheckrun = checks;
{
Handle(Message_Messenger) sout = Message::DefaultMessenger();
if (use > 0) {
- if (mode == 0) sout<<"******************************************"<<endl;
+ if (mode == 0) sout<<"******************************************"<<Message_EndLine;
if (use == 1) {
- if (mode == 0) sout<<"***** General Parameters *****"<<endl;
+ if (mode == 0) sout<<"***** General Parameters *****"<<Message_EndLine;
} else if (use == 2) {
- if (mode == 0) sout<<"***** Load File *****"<<endl;
+ if (mode == 0) sout<<"***** Load File *****"<<Message_EndLine;
} else if (use == 3) {
- if (mode == 0) sout<<"***** Write File *****"<<endl;
+ if (mode == 0) sout<<"***** Write File *****"<<Message_EndLine;
} else if (use == 4) {
- if (mode == 0) sout<<"***** Split File *****"<<endl;
+ if (mode == 0) sout<<"***** Split File *****"<<Message_EndLine;
} else if (use == 5) {
- if (mode == 0) sout<<"***** Transfer (Read) *****"<<endl;
+ if (mode == 0) sout<<"***** Transfer (Read) *****"<<Message_EndLine;
} else if (use == 6) {
- if (mode == 0) sout<<"***** Transfer (Write) *****"<<endl;
+ if (mode == 0) sout<<"***** Transfer (Write) *****"<<Message_EndLine;
}
- if (mode == 0) sout<<"******************************************"<<endl<<endl;
+ if (mode == 0) sout<<"******************************************"<<Message_EndLine<<Message_EndLine;
}
// Echainements particuliers (use > 0)
if (use == 5) {
TraceStatics (-2,mode);
- if (mode == 0) sout<<endl;
+ if (mode == 0) sout<<Message_EndLine;
} else if (use == 4 || use == 6) {
TraceStatics (-3,mode);
- if (mode == 0) sout<<endl;
+ if (mode == 0) sout<<Message_EndLine;
}
// Valeurs particulieres
if (use == 1 || use == -1) { // General : trace
if (mode == 0) {
-// sout << "Trace Level : "<<Message_PrinterOStream::Default()->GetTraceLevel()<<endl;
+// sout << "Trace Level : "<<Message_PrinterOStream::Default()->GetTraceLevel()<<std::endl;
}
} else if (use == 4 || use == -4) { // Split : Prefix & cie
if (mode == 0) {
Handle(TCollection_HAsciiString) str = theshareout->Prefix();
- if (!str.IsNull()) sout << "Prefix : "<<str->ToCString()<<endl;
- else sout << "Prefix not Defined" << endl;
+ if (!str.IsNull()) sout << "Prefix : "<<str->ToCString()<<Message_EndLine;
+ else sout << "Prefix not Defined" << Message_EndLine;
str = theshareout->DefaultRootName();
- if (!str.IsNull()) sout << "Default Root : "<<str->ToCString()<<endl;
- else sout << "Default Root not Defined" << endl;
+ if (!str.IsNull()) sout << "Default Root : "<<str->ToCString()<<Message_EndLine;
+ else sout << "Default Root not Defined" << Message_EndLine;
str = theshareout->Extension();
- if (!str.IsNull()) sout << "Extension : "<<str->ToCString()<<endl;
- else sout << "Extension not defined" << endl;
+ if (!str.IsNull()) sout << "Extension : "<<str->ToCString()<<Message_EndLine;
+ else sout << "Extension not defined" << Message_EndLine;
}
}
// Fin
if (use > 0) {
- if (mode == 0) sout<<"******************************************"<<endl<<endl;
+ if (mode == 0) sout<<"******************************************"<<Message_EndLine<<Message_EndLine;
}
}
void IFSelect_WorkSession::DumpShare () const
{
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- sout<<" ********** Definition ShareOut (Complete) **********"<<endl;
+ sout<<" ********** Definition ShareOut (Complete) **********"<<Message_EndLine;
Handle(TCollection_HAsciiString) str = theshareout->Prefix();
- if (!str.IsNull()) sout << "Prefix : " << str->ToCString() << endl;
- else sout << "Prefix not Defined" << endl;
+ if (!str.IsNull()) sout << "Prefix : " << str->ToCString() << Message_EndLine;
+ else sout << "Prefix not Defined" << Message_EndLine;
str = theshareout->DefaultRootName();
- if (!str.IsNull()) sout << "Default Root : " << str->ToCString() << endl;
- else sout << "Default Root not Defined" << endl;
+ if (!str.IsNull()) sout << "Default Root : " << str->ToCString() << Message_EndLine;
+ else sout << "Default Root not Defined" << Message_EndLine;
str = theshareout->Extension();
- if (!str.IsNull()) sout << "Extension : " << str->ToCString() << endl;
- else sout << "Extension not defined" << endl;
+ if (!str.IsNull()) sout << "Extension : " << str->ToCString() << Message_EndLine;
+ else sout << "Extension not defined" << Message_EndLine;
Standard_Integer lr = theshareout->LastRun();
Standard_Integer nb = theshareout->NbDispatches();
- sout << "Nb Dispatches : " << nb <<" (Last Run : " << lr << ") : "<<endl;
+ sout << "Nb Dispatches : " << nb <<" (Last Run : " << lr << ") : "<<Message_EndLine;
for (Standard_Integer i = 1; i <= nb; i ++) {
Handle(IFSelect_Dispatch) disp = theshareout->Dispatch(i);
sout << "Dispatch n0 " << i;
if (HasName(disp)) sout << " Name:"<< Name(disp)->ToCString();
- sout << " Label:" << disp->Label() << endl;
+ sout << " Label:" << disp->Label() << Message_EndLine;
Handle(IFSelect_Selection) sel = disp->FinalSelection();
- if (sel.IsNull()) sout << " No Final Selection Defined" << endl;
+ if (sel.IsNull()) sout << " No Final Selection Defined" << Message_EndLine;
else if (HasName(sel)) sout << " Final Selection : Name:"
- << Name(sel)->ToCString() << " Label:" << sel->Label() << endl;
- else sout << " Final Selection : " << sel->Label() << endl;
+ << Name(sel)->ToCString() << " Label:" << sel->Label() << Message_EndLine;
+ else sout << " Final Selection : " << sel->Label() << Message_EndLine;
if (disp->HasRootName())
- sout<<" File Root Name : "<<disp->RootName()->ToCString()<<endl;
- else sout<<" No specific file root name (see Default Root)"<<endl;
+ sout<<" File Root Name : "<<disp->RootName()->ToCString()<<Message_EndLine;
+ else sout<<" No specific file root name (see Default Root)"<<Message_EndLine;
}
Standard_Integer nbm = theshareout->NbModifiers(Standard_True);
if (nbm > 0) sout<<
- " *** "<<nbm<<" active Model Modifiers : see ListModifiers ***"<<endl;
+ " *** "<<nbm<<" active Model Modifiers : see ListModifiers ***"<<Message_EndLine;
Standard_Integer nbf = theshareout->NbModifiers(Standard_False);
if (nbf > 0) sout<<
- " *** "<<nbf<<" active File Modifiers : see ListModifiers ***"<<endl;
- if (nbm+nbf == 0) sout<<" *** No active Modifiers ***"<<endl;
+ " *** "<<nbf<<" active File Modifiers : see ListModifiers ***"<<Message_EndLine;
+ if (nbm+nbf == 0) sout<<" *** No active Modifiers ***"<<Message_EndLine;
}
// #### #### #### #### #### #### #### #### ####
void IFSelect_WorkSession::ListItems (const Standard_CString lab) const
{
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- sout<< " ********** Items in Session **********"<<endl;
+ sout<< " ********** Items in Session **********"<<Message_EndLine;
Standard_Integer nb = MaxIdent();
Handle(TCollection_HAsciiString) str;
if (lab[0] != '\0') str = new TCollection_HAsciiString (lab);
sout<<"#"<<i;
if (HasName(var)) sout<<" - Named : "<<Name(var)->ToCString()<<" - ";
else sout<<" - (no name) - ";
- sout<<var->DynamicType()->Name()<<endl<<" "<<label->ToCString()<<endl;
+ sout<<var->DynamicType()->Name()<<Message_EndLine<<" "<<label->ToCString()<<Message_EndLine;
}
}
Standard_Integer nb = theshareout->NbModifiers(formodel);
sout<< " ********** Modifiers in Session ";
sout<<(formodel ? "(For Model)" : "(For File)");
- sout<<": "<<nb<<" **********"<<endl;
+ sout<<": "<<nb<<" **********"<<Message_EndLine;
for (Standard_Integer i = 1; i <= nb; i ++) {
Handle(IFSelect_GeneralModifier) modif =
theshareout->GeneralModifier(formodel,i);
if (!modif.IsNull()) sout<<"Modifier n0."<<i<<" : "<<modif->Label();
if (HasName(modif)) sout << " Named as : " << Name(modif)->ToCString();
- sout<<endl;
+ sout<<Message_EndLine;
}
}
{
Handle(Message_Messenger) sout = Message::DefaultMessenger();
if (ItemIdent(sel) == 0) {
- sout << "Selection : Unknown"<<endl; //sout<<Handle
+ sout << "Selection : Unknown"<<Message_EndLine; //sout<<Handle
return;
}
sout << " ********** Selection";
if (HasName(sel)) sout << " , Name : " << Name(sel)->ToCString();
- sout <<" **********"<<endl;
- sout<< "Label : " << sel->Label() << " . Input(s) : "<< endl;
+ sout <<" **********"<<Message_EndLine;
+ sout<< "Label : " << sel->Label() << " . Input(s) : "<< Message_EndLine;
Standard_Integer nb = 0;
IFSelect_SelectionIterator iter; sel->FillIterator(iter);
for (; iter.More(); iter.Next()) {
nb ++;
Handle(IFSelect_Selection) newsel = iter.Value();
- sout<<" -- "<<newsel->Label()<<endl;
+ sout<<" -- "<<newsel->Label()<<Message_EndLine;
}
- sout << " Nb Inputs:"<<nb<<endl;
+ sout << " Nb Inputs:"<<nb<<Message_EndLine;
}
else if (!cnt.IsNull()) selsign =
new IFSelect_SelectSignature (cnt,&nomsel[debsign],Standard_False);
else {
- cout<<selname<<" : neither Signature nor Counter"<<endl;
+ std::cout<<selname<<" : neither Signature nor Counter"<<std::endl;
return sel;
}
Handle(IFSelect_Selection) sel = GiveSelection (nomsel);
if (sel.IsNull()) {
- cout<<"Neither Entity Number/Label nor Selection :"<<nomsel<<endl;
+ std::cout<<"Neither Entity Number/Label nor Selection :"<<nomsel<<std::endl;
return list;
}
(const Standard_Integer level, const Handle(Message_Messenger)& S)
{
if (!IsLoaded())
- { S<< " *** Data for List not available ***"<<endl; return; }
+ { S<< " *** Data for List not available ***"<<Message_EndLine; return; }
S << "\n *****************************************************************\n";
if (theloaded.Length() > 0)
- S << " ******** Loaded File : "<<theloaded.ToCString()<<Interface_MSG::Blanks(32-theloaded.Length())<<" ********"<<endl;
- else S << " ******** No name for Loaded File"<<endl;
+ S << " ******** Loaded File : "<<theloaded.ToCString()<<Interface_MSG::Blanks(32-theloaded.Length())<<" ********"<<Message_EndLine;
+ else S << " ******** No name for Loaded File"<<Message_EndLine;
if (level == 0) {
S<<" ******** Short Dump of Header ********\n";
S << " *****************************************************************\n\n";
- myModel->DumpHeader(S); S<<endl;
+ myModel->DumpHeader(S); S<<Message_EndLine;
}
Standard_Integer nbent = myModel->NbEntities();
}
S << " *****************************************************************\n";
S << " ******** Model : "<<nbent<<" Entities, of which "<<nbr<<" Root(s)\n";
- S << " *****************************************************************\n"<<endl;
+ S << " *****************************************************************\n"<<Message_EndLine;
if (level <= 0) return;
else if (level == 1) {
if (level == 7 || level == 10) mode = IFSelect_EntitiesByItem;
PrintCheckList (ModelCheckList(),Standard_False, mode);
} else {
- if (level == 3) S << " ******** Check Model (Fails) ********"<<endl;
- else S << " ******** Check Model (Complete) ********"<<endl;
+ if (level == 3) S << " ******** Check Model (Fails) ********"<<Message_EndLine;
+ else S << " ******** Check Model (Complete) ********"<<Message_EndLine;
Interface_CheckTool CT (Graph());
Interface_CheckIterator C;
if (theerrhand) {
Handle(Message_Messenger) sout = Message::DefaultMessenger();
sout<<" **** Interruption DumpModel (Check) par Exception ****\n";
S<<" ** ** Exception Raised during Check ! ** **\n";
- S<<" --> what could be determined is listed"<<endl;
+ S<<" --> what could be determined is listed"<<Message_EndLine;
}
}
else if (level == 3) C = CT.CheckList();
Handle(Message_Messenger) sout = Message::DefaultMessenger();
sout<<" **** Interruption DumpModel par Exception : ****\n";
sout<<anException.GetMessageString();
- sout<<"\n Abandon"<<endl;
+ sout<<"\n Abandon"<<Message_EndLine;
}
}
- S<<endl<<"There are "<<nbent<<" Entities, of which "<<nbr<<" Root(s)"<<endl;
+ S<<Message_EndLine<<"There are "<<nbent<<" Entities, of which "<<nbr<<" Root(s)"<<Message_EndLine;
}
// .... TraceDumpModel .... (Model + CheckList)
const Handle(Message_Messenger)& S) const
{
if (!IsLoaded())
- { S<< " *** Data for List not available ***"<<endl; return; }
+ { S<< " *** Data for List not available ***"<<Message_EndLine; return; }
Standard_Integer num = myModel->Number(ent);
- if (num == 0) { S<<" *** Entity to Dump not in the Model ***"<<endl; return; }
- if (thelibrary.IsNull()) { S<<" *** WorkLibrary not defined ***"<<endl; return; }
+ if (num == 0) { S<<" *** Entity to Dump not in the Model ***"<<Message_EndLine; return; }
+ if (thelibrary.IsNull()) { S<<" *** WorkLibrary not defined ***"<<Message_EndLine; return; }
S << " ******** Dumping Entity n0 "<<num
- <<" level:"<<level<<" ********"<<endl;
+ <<" level:"<<level<<" ********"<<Message_EndLine;
thelibrary->DumpEntity (myModel,theprotocol,ent,S,level);
}
{
Standard_Integer i,nb;
Standard_Integer num = StartingNumber(ent);
- if (num == 0) { cout<<" -- PrintEntityStatus : unknown"<<endl; return; }
+ if (num == 0) { std::cout<<" -- PrintEntityStatus : unknown"<<std::endl; return; }
S <<" Ent. n0/id: ";
myModel->Print(ent,S);
Handle(TCollection_HAsciiString) hname = EntityName(ent);
if (!hname.IsNull() && hname->Length() > 0) S<<" Name:"<<hname->ToCString();
- S<<endl;
+ S<<Message_EndLine;
Handle(IFSelect_Signature) signtype = SignType();
- if (signtype.IsNull()) S<<" Type(CDL):"<<ent->DynamicType()->Name()<<endl;
- else S <<" Type:"<<signtype->Value (ent,myModel)<<endl;
+ if (signtype.IsNull()) S<<" Type(CDL):"<<ent->DynamicType()->Name()<<Message_EndLine;
+ else S <<" Type:"<<signtype->Value (ent,myModel)<<Message_EndLine;
S <<" Category : " <<CategoryName (ent)
- <<" Validity : " <<ValidityName (ent) << endl;
+ <<" Validity : " <<ValidityName (ent) << Message_EndLine;
Interface_CheckIterator chl = CheckOne (ent);
chl.Print (S,myModel,Standard_False,Standard_False);
Handle(TColStd_HSequenceOfTransient) list = Sharings(ent);
- if (list.IsNull()) S<<" Root"<<endl;
+ if (list.IsNull()) S<<" Root"<<Message_EndLine;
else {
nb = list->Length();
if (nb == 0) S<<" Root";
else S<<" Super-entities:"<<nb<<" : (n0/id):";
for (i = 1; i <= nb; i ++) { S<<" "; myModel->Print(list->Value(i),S); }
- S<<endl;
+ S<<Message_EndLine;
}
list = Shareds (ent);
- if (list.IsNull()) S<<" No sub-entity"<<endl;
+ if (list.IsNull()) S<<" No sub-entity"<<Message_EndLine;
else {
nb = list->Length();
if (nb == 0) S<<" No sub-entity";
else S<<" Sub-entities:"<<nb<<" , i.e. (n0/id):";
for (i = 1; i <= nb; i ++) { S<<" "; myModel->Print(list->Value(i),S); }
- S<<endl;
+ S<<Message_EndLine;
}
}
catch (Standard_Failure const& anException) {
sout<<" **** Interruption EvaluateSelection par Exception **** Intitule\n";
sout<<anException.GetMessageString();
- sout<<"\n Abandon"<<endl;
+ sout<<"\n Abandon"<<Message_EndLine;
}
errhand = theerrhand;
return;
}
if (!IsLoaded())
- { sout<< " *** Data for Evaluation not available ***"<<endl; return; }
+ { sout<< " *** Data for Evaluation not available ***"<<Message_EndLine; return; }
if (ItemIdent(sel) == 0)
- { sout << " Selection : Unknown"<<endl; return; } //sout<<Handle
+ { sout << " Selection : Unknown"<<Message_EndLine; return; } //sout<<Handle
Interface_EntityIterator iter = EvalSelection (sel);
ListEntities (iter,1);
sout << "**** (Unique) RootResult, Selection : "
- <<sel->Label()<<endl;
+ <<sel->Label()<<Message_EndLine;
}
catch (Standard_Failure const& anException) {
sout<<" **** Interruption EvaluateDispatch par Exception **** Intitule\n";
sout<<anException.GetMessageString();
- sout<<"\n Abandon"<<endl;
+ sout<<"\n Abandon"<<Message_EndLine;
}
errhand = theerrhand;
return;
Standard_Integer numdisp = DispatchRank(disp);
if (!IsLoaded())
- { sout<< " *** Data for List not available ***"<<endl; return; }
+ { sout<< " *** Data for List not available ***"<<Message_EndLine; return; }
if (theshareout->NbDispatches() < numdisp || numdisp <= 0)
- { sout<<"Dispatch : Unknown"<<endl; return; } //sout<<Handle
+ { sout<<"Dispatch : Unknown"<<Message_EndLine; return; } //sout<<Handle
if (disp->FinalSelection().IsNull())
- { sout<<"Dispatch : No Final Selection"<<endl; return; }//sout<<Handle
- sout<<" --- Dispatch Label : "<<disp->Label()<<endl;
+ { sout<<"Dispatch : No Final Selection"<<Message_EndLine; return; }//sout<<Handle
+ sout<<" --- Dispatch Label : "<<disp->Label()<<Message_EndLine;
IFSelect_ShareOutResult eval(disp,thegraph->Graph());
eval.Evaluate();
eval.Packets (mode ? Standard_True : Standard_False);
Standard_Integer nbpack = evres->NbPackets();
- sout<<"Nb Packets produced : "<<nbpack<<" :"<<endl;
+ sout<<"Nb Packets produced : "<<nbpack<<" :"<<Message_EndLine;
for (numpack = 1; numpack <= nbpack; numpack ++) {
- sout<<"\n **** Packet n0 : "<<numpack<<" ****"<<endl;
- if (!mode) cout<<"Root Entities :"<<endl;
+ sout<<"\n **** Packet n0 : "<<numpack<<" ****"<<Message_EndLine;
+ if (!mode) std::cout<<"Root Entities :"<<std::endl;
ListEntities (evres->Entities(numpack), (mode ? 2 : -1));
}
//// Interface_EntityIterator iterem = disp->Remainder(thegraph->Graph());
if (mode == 0) return;
if (mode == 1 || mode == 3) {
- sout<<endl;
+ sout<<Message_EndLine;
if (evres->NbDuplicated(0,Standard_False) == 0)
- sout<<" **** All the Model is taken into account ****"<<endl;
+ sout<<" **** All the Model is taken into account ****"<<Message_EndLine;
else {
- sout<<" **** Starting Entities not taken by this Dispatch ****"<<endl;
+ sout<<" **** Starting Entities not taken by this Dispatch ****"<<Message_EndLine;
ListEntities (evres->Duplicated(0,Standard_False),2);
}
}
if (mode >= 2) {
sout<<" **** Entites in more than one packet ****";
Standard_Integer max = evres->HighestDuplicationCount();
- if (max < 2) sout<<" : There are none"<<endl;
+ if (max < 2) sout<<" : There are none"<<Message_EndLine;
else {
Standard_Integer newcount;
- sout<<endl;
+ sout<<Message_EndLine;
for (newcount = 2; newcount <= max; newcount ++) {
if (evres->NbDuplicated(newcount,Standard_False) == 0) continue;
- sout<<" **** Entities put in "<<newcount<<" packets ****"<<endl;
+ sout<<" **** Entities put in "<<newcount<<" packets ****"<<Message_EndLine;
ListEntities (evres->Duplicated(newcount,Standard_False),2);
}
}
catch (Standard_Failure const& anException) {
sout<<" **** Interruption EvaluateComplete par Exception : ****\n";
sout<<anException.GetMessageString();
- sout<<"\n Abandon"<<endl;
+ sout<<"\n Abandon"<<Message_EndLine;
}
errhand = theerrhand;
return;
}
if (!IsLoaded())
- { sout<< " *** Data for List not available ***"<<endl; return; }
+ { sout<< " *** Data for List not available ***"<<Message_EndLine; return; }
IFSelect_ShareOutResult eval(theshareout,thegraph->Graph());
eval.Evaluate();
sout<<"\n******** Evaluation ShareOutResult (Complete) ********\n";
- sout<<" **** List of Packets **** Count : "<<eval.NbPackets()<<endl;
- if (mode == 0) sout << " ** (for each one : Root Entities) **"<<endl;
- else sout << " ** (for each one : Evaluated Content) **"<<endl;
+ sout<<" **** List of Packets **** Count : "<<eval.NbPackets()<<Message_EndLine;
+ if (mode == 0) sout << " ** (for each one : Root Entities) **"<<Message_EndLine;
+ else sout << " ** (for each one : Evaluated Content) **"<<Message_EndLine;
Standard_Integer numpack = 0;
Handle(IFSelect_PacketList) evres =
eval.Packets (mode ? Standard_True : Standard_False);
Standard_Integer nbpack = evres->NbPackets();
- sout<<"Nb Packets produced : "<<nbpack<<" :"<<endl;
+ sout<<"Nb Packets produced : "<<nbpack<<" :"<<Message_EndLine;
for (numpack = 1; numpack <= nbpack; numpack ++) {
- sout<<"\n **** Packet n0 : "<<numpack<<" ****"<<endl;
- if (!mode) cout<<"Root Entities :"<<endl;
+ sout<<"\n **** Packet n0 : "<<numpack<<" ****"<<Message_EndLine;
+ if (!mode) std::cout<<"Root Entities :"<<std::endl;
ListEntities (evres->Entities(numpack), (mode ? 2: -1));
}
if (mode == 0) return;
if (mode == 1 || mode == 3) {
- sout<<endl;
+ sout<<Message_EndLine;
if (evres->NbDuplicated(0,Standard_False) == 0)
- sout<<" **** All the Model is taken into account ****"<<endl;
+ sout<<" **** All the Model is taken into account ****"<<Message_EndLine;
else {
- sout<<" **** Starting Entities Forgotten ****"<<endl;
+ sout<<" **** Starting Entities Forgotten ****"<<Message_EndLine;
ListEntities (evres->Duplicated(0,Standard_False),2);
}
}
if (mode >= 2) {
- sout<<" **** Entites in more than one packet ****"<<endl;
+ sout<<" **** Entites in more than one packet ****"<<Message_EndLine;
Standard_Integer max = evres->HighestDuplicationCount();
- if (max < 2) sout<<" : There are none"<<endl;
+ if (max < 2) sout<<" : There are none"<<Message_EndLine;
else {
Standard_Integer newcount;
- sout<<endl;
+ sout<<Message_EndLine;
for (newcount = 2; newcount <= max; newcount ++) {
if (evres->NbDuplicated(newcount,Standard_False) == 0) continue;
- sout<<" **** Entities put in "<<newcount<<" packets ****"<<endl;
+ sout<<" **** Entities put in "<<newcount<<" packets ****"<<Message_EndLine;
ListEntities (evres->Duplicated(newcount,Standard_False),2);
}
}
Handle(Message_Messenger) sout = Message::DefaultMessenger();
int titre = 0;
Standard_Integer mode = (mmode < 0 ? -mmode : mmode);
- if (mmode >= 0) sout << " List of " << iter.NbEntities() << " Entities :"<<endl;
+ if (mmode >= 0) sout << " List of " << iter.NbEntities() << " Entities :"<<Message_EndLine;
if (!IsLoaded())
- { sout<< " *** Data for List not available ***"<<endl; return; }
+ { sout<< " *** Data for List not available ***"<<Message_EndLine; return; }
Interface_ShareFlags tool(thegraph->Graph());
try {
int newcount = -1; int mods = 0; int cnt = 0;
for (iter.Start(); iter.More(); iter.Next()) {
if (!titre && mode == 1) sout
- << "Number/Id. Category Validity Type\n----------- ----...."<<endl;
+ << "Number/Id. Category Validity Type\n----------- ----...."<<Message_EndLine;
// 123456789 123456789 123456 123456789 123456789 123456
- if (!titre && mode == 0) sout<<" Keys : R Root ? Unknown * Unloaded"<<endl;
+ if (!titre && mode == 0) sout<<" Keys : R Root ? Unknown * Unloaded"<<Message_EndLine;
if (!titre && mode == 2) sout<<"(";
titre = 1;
Handle(Standard_Transient) ent = iter.Value();
if (catnum > 0) sout<<" "<<Interface_Category::Name (catnum);
sout << " (" << ValidityName (ent) << ") ";
- sout<<" Type:"<<myModel->TypeName (ent, Standard_False)<<endl;
+ sout<<" Type:"<<myModel->TypeName (ent, Standard_False)<<Message_EndLine;
} else if (mode == 2) {
newcount ++;
if (newcount > 0) sout<<",";
sout<<num;
} else {
newcount ++; mods = 0; cnt ++;
- if (newcount >= 10) { sout << endl<<"["<<cnt<<"]:"; newcount = 1; }
+ if (newcount >= 10) { sout << Message_EndLine<<"["<<cnt<<"]:"; newcount = 1; }
if (newcount > 0) sout << " ";
myModel->Print(ent,sout,0);
if (!tool.IsShared(ent)) { if(mods == 0) sout<<"("; sout<<"R"; mods++; }
if (mods) { sout<<")"; newcount ++; }
}
}
- if (mode == 0) sout<<endl;
- if (mode == 2) sout<<")"<<endl;
+ if (mode == 0) sout<<Message_EndLine;
+ if (mode == 2) sout<<")"<<Message_EndLine;
}
catch (Standard_Failure const& anException) {
sout<<" **** Interruption ListEntities par Exception : ****\n";
sout<<anException.GetMessageString();
- sout<<"\n Abandon"<<endl;
+ sout<<"\n Abandon"<<Message_EndLine;
}
}
(const Handle(IGESAppli_DrilledHole)& ent, const IGESData_IGESDumper& /*dumper*/,
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
{
- S << "IGESAppli_DrilledHole" << endl;
+ S << "IGESAppli_DrilledHole" << Message_EndLine;
- S << "Number of property values : " << ent->NbPropertyValues() << endl;
+ S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
S << "Drill diameter size :" << ent->DrillDiaSize() << " ";
- S << "Finish diameter size : " << ent->FinishDiaSize() << endl;
+ S << "Finish diameter size : " << ent->FinishDiaSize() << Message_EndLine;
S << "Plating indication flag : ";
if (!ent->IsPlating()) S << "NO" << " - ";
else S << "YES - ";
S << "Lower Numbered Layer : " << ent->NbLowerLayer() << " ";
- S << "Higher Numbered Layer : " << ent->NbHigherLayer() << endl;
+ S << "Higher Numbered Layer : " << ent->NbHigherLayer() << Message_EndLine;
}
const Handle(Message_Messenger)& S, const Standard_Integer level) const // UNFINISHED
{
Standard_Integer sublevel = (level > 4) ? 1 : 0;
- S << "IGESAppli_ElementResults" << endl;
+ S << "IGESAppli_ElementResults" << Message_EndLine;
S << "General Note : ";
dumper.Dump(ent->Note(),S, sublevel);
- S << endl;
- S << "Subcase Number : " << ent->SubCaseNumber() << endl;
- S << "Time : " << ent->Time() << endl;
- S << "Number of Result Values : " << ent->NbResultValues() << endl;
- S << "Result Report Flag : " << ent->ResultReportFlag() << endl;
+ S << Message_EndLine;
+ S << "Subcase Number : " << ent->SubCaseNumber() << Message_EndLine;
+ S << "Time : " << ent->Time() << Message_EndLine;
+ S << "Number of Result Values : " << ent->NbResultValues() << Message_EndLine;
+ S << "Result Report Flag : " << ent->ResultReportFlag() << Message_EndLine;
S << "Element Identifiers : ";
IGESData_DumpVals(S ,level,1, ent->NbElements(),ent->ElementIdentifier);
- S << endl << "Elements : ";
+ S << Message_EndLine << "Elements : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbElements(),ent->Element);
- S << endl << "Element Topology Types : ";
+ S << Message_EndLine << "Element Topology Types : ";
IGESData_DumpVals(S ,level,1, ent->NbElements(),ent->ElementTopologyType);
- S << endl << "Numbers of Layers : ";
+ S << Message_EndLine << "Numbers of Layers : ";
IGESData_DumpVals(S ,level,1, ent->NbElements(),ent->NbLayers);
- S << endl << "Data Layer Flags : ";
+ S << Message_EndLine << "Data Layer Flags : ";
IGESData_DumpVals(S ,level,1, ent->NbElements(),ent->DataLayerFlag);
- S << endl << "Numbers of Result Data Locations : ";
+ S << Message_EndLine << "Numbers of Result Data Locations : ";
IGESData_DumpVals(S ,level,1, ent->NbElements(),ent->NbResultDataLocs);
- S << endl << "Result Data Locations : "; S << " TO BE DONE ";
+ S << Message_EndLine << "Result Data Locations : "; S << " TO BE DONE ";
// ?? A VERIFIER DE PRES, pas du tout sur que ce soit bon
// cf aussi Write et Copy
- if (level <= 4) S << " [ ask level > 4 for more, > 5 for complete ]" << endl;
+ if (level <= 4) S << " [ ask level > 4 for more, > 5 for complete ]" << Message_EndLine;
else {
Standard_Integer i;// svv Jan 10 2000 : porting on DEC
for (i = 1; i <= ent->NbElements(); i ++) {
S << " ["<<i<<":NbLoc="<<nloc<<"]:";
for (Standard_Integer j = 1; j <= nloc; j ++)
S << " " << ent->ResultDataLoc (i,j);
- S << endl;
+ S << Message_EndLine;
}
S << "Result Data : ";
for (i = 1; i <= ent->NbElements(); i ++) {
Standard_Integer nres = ent->NbResults(i);
S << " ["<<i<<":NbRes="<<nres<<"]:";
- if (level <= 5) S << " [ ask level > 5 for complete Data ]" << endl;
+ if (level <= 5) S << " [ ask level > 5 for complete Data ]" << Message_EndLine;
else {
for (Standard_Integer j = 1; j <= nres; j ++)
S << " " << ent->ResultData(i,j); // ?? is it all ?? UNFINISHED
(const Handle(IGESAppli_FiniteElement)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESAppli_FiniteElement" << endl;
+ S << "IGESAppli_FiniteElement" << Message_EndLine;
- S << "Topology type : " << ent->Topology() << endl;
+ S << "Topology type : " << ent->Topology() << Message_EndLine;
S << "Nodes : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbNodes(),ent->Node);
- S << endl << "Element Name : " << ent->Name();
- S << endl;
+ S << Message_EndLine << "Element Name : " << ent->Name();
+ S << Message_EndLine;
}
(const Handle(IGESAppli_Flow)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESAppli_Flow" << endl;
- S << "Number of Context Flags : " << ent->NbContextFlags() << endl;
+ S << "IGESAppli_Flow" << Message_EndLine;
+ S << "Number of Context Flags : " << ent->NbContextFlags() << Message_EndLine;
Standard_Integer tf = ent->TypeOfFlow();
S << "Type of Flow : " << tf;
- if (tf == 1) S << " (logical)" << endl;
- else if (tf == 2) S << " (physical)" << endl;
- else S << " (not specified)" << endl;
+ if (tf == 1) S << " (logical)" << Message_EndLine;
+ else if (tf == 2) S << " (physical)" << Message_EndLine;
+ else S << " (not specified)" << Message_EndLine;
tf = ent->FunctionFlag();
S << "Function Flag : " << tf;
- if (tf == 1) S << " (electrical signal)" << endl;
- else if (tf == 2) S << " (fluid flow path)" << endl;
- else S << " (not specified)" << endl;
+ if (tf == 1) S << " (electrical signal)" << Message_EndLine;
+ else if (tf == 2) S << " (fluid flow path)" << Message_EndLine;
+ else S << " (not specified)" << Message_EndLine;
S << "Flow Associativities : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbFlowAssociativities(),
ent->FlowAssociativity);
- S << endl << "Connect Points : ";
+ S << Message_EndLine << "Connect Points : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbConnectPoints(),
ent->ConnectPoint);
- S << endl << "Joins : ";
+ S << Message_EndLine << "Joins : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbJoins(),ent->Join);
- S << endl << "Flow Names : ";
+ S << Message_EndLine << "Flow Names : ";
IGESData_DumpStrings(S ,level,1, ent->NbFlowNames(),ent->FlowName);
- S << endl << "Text Display Templates : ";
+ S << Message_EndLine << "Text Display Templates : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbTextDisplayTemplates(),
ent->TextDisplayTemplate);
- S << endl << "Continuation Flow Associativities : ";
+ S << Message_EndLine << "Continuation Flow Associativities : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbContFlowAssociativities(),
ent->ContFlowAssociativity);
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESAppli_FlowLineSpec)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESAppli_FlowLineSpec" << endl;
+ S << "IGESAppli_FlowLineSpec" << Message_EndLine;
S << "Name and Modifiers : ";
IGESData_DumpStrings(S ,level,1, ent->NbPropertyValues(),ent->Modifier);
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESAppli_LevelFunction)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
{
- S << "IGESAppli_LevelFunction" << endl;
+ S << "IGESAppli_LevelFunction" << Message_EndLine;
- S << "Number of property values : " << ent->NbPropertyValues() << endl;
- S << "Function Description code : " << ent->FuncDescriptionCode() << endl;
+ S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
+ S << "Function Description code : " << ent->FuncDescriptionCode() << Message_EndLine;
S << "Function Description : ";
IGESData_DumpString(S,ent->FuncDescription());
- S << endl;
+ S << Message_EndLine;
}
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
Standard_Integer i, num;
- S << "IGESAppli_LevelToPWBLayerMap" << endl;
- S << "Number of property values : " << ent->NbPropertyValues() << endl;
- S << "Exchange File Level Number : " << endl;
- S << "Native Level Identification : " << endl;
- S << "Physical Layer Number : " << endl;
+ S << "IGESAppli_LevelToPWBLayerMap" << Message_EndLine;
+ S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
+ S << "Exchange File Level Number : " << Message_EndLine;
+ S << "Native Level Identification : " << Message_EndLine;
+ S << "Physical Layer Number : " << Message_EndLine;
S << "Exchange File Level Identification : ";
IGESData_DumpStrings
(S,-level,1, ent->NbLevelToLayerDefs(),ent->ExchangeFileLevelIdent);
- S << endl;
+ S << Message_EndLine;
if (level > 4)
for ( num = ent->NbLevelToLayerDefs(), i = 1; i <= num; i++ )
{
- S << "[" << i << "]: " << endl;
+ S << "[" << i << "]: " << Message_EndLine;
S << "Exchange File Level Number : "
- << ent->ExchangeFileLevelNumber(i) << endl;
+ << ent->ExchangeFileLevelNumber(i) << Message_EndLine;
S << "Native Level Identification : ";
IGESData_DumpString(S,ent->NativeLevel(i));
- S << endl;
- S << "Physical Layer Number : " << ent->PhysicalLayerNumber(i) << endl;
+ S << Message_EndLine;
+ S << "Physical Layer Number : " << ent->PhysicalLayerNumber(i) << Message_EndLine;
S << "Exchange File Level Identification : ";
IGESData_DumpString(S,ent->ExchangeFileLevelIdent(i));
- S << endl;
+ S << Message_EndLine;
}
}
(const Handle(IGESAppli_LineWidening)& ent, const IGESData_IGESDumper& /*dumper*/,
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
{
- S << "IGESAppli_LineWidening" << endl;
+ S << "IGESAppli_LineWidening" << Message_EndLine;
- S << "Number of property values : " << ent->NbPropertyValues() << endl;
- S << "Width of metalization : " << ent->WidthOfMetalization() << endl;
+ S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
+ S << "Width of metalization : " << ent->WidthOfMetalization() << Message_EndLine;
S << "Cornering Code : " ;
- if (ent->CorneringCode() == 0) S << "0 (rounded)" << endl;
- else if (ent->CorneringCode() == 1) S << "1 (squared)" << endl;
- else S << "incorrect value" << endl;
+ if (ent->CorneringCode() == 0) S << "0 (rounded)" << Message_EndLine;
+ else if (ent->CorneringCode() == 1) S << "1 (squared)" << Message_EndLine;
+ else S << "incorrect value" << Message_EndLine;
S << "Extension Flag : " ;
- if (ent->ExtensionFlag() == 0) S << "0 (No Extension)" << endl;
- else if (ent->ExtensionFlag() == 1) S << "1 (One-half width extension)" << endl;
- else if (ent->ExtensionFlag() == 2) S << "2 (Extension set by ExtensionValue)" << endl;
- else S << "incorrect value" << endl;
+ if (ent->ExtensionFlag() == 0) S << "0 (No Extension)" << Message_EndLine;
+ else if (ent->ExtensionFlag() == 1) S << "1 (One-half width extension)" << Message_EndLine;
+ else if (ent->ExtensionFlag() == 2) S << "2 (Extension set by ExtensionValue)" << Message_EndLine;
+ else S << "incorrect value" << Message_EndLine;
S << "Justification Flag : " ;
if (ent->JustificationFlag() == 0)
- S << "0 (Centre justified)" << endl;
+ S << "0 (Centre justified)" << Message_EndLine;
else if (ent->JustificationFlag() == 1)
- S << "1 (left justified)" << endl;
+ S << "1 (left justified)" << Message_EndLine;
else if (ent->JustificationFlag() == 2)
- S << "2 (right justified)" << endl;
+ S << "2 (right justified)" << Message_EndLine;
else
- S << "incorrect value" << endl;
+ S << "incorrect value" << Message_EndLine;
if (ent->ExtensionFlag() == 2)
- S << "Extension Value : " << ent->ExtensionValue() << endl;
+ S << "Extension Value : " << ent->ExtensionValue() << Message_EndLine;
else
- S << "No Extension Value (Extension Flag != 2)" << endl;
+ S << "No Extension Value (Extension Flag != 2)" << Message_EndLine;
}
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
Standard_Integer sublevel = (level > 4) ? 1 : 0;
- S << "IGESAppli_NodalConstraint" << endl;
- S << "Type of Constraint : " << ent->Type() << endl;
+ S << "IGESAppli_NodalConstraint" << Message_EndLine;
+ S << "Type of Constraint : " << ent->Type() << Message_EndLine;
S << "Node : ";
dumper.Dump(ent->NodeEntity(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "Tabular Data Properties : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbCases(),ent->TabularData);
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESAppli_NodalDisplAndRot)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESAppli_NodalDisplAndRot" << endl;
+ S << "IGESAppli_NodalDisplAndRot" << Message_EndLine;
Standard_Integer nbcases = ent->NbCases();
Standard_Integer nbnodes = ent->NbNodes();
- S << "No. of analysis cases : " << nbcases << endl;
+ S << "No. of analysis cases : " << nbcases << Message_EndLine;
S << "General Notes : ";
IGESData_DumpEntities(S,dumper ,level,1, nbcases,ent->Note);
- S << endl;
+ S << Message_EndLine;
// gp_GTrsf loca; // true location n.u.
switch (level)
// IGESData_DumpListXYZL(S,-level,1,nbcases,ent->TranslationParameter,loca);
S << "Rotational Parameters : ";
// IGESData_DumpListXYZL(S,-level,1,nbcases,ent->RotationalParameter,loca);
- S << " TO BE DONE" << endl;
+ S << " TO BE DONE" << Message_EndLine;
break;
case 5:
case 6: {
{
S << "[" << i << "]: ";
dumper.Dump (ent->Note(i),S, 1);
- S << endl;
+ S << Message_EndLine;
}
- S << "Nodes : " << endl;
- S << "Node Identifiers : " << endl;
- S << "Translation Parameters : " << endl;
+ S << "Nodes : " << Message_EndLine;
+ S << "Node Identifiers : " << Message_EndLine;
+ S << "Translation Parameters : " << Message_EndLine;
S << "Rotational Parameters : Count = " << nbcases;
// IGESData_DumpListXYZL(S,-level,1,nbcases,ent->RotationalParameter,loca);
- S << endl;
+ S << Message_EndLine;
for (Standard_Integer j = 1; j <= nbnodes; j ++)
{
S << "[" << j << "]: - NodeIdentifier : "
- << ent->NodeIdentifier(j) << " - Node :"<<endl; ;
+ << ent->NodeIdentifier(j) << " - Node :"<<Message_EndLine; ;
S << "Node : ";
dumper.Dump (ent->Node(j),S, 1);
- S << " - Parameters : " << endl;
+ S << " - Parameters : " << Message_EndLine;
for (Standard_Integer k = 1; k <= nbcases; k ++)
{
- S << " [" << k << "]: " << endl;
+ S << " [" << k << "]: " << Message_EndLine;
S << "Translational Parameter : X="
<< ent->TranslationParameter(j,k).X() << ", Y="
<< ent->TranslationParameter(j,k).Y() << ", Z="
- << ent->TranslationParameter(j,k).Z() << endl;
+ << ent->TranslationParameter(j,k).Z() << Message_EndLine;
S << "Rotational Parameter : X="
<< ent->RotationalParameter(j,k).X() << ", Y="
<< ent->RotationalParameter(j,k).Y() << ", Z="
<< ent->RotationalParameter(j,k).Z();
if (k == nbcases) S << "] ";
- S << endl;
+ S << Message_EndLine;
}
}
}
break;
default: break;
}
- S << endl;
+ S << Message_EndLine;
}
{
// Standard_Integer nbnodes = ent->NbNodes();
// Standard_Integer nbdata = ent->NbData ();
- S << "IGESAppli_NodalResults" << endl;
+ S << "IGESAppli_NodalResults" << Message_EndLine;
S << "General Note : ";
dumper.Dump(ent->Note(),S, (level <= 4) ? 0 : 1);
- S << endl;
+ S << Message_EndLine;
S << "Analysis subcase number : " << ent->SubCaseNumber() << " ";
- S << "Time used : " << ent->Time() << endl;
+ S << "Time used : " << ent->Time() << Message_EndLine;
S << "No. of nodes : " << ent->NbNodes() << " ";
- S << "No. of values for a node : " << ent->NbData() << endl;
- S << "Node Identifiers : " << endl;
- S << "Nodes : " << endl;
+ S << "No. of values for a node : " << ent->NbData() << Message_EndLine;
+ S << "Node Identifiers : " << Message_EndLine;
+ S << "Nodes : " << Message_EndLine;
S << "Data : "; if (level < 6) S << " [ask level > 5]";
// IGESData_DumpRectVals(S ,-level,1, ent->NbData(),ent->Data);
- S << endl;
+ S << Message_EndLine;
if (level > 4)
{
for (Standard_Integer i=1; i <= ent->NbNodes(); i++)
S << "NodeIdentifier : " << ent->NodeIdentifier(i) << " ";
S << "Node : ";
dumper.Dump (ent->Node(i),S, 1);
- S << endl;
+ S << Message_EndLine;
if (level < 6) continue;
S << "Data : [ ";
for (Standard_Integer j = 1; j <= ent->NbData(); j ++)
S << " " << ent->Data(i,j);
- S << " ]" << endl;
+ S << " ]" << Message_EndLine;
}
}
}
(const Handle(IGESAppli_Node)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESAppli_Node" << endl;
+ S << "IGESAppli_Node" << Message_EndLine;
S << " Nodal Coords : 1st " << ent->Coord().X()
- << " 2nd : " << ent->Coord().Y() << " 3rd : " << ent->Coord().Z() <<endl;
+ << " 2nd : " << ent->Coord().Y() << " 3rd : " << ent->Coord().Z() <<Message_EndLine;
S << "Nodal Displacement Coordinate System : ";
if (!ent->System().IsNull())
dumper.Dump(ent->System(),S, level);
else
S << "Global Cartesian Coordinate System (default)";
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESAppli_PWBArtworkStackup)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESAppli_PWBArtworkStackup" << endl;
- S << "Number of property values : " << ent->NbPropertyValues() << endl;
+ S << "IGESAppli_PWBArtworkStackup" << Message_EndLine;
+ S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
S << "Artwork Stackup Identification : ";
IGESData_DumpString(S,ent->Identification());
- S << endl;
+ S << Message_EndLine;
S << "Level Numbers : ";
IGESData_DumpVals(S ,level,1, ent->NbLevelNumbers(),ent->LevelNumber);
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESAppli_PWBDrilledHole)& ent, const IGESData_IGESDumper& /*dumper*/,
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
{
- S << "IGESAppli_PWBDrilledHole" << endl;
- S << "Number of property values : " << ent->NbPropertyValues() << endl;
- S << "Drill Diameter Size : " << ent->DrillDiameterSize() << endl;
- S << "Finish Diameter Size : " << ent->FinishDiameterSize() << endl;
- S << "Drilled Hole Function Code : " << ent->FunctionCode() << endl;
+ S << "IGESAppli_PWBDrilledHole" << Message_EndLine;
+ S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
+ S << "Drill Diameter Size : " << ent->DrillDiameterSize() << Message_EndLine;
+ S << "Finish Diameter Size : " << ent->FinishDiameterSize() << Message_EndLine;
+ S << "Drilled Hole Function Code : " << ent->FunctionCode() << Message_EndLine;
}
const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
{
//Standard_Integer sublevel = (level > 4) ? 1 : 0; //szv#4:S4163:12Mar99 unused
- S << "IGESAppli_PartNumber" << endl;
- S << "Number of property values : " << ent->NbPropertyValues() << endl;
+ S << "IGESAppli_PartNumber" << Message_EndLine;
+ S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
S << "Generic Number or Name : ";
IGESData_DumpString(S,ent->GenericNumber());
- S << endl;
+ S << Message_EndLine;
S << "Military Number or Name : ";
IGESData_DumpString(S,ent->MilitaryNumber());
- S << endl;
+ S << Message_EndLine;
S << "Vendor Number or Name : ";
IGESData_DumpString(S,ent->VendorNumber());
- S << endl;
+ S << Message_EndLine;
S << "Internal Number or Name : ";
IGESData_DumpString(S,ent->InternalNumber());
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESAppli_PinNumber)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
{
- S << "IGESAppli_PinNumber" << endl;
- S << "Number of Property Values : " << ent->NbPropertyValues() << endl;
+ S << "IGESAppli_PinNumber" << Message_EndLine;
+ S << "Number of Property Values : " << ent->NbPropertyValues() << Message_EndLine;
S << "PinNumber : ";
IGESData_DumpString(S,ent->PinNumberVal());
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESAppli_PipingFlow)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESAppli_PipingFlow" << endl;
- S << "Number of Context Flags : " << ent->NbContextFlags() << endl;
- S << "Type of Flow : " << ent->TypeOfFlow() << endl;
+ S << "IGESAppli_PipingFlow" << Message_EndLine;
+ S << "Number of Context Flags : " << ent->NbContextFlags() << Message_EndLine;
+ S << "Type of Flow : " << ent->TypeOfFlow() << Message_EndLine;
S << "Flow Associativities : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbFlowAssociativities(),
ent->FlowAssociativity);
S << "Continuation Flow Associativities : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbContFlowAssociativities(),
ent->ContFlowAssociativity);
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESAppli_ReferenceDesignator)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
{
- S << "IGESAppli_ReferenceDesignator" << endl;
- S << "Number of Property Values : " << ent->NbPropertyValues() << endl;
+ S << "IGESAppli_ReferenceDesignator" << Message_EndLine;
+ S << "Number of Property Values : " << ent->NbPropertyValues() << Message_EndLine;
S << "ReferenceDesignator : ";
IGESData_DumpString(S,ent->RefDesignatorText());
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESAppli_RegionRestriction)& ent, const IGESData_IGESDumper& /*dumper*/,
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
{
- S << "IGESAppli_RegionRestriction" << endl;
- S << "Number of property values : " << ent->NbPropertyValues() << endl;
+ S << "IGESAppli_RegionRestriction" << Message_EndLine;
+ S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
S << "Electrical vias restriction : "
- << ent->ElectricalViasRestriction() << endl;
+ << ent->ElectricalViasRestriction() << Message_EndLine;
S << "Electrical components restriction : "
- << ent->ElectricalComponentRestriction() << endl;
+ << ent->ElectricalComponentRestriction() << Message_EndLine;
S << "Electrical circuitary restriction : "
- << ent->ElectricalCktRestriction() << endl;
+ << ent->ElectricalCktRestriction() << Message_EndLine;
}
(const Handle(IGESBasic_AssocGroupType)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
{
- S << "IGESBasic_AssocGroupType" << endl;
- S << "Number of data fields : " << ent->NbData() << endl;
- S << "Type of attached associativity : " << ent->AssocType() << endl;
+ S << "IGESBasic_AssocGroupType" << Message_EndLine;
+ S << "Number of data fields : " << ent->NbData() << Message_EndLine;
+ S << "Type of attached associativity : " << ent->AssocType() << Message_EndLine;
S << "Name of attached associativity : ";
IGESData_DumpString(S,ent->Name());
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESBasic_ExternalRefFile)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
{
- S << "IGESBasic_ExternalRefFile" << endl;
+ S << "IGESBasic_ExternalRefFile" << Message_EndLine;
S << "External Reference File Identifier : ";
IGESData_DumpString(S,ent->FileId());
- S << endl;
+ S << Message_EndLine;
}
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
Standard_Integer i, num;
- S << "IGESBasic_ExternalRefFileIndex" << endl;
- S << "External Reference Names : " << endl;
+ S << "IGESBasic_ExternalRefFileIndex" << Message_EndLine;
+ S << "External Reference Names : " << Message_EndLine;
S << "Internal Entities : ";
IGESData_DumpEntities(S,dumper,-level,1, ent->NbEntries(),ent->Entity);
- S << endl;
+ S << Message_EndLine;
if (level > 4)
for ( num = ent->NbEntries(), i = 1; i <= num; i++ )
{
IGESData_DumpString(S,ent->Name(i));
S << " Internal Entity : ";
dumper.Dump (ent->Entity(i),S, 1);
- S << endl;
+ S << Message_EndLine;
}
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESBasic_ExternalRefFileName)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
{
- S << "IGESBasic_ExternalRefFileName" << endl;
+ S << "IGESBasic_ExternalRefFileName" << Message_EndLine;
S << "External Reference File Identifier : ";
IGESData_DumpString(S,ent->FileId());
- S << endl;
+ S << Message_EndLine;
S << "External Reference Symbolic Name : ";
IGESData_DumpString(S,ent->ReferenceName());
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESBasic_ExternalRefLibName)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S,const Standard_Integer /* level */) const
{
- S << "IGESBasic_ExternalRefLibName" << endl;
+ S << "IGESBasic_ExternalRefLibName" << Message_EndLine;
S << "Name of Library : ";
IGESData_DumpString(S,ent->LibraryName());
- S << endl;
+ S << Message_EndLine;
S << "External Reference Symbolic Name : ";
IGESData_DumpString(S,ent->ReferenceName());
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESBasic_ExternalRefName)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
{
- S << "IGESBasic_ExternalRefName" << endl;
+ S << "IGESBasic_ExternalRefName" << Message_EndLine;
S << "External Reference Symbolic Name : ";
IGESData_DumpString(S,ent->ReferenceName());
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESBasic_ExternalReferenceFile)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESBasic_ExternalReferenceFile" << endl;
+ S << "IGESBasic_ExternalReferenceFile" << Message_EndLine;
S << "External Reference Names : ";
IGESData_DumpStrings(S ,level,1, ent->NbListEntries(),ent->Name);
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESBasic_Group)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESBasic_Group" << endl;
+ S << "IGESBasic_Group" << Message_EndLine;
S << "Entries in the Group : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbEntities(),ent->Entity);
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESBasic_GroupWithoutBackP)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESBasic_GroupWithoutBackP" << endl;
+ S << "IGESBasic_GroupWithoutBackP" << Message_EndLine;
S << "Entries in the Group : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbEntities(),ent->Entity);
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESBasic_Hierarchy)& ent, const IGESData_IGESDumper& /*dumper*/,
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
{
- S << "IGESBasic_Hierarchy" << endl;
+ S << "IGESBasic_Hierarchy" << Message_EndLine;
- S << "Number of property values : " << ent->NbPropertyValues() << endl;
- S << "Line Font : " << ent->NewLineFont() << endl;
- S << "View Number : " << ent->NewView() << endl;
- S << "Entity level : " << ent->NewEntityLevel() << endl;
- S << "Blank status : " << ent->NewBlankStatus() << endl;
- S << "Line weight : " << ent->NewLineWeight() << endl;
- S << "Color number : " << ent->NewColorNum() << endl;
+ S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
+ S << "Line Font : " << ent->NewLineFont() << Message_EndLine;
+ S << "View Number : " << ent->NewView() << Message_EndLine;
+ S << "Entity level : " << ent->NewEntityLevel() << Message_EndLine;
+ S << "Blank status : " << ent->NewBlankStatus() << Message_EndLine;
+ S << "Line weight : " << ent->NewLineWeight() << Message_EndLine;
+ S << "Color number : " << ent->NewColorNum() << Message_EndLine;
}
(const Handle(IGESBasic_Name)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
{
- S << "IGESBasic_Name" << endl;
+ S << "IGESBasic_Name" << Message_EndLine;
- S << "Number of property values : " << ent->NbPropertyValues() << endl;
+ S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
S << "Name : ";
IGESData_DumpString(S,ent->Value());
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESBasic_OrderedGroup)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESBasic_OrderedGroup" << endl;
+ S << "IGESBasic_OrderedGroup" << Message_EndLine;
S << "Entries in the Group : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbEntities(),ent->Entity);
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESBasic_OrderedGroupWithoutBackP)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESBasic_OrderedGroupWithoutBackP" << endl;
+ S << "IGESBasic_OrderedGroupWithoutBackP" << Message_EndLine;
S << "Entries in the Group : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbEntities(),ent->Entity);
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESBasic_SingleParent)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESBasic_SingleParent" << endl;
+ S << "IGESBasic_SingleParent" << Message_EndLine;
- S << "Number of ParentEntities : " << ent->NbParentEntities() << endl;
+ S << "Number of ParentEntities : " << ent->NbParentEntities() << Message_EndLine;
S << "ParentEntity : ";
dumper.Dump(ent->SingleParent(),S,(level <= 4) ? 0 : 1);
- S << endl;
+ S << Message_EndLine;
S << "Children : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbChildren(),ent->Child);
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESBasic_SingularSubfigure)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESBasic_SingularSubfigure" << endl;
+ S << "IGESBasic_SingularSubfigure" << Message_EndLine;
S << "Subfigure Definition Entity : " ;
dumper.Dump(ent->Subfigure(),S,(level <= 4) ? 0 : 1);
- S << endl;
+ S << Message_EndLine;
S << " Translation Data : ";
IGESData_DumpXYZL(S,level, ent->Translation(), ent->Location());
- S << " Scale Factors : " << ent->ScaleFactor() << endl;
- S << endl;
+ S << " Scale Factors : " << ent->ScaleFactor() << Message_EndLine;
+ S << Message_EndLine;
}
(const Handle(IGESBasic_SubfigureDef)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESBasic_SubfigureDef" << endl;
+ S << "IGESBasic_SubfigureDef" << Message_EndLine;
- S << "Depth of the subfigure : " << ent->Depth() << endl;
+ S << "Depth of the subfigure : " << ent->Depth() << Message_EndLine;
S << "Name of subfigure : ";
IGESData_DumpString(S,ent->Name());
- S << endl;
+ S << Message_EndLine;
S << "The Associated Entities : " ;
IGESData_DumpEntities(S,dumper,level,1,ent->NbEntities(),ent->AssociatedEntity);
- S << endl;
+ S << Message_EndLine;
}
Handle(IGESGraph_Color) color = Handle(IGESGraph_Color)::DownCast ( ent->Color() );
if ( color.IsNull() ) {
#ifdef OCCT_DEBUG
- cout << "Error: Unrecognized type of color definition" << endl;
+ std::cout << "Error: Unrecognized type of color definition" << std::endl;
#endif
IsColor = Standard_False;
}
Igesent->InitLevel( 0, localIntName );
}
#ifdef OCCT_DEBUG
- else cout << "Warning: Can't find entity for shape in mapper" << endl;
+ else std::cout << "Warning: Can't find entity for shape in mapper" << std::endl;
#endif
}
}
if (!IGESToBRep::TransferPCurve (edge2d, edge3d, myface)) continue;
if (sfe->FixReversed2d (edge3d, myface)) {
#ifdef OCCT_DEBUG
- cout << "Warning: IGESToBRep_IGESBoundary: 2D curve of edge was reversed" << endl;
+ std::cout << "Warning: IGESToBRep_IGESBoundary: 2D curve of edge was reversed" << std::endl;
#endif
}
//#74 rln 10.03.99 S4135: handling use of BRepLib::SameParameter by new static parameter
//pdn 08.04.99 S4135 recomputing only if deviation is greater than maxtol
if (maxdev > maxtol) { //:e2
#ifdef OCCT_DEBUG
- cout << "Warning: IGESToBRep_IGESBoundary: Deviation = " << maxdev << endl;
+ std::cout << "Warning: IGESToBRep_IGESBoundary: Deviation = " << maxdev << std::endl;
#endif
ShapeFix_ShapeTolerance().SetTolerance (edge3d, Precision::Confusion());
for (Standard_Integer ie = 1; ie <= iedge; ie++)
ShapeBuild_Edge().RemovePCurve (Lsewd3d->Edge (ie), myface);
if (Preferred3d) {
#ifdef OCCT_DEBUG
- cout << "Warning: IGESToBRep_IGESBoundary: 3D and 2D curves are inconsistent; 2D is ignored" << endl;
+ std::cout << "Warning: IGESToBRep_IGESBoundary: 3D and 2D curves are inconsistent; 2D is ignored" << std::endl;
#endif
}
else {
#ifdef OCCT_DEBUG
- cout << "Warning: IGESToBRep_IGESBoundary: 3D and 2D curves are inconsistent; 3D is ignored" << endl;
+ std::cout << "Warning: IGESToBRep_IGESBoundary: 3D and 2D curves are inconsistent; 3D is ignored" << std::endl;
#endif
Lsewd = Lsewd2d;
}
okCurve = okCurve && ShapeAlgo::AlgoContainer()->ConnectNextWire (saw, Lsewd, maxtol, distmin, revsewd, revnextsewd);
if (!okCurve) {
#ifdef OCCT_DEBUG
- cout << "Warning: IGESToBRep_IGESBoundary: Curves " << i - 1 << " and " << i << " cannot be connected" << endl;
+ std::cout << "Warning: IGESToBRep_IGESBoundary: Curves " << i - 1 << " and " << i << " cannot be connected" << std::endl;
#endif
Gsewd3d = new ShapeExtend_WireData;
for (Standard_Integer j = 1; j <= len3d; j++) {
sprintf(mess,"%d\t%d\t%s\t%s", igesEnt->TypeNumber(), igesEnt->FormNumber(),
"%d", aBinder->ResultTypeName());
- //cout << mess << endl;
+ //std::cout << mess << std::endl;
if (aMapCountMapping.IsBound(mess))
aMapCountMapping.ChangeFind(mess)++;
else
}
for(i = 1; i<= nf; i++) {
sprintf(mess,"\t F\t%d\t%d\t%s",type,form,aCheck->CFail(i));
- // TF << mess << endl;
+ // TF << mess << std::endl;
if (aMapCount.IsBound(mess))
aMapCount.ChangeFind(mess)++;
else
NCollection_DataMap<TCollection_AsciiString, Handle(TColStd_HSequenceOfInteger)>::Iterator aMapListIter(aMapList);
for(; aMapCountIter.More() && aMapListIter.More();
aMapCountIter.Next(), aMapListIter.Next()) {
- TF << aMapCountIter.Value() << aMapCountIter.Key() << endl;
+ TF << aMapCountIter.Value() << aMapCountIter.Key() << Message_EndLine;
if (mode == IFSelect_ListByItem) {
Handle(TColStd_HSequenceOfInteger) entityList = aMapListIter.Value();
Standard_Integer length = entityList->Length();
TF << line;
}
}
- TF << endl;
+ TF << Message_EndLine;
}
}
break;
NCollection_DataMap<TCollection_AsciiString, Standard_Integer>::Iterator aMapIter(aMapCountResult);
for (; aMapIter.More(); aMapIter.Next())
{
- TF << aMapIter.Key() << aMapIter.Value() << endl;
+ TF << aMapIter.Key() << aMapIter.Value() << Message_EndLine;
}
break;
}
sprintf(mess, "%d\t%d \t%s\t%s", root->TypeNumber(), root->FormNumber(),
"%d", "Failed");
- //cout << mess << endl;
+ //std::cout << mess << std::endl;
if (aMapCountMapping.IsBound(mess))
aMapCountMapping.ChangeFind(mess)++;
else
for(; aMapCountIter.More(); aMapCountIter.Next()) {
char mess[80];
sprintf(mess, aMapCountIter.Key().ToCString(), aMapCountIter.Value());
- TF << mess << endl; //dicoCountIter.Value() << dicoCountIter.Name() << endl;
+ TF << mess << Message_EndLine; //dicoCountIter.Value() << dicoCountIter.Name() << std::endl;
}
break;
}
ComputeModel();
Standard_Integer nbEnt = myModel->NbEntities();
#ifdef OCCT_DEBUG
- cout<<" IGES Write : "<<nbEnt<<" ent.s"<< flush;
+ std::cout<<" IGES Write : "<<nbEnt<<" ent.s"<< std::flush;
#endif
if(!nbEnt)
return Standard_False;
// ne pas oublier le mode fnes ... a transmettre a IW
IW.SendModel (IGESSelect_WorkLibrary::DefineProtocol());
#ifdef OCCT_DEBUG
- cout<<" ... ecriture ..."<<flush;
+ std::cout<<" ... ecriture ..."<<std::flush;
#endif
if (fnes) IW.WriteMode() = 10;
Standard_Boolean status = IW.Print(S);
#ifdef OCCT_DEBUG
- cout<<" ... fichier ecrit ..."<<endl;
+ std::cout<<" ... fichier ecrit ..."<<std::endl;
#endif
return status;
}
Standard_Boolean IGESControl_Writer::Write
(const Standard_CString file, const Standard_Boolean fnes)
{
- ofstream fout;
- OSD_OpenStream(fout,file,ios::out);
+ std::ofstream fout;
+ OSD_OpenStream(fout,file,std::ios::out);
if (!fout) return Standard_False;
#ifdef OCCT_DEBUG
- cout<<" Ecriture fichier ("<< (fnes ? "fnes" : "IGES") <<"): "<<file<<endl;
+ std::cout<<" Ecriture fichier ("<< (fnes ? "fnes" : "IGES") <<"): "<<file<<std::endl;
#endif
Standard_Boolean res = Write (fout,fnes);
gsys->AssignCat
#ifdef HPUX
("HP-UX");
- cout<<"-- OSD_Path::SystemVersion, does not work well on HP-UX"<<endl;
+ std::cout<<"-- OSD_Path::SystemVersion, does not work well on HP-UX"<<std::endl;
#endif
#ifndef HPUX
(host.SystemVersion().ToCString());
Standard_Integer nums = themodel->Number(sh.Value());
if (igt == 402 || igt == 404) subs.SetValue (nums,subs.Value(nums) | 2);
else subs.SetValue (nums,subs.Value(nums) | 1);
-//// cout<<"ComputeStatus : nums = "<<nums<<" ->"<<subs.Value(nums)<<endl;
+//// std::cout<<"ComputeStatus : nums = "<<nums<<" ->"<<subs.Value(nums)<<std::endl;
}
}
// UseFlag (a propager)
Standard_Integer uf = ent->UseFlag();
if (uf == 0) uf = G.Status(i);
Standard_Integer hy = ent->HierarchyStatus();
-//// cout<<" Ent.n0."<<i<<" Subord="<<subs.Value(i)<<" Use="<<uf<<endl;
+//// std::cout<<" Ent.n0."<<i<<" Subord="<<subs.Value(i)<<" Use="<<uf<<std::endl;
ent->InitStatus(bl,subs.Value(i),uf,hy);
}
}
Standard_Integer dstat = lent->DirStatus();
if (dstat != 0) S
- << " -- Directory Entry Error Status = " << dstat << " --" << endl;
+ << " -- Directory Entry Error Status = " << dstat << " --" << Message_EndLine;
Handle(Interface_UndefinedContent) cont = lent->UndefinedContent();
Standard_Integer nb = cont->NbParams();
S << " UNDEFINED ENTITY ...\n"<<nb
dumper.PrintDNum(anent,S);
}
else { S<<" ["<<i<<"]=" << cont->ParamValue(i); }
- if ( i == (i%5)*5) S << endl;
+ if ( i == (i%5)*5) S << Message_EndLine;
}
- S << endl;
+ S << Message_EndLine;
}
case 5 : S<<"Complete"; break;
default : S<<"Complete + Transformed Values"; break;
}
- S<<" ) ****"<<endl;
+ S<<" ) ****"<<Message_EndLine;
// **** Entity 1234:D2467 ** Type:102 Form:56 ** CompositeCurve **
- S<<"\n**** Entity "; PrintShort (ent,S); S<<endl;
+ S<<"\n**** Entity "; PrintShort (ent,S); S<<Message_EndLine;
S<<" Directory Part\n";
// ** Status : Blank:1 Subordinate:2 UseFlag:3 Hierarchy:4
if (own >= 1) {
if (ent->HasShortLabel()) S<<"**** Label :"<<ent->ShortLabel()->ToCString();
if (ent->HasSubScriptNumber()) S<<" SubScript:"<<ent->SubScriptNumber();
- if (ent->HasShortLabel()) S<<endl;
+ if (ent->HasShortLabel()) S<<Message_EndLine;
if (ent->HasTransf())
{ S<<"** Transf.Matrix :"; PrintDNum(ent->Transf(),S); S<<"\n"; }
if (ent->LineWeightNumber() != 0) {
S <<"** LineWeight Num:"<<ent->LineWeightNumber();
if (diratt > 0) S<<" -> Value:"<<ent->LineWeight();
- S<<endl;
+ S<<Message_EndLine;
}
if (ent->DefColor() == IGESData_DefValue)
{ S<<"** Color Value :"<<ent->RankColor(); }
else if (ent->DefColor() == IGESData_DefReference)
{ S<<"** Color Ref :"; PrintDNum (ent->Color(),S); }
- S<<endl;
+ S<<Message_EndLine;
if (own > 3) {
S<<"**** Own Data ****\n\n";
}
}
if (iasuit) { if (att <= 1) S << "\n"; }
- S<<"\n**** End of Dump ****\n"<<endl;
+ S<<"\n**** End of Dump ****\n"<<Message_EndLine;
}
if (thelib.Select(ent,module,CN))
module->OwnDump(CN,ent,*this,S,own);
else if (themodel.IsNull())
- S <<" **** Dump impossible. Type "<<ent->DynamicType()->Name()<<endl;
+ S <<" **** Dump impossible. Type "<<ent->DynamicType()->Name()<<Message_EndLine;
else
S <<" **** Dump Impossible, n0:id:"<<themodel->Number(ent)<<":D"
- <<themodel->DNum(ent)<<" Type "<<ent->DynamicType()->Name()<<endl;
+ <<themodel->DNum(ent)<<" Type "<<ent->DynamicType()->Name()<<Message_EndLine;
}
(const Handle(Message_Messenger)& S, const Standard_Integer ) const
{
Standard_Integer ns = thestart->Length();
- S<<"**** Dump of IGES Model , Start and Global Sections ****"<<endl;
+ S<<"**** Dump of IGES Model , Start and Global Sections ****"<<Message_EndLine;
if (ns > 0) {
S << "**** Start Section : "<<ns<<" Line(s) ****\n";
for (Standard_Integer i = 1; i <= ns; i ++)
- S<<"["<<(i<10 ? " ": "")<<i<<"]:"<<thestart->Value(i)->ToCString()<<endl;
+ S<<"["<<(i<10 ? " ": "")<<i<<"]:"<<thestart->Value(i)->ToCString()<<Message_EndLine;
}
S << "\n**** Global Section ****\n";
char sep = theheader.Separator();
S<<"\n";
Handle(TCollection_HAsciiString) str;
str = theheader.SendName();
- if (!str.IsNull()) S<<"[ 3] Sender : "<<str->ToCString()<<endl;
+ if (!str.IsNull()) S<<"[ 3] Sender : "<<str->ToCString()<<Message_EndLine;
str = theheader.FileName();
- if (!str.IsNull()) S<<"[ 4] (recorded) File Name : "<<str->ToCString()<<endl;
+ if (!str.IsNull()) S<<"[ 4] (recorded) File Name : "<<str->ToCString()<<Message_EndLine;
str = theheader.SystemId();
- if (!str.IsNull()) S<<"[ 5] System Identification : "<<str->ToCString()<<endl;
+ if (!str.IsNull()) S<<"[ 5] System Identification : "<<str->ToCString()<<Message_EndLine;
str = theheader.InterfaceVersion();
- if (!str.IsNull()) S<<"[ 6] Interface Version : "<<str->ToCString()<<endl;
- S<<endl;
+ if (!str.IsNull()) S<<"[ 6] Interface Version : "<<str->ToCString()<<Message_EndLine;
+ S<<Message_EndLine;
S << "[ 7] Integer Bits : " << theheader.IntegerBits()
- << " Features for Reals : " << endl;
+ << " Features for Reals : " << Message_EndLine;
S << "[ 8] Single Max.Power(10) : " << theheader.MaxPower10Single();
S << " [ 9] Digits : " << theheader.MaxDigitsSingle()<<"\n";
S << "[10] Double Max.Power(10) : " << theheader.MaxPower10Double();
num = theheader.DraftingStandard();
S << "\n[24] Drafting Standard : " << num;
if (num > 0) S<< " -> Name : " << IGESData_BasicEditor::DraftingName(num);
- S<<endl;
+ S<<Message_EndLine;
if (theheader.HasLastChangeDate()) {
str = theheader.LastChangeDate();
S << "[25] Last Change Date : " << str->ToCString()
- <<" i.e. "<<IGESData_GlobalSection::NewDateString(str,1)->ToCString()<<endl;
+ <<" i.e. "<<IGESData_GlobalSection::NewDateString(str,1)->ToCString()<<Message_EndLine;
}
- else S<<"[25] Last Change Date not defined (version IGES < 5.1)" << endl;
+ else S<<"[25] Last Change Date not defined (version IGES < 5.1)" << Message_EndLine;
if (theheader.HasApplicationProtocol()) {
str = theheader.ApplicationProtocol();
- S << "[26] Application Protocol : " << str->ToCString() <<endl;
+ S << "[26] Application Protocol : " << str->ToCString() <<Message_EndLine;
}
- S << " **** End of Dump ****"<<endl;
+ S << " **** End of Dump ****"<<Message_EndLine;
}
Standard_Integer nb = themodel->NbEntities();
#ifdef PATIENCELOG
- sout<< " IGESWriter : " << nb << " Entities (* = 1000 Ent.s)" << endl;
+ sout<< " IGESWriter : " << nb << " Entities (* = 1000 Ent.s)" << std::endl;
#endif
SectionS ();
Standard_Integer ns = themodel->NbStartLines();
Handle(IGESData_IGESEntity) ent = themodel->Entity(i);
Handle(IGESData_IGESEntity) cnt = ent;
#ifdef PATIENCELOG
- if (i % 1000 == 1) cout << "*" << flush;
+ if (i % 1000 == 1) std::cout << "*" << std::flush;
#endif
// Attention aux cas d erreur : contenu redefini
if (themodel->IsRedefinedContent(i)) {
- sout << " -- IGESWriter : Erroneous Entity N0."<<i<<" --"<<endl;
+ sout << " -- IGESWriter : Erroneous Entity N0."<<i<<" --"<<Message_EndLine;
Handle(Interface_ReportEntity) rep = themodel->ReportEntity(i);
if (!rep.IsNull()) cnt = GetCasted(IGESData_IGESEntity,rep->Content());
if (cnt.IsNull()) cnt = ent; // secours
undent->WriteOwnParams (*this);
}
else sout<<" -- IGESWriter : Not Processed for n0."<<i<<" in file, Type "
- <<cnt->TypeNumber()<<" Form "<<cnt->FormNumber()<<endl;
+ <<cnt->TypeNumber()<<" Form "<<cnt->FormNumber()<<Message_EndLine;
Associativities (cnt);
Properties (cnt);
EndEntity ();
}
#ifdef PATIENCELOG
- cout << " Envoi des Entites Termine"<<endl;
+ std::cout << " Envoi des Entites Termine"<<std::endl;
#endif
SectionT();
}
Standard_Integer nbs = 1;
if (thestar.IsNull()) {
if (fnes) {
- S << " *** EUCLID/STRIM DESKTOP CLIPBOARD ***"<<endl;
+ S << " *** EUCLID/STRIM DESKTOP CLIPBOARD ***"<<std::endl;
writefnes (S," S0000001");
}
else S<<" S0000001";
// 123456789 123456789 123456789 123456789 123456789 123456789 123456789 12
- S << endl;
+ S << std::endl;
} else {
nbs = thestar->Length();
for (i = 1; i <= nbs; i ++) {
S << &blancs[line->Length()];
if (fnes) writefnes (S,finlin);
else S << finlin;
- S << endl;
+ S << std::endl;
}
}
#ifdef PATIENCELOG
- cout << "Global Section : " << flush;
+ std::cout << "Global Section : " << std::flush;
#endif
isGood = S.good();
// Global Section : convertie dans <thehead>
S << &blancs[line->Length()];
if (fnes) writefnes (S,finlin);
else S << finlin;
- S << endl;
+ S << std::endl;
isGood = S.good();
}
if(!isGood)
return isGood;
#ifdef PATIENCELOG
- cout << nbg << " lines" << endl;
+ std::cout << nbg << " lines" << std::endl;
#endif
// Directory Section
Standard_Integer nbd = thedirs.Upper(); // 0 -> NbEnts
#ifdef PATIENCELOG
- cout << "\nDirectory section : " << nbd << " Entites" << endl;
+ std::cout << "\nDirectory section : " << nbd << " Entites" << std::endl;
#endif
for (i = 1; i <= nbd && isGood ; i ++) {
Standard_Integer v[17]; char res1[9],res2[9],lab[9],num[9];
if (fnes) writefnes (S,ligne);
else S << ligne;
S<< "\n";
-// cout << "Ent.no "<<i<<" No en P "<<thepnum.Value(i)<<
-// " Lignes P:"<<thepnum.Value(i+1)-thepnum.Value(i)<<endl;
+// std::cout << "Ent.no "<<i<<" No en P "<<thepnum.Value(i)<<
+// " Lignes P:"<<thepnum.Value(i+1)-thepnum.Value(i)<<std::endl;
// for (j = 0; j < 17; j ++) S<<v[j]<<" ";
-// S<<res1<<res2<<" label:"<<lab<<" subnum:"<<num<<endl;
+// S<<res1<<res2<<" label:"<<lab<<" subnum:"<<num<<std::endl;
isGood = S.good();
}
if(!isGood)
return isGood;
// Parameter Section
#ifdef PATIENCELOG
- cout<<" Parameter Section : "<<thepnum.Value(nbd)-1
- <<" lines (* = 1000 lines) "<<flush;
+ std::cout<<" Parameter Section : "<<thepnum.Value(nbd)-1
+ <<" lines (* = 1000 lines) "<<std::flush;
#endif
blancs[MaxcarsP] = '\0';
S << &blancs[line->Length()];
if (fnes) writefnes (S,finlin);
else S << finlin;
- S << endl;
+ S << std::endl;
isGood = S.good();
#ifdef PATIENCELOG
lignespatience --;
- if (lignespatience <= 0) { cout<<"*"<<flush; lignespatience = 1000; }
+ if (lignespatience <= 0) { std::cout<<"*"<<std::flush; lignespatience = 1000; }
#endif
}
}
S.flush();
isGood = S.good();
#ifdef PATIENCELOG
- cout <<"\n Section T (lines counts) : G "<<nbg<<" D "<<nbd
- <<" P "<<thepnum.Value(thepnum.Length())-1<<" T 1"<<endl;
+ std::cout <<"\n Section T (lines counts) : G "<<nbg<<" D "<<nbd
+ <<" P "<<thepnum.Value(thepnum.Length())-1<<" T 1"<<std::endl;
#endif
return isGood;
}
Handle(Interface_Check)& , const Handle(Standard_Transient)& ) const
{
#ifdef OCCT_DEBUG
- cout<<"IGESData_ReadWriteModule, Read called"<<endl;
+ std::cout<<"IGESData_ReadWriteModule, Read called"<<std::endl;
#endif
}
// IGESReaderTool fait tout
(const Handle(IGESDefs_AssociativityDef)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESDefs_AssociativityDef" << endl;
- S << "Number of Class Definitions : " << ent->NbClassDefs() << endl;
- S << "Back Pointer Requirement : " << endl;
- S << "Ordered / Unordered Class : " << endl;
- S << "Number Of Items per Entry : " << endl;
- S << "Items : " << endl;
+ S << "IGESDefs_AssociativityDef" << Message_EndLine;
+ S << "Number of Class Definitions : " << ent->NbClassDefs() << Message_EndLine;
+ S << "Back Pointer Requirement : " << Message_EndLine;
+ S << "Ordered / Unordered Class : " << Message_EndLine;
+ S << "Number Of Items per Entry : " << Message_EndLine;
+ S << "Items : " << Message_EndLine;
IGESData_DumpVals(S,-level,1, ent->NbClassDefs(),ent->BackPointerReq);
- S << endl;
+ S << Message_EndLine;
if (level > 4)
{
// Warning : Item is a JAGGED Array
Standard_Integer upper = ent->NbClassDefs();
for (Standard_Integer i = 1; i <= upper; i ++) {
- S << "[" << i << "]: " << endl;
+ S << "[" << i << "]: " << Message_EndLine;
S << "Back Pointer Requirement : " << ent->BackPointerReq(i) << " ";
if (ent->IsBackPointerReq(i)) S << "(Yes) ";
else S << "(No) ";
S << " Ordered/Unordered Class : " << ent->ClassOrder(i) << " ";
- if (ent->IsOrdered(i)) S << "(Yes)" <<endl;
- else S << "(No)" <<endl;
+ if (ent->IsOrdered(i)) S << "(Yes)" <<Message_EndLine;
+ else S << "(No)" <<Message_EndLine;
S << "Number Of Items per Entry : " << ent->NbItemsPerClass(i);
if (level < 6) {
- S << " [ask level > 5 for more]" << endl;
+ S << " [ask level > 5 for more]" << Message_EndLine;
continue;
}
- S << endl << " [";
+ S << Message_EndLine << " [";
for (Standard_Integer j = 1; j <= ent->NbItemsPerClass(i); j ++)
S << " " << ent->Item(i,j);
- S << "]" << endl;
+ S << "]" << Message_EndLine;
}
}
- S << endl;
+ S << Message_EndLine;
}
{
Standard_Integer sublevel = (level > 4) ? 1 : 0;
- S << "IGESDefs_AttributeDef" << endl;
+ S << "IGESDefs_AttributeDef" << Message_EndLine;
S << "Attribute Table Name: ";
IGESData_DumpString(S,ent->TableName());
- S << endl;
- S << "Attribute List Type : " << ent->ListType() << endl;
- S << "Number of Attributes : " << ent->NbAttributes() << endl;
- S << "Attribute Types : " << endl;
- S << "Attribute Value Data Types : " << endl;
- S << "Attribute Value Counts : " << endl;
- if (ent->HasValues()) S << "Attribute Values : " << endl;
- if (ent->HasTextDisplay()) S << "Attribute Value Entities : " << endl;
+ S << Message_EndLine;
+ S << "Attribute List Type : " << ent->ListType() << Message_EndLine;
+ S << "Number of Attributes : " << ent->NbAttributes() << Message_EndLine;
+ S << "Attribute Types : " << Message_EndLine;
+ S << "Attribute Value Data Types : " << Message_EndLine;
+ S << "Attribute Value Counts : " << Message_EndLine;
+ if (ent->HasValues()) S << "Attribute Values : " << Message_EndLine;
+ if (ent->HasTextDisplay()) S << "Attribute Value Entities : " << Message_EndLine;
IGESData_DumpVals(S,-level,1, ent->NbAttributes(),ent->AttributeType);
- S << endl;
+ S << Message_EndLine;
if (level > 4)
{
Standard_Integer upper = ent->NbAttributes();
case 6 : S << " : Logical "; break;
default : break;
}
- S << " Count : " << avc << endl;
+ S << " Count : " << avc << Message_EndLine;
if (ent->HasValues())
{
if (level <= 5) {
- S << " [ content (Values) : ask level > 5 ]" << endl;
+ S << " [ content (Values) : ask level > 5 ]" << Message_EndLine;
continue;
}
for (Standard_Integer j = 1; j <= avc; j ++)
S << " Attribute Value Pointer : ";
dumper.Dump (ent->AttributeTextDisplay(i,j),S, sublevel);
}
- S << endl;
+ S << Message_EndLine;
}
}
}
}
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESDefs_AttributeTable)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESDefs_AttributeTable" << endl;
+ S << "IGESDefs_AttributeTable" << Message_EndLine;
Handle(IGESDefs_AttributeDef) ab = ent->Definition();
Standard_Integer na = ent->NbAttributes();
Standard_Integer nr = ent->NbRows();
if (ent->FormNumber() == 1)
- S << "Number of Rows (i.e. complete sets of Attributes) : " << nr << endl;
- else S << "One set of Attributes" << endl;
- S << "Number of defined Attributes : " << na << endl;
+ S << "Number of Rows (i.e. complete sets of Attributes) : " << nr << Message_EndLine;
+ else S << "One set of Attributes" << Message_EndLine;
+ S << "Number of defined Attributes : " << na << Message_EndLine;
if (level <= 4) S <<
- " [ structure : see Structure in Directory Entry; content : level > 4 ]" <<endl;
+ " [ structure : see Structure in Directory Entry; content : level > 4 ]" <<Message_EndLine;
else
for (Standard_Integer k = 1; k <= nr; k ++)
{
default : break;
}
}
- S << endl;
+ S << Message_EndLine;
}
}
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESDefs_GenericData)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESDefs_GenericData" << endl;
- S << "Number of property values : " << ent->NbPropertyValues() << endl;
+ S << "IGESDefs_GenericData" << Message_EndLine;
+ S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
S << "Property Name : ";
IGESData_DumpString(S,ent->Name());
- S << endl;
+ S << Message_EndLine;
switch (level)
{
case 4:
- S << "Types : " << endl;
- S << "Values : Count = " << ent->NbTypeValuePairs() << endl;
- S << " [ as level > 4 for content ]" << endl;
+ S << "Types : " << Message_EndLine;
+ S << "Values : Count = " << ent->NbTypeValuePairs() << Message_EndLine;
+ S << " [ as level > 4 for content ]" << Message_EndLine;
break;
case 5:
case 6:
{
Standard_Integer i, num;
- S << "Types & Values : " << endl;
+ S << "Types & Values : " << Message_EndLine;
for ( num = ent->NbTypeValuePairs(), i = 1; i <= num; i++ )
{
S << "[" << i << "]: ";
<< (ent->ValueAsLogical(i) ? "True" : "False"); break;
default : break;
}
- S << endl;
+ S << Message_EndLine;
}
}
}
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESDefs_MacroDef)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESDefs_MacroDef" << endl;
+ S << "IGESDefs_MacroDef" << Message_EndLine;
S << "MACRO : ";
IGESData_DumpString(S,ent->MACRO());
- S << endl;
- S << "Entity Type ID : " << ent->EntityTypeID() << endl;
+ S << Message_EndLine;
+ S << "Entity Type ID : " << ent->EntityTypeID() << Message_EndLine;
S << "Language Statement : ";
IGESData_DumpStrings(S ,level,1, ent->NbStatements(),ent->LanguageStatement);
S << "END MACRO : ";
IGESData_DumpString(S,ent->ENDMACRO());
- S << endl;
+ S << Message_EndLine;
}
Standard_Integer nbIndeps = ent->NbIndependents(); //szv#4:S4163:12Mar99 i unused
Standard_Integer nbDeps = ent->NbDependents();
- S << "IGESDefs_TabularData" << endl;
- S << "No. of property values : " << ent->NbPropertyValues() << endl;
- S << "Property type : " << ent->PropertyType() << endl;
- S << "No. of Dependent variables : " << nbDeps << endl;
- S << "No. of Independent variables : " << nbIndeps << endl;
+ S << "IGESDefs_TabularData" << Message_EndLine;
+ S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
+ S << "Property type : " << ent->PropertyType() << Message_EndLine;
+ S << "No. of Dependent variables : " << nbDeps << Message_EndLine;
+ S << "No. of Independent variables : " << nbIndeps << Message_EndLine;
S << "Type of independent variables : ";
IGESData_DumpVals(S ,level,1, nbIndeps,ent->TypeOfIndependents);
- S << endl << "Number of values of independent variables : ";
+ S << Message_EndLine << "Number of values of independent variables : ";
IGESData_DumpVals(S ,level,1, nbIndeps,ent->NbValues);
// ?? JAGGED ??
- S << endl << "Values of the independent variable : ";
+ S << Message_EndLine << "Values of the independent variable : ";
if (level < 5) S << " [ask level > 4]";
else {
for (Standard_Integer ind = 1; ind <= nbIndeps; ind ++) {
- S << endl << "[" << ind << "]:";
+ S << Message_EndLine << "[" << ind << "]:";
Standard_Integer nbi = ent->NbValues(ind);
for (Standard_Integer iv = 1; iv <= nbi; iv ++)
S << " " << ent->IndependentValue(ind,iv);
}
}
// IGESData_DumpVals(S ,level,1, nbIndeps,ent->IndependentValue);
- S << endl << "Values of the dependent variable : ";
+ S << Message_EndLine << "Values of the dependent variable : ";
// IGESData_DumpVals(S ,level,1, nbDeps,ent->DependentValue);
S << " TO BE DONE";
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESDefs_UnitsData)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESDefs_UnitsData" << endl;
- S << "Number of Units : " << ent->NbUnits() << endl;
- S << "Type of Unit : " << endl;
- S << "Value of Unit : " << endl;
- S << "Scale Factor : " << endl;
+ S << "IGESDefs_UnitsData" << Message_EndLine;
+ S << "Number of Units : " << ent->NbUnits() << Message_EndLine;
+ S << "Type of Unit : " << Message_EndLine;
+ S << "Value of Unit : " << Message_EndLine;
+ S << "Scale Factor : " << Message_EndLine;
IGESData_DumpStrings(S,-level,1, ent->NbUnits(),ent->UnitType);
- S << endl;
+ S << Message_EndLine;
if (level > 4)
{
- S << "Details of the Units" << endl;
+ S << "Details of the Units" << Message_EndLine;
Standard_Integer upper = ent->NbUnits();
for (Standard_Integer i = 1; i <= upper; i++)
{
S << "[" << i << "] Type : ";
IGESData_DumpString(S,ent->UnitType(i));
- S << endl;
+ S << Message_EndLine;
S << " Value : ";
IGESData_DumpString(S,ent->UnitValue(i));
- S << endl;
- S << " ScaleFactor: " << ent->ScaleFactor(i) << endl;
+ S << Message_EndLine;
+ S << " ScaleFactor: " << ent->ScaleFactor(i) << Message_EndLine;
}
}
- S << endl;
+ S << Message_EndLine;
}
{
Standard_Integer sublevel = (level > 4) ? 1 : 0;
- S << "IGESDimen_AngularDimension" << endl;
+ S << "IGESDimen_AngularDimension" << Message_EndLine;
S << "General Note Entity : ";
dumper.Dump(ent->Note(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "First Witness Entity : ";
dumper.Dump(ent->FirstWitnessLine(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "Second Witness Entity : ";
dumper.Dump(ent->SecondWitnessLine(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "Vertex Point Co-ords : ";
- IGESData_DumpXYL(S,level, ent->Vertex(), ent->Location()); S << endl;
- S << "Radius of Leader arcs : " << ent->Radius() << endl;
+ IGESData_DumpXYL(S,level, ent->Vertex(), ent->Location()); S << Message_EndLine;
+ S << "Radius of Leader arcs : " << ent->Radius() << Message_EndLine;
S << "First Leader Entity : ";
dumper.Dump(ent->FirstLeader(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "Second Leader Entity : ";
dumper.Dump(ent->SecondLeader(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESDimen_BasicDimension)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
{
- S << "IGESDimen_BasicDimension" << endl;
- S << "Number of Property Values : " << ent->NbPropertyValues() << endl;
- S << endl << " Lower left corner : " ;
+ S << "IGESDimen_BasicDimension" << Message_EndLine;
+ S << "Number of Property Values : " << ent->NbPropertyValues() << Message_EndLine;
+ S << Message_EndLine << " Lower left corner : " ;
IGESData_DumpXY(S, ent->LowerLeft());
- S << endl << " Lower right corner : " ;
+ S << Message_EndLine << " Lower right corner : " ;
IGESData_DumpXY(S, ent->LowerRight());
- S << endl << " Upper right corner : " ;
+ S << Message_EndLine << " Upper right corner : " ;
IGESData_DumpXY(S, ent->UpperRight());
- S << endl << " Upper left corner : ";
+ S << Message_EndLine << " Upper left corner : ";
IGESData_DumpXY(S, ent->UpperLeft());
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESDimen_CenterLine)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESDimen_CenterLine" << endl;
- if (ent->IsCrossHair()) S << "Cross Hair" << endl;
- else S << "Through Circle Centers" << endl;
+ S << "IGESDimen_CenterLine" << Message_EndLine;
+ if (ent->IsCrossHair()) S << "Cross Hair" << Message_EndLine;
+ else S << "Through Circle Centers" << Message_EndLine;
S << "Data Type : " << ent->Datatype() << " ";
S << "Number of Data Points : " << ent->NbPoints() << " ";
S << "Common Z displacement : " << ent->ZDisplacement() << " ";
- S << "Data Points : " << endl;
+ S << "Data Points : " << Message_EndLine;
IGESData_DumpListXYLZ(S ,level,1, ent->NbPoints(),ent->Point,
ent->Location(), ent->ZDisplacement());
- S << endl;
+ S << Message_EndLine;
}
{
Standard_Integer sublevel = (level > 4) ? 1 : 0;
- S << "IGESDimen_CurveDimension" << endl;
+ S << "IGESDimen_CurveDimension" << Message_EndLine;
S << "General Note Entity : ";
dumper.Dump(ent->Note(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "First Curve Entity : ";
dumper.Dump(ent->FirstCurve(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "Second Curve Entity : ";
dumper.Dump(ent->SecondCurve(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "First Leader Entity : ";
dumper.Dump(ent->FirstLeader(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "Second Leader Entity : ";
dumper.Dump(ent->SecondLeader(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "First Witness Entity : ";
dumper.Dump(ent->FirstWitnessLine(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "Second Witness Entity : ";
dumper.Dump(ent->SecondWitnessLine(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
}
{
Standard_Integer sublevel = (level > 4) ? 1 : 0;
- S << "IGESDimen_DiameterDimension" << endl;
+ S << "IGESDimen_DiameterDimension" << Message_EndLine;
S << "General Note Entity : ";
dumper.Dump(ent->Note(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "First Leader Entity : ";
dumper.Dump(ent->FirstLeader(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "Second Leader Entity : ";
dumper.Dump(ent->SecondLeader(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "Center Point : ";
IGESData_DumpXYL(S,level, ent->Center(), ent->Location());
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESDimen_DimensionDisplayData)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESDimen_DimensionDisplayData" << endl;
+ S << "IGESDimen_DimensionDisplayData" << Message_EndLine;
- S << "No. of property values : " << ent->NbPropertyValues() << endl;
+ S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
S << "DimensionType : " << ent->DimensionType() ;
switch (ent->DimensionType()) {
- case 0 : S << " (Ordinary)" << endl; break;
- case 1 : S << " (Reference)" << endl; break;
- case 2 : S << " (Basic)" << endl; break;
- default : S << " (Incorrect Value)" << endl; break;
+ case 0 : S << " (Ordinary)" << Message_EndLine; break;
+ case 1 : S << " (Reference)" << Message_EndLine; break;
+ case 2 : S << " (Basic)" << Message_EndLine; break;
+ default : S << " (Incorrect Value)" << Message_EndLine; break;
}
S << "Preferred Label Position : " << ent->LabelPosition();
switch (ent->LabelPosition()) {
- case 0 : S << " (Does not exist)" << endl; break;
- case 1 : S << " (Before Measurement)" << endl; break;
- case 2 : S << " (After Measurement)" << endl; break;
- case 3 : S << " (Above Measurement)" << endl; break;
- case 4 : S << " (Below Measurement)" << endl; break;
- default : S << " (Incorrect Value)" << endl; break;
+ case 0 : S << " (Does not exist)" << Message_EndLine; break;
+ case 1 : S << " (Before Measurement)" << Message_EndLine; break;
+ case 2 : S << " (After Measurement)" << Message_EndLine; break;
+ case 3 : S << " (Above Measurement)" << Message_EndLine; break;
+ case 4 : S << " (Below Measurement)" << Message_EndLine; break;
+ default : S << " (Incorrect Value)" << Message_EndLine; break;
}
S << "Character set interpretation : " << ent->CharacterSet() ;
switch (ent->CharacterSet())
{
- case 1 : S << " (Standard ASCII)" << endl; break;
- case 1001 : S << " (Symbol Font 1)" << endl; break;
- case 1002 : S << " (Symbol Font 2)" << endl; break;
- case 1003 : S << " (Drafting Font)" << endl; break;
- default : S << " (Not meaningful)" << endl; break;
+ case 1 : S << " (Standard ASCII)" << Message_EndLine; break;
+ case 1001 : S << " (Symbol Font 1)" << Message_EndLine; break;
+ case 1002 : S << " (Symbol Font 2)" << Message_EndLine; break;
+ case 1003 : S << " (Drafting Font)" << Message_EndLine; break;
+ default : S << " (Not meaningful)" << Message_EndLine; break;
}
S << "LString : ";
IGESData_DumpString(S,ent->LString());
- S << endl;
+ S << Message_EndLine;
S << "Decimal Symbol : ";
- if (ent->DecimalSymbol() == 0) S << "0 (.)" << endl;
- else S << "1 (,)" << endl;
+ if (ent->DecimalSymbol() == 0) S << "0 (.)" << Message_EndLine;
+ else S << "1 (,)" << Message_EndLine;
- S << "Witness Line Angle : " << ent->WitnessLineAngle() << endl;
+ S << "Witness Line Angle : " << ent->WitnessLineAngle() << Message_EndLine;
S << "Text Alignment : " ;
- if (ent->TextAlignment() == 0 ) S << "0 (Horizontal)" << endl;
- else if (ent->TextAlignment() == 1 ) S << "1 (Parallel)" << endl;
- else S << ent->TextAlignment() << " (Incorrect Value)" << endl;
+ if (ent->TextAlignment() == 0 ) S << "0 (Horizontal)" << Message_EndLine;
+ else if (ent->TextAlignment() == 1 ) S << "1 (Parallel)" << Message_EndLine;
+ else S << ent->TextAlignment() << " (Incorrect Value)" << Message_EndLine;
S << "Text Level : " << ent->TextLevel();
switch (ent->TextLevel()) {
- case 0 : S << " (Neither above nor below)" << endl; break;
- case 1 : S << " (Above)" << endl; break;
- case 2 : S << " (Below)" << endl; break;
- default : S << " (Incorrect Value)" << endl; break;
+ case 0 : S << " (Neither above nor below)" << Message_EndLine; break;
+ case 1 : S << " (Above)" << Message_EndLine; break;
+ case 2 : S << " (Below)" << Message_EndLine; break;
+ default : S << " (Incorrect Value)" << Message_EndLine; break;
}
S << "Preferred Text placement : " << ent->TextPlacement();
switch (ent->TextPlacement()) {
- case 0 : S << " (Between witness lines)" << endl; break;
- case 1 : S << " (Outside near the first witness line)" << endl; break;
- case 2 : S << " (Outside near second witness line)" << endl; break;
- default : S << " (Incorrect Value)" << endl; break;
+ case 0 : S << " (Between witness lines)" << Message_EndLine; break;
+ case 1 : S << " (Outside near the first witness line)" << Message_EndLine; break;
+ case 2 : S << " (Outside near second witness line)" << Message_EndLine; break;
+ default : S << " (Incorrect Value)" << Message_EndLine; break;
}
S << "Arrow Head Orientation : " << ent->ArrowHeadOrientation();
- if (ent->ArrowHeadOrientation() == 0) S << " (In, pointing out)" <<endl;
- else if (ent->ArrowHeadOrientation() == 1) S << " (Out, pointing in)" <<endl;
- else S << " (Incorrect Value)" << endl;
+ if (ent->ArrowHeadOrientation() == 0) S << " (In, pointing out)" <<Message_EndLine;
+ else if (ent->ArrowHeadOrientation() == 1) S << " (Out, pointing in)" <<Message_EndLine;
+ else S << " (Incorrect Value)" << Message_EndLine;
Standard_Integer nbnotes = ent->NbSupplementaryNotes();
- S << " Primary Dimension Value : " << ent->InitialValue() << endl;
- S << " Number of Supplementary Notes : " << nbnotes <<endl;
+ S << " Primary Dimension Value : " << ent->InitialValue() << Message_EndLine;
+ S << " Number of Supplementary Notes : " << nbnotes <<Message_EndLine;
S << "Supplementary Notes , ";
S << " Start Index , ";
- S << " End Index : " << endl;
+ S << " End Index : " << Message_EndLine;
IGESData_DumpVals(S,-level,1, nbnotes,ent->EndIndex);
- S << endl;
+ S << Message_EndLine;
if (level > 4)
for (Standard_Integer i = 1; i <= nbnotes; i ++)
{
- S << "[" << i << "]: " << endl;
+ S << "[" << i << "]: " << Message_EndLine;
S << "Supplementary Note : " << ent->SupplementaryNote(i);
S << ", Start Index : " << ent->StartIndex(i);
- S << ", End Index : " << ent->EndIndex(i) << endl;
+ S << ", End Index : " << ent->EndIndex(i) << Message_EndLine;
}
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESDimen_DimensionTolerance)& ent, const IGESData_IGESDumper& /*dumper*/,
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
{
- S << "IGESDimen_DimensionTolerance" << endl;
- S << "Number of property values : " << ent->NbPropertyValues() << endl;
- S << "Secondary Tolerance Flag : " << ent->SecondaryToleranceFlag() << endl;
- S << "Tolerance Type : " << ent->ToleranceType() << endl;
- S << "Tolerance Placement Flag : " << ent->TolerancePlacementFlag() << endl;
- S << "Upper Tolerance : " << ent->UpperTolerance() << endl;
- S << "Lower Tolerance : " << ent->LowerTolerance() << endl;
- S << "Sign Suppression Flag : " << ( ent->SignSuppressionFlag() ? "True" : "False" ) << endl;
- S << "Fraction Flag : " << ent->FractionFlag() << endl;
- S << "Precision : " << ent->Precision() << endl;
+ S << "IGESDimen_DimensionTolerance" << Message_EndLine;
+ S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
+ S << "Secondary Tolerance Flag : " << ent->SecondaryToleranceFlag() << Message_EndLine;
+ S << "Tolerance Type : " << ent->ToleranceType() << Message_EndLine;
+ S << "Tolerance Placement Flag : " << ent->TolerancePlacementFlag() << Message_EndLine;
+ S << "Upper Tolerance : " << ent->UpperTolerance() << Message_EndLine;
+ S << "Lower Tolerance : " << ent->LowerTolerance() << Message_EndLine;
+ S << "Sign Suppression Flag : " << ( ent->SignSuppressionFlag() ? "True" : "False" ) << Message_EndLine;
+ S << "Fraction Flag : " << ent->FractionFlag() << Message_EndLine;
+ S << "Precision : " << ent->Precision() << Message_EndLine;
}
(const Handle(IGESDimen_DimensionUnits)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
{
- S << "IGESDimen_DimensionUnits" << endl;
- S << "Number of property values : " << ent->NbPropertyValues() << endl;
- S << "Secondary Dimension Position : " << ent->SecondaryDimenPosition() << endl;
- S << "Units Indicator : " << ent->UnitsIndicator() << endl;
- S << "Character Set : " << ent->CharacterSet() << endl;
+ S << "IGESDimen_DimensionUnits" << Message_EndLine;
+ S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
+ S << "Secondary Dimension Position : " << ent->SecondaryDimenPosition() << Message_EndLine;
+ S << "Units Indicator : " << ent->UnitsIndicator() << Message_EndLine;
+ S << "Character Set : " << ent->CharacterSet() << Message_EndLine;
S << "Format String : ";
IGESData_DumpString(S,ent->FormatString());
- S << endl;
+ S << Message_EndLine;
S << "Fraction Flag : " << ent->FractionFlag();
if (ent->FractionFlag() == 0) S << " Decimal , Precision : ";
else S << " Fraction , Denominator : ";
- S << ent->PrecisionOrDenominator() << endl;
+ S << ent->PrecisionOrDenominator() << Message_EndLine;
}
(const Handle(IGESDimen_DimensionedGeometry)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESDimen_DimensionedGeometry" << endl;
+ S << "IGESDimen_DimensionedGeometry" << Message_EndLine;
//Standard_Integer lower = 1; //szv#4:S4163:12Mar99 unused
// Standard_Integer upper = ent->NbGeometryEntities();
- S << "Number of Dimensions : " << ent->NbDimensions() << endl;
+ S << "Number of Dimensions : " << ent->NbDimensions() << Message_EndLine;
S << "Dimension Entity : ";
dumper.Dump(ent->DimensionEntity(),S,(level <= 4) ? 0 : 1);
- S << endl;
+ S << Message_EndLine;
S << "Geometry Entities : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbGeometryEntities(),ent->GeometryEntity);
- S << endl;
+ S << Message_EndLine;
}
{
Standard_Integer sublevel = (level > 4) ? 1 : 0;
- S << "IGESDimen_FlagNote" << endl;
+ S << "IGESDimen_FlagNote" << Message_EndLine;
S << "LowerLeftCorner : ";
IGESData_DumpXYZL(S,level, ent->LowerLeftCorner(), ent->Location());
- S << endl << "Rotation Angle: " << ent->Angle() << endl;
+ S << Message_EndLine << "Rotation Angle: " << ent->Angle() << Message_EndLine;
S << "General Note Entity : ";
dumper.Dump(ent->Note(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "Number of Leaders : " << ent->NbLeaders() << " Leaders : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbLeaders(),ent->Leader);
- S << endl;
+ S << Message_EndLine;
}
{
Standard_Integer sublevel = (level > 4) ? 1 : 0;
- S << "IGESDimen_GeneralLabel" << endl;
+ S << "IGESDimen_GeneralLabel" << Message_EndLine;
S << "General Note Entity : ";
dumper.Dump(ent->Note(),S, sublevel);
- S << endl;
- S << "Number of Leaders : " << ent->NbLeaders() << endl;
+ S << Message_EndLine;
+ S << "Number of Leaders : " << ent->NbLeaders() << Message_EndLine;
S << "Leaders : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbLeaders(),ent->Leader);
- S << endl;
+ S << Message_EndLine;
}
Standard_Integer sublevel = (level > 4) ? 1 : 0;
Standard_Integer upper = ent->NbStrings();
- S << "IGESDimen_GeneralNote" << endl;
- S << "Number of Text Strings : " << upper << endl;
- S << "Number of Characters : " << endl;
- S << "Box Widths : " << endl;
- S << "Box Heights : " << endl;
- S << "Font Codes : " << endl;
- S << "Font Entities : " << endl;
- S << "Slant Angles : " << endl;
- S << "Rotation Angles : " << endl;
- S << "Mirror Flags : " << endl;
- S << "Rotate Flags : " << endl;
- S << "Start Points : " << endl;
+ S << "IGESDimen_GeneralNote" << Message_EndLine;
+ S << "Number of Text Strings : " << upper << Message_EndLine;
+ S << "Number of Characters : " << Message_EndLine;
+ S << "Box Widths : " << Message_EndLine;
+ S << "Box Heights : " << Message_EndLine;
+ S << "Font Codes : " << Message_EndLine;
+ S << "Font Entities : " << Message_EndLine;
+ S << "Slant Angles : " << Message_EndLine;
+ S << "Rotation Angles : " << Message_EndLine;
+ S << "Mirror Flags : " << Message_EndLine;
+ S << "Rotate Flags : " << Message_EndLine;
+ S << "Start Points : " << Message_EndLine;
S << "Texts : ";
IGESData_DumpVals(S,-level,1, ent->NbStrings(),ent->NbCharacters);
- S << endl;
+ S << Message_EndLine;
if (level > 4)
{
- S << "Details of each String" << endl;
+ S << "Details of each String" << Message_EndLine;
for ( Standard_Integer i = 1; i <= upper; i++)
{
- S << "[" << i << "]: " << endl;
+ S << "[" << i << "]: " << Message_EndLine;
S << "Number of Characters : " << ent->NbCharacters(i) << " ";
S << "Box Width : " << ent->BoxWidth(i) << " ";
- S << "Box Height : " << ent->BoxHeight(i) << endl;
+ S << "Box Height : " << ent->BoxHeight(i) << Message_EndLine;
if (ent->IsFontEntity(i))
{
S << "Font Entity : ";
dumper.Dump (ent->FontEntity(i),S, sublevel);
- S << endl;
+ S << Message_EndLine;
}
else
- S << "Font Code : " << ent->FontCode(i) << endl;
+ S << "Font Code : " << ent->FontCode(i) << Message_EndLine;
S << "Slant Angle : " << ent->SlantAngle(i) << " ";
S << "Rotation Angle : " << ent->RotationAngle(i) << " ";
S << "Mirror Flag : " << ent->MirrorFlag(i) << " ";
- S << "Rotate Flag : " << ent->RotateFlag(i) << endl;
+ S << "Rotate Flag : " << ent->RotateFlag(i) << Message_EndLine;
S << "Start Point : ";
IGESData_DumpXYZL(S,level, ent->StartPoint(i), ent->Location());
S << "\nText : ";
IGESData_DumpString(S,ent->Text(i));
- S << endl;
+ S << Message_EndLine;
}
}
- S << endl;
+ S << Message_EndLine;
}
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
Standard_Integer sublevel = (level > 4) ? 1 : 0;
- S << "IGESDimen_GeneralSymbol" << endl;
+ S << "IGESDimen_GeneralSymbol" << Message_EndLine;
S << "General Note : ";
dumper.Dump(ent->Note(),S, sublevel);
- S << endl << "Geometric Entities : ";
+ S << Message_EndLine << "Geometric Entities : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbGeomEntities(),ent->GeomEntity);
- S << endl << "Leader Arrows : ";
+ S << Message_EndLine << "Leader Arrows : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbLeaders(),ent->LeaderArrow);
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESDimen_LeaderArrow)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESDimen_LeaderArrow" << endl;
- S << "Number of Segments : " << ent->NbSegments() << endl;
- S << "Arrowhead Height : " << ent->ArrowHeadHeight() << endl;
- S << "Arrowhead Width : " << ent->ArrowHeadWidth() << endl;
- S << "Z depth : " << ent->ZDepth() << endl;
+ S << "IGESDimen_LeaderArrow" << Message_EndLine;
+ S << "Number of Segments : " << ent->NbSegments() << Message_EndLine;
+ S << "Arrowhead Height : " << ent->ArrowHeadHeight() << Message_EndLine;
+ S << "Arrowhead Width : " << ent->ArrowHeadWidth() << Message_EndLine;
+ S << "Z depth : " << ent->ZDepth() << Message_EndLine;
S << "Arrowhead co-ords : ";
IGESData_DumpXYLZ(S,level,ent->ArrowHead(),ent->Location(),ent->ZDepth());
- S << endl << "Segment Tails : ";
+ S << Message_EndLine << "Segment Tails : ";
IGESData_DumpListXYLZ(S ,level,1, ent->NbSegments(),ent->SegmentTail,
ent->Location(), ent->ZDepth());
- S << endl;
+ S << Message_EndLine;
}
{
Standard_Integer sublevel = (level > 4) ? 1 : 0;
- S << "IGESDimen_LinearDimension" << endl;
- if (ent->FormNumber() == 0) S << " (Undetermined Form)" << endl;
- else if (ent->FormNumber() == 1) S << " (Diameter Form)" << endl;
- else if (ent->FormNumber() == 2) S << " (Radius Form)" << endl;
+ S << "IGESDimen_LinearDimension" << Message_EndLine;
+ if (ent->FormNumber() == 0) S << " (Undetermined Form)" << Message_EndLine;
+ else if (ent->FormNumber() == 1) S << " (Diameter Form)" << Message_EndLine;
+ else if (ent->FormNumber() == 2) S << " (Radius Form)" << Message_EndLine;
S << "General Note Entity : ";
dumper.Dump(ent->Note(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "First Leader Entity : ";
dumper.Dump(ent->FirstLeader(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "Second Leader Entity : ";
dumper.Dump(ent->SecondLeader(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "First Witness Entity : ";
dumper.Dump(ent->FirstWitness(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "Second Witness Entity : ";
dumper.Dump(ent->SecondWitness(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
}
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
Standard_Integer i, num, sublevel = (level > 4) ? 1 : 0;
- S << "IGESDimen_NewDimensionedGeometry" << endl;
- S << "Number of Dimensions : " << ent->NbDimensions() << endl;
+ S << "IGESDimen_NewDimensionedGeometry" << Message_EndLine;
+ S << "Number of Dimensions : " << ent->NbDimensions() << Message_EndLine;
S << "Dimension Entity : ";
dumper.Dump(ent->DimensionEntity(),S, sublevel);
- S << endl;
- S << "Dimension Orientation Flag : " << ent->DimensionOrientationFlag() << endl;
- S << "Angle Value Flag : " << ent->AngleValue() << endl;
- S << "Geometry Entities : " << endl;
- S << "Dimension Location Flags : " << endl;
+ S << Message_EndLine;
+ S << "Dimension Orientation Flag : " << ent->DimensionOrientationFlag() << Message_EndLine;
+ S << "Angle Value Flag : " << ent->AngleValue() << Message_EndLine;
+ S << "Geometry Entities : " << Message_EndLine;
+ S << "Dimension Location Flags : " << Message_EndLine;
S << "Points : ";
IGESData_DumpEntities(S,dumper,-level,1, ent->NbGeometries(),ent->GeometryEntity);
- S << endl;
+ S << Message_EndLine;
if (level > 4)
for ( num = ent->NbGeometries(), i = 1; i <= num; i++ )
{
- S << "[" << i << "]: " << endl;
+ S << "[" << i << "]: " << Message_EndLine;
S << "Geometry Entity : ";
dumper.Dump (ent->GeometryEntity(i),S, 1);
- S << endl;
- S << "Dimension Location Flag : " << ent->DimensionLocationFlag(i) << endl;
+ S << Message_EndLine;
+ S << "Dimension Location Flag : " << ent->DimensionLocationFlag(i) << Message_EndLine;
S << "Point : ";
IGESData_DumpXYZL(S,level, ent->Point(i), ent->Location());
}
- S << endl;
+ S << Message_EndLine;
}
Standard_Integer sublevel = (level > 4) ? 1 : 0;
Standard_Integer nbval = ent->NbStrings();
- S << "IGESDimen_NewGeneralNote" << endl;
+ S << "IGESDimen_NewGeneralNote" << Message_EndLine;
S << "Text Area : Width : " << ent->TextWidth() << " ";
S << "Height : " << ent->TextHeight() << " ";
- S << "Justification Code : " << ent->JustifyCode() << endl;
+ S << "Justification Code : " << ent->JustifyCode() << Message_EndLine;
S << "Text Area Location Point : ";
IGESData_DumpXYZL(S,level, ent->AreaLocation(), ent->Location());
- S << "Rotation Angle of Text : " << ent->AreaRotationAngle() << endl;
+ S << "Rotation Angle of Text : " << ent->AreaRotationAngle() << Message_EndLine;
S << "Base Line Position : ";
IGESData_DumpXYZL(S,level, ent->BaseLinePosition(), ent->Location());
- S << "Normal Interline Spacing : " << ent->NormalInterlineSpace() << endl;
- S << "Number of Text Strings : " << nbval << endl;
-
- S << "Character Display : " << endl;
- S << "Character Width : " << endl;
- S << "Character Height : " << endl;
- S << "Inter Character Spacing : " << endl;
- S << "Interline Spacing : " << endl;
- S << "Font Styles : " << endl;
- S << "Character Angle : " << endl;
- S << "Control Code String : " << endl;
- S << "Number of Characters : " << endl;
- S << "Box Widths : " << endl;
- S << "Box Heights : " << endl;
- S << "Character Set Codes : " << endl;
- S << "Character Set Entities : " << endl;
- S << "Slant Angles : " << endl;
- S << "Rotation Angles : " << endl;
- S << "Mirror Flags : " << endl;
- S << "Rotate Flags : " << endl;
- S << "Start Points : " << endl;
+ S << "Normal Interline Spacing : " << ent->NormalInterlineSpace() << Message_EndLine;
+ S << "Number of Text Strings : " << nbval << Message_EndLine;
+
+ S << "Character Display : " << Message_EndLine;
+ S << "Character Width : " << Message_EndLine;
+ S << "Character Height : " << Message_EndLine;
+ S << "Inter Character Spacing : " << Message_EndLine;
+ S << "Interline Spacing : " << Message_EndLine;
+ S << "Font Styles : " << Message_EndLine;
+ S << "Character Angle : " << Message_EndLine;
+ S << "Control Code String : " << Message_EndLine;
+ S << "Number of Characters : " << Message_EndLine;
+ S << "Box Widths : " << Message_EndLine;
+ S << "Box Heights : " << Message_EndLine;
+ S << "Character Set Codes : " << Message_EndLine;
+ S << "Character Set Entities : " << Message_EndLine;
+ S << "Slant Angles : " << Message_EndLine;
+ S << "Rotation Angles : " << Message_EndLine;
+ S << "Mirror Flags : " << Message_EndLine;
+ S << "Rotate Flags : " << Message_EndLine;
+ S << "Start Points : " << Message_EndLine;
S << "Texts : ";
IGESData_DumpVals(S,-level,1, nbval, ent->NbCharacters);
- S << endl;
+ S << Message_EndLine;
if (level > 4)
{
- S << "Details of each String" << endl;
+ S << "Details of each String" << Message_EndLine;
for ( Standard_Integer i = 1; i <= nbval; i++)
{
- S << "[" << i << "]: " << endl;
+ S << "[" << i << "]: " << Message_EndLine;
S << "Character Display : " << ent->CharacterDisplay(i) << " ";
S << "Character Width : " << ent->CharacterWidth(i) << " ";
- S << "Character Height : " << ent->CharacterHeight(i) << endl;
+ S << "Character Height : " << ent->CharacterHeight(i) << Message_EndLine;
S << "Inter Character Spacing : "<<ent->InterCharacterSpace(i)<<" ";
- S << "Interline Spacing : " << ent->InterlineSpace(i) << endl;
- S << "Font Styles : " << ent->FontStyle(i) << endl;
- S << "Character Angle : " << ent->CharacterAngle(i) << endl;
+ S << "Interline Spacing : " << ent->InterlineSpace(i) << Message_EndLine;
+ S << "Font Styles : " << ent->FontStyle(i) << Message_EndLine;
+ S << "Character Angle : " << ent->CharacterAngle(i) << Message_EndLine;
S << "Control Code String : " ;
IGESData_DumpString(S,ent->ControlCodeString(i));
- S << endl;
+ S << Message_EndLine;
S << "Number of Characters : " << ent->NbCharacters(i) << " ";
S << "Box Width : " << ent->BoxWidth(i) << " ";
- S << "Box Height : " << ent->BoxHeight(i) << endl;
+ S << "Box Height : " << ent->BoxHeight(i) << Message_EndLine;
if (ent->IsCharSetEntity(i))
{
S << "Character Set Entity : ";
dumper.Dump (ent->CharSetEntity(i),S, sublevel);
- S << endl;
+ S << Message_EndLine;
}
else
- S << "Character Set Code : " << ent->CharSetCode(i) << endl;
+ S << "Character Set Code : " << ent->CharSetCode(i) << Message_EndLine;
S << "Slant Angle : " << ent->SlantAngle(i) << " ";
S << "Rotation Angle : " << ent->RotationAngle(i) << " ";
S << "Mirror Flag : " << ent->MirrorFlag(i) << " ";
- S << "Rotate Flag : " << ent->RotateFlag(i) << endl;
+ S << "Rotate Flag : " << ent->RotateFlag(i) << Message_EndLine;
S << "Start Point : ";
IGESData_DumpXYZL(S,level, ent->StartPoint(i), ent->Location());
S << "Text : ";
IGESData_DumpString(S,ent->Text(i));
- S << endl;
+ S << Message_EndLine;
}
}
- else S << endl;
+ else S << Message_EndLine;
}
(const Handle(IGESDimen_OrdinateDimension)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESDimen_OrdinateDimension" << endl;
+ S << "IGESDimen_OrdinateDimension" << Message_EndLine;
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
S << "General Note : ";
dumper.Dump(ent->Note(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
Handle(IGESDimen_WitnessLine) witLine = ent->WitnessLine();
Handle(IGESDimen_LeaderArrow) leadArr = ent->Leader();
if (!witLine.IsNull()) {
S << "Witness line : ";
dumper.Dump(witLine,S, sublevel);
- S << endl;
+ S << Message_EndLine;
}
if (!leadArr.IsNull()) {
S << "Leader arrow :";
dumper.Dump(leadArr,S, sublevel);
- S << endl;
+ S << Message_EndLine;
}
}
(const Handle(IGESDimen_PointDimension)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESDimen_PointDimension" << endl;
+ S << "IGESDimen_PointDimension" << Message_EndLine;
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
S << "General Note : ";
dumper.Dump(ent->Note(),S , sublevel);
- S << endl;
+ S << Message_EndLine;
S << "Leader Arrow : ";
dumper.Dump(ent->LeaderArrow(),S , sublevel);
- S << endl;
+ S << Message_EndLine;
if (!ent->Geom().IsNull())
{
S << "Enclosing Entity : ";
dumper.Dump(ent->Geom(),S , sublevel);
- S << endl;
+ S << Message_EndLine;
}
}
(const Handle(IGESDimen_RadiusDimension)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S,const Standard_Integer level) const
{
- S << "IGESDimen_RadiusDimension" << endl;
+ S << "IGESDimen_RadiusDimension" << Message_EndLine;
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
S << "General note : ";
dumper.Dump(ent->Note(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "Leader arrow : ";
dumper.Dump(ent->Leader(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "Arc center : ";
IGESData_DumpXYLZ(S,level,ent->Center(),ent->Location(),ent->Leader()->ZDepth());
if (ent->HasLeader2())
{
- S << endl << "Leader arrow 2 : ";
+ S << Message_EndLine << "Leader arrow 2 : ";
dumper.Dump(ent->Leader2(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
}
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESDimen_Section)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESDimen_Section" << endl;
+ S << "IGESDimen_Section" << Message_EndLine;
S << "Data Type : " << ent->Datatype() << " ";
S << "Number of Data Points : " << ent->NbPoints() << " ";
- S << "Common Z displacement : " << ent->ZDisplacement() << endl;
+ S << "Common Z displacement : " << ent->ZDisplacement() << Message_EndLine;
S << "Data Points : ";
IGESData_DumpListXYLZ(S ,level,1, ent->NbPoints(),ent->Point,
ent->Location(), ent->ZDisplacement());
- S << endl;
+ S << Message_EndLine;
}
{
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
- S << "IGESDimen_SectionedArea" << endl;
+ S << "IGESDimen_SectionedArea" << Message_EndLine;
S << (ent->IsInverted() ? "Inverted Cross Hatches" : "Standard Cross Hatches");
S << " - Exterior curve : ";
dumper.Dump(ent->ExteriorCurve(),S, sublevel);
- S << endl;
- S << "Fill pattern code : " << ent->Pattern() << endl;
+ S << Message_EndLine;
+ S << "Fill pattern code : " << ent->Pattern() << Message_EndLine;
S << "Passing point : ";
- IGESData_DumpXYZL(S,level, ent->PassingPoint(), ent->Location()); S << endl;
- S << "Distance between lines : " << ent->Distance() << endl;
- S << "Angle between lines and X axis : " << ent->Angle() << endl;
+ IGESData_DumpXYZL(S,level, ent->PassingPoint(), ent->Location()); S << Message_EndLine;
+ S << "Distance between lines : " << ent->Distance() << Message_EndLine;
+ S << "Angle between lines and X axis : " << ent->Angle() << Message_EndLine;
S << "Island Curve : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbIslands(),ent->IslandCurve);
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESDimen_WitnessLine)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESDimen_WitnessLine" << endl;
+ S << "IGESDimen_WitnessLine" << Message_EndLine;
S << "Data Type : " << ent->Datatype() << " ";
S << "Number of Data Points : " << ent->NbPoints() << " ";
- S << "Common Z displacement : " << ent->ZDisplacement() << endl;
+ S << "Common Z displacement : " << ent->ZDisplacement() << Message_EndLine;
S << "Data Points : ";
IGESData_DumpListXYLZ(S ,level,1, ent->NbPoints(),ent->Point,
ent->Location(), ent->ZDisplacement());
- S << endl;
+ S << Message_EndLine;
}
{
Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
- S << "IGESDraw_CircArraySubfigure" << endl;
+ S << "IGESDraw_CircArraySubfigure" << Message_EndLine;
S << "Base Entity : ";
dumper.Dump(ent->BaseEntity(),S, tempSubLevel);
- S << endl;
+ S << Message_EndLine;
S << "Total Number Of Possible Instance Locations : " << ent->NbLocations()
- << endl;
+ << Message_EndLine;
S << "Imaginary Circle. Radius : " << ent->CircleRadius() << " Center : ";
- IGESData_DumpXYZL(S, level, ent->CenterPoint(), ent->Location()); S << endl;
+ IGESData_DumpXYZL(S, level, ent->CenterPoint(), ent->Location()); S << Message_EndLine;
S << "Start Angle (in radians) : " << ent->StartAngle() << " ";
- S << "Delta Angle (in radians) : " << ent->DeltaAngle() << endl;
+ S << "Delta Angle (in radians) : " << ent->DeltaAngle() << Message_EndLine;
S << "Do-Dont Flag : ";
- if (ent->DoDontFlag()) S << "Dont" << endl;
- else S << "Do" << endl;
+ if (ent->DoDontFlag()) S << "Dont" << Message_EndLine;
+ else S << "Do" << Message_EndLine;
S << "The Do-Dont List : ";
IGESData_DumpVals(S ,level,1, ent->ListCount(),ent->ListPosition);
- S << endl;
+ S << Message_EndLine;
}
{
Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
- S << "IGESDraw_ConnectPoint" << endl;
+ S << "IGESDraw_ConnectPoint" << Message_EndLine;
S << "Connection Point Coordinate : ";
IGESData_DumpXYZL(S, level, ent->Point(), ent->Location());
S << "Display Symbol Geometry Entity : ";
dumper.Dump(ent->DisplaySymbol(),S, tempSubLevel);
- S << endl;
+ S << Message_EndLine;
S << "Type Flag : " << ent->TypeFlag() << " "
- << "Function Flag : " << ent->FunctionFlag() << endl;
+ << "Function Flag : " << ent->FunctionFlag() << Message_EndLine;
S << "Function Identifier : ";
IGESData_DumpString(S,ent->FunctionIdentifier());
- S << endl << "Text Display Template Entity for CID : ";
+ S << Message_EndLine << "Text Display Template Entity for CID : ";
dumper.Dump(ent->IdentifierTemplate(),S, tempSubLevel);
- S << endl << "Function Name : ";
+ S << Message_EndLine << "Function Name : ";
IGESData_DumpString(S,ent->FunctionName());
- S << endl << "Text Display Template Entity for CFN : ";
+ S << Message_EndLine << "Text Display Template Entity for CFN : ";
dumper.Dump(ent->FunctionTemplate(),S, tempSubLevel);
- S << endl;
- S << "Point Identifier : " << ent->PointIdentifier() << endl
+ S << Message_EndLine;
+ S << "Point Identifier : " << ent->PointIdentifier() << Message_EndLine
<< "Function Code : " << ent->FunctionCode()
- << "Swap Flag : " << ( ent->SwapFlag() ? "True" : "False" ) << endl;
+ << "Swap Flag : " << ( ent->SwapFlag() ? "True" : "False" ) << Message_EndLine;
S << "Owner Subfigure Entity : ";
dumper.Dump(ent->OwnerSubfigure(),S, tempSubLevel);
- S << endl;
+ S << Message_EndLine;
}
{
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
- S << "IGESDraw_Drawing" << endl;
+ S << "IGESDraw_Drawing" << Message_EndLine;
- S << "View Entities : " << endl
+ S << "View Entities : " << Message_EndLine
<< "Transformed View Origins : ";
S << "Count = " << ent->NbViews();
switch (level)
{
- case 4 : S << " [ ask level > 4 for content ]" << endl;
+ case 4 : S << " [ ask level > 4 for content ]" << Message_EndLine;
break; // Nothing to be dumped here
case 5 : // Presently level 5 and 6 have the same Dump
- S << endl;
+ S << Message_EndLine;
Standard_FALLTHROUGH
case 6 :
{
Standard_Integer up = ent->NbViews();
for (I = 1; I <= up; I++)
{
- S << endl << "[" << I << "] ";
+ S << Message_EndLine << "[" << I << "] ";
S << "View Entity : ";
dumper.Dump (ent->ViewItem(I),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "Transformed View Origin : ";
IGESData_DumpXY(S, ent->ViewOrigin(I));
}
}
break;
}
- S << endl << "Annotation Entities : ";
+ S << Message_EndLine << "Annotation Entities : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbAnnotations(),ent->Annotation);
- S << endl;
+ S << Message_EndLine;
}
{
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
- S << "IGESDraw_DrawingWithRotation" << endl;
+ S << "IGESDraw_DrawingWithRotation" << Message_EndLine;
- S << "View Entities : " << endl
- << "Transformed View Origins : " << endl
+ S << "View Entities : " << Message_EndLine
+ << "Transformed View Origins : " << Message_EndLine
<< "Orientation Angles : ";
- S << "Count = " << ent->NbViews() << endl;
+ S << "Count = " << ent->NbViews() << Message_EndLine;
if (level > 4) // Level = 4 : no Dump. Level = 5 & 6 have same Dump
{
Standard_Integer up = ent->NbViews();
for (I = 1; I <= up; I++)
{
- S << "[" << I << "]:" << endl;
+ S << "[" << I << "]:" << Message_EndLine;
S << "View Entity : ";
dumper.Dump (ent->ViewItem(I),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "Transformed View Origin : ";
IGESData_DumpXY(S, ent->ViewOrigin(I));
- S << " Orientation Angle : " << ent->OrientationAngle(I) << endl;
+ S << " Orientation Angle : " << ent->OrientationAngle(I) << Message_EndLine;
}
}
S << "Annotation Entities : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbAnnotations(),ent->Annotation);
- S << endl;
+ S << Message_EndLine;
}
{
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
- S << "IGESDraw_LabelDisplay" << endl;
+ S << "IGESDraw_LabelDisplay" << Message_EndLine;
- S << "View Entities : " << endl
- << "Text Locations : " << endl
- << "Leader Entities : " << endl
- << "Label Level Numbers : " << endl
+ S << "View Entities : " << Message_EndLine
+ << "Text Locations : " << Message_EndLine
+ << "Leader Entities : " << Message_EndLine
+ << "Label Level Numbers : " << Message_EndLine
<< "Displayed Entities : ";
- S << "Count = " << ent->NbLabels() << endl;
+ S << "Count = " << ent->NbLabels() << Message_EndLine;
if (level > 4) // Level = 4 : no Dump. Level = 5 & 6 : same Dump
{
Standard_Integer I;
Standard_Integer up = ent->NbLabels();
for (I = 1; I <= up; I ++)
{
- S << "[" << I << "]:" << endl;
+ S << "[" << I << "]:" << Message_EndLine;
S << "View Entity : ";
dumper.Dump (ent->ViewItem(I),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "Text Location in View : ";
IGESData_DumpXYZL(S,level, ent->TextLocation(I), ent->Location());
S << " Leader Entity in View : ";
dumper.Dump (ent->LeaderEntity(I),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "Entity Label Level Number : ";
S << ent->LabelLevel(I) << " ";
S << "Displayed Entity : ";
dumper.Dump (ent->DisplayedEntity(I),S, sublevel);
- S << endl;
+ S << Message_EndLine;
}
}
- S << endl;
+ S << Message_EndLine;
}
{
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
- S << "IGESDraw_NetworkSubfigure" << endl;
+ S << "IGESDraw_NetworkSubfigure" << Message_EndLine;
S << "Network Subfigure Definition Entity : ";
dumper.Dump(ent->SubfigureDefinition(),S, sublevel);
- S << endl << "Translation Data : ";
+ S << Message_EndLine << "Translation Data : ";
IGESData_DumpXYZL(S,level, ent->Translation(), ent->Location());
- S << endl << "Scale Factors : ";
+ S << Message_EndLine << "Scale Factors : ";
IGESData_DumpXYZ(S, ent->ScaleFactors());
- S << endl << "Type Flag : " << ent->TypeFlag() << endl;
+ S << Message_EndLine << "Type Flag : " << ent->TypeFlag() << Message_EndLine;
S << "Primary Reference Designator : ";
IGESData_DumpString(S,ent->ReferenceDesignator());
- S << endl << "Text Display Template Entity : ";
+ S << Message_EndLine << "Text Display Template Entity : ";
dumper.Dump(ent->DesignatorTemplate(),S, sublevel);
- S << endl << "Connect Points : ";
+ S << Message_EndLine << "Connect Points : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbConnectPoints(),ent->ConnectPoint);
- S << endl;
+ S << Message_EndLine;
}
{
Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
- S << "IGESDraw_NetworkSubfigureDef" << endl;
+ S << "IGESDraw_NetworkSubfigureDef" << Message_EndLine;
- S << "Depth Of Subfigure(Nesting) : " << ent->Depth() << endl;
+ S << "Depth Of Subfigure(Nesting) : " << ent->Depth() << Message_EndLine;
S << "Name Of Subfigure : ";
IGESData_DumpString(S,ent->Name());
- S << endl << "Associated Entities : ";
+ S << Message_EndLine << "Associated Entities : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbEntities(),ent->Entity);
- S << endl << "Type Flag : " << ent->TypeFlag() << endl;
+ S << Message_EndLine << "Type Flag : " << ent->TypeFlag() << Message_EndLine;
S << "Primary Reference Designator : ";
IGESData_DumpString(S,ent->Designator());
- S << endl << "Text Display Template Entity : ";
+ S << Message_EndLine << "Text Display Template Entity : ";
dumper.Dump(ent->DesignatorTemplate(),S, tempSubLevel);
- S << endl << "Connect Point Entities : ";
+ S << Message_EndLine << "Connect Point Entities : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbPointEntities(),ent->PointEntity);
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESDraw_PerspectiveView)& ent, const IGESData_IGESDumper& /*dumper*/,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESDraw_PerspectiveView" << endl;
+ S << "IGESDraw_PerspectiveView" << Message_EndLine;
S << "View Number : " << ent->ViewNumber() << " ";
- S << "Scale Factor : " << ent->ScaleFactor() << endl;
+ S << "Scale Factor : " << ent->ScaleFactor() << Message_EndLine;
S << "View Plane Normal Vector : ";
IGESData_DumpXYZL(S,level, ent->ViewNormalVector(), ent->Location());
- S << endl << "View Reference Point : ";
+ S << Message_EndLine << "View Reference Point : ";
IGESData_DumpXYZL(S,level, ent->ViewReferencePoint() , ent->Location());
- S << endl << "Center Of Projection : ";
+ S << Message_EndLine << "Center Of Projection : ";
IGESData_DumpXYZL(S,level, ent->CenterOfProjection() , ent->Location());
- S << endl << "View Up Vector : ";
+ S << Message_EndLine << "View Up Vector : ";
IGESData_DumpXYZL(S,level, ent->ViewUpVector() , ent->Location());
- S << endl << "View Plane Distance : " << ent->ViewPlaneDistance()<<endl;
- S << "Left Side Of Clipping Window : " << ent->TopLeft().X() << endl;
- S << "Right Side Of Clipping Window : " << ent->BottomRight().X() << endl;
- S << "Bottom Side Of Clipping Window : " << ent->BottomRight().Y() << endl;
- S << "Top Side Of Clipping Window : " << ent->TopLeft().Y() << endl;
+ S << Message_EndLine << "View Plane Distance : " << ent->ViewPlaneDistance()<<Message_EndLine;
+ S << "Left Side Of Clipping Window : " << ent->TopLeft().X() << Message_EndLine;
+ S << "Right Side Of Clipping Window : " << ent->BottomRight().X() << Message_EndLine;
+ S << "Bottom Side Of Clipping Window : " << ent->BottomRight().Y() << Message_EndLine;
+ S << "Top Side Of Clipping Window : " << ent->TopLeft().Y() << Message_EndLine;
S << "Depth Clipping : " << ent->DepthClip();
switch (ent->DepthClip()) {
- case 0 : S << " (No Depth Clipping)" << endl; break;
- case 1 : S << " (Back Clipping Plane ON)" << endl; break;
- case 2 : S << " (Front Clipping Plane ON)" << endl; break;
- case 3 : S << " (Front and Back Clipping Planes ON)" << endl; break;
- default : S << " (Invalid Value)" << endl; break;
+ case 0 : S << " (No Depth Clipping)" << Message_EndLine; break;
+ case 1 : S << " (Back Clipping Plane ON)" << Message_EndLine; break;
+ case 2 : S << " (Front Clipping Plane ON)" << Message_EndLine; break;
+ case 3 : S << " (Front and Back Clipping Planes ON)" << Message_EndLine; break;
+ default : S << " (Invalid Value)" << Message_EndLine; break;
}
S << "Back Plane Distance : " << ent->BackPlaneDistance() << " ";
- S << "Front Plane Distance : " << ent->FrontPlaneDistance() << endl;
- S << endl;
+ S << "Front Plane Distance : " << ent->FrontPlaneDistance() << Message_EndLine;
+ S << Message_EndLine;
}
{
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
- S << "IGESDraw_Planar" << endl;
+ S << "IGESDraw_Planar" << Message_EndLine;
S << "No. of Transformation Matrices : " << ent->NbMatrices() << " ";
S << "i.e. : ";
S << "Null Handle";
else
dumper.OwnDump (ent->TransformMatrix(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "Array of Entities on the specified plane : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbEntities(),ent->Entity);
- S << endl;
+ S << Message_EndLine;
}
{
Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
- S << "IGESDraw_RectArraySubfigure" << endl;
+ S << "IGESDraw_RectArraySubfigure" << Message_EndLine;
S << "Base Entity : ";
dumper.Dump(ent->BaseEntity(),S, tempSubLevel);
- S << endl;
+ S << Message_EndLine;
S << "Scale Factor : " << ent->ScaleFactor() << " ";
S << "Lower Left Corner Of Array : ";
IGESData_DumpXYZL(S,level, ent->LowerLeftCorner(),gp_GTrsf()); // no location
S << "Number Of Columns : " << ent->NbColumns() << " ";
- S << "Number Of Rows : " << ent->NbRows() << endl;
- S << "Horizontal Distance Between Columns : " << ent->ColumnSeparation()<<endl;
- S << "Vertical Distance Between Rows : " << ent->RowSeparation() <<endl;
- S << "Rotation Angle (in radians) : " << ent->RotationAngle() <<endl;
+ S << "Number Of Rows : " << ent->NbRows() << Message_EndLine;
+ S << "Horizontal Distance Between Columns : " << ent->ColumnSeparation()<<Message_EndLine;
+ S << "Vertical Distance Between Rows : " << ent->RowSeparation() <<Message_EndLine;
+ S << "Rotation Angle (in radians) : " << ent->RotationAngle() <<Message_EndLine;
S << "Do-Dont Flag : ";
if (ent->DoDontFlag()) S << "(1)Dont ";
else S << "(0)Do ";
S << "Do-Dont List : ";
IGESData_DumpVals(S ,level,1, ent->ListCount(),ent->ListPosition);
- S << endl;
+ S << Message_EndLine;
}
{
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
- S << "IGESDraw_SegmentedViewsVisible" << endl;
+ S << "IGESDraw_SegmentedViewsVisible" << Message_EndLine;
- S << "View Entities : " << endl
- << "Breakpoint parameters : " << endl
- << "Display flags : " << endl
- << "Color Values : " << endl
- << "Color Definitions : " << endl
- << "LineFont Values : " << endl
- << "LineFont Definitions : " << endl
- << "Line Weights : " << endl;
- S << "Count Of Blocks = " << ent->NbSegmentBlocks() << endl;
+ S << "View Entities : " << Message_EndLine
+ << "Breakpoint parameters : " << Message_EndLine
+ << "Display flags : " << Message_EndLine
+ << "Color Values : " << Message_EndLine
+ << "Color Definitions : " << Message_EndLine
+ << "LineFont Values : " << Message_EndLine
+ << "LineFont Definitions : " << Message_EndLine
+ << "Line Weights : " << Message_EndLine;
+ S << "Count Of Blocks = " << ent->NbSegmentBlocks() << Message_EndLine;
switch (level)
{
- case 4 : S << " [ for content, ask level > 4 ]" << endl;
+ case 4 : S << " [ for content, ask level > 4 ]" << Message_EndLine;
break; // Nothing to be dumped here
case 5 : // Presently level 5 and 6 have the same Dump
case 6 :
Standard_Integer up = ent->NbSegmentBlocks();
for (I = 1; I <= up; I++)
{
- S << "[" << I << "]:" << endl;
+ S << "[" << I << "]:" << Message_EndLine;
S << "View Entity : ";
dumper.Dump (ent->ViewItem(I),S, sublevel);
- S << endl;
- S << "Breakpoint parameter : " <<ent->BreakpointParameter(I)<<endl;
- S << "Display Flag : " << ent->DisplayFlag(I) << endl;
+ S << Message_EndLine;
+ S << "Breakpoint parameter : " <<ent->BreakpointParameter(I)<<Message_EndLine;
+ S << "Display Flag : " << ent->DisplayFlag(I) << Message_EndLine;
if ( (ent->ColorDefinition(I)).IsNull() )
{
S << "Color Value : ";
S << "Color Definition : ";
dumper.Dump (ent->ColorDefinition(I),S, sublevel);
}
- S << endl;
+ S << Message_EndLine;
if ( (ent->LineFontDefinition(I)).IsNull() )
{
S << "LineFont Value : " << ent->LineFontValue(I);
S << "LineFont Definition : ";
dumper.Dump (ent->LineFontDefinition(I),S, sublevel);
}
- S << endl;
- S << "Line Weight : " << ent->LineWeightItem(I) << endl;
+ S << Message_EndLine;
+ S << "Line Weight : " << ent->LineWeightItem(I) << Message_EndLine;
}
}
break;
}
- S << endl;
+ S << Message_EndLine;
}
{
Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
- S << "IGESDraw_View" << endl;
+ S << "IGESDraw_View" << Message_EndLine;
- S << "View Number : " << ent->ViewNumber() << endl;
- S << "Scale Factor : " << ent->ScaleFactor() << endl;
+ S << "View Number : " << ent->ViewNumber() << Message_EndLine;
+ S << "Scale Factor : " << ent->ScaleFactor() << Message_EndLine;
S << "Left Plane Of View Volume : ";
- dumper.Dump(ent->LeftPlane(),S, tempSubLevel); S << endl;
+ dumper.Dump(ent->LeftPlane(),S, tempSubLevel); S << Message_EndLine;
S << "Top Plane Of View Volume : ";
- dumper.Dump(ent->TopPlane(),S, tempSubLevel); S << endl;
+ dumper.Dump(ent->TopPlane(),S, tempSubLevel); S << Message_EndLine;
S << "Right Plane Of View Volume : ";
- dumper.Dump(ent->RightPlane(),S, tempSubLevel); S << endl;
+ dumper.Dump(ent->RightPlane(),S, tempSubLevel); S << Message_EndLine;
S << "Bottom Plane Of View Volume : ";
- dumper.Dump(ent->BottomPlane(),S, tempSubLevel); S << endl;
+ dumper.Dump(ent->BottomPlane(),S, tempSubLevel); S << Message_EndLine;
S << "Back Plane Of View Volume : ";
- dumper.Dump(ent->BackPlane(),S, tempSubLevel); S << endl;
+ dumper.Dump(ent->BackPlane(),S, tempSubLevel); S << Message_EndLine;
S << "Front Plane Of View Volume : ";
- dumper.Dump(ent->FrontPlane(),S, tempSubLevel); S << endl;
+ dumper.Dump(ent->FrontPlane(),S, tempSubLevel); S << Message_EndLine;
}
(const Handle(IGESDraw_ViewsVisible)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESDraw_ViewsVisible" << endl;
+ S << "IGESDraw_ViewsVisible" << Message_EndLine;
S << "Views Visible : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbViews(),ent->ViewItem);
- S << endl;
+ S << Message_EndLine;
S << "Entities Displayed : ";
IGESData_DumpEntities
(S,dumper ,level,1, ent->NbDisplayedEntities(),ent->DisplayedEntity);
- S << endl;
+ S << Message_EndLine;
}
Standard_Boolean IGESDraw_ToolViewsVisible::OwnCorrect
{
Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
- S << "IGESDraw_ViewsVisibleWithAttr" << endl;
-
- S << "View Entities : " << endl
- << "Line Font Values : " << endl
- << "Line Font Definitions : " << endl
- << "Color Number/Definitions : " << endl
- << "Line Weights : " << endl;
- S << "Count of View Blocks : " << ent->NbViews() << endl;
+ S << "IGESDraw_ViewsVisibleWithAttr" << Message_EndLine;
+
+ S << "View Entities : " << Message_EndLine
+ << "Line Font Values : " << Message_EndLine
+ << "Line Font Definitions : " << Message_EndLine
+ << "Color Number/Definitions : " << Message_EndLine
+ << "Line Weights : " << Message_EndLine;
+ S << "Count of View Blocks : " << ent->NbViews() << Message_EndLine;
if (level > 4) { // Level = 4 : nothing to Dump. Level = 5 & 6 : same Dump
Standard_Integer I;
Standard_Integer upper = ent->NbViews();
for (I = 1; I <= upper; I++) {
- S << "[" << I << "]: " << endl;
+ S << "[" << I << "]: " << Message_EndLine;
S << "View Entity : ";
dumper.Dump (ent->ViewItem(I),S, tempSubLevel);
- S << endl;
+ S << Message_EndLine;
if (ent->IsFontDefinition(I)) {
S << "Line Font Definition : ";
dumper.Dump (ent->FontDefinition(I),S, tempSubLevel);
- S << endl;
+ S << Message_EndLine;
}
- else S << "Line Font Value : " << ent->LineFontValue(I) << endl;
+ else S << "Line Font Value : " << ent->LineFontValue(I) << Message_EndLine;
if (ent->IsColorDefinition(I)) {
S << "Color Definition : ";
dumper.Dump (ent->ColorDefinition(I),S, tempSubLevel);
- S << endl;
+ S << Message_EndLine;
}
- else S << "Color Value : " << ent->ColorValue(I) << endl;
+ else S << "Color Value : " << ent->ColorValue(I) << Message_EndLine;
- S << "Line Weight : " << ent->LineWeightItem(I) << endl;
+ S << "Line Weight : " << ent->LineWeightItem(I) << Message_EndLine;
}
}
S << "Displayed Entities : ";
IGESData_DumpEntities
(S,dumper ,level,1, ent->NbDisplayedEntities(),ent->DisplayedEntity);
- S << endl;
+ S << Message_EndLine;
}
Standard_Boolean IGESDraw_ToolViewsVisibleWithAttr::OwnCorrect
const Standard_Integer level) const
{
Standard_Integer upind = ent->UpperIndex();
- S << "BSplineCurve from IGESGeom" << endl;
+ S << "BSplineCurve from IGESGeom" << Message_EndLine;
S << "Sum UpperIndex : " << upind;
S << " Degree : " << ent->Degree() << " ";
- S << (ent->IsPlanar() ? "Planar" : "NonPlanar") << endl;
+ S << (ent->IsPlanar() ? "Planar" : "NonPlanar") << Message_EndLine;
S << (ent->IsClosed() ? "Closed" : "Open") << " ";
S << (ent->IsPeriodic() ? "Periodic" : "NonPeriodic") << " ";//#54 rln 24.12.98 CCI60005
S << (ent->IsPolynomial(Standard_True) ? "Polynomial" : "Rational");
- S << endl << "Knots : ";
+ S << Message_EndLine << "Knots : ";
IGESData_DumpVals(S ,level,-ent->Degree(), upind+1,ent->Knot);
- S << endl << "Weights : ";
+ S << Message_EndLine << "Weights : ";
IGESData_DumpVals(S ,level,0, upind,ent->Weight);
- S << endl << "Control Points (Poles) : ";
+ S << Message_EndLine << "Control Points (Poles) : ";
IGESData_DumpListXYZL(S ,level,0, upind, ent->Pole, ent->Location());
- S << endl << "Starting Parameter Value : " << ent->UMin();
- S << " Ending Parameter Value : " << ent->UMax() << endl;
+ S << Message_EndLine << "Starting Parameter Value : " << ent->UMin();
+ S << " Ending Parameter Value : " << ent->UMax() << Message_EndLine;
S << "Unit Normal : ";
IGESData_DumpXYZL(S,level, ent->Normal(), ent->Location());
- S << endl;
+ S << Message_EndLine;
}
const Handle(Message_Messenger)& S,
const Standard_Integer level) const
{
- S << "BSplineSurface from IGESGeom" << endl << endl;
+ S << "BSplineSurface from IGESGeom" << Message_EndLine << Message_EndLine;
Standard_Integer indU = ent->UpperIndexU();
Standard_Integer indV = ent->UpperIndexV();
S << " Degree : " << degU << " ";
S << (ent->IsClosedU() ? "Closed" : "Open") << " ";
S << (ent->IsPeriodicU() ? "Periodic" : "Non Periodic");
- S << endl;
+ S << Message_EndLine;
S << "In V : Upper Knot Index : " << indV;
S << " Degree : " << degV << " ";
S << (ent->IsClosedV() ? "Closed" : "Open") << " ";
S << (ent->IsPeriodicV() ? "Periodic" : "Non Periodic") << " ";
- S << (ent->IsPolynomial(Standard_True) ? "Polynomial" : "Rational") << endl;
+ S << (ent->IsPolynomial(Standard_True) ? "Polynomial" : "Rational") << Message_EndLine;
- S << "Starting Parameter for U direction : " << ent->UMin() << endl;
- S << "Ending Parameter for U direction : " << ent->UMax() << endl;
- S << "Starting Parameter for V direction : " << ent->VMin() << endl;
- S << "Ending Parameter for V direction : " << ent->VMax() << endl;
+ S << "Starting Parameter for U direction : " << ent->UMin() << Message_EndLine;
+ S << "Ending Parameter for U direction : " << ent->UMax() << Message_EndLine;
+ S << "Starting Parameter for V direction : " << ent->VMin() << Message_EndLine;
+ S << "Ending Parameter for V direction : " << ent->VMax() << Message_EndLine;
S << " Knots in U : ";
IGESData_DumpVals(S ,level,-degU, indU+1,ent->KnotU);
- S << endl;
+ S << Message_EndLine;
S << " Knots in V : ";
IGESData_DumpVals(S ,level,-degV, indV+1,ent->KnotV);
- S << endl;
+ S << Message_EndLine;
S << "Weights : (Row -> IndexU, Col -> IndexV)";
IGESData_DumpRectVals(S ,level,0, indU,0,indV,ent->Weight);
- S << endl;
+ S << Message_EndLine;
S << "Control Points (Poles) : ";
//IGESData_DumpRectXYZL(S,level,1, ent->NbPoles(),ent->Pole, ent->Location());
- if (level < 5) { S << " [ content : ask level > 4 ]" << endl; return; }
+ if (level < 5) { S << " [ content : ask level > 4 ]" << Message_EndLine; return; }
gp_GTrsf loca = ent->Location();
for (Standard_Integer JP = 0; JP <= indV; JP ++)
for (Standard_Integer IP = 0; IP <= indU; IP ++) {
- if (IP == 0) S << endl;
+ if (IP == 0) S << Message_EndLine;
S <<" - ["<<IP<<","<<JP<<"]: ";
IGESData_DumpXYZL(S,level,ent->Pole(IP,JP),loca);
}
- S << endl;
+ S << Message_EndLine;
}
const Standard_Integer level) const
{
Standard_Integer i, num, sublevel = (level > 4) ? 1 : 0;
- S << "IGESGeom_Boundary" << endl;
- S << "Bounded Surface Representation Type : " << ent->BoundaryType() << endl;
- S << "Trimming Curves Representation : " << ent->PreferenceType() << endl;
+ S << "IGESGeom_Boundary" << Message_EndLine;
+ S << "Bounded Surface Representation Type : " << ent->BoundaryType() << Message_EndLine;
+ S << "Trimming Curves Representation : " << ent->PreferenceType() << Message_EndLine;
S << "Bounded Surface : ";
dumper.Dump(ent->Surface(),S, sublevel);
- S << endl;
- S << "Model Space Curves : " << endl;
- S << "Orientation Flags : " << endl;
+ S << Message_EndLine;
+ S << "Model Space Curves : " << Message_EndLine;
+ S << "Orientation Flags : " << Message_EndLine;
S << "Parameter Curves Set : ";
IGESData_DumpEntities
(S,dumper,-level,1,ent->NbModelSpaceCurves(),ent->ModelSpaceCurve);
- S << endl;
+ S << Message_EndLine;
if (level > 4)
for ( num = ent->NbModelSpaceCurves(), i = 1; i <= num; i++ )
{
S << "[" << i << "]: ";
S << "Model Space Curve : ";
dumper.Dump (ent->ModelSpaceCurve(i),S, 1);
- S << " Orientation Flags : " << ent->Sense(i) << endl;
+ S << " Orientation Flags : " << ent->Sense(i) << Message_EndLine;
S << " Parameter Curves : ";
Handle(IGESData_HArray1OfIGESEntity) curves = ent->ParameterCurves(i);
if (!curves.IsNull()) {
IGESData_DumpEntities(S,dumper, level,1,curves->Length(),curves->Value);
}
else S << " List Empty";
- S << endl;
+ S << Message_EndLine;
}
- S << endl;
+ S << Message_EndLine;
}
const Standard_Integer level) const
{
Standard_Integer sublevel = (level > 4) ? 1 : 0;
- S << "IGESGeom_BoundedSurface" << endl;
- S << "Representation Type : " << ent->RepresentationType() << endl;
+ S << "IGESGeom_BoundedSurface" << Message_EndLine;
+ S << "Representation Type : " << ent->RepresentationType() << Message_EndLine;
S << "Surface to be Bounded : ";
dumper.Dump(ent->Surface(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "Boundary Entities : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbBoundaries(),ent->Boundary);
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESGeom_CircularArc)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "CircularArc from IGESGeom" << endl;
- S << "Z-Plane Displacement : " << ent->ZPlane() << endl;
+ S << "CircularArc from IGESGeom" << Message_EndLine;
+ S << "Z-Plane Displacement : " << ent->ZPlane() << Message_EndLine;
S << "Center : ";
IGESData_DumpXYLZ(S,level, ent->Center(), ent->Location(), ent->ZPlane());
- S << endl;
+ S << Message_EndLine;
S << "Start Point : ";
IGESData_DumpXYLZ(S,level, ent->StartPoint(), ent->Location(),ent->ZPlane());
- S << endl;
+ S << Message_EndLine;
S << "End Point : ";
IGESData_DumpXYLZ(S,level, ent->EndPoint(), ent->Location(), ent->ZPlane());
- S << endl;
+ S << Message_EndLine;
if (level <= 5) return;
S<< " Normal Axis : "; IGESData_DumpXYZL(S,level,ent->Axis(),ent->VectorLocation());
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESGeom_CompositeCurve)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESGeom_CompositeCurve" << endl;
- S << "Curve Entities : " << endl;
+ S << "IGESGeom_CompositeCurve" << Message_EndLine;
+ S << "Curve Entities : " << Message_EndLine;
IGESData_DumpEntities(S,dumper ,level,1, ent->NbCurves(),ent->Curve);
- S << endl;
+ S << Message_EndLine;
}
{
Standard_Real A,B,C,D,E,F;
ent->Equation(A,B,C,D,E,F);
- S << "IGESGeom_ConicArc" << endl;
+ S << "IGESGeom_ConicArc" << Message_EndLine;
Standard_Integer cf = ent->FormNumber();
if (cf == 0) cf = ent->ComputedFormNumber();
- if (cf == 1) S << " -- Ellipse --" << endl;
- else if (cf == 2) S << " -- Hyperbola --" << endl;
- else if (cf == 3) S << " -- Parabola --" << endl;
- else S << " -- (Undetermined type of Conic) --" << endl;
- S << "Conic Coefficient A : " << A << endl;
- S << "Conic Coefficient B : " << B << endl;
- S << "Conic Coefficient C : " << C << endl;
- S << "Conic Coefficient D : " << D << endl;
- S << "Conic Coefficient E : " << E << endl;
- S << "Conic Coefficient F : " << F << endl;
- S << "Z-Plane shift : " << ent->ZPlane() << endl;
+ if (cf == 1) S << " -- Ellipse --" << Message_EndLine;
+ else if (cf == 2) S << " -- Hyperbola --" << Message_EndLine;
+ else if (cf == 3) S << " -- Parabola --" << Message_EndLine;
+ else S << " -- (Undetermined type of Conic) --" << Message_EndLine;
+ S << "Conic Coefficient A : " << A << Message_EndLine;
+ S << "Conic Coefficient B : " << B << Message_EndLine;
+ S << "Conic Coefficient C : " << C << Message_EndLine;
+ S << "Conic Coefficient D : " << D << Message_EndLine;
+ S << "Conic Coefficient E : " << E << Message_EndLine;
+ S << "Conic Coefficient F : " << F << Message_EndLine;
+ S << "Z-Plane shift : " << ent->ZPlane() << Message_EndLine;
S << "Start Point : ";
IGESData_DumpXYLZ(S,level, ent->StartPoint(), ent->Location(),ent->ZPlane());
- S << endl;
+ S << Message_EndLine;
S << "End Point : ";
IGESData_DumpXYLZ(S,level, ent->EndPoint(), ent->Location(), ent->ZPlane());
- S << endl;
- if (level <= 4) S<<" -- Computed Definition : ask level > 4" << endl;
+ S << Message_EndLine;
+ if (level <= 4) S<<" -- Computed Definition : ask level > 4" << Message_EndLine;
else {
gp_Pnt Cen; gp_Dir Ax; Standard_Real Rmin,Rmax;
ent->Definition (Cen,Ax,Rmin,Rmax);
- S << " -- Computed Definition (and Transformed if level > 5)" << endl;
+ S << " -- Computed Definition (and Transformed if level > 5)" << Message_EndLine;
if (cf != 3) {
S<<" Center : "; IGESData_DumpXYZL(S,level,Cen,ent->Location());
- S<<endl;
+ S<<Message_EndLine;
}
S << " Main Axis : "; IGESData_DumpXYZL(S,level,Ax,ent->VectorLocation());
- S<<endl;
- if (cf == 3) S << " Focal : " << Rmin << endl;
- else if (Rmin == Rmax) S << " Radius (Major = Minor) : " << Rmin << endl;
- else S << " Major Radius : " << Rmax << " Minor Radius : " << Rmin <<endl;
+ S<<Message_EndLine;
+ if (cf == 3) S << " Focal : " << Rmin << Message_EndLine;
+ else if (Rmin == Rmax) S << " Radius (Major = Minor) : " << Rmin << Message_EndLine;
+ else S << " Major Radius : " << Rmax << " Minor Radius : " << Rmin <<Message_EndLine;
S<< " Normal Axis : "; IGESData_DumpXYZL(S,level,ent->Axis(),ent->VectorLocation());
- S << endl;
+ S << Message_EndLine;
}
}
gp_GTrsf locv = ent->VectorLocation();
Standard_Boolean yatr = (level > 5 && ent->HasTransf());
- S << "IGESGeom_CopiousData" << endl;
+ S << "IGESGeom_CopiousData" << Message_EndLine;
if (ent->IsPointSet()) S << "Point Set ";
else if (ent->IsPolyline()) S << "Polyline ";
S << "Number of T-uples = " << nbPnts << " ";
if (dtype == 1) {
S << "(Points 2D) ";
- S << "ZPlane = " << ent->ZPlane() << endl;
+ S << "ZPlane = " << ent->ZPlane() << Message_EndLine;
}
else if (dtype == 2)
- S << "(Points 3D)" << endl;
+ S << "(Points 3D)" << Message_EndLine;
else if (dtype == 3)
- S << "(Points 3D + Vectors 3D)" << endl;
+ S << "(Points 3D + Vectors 3D)" << Message_EndLine;
if (level > 4) {
for (i = 1; i <= nbPnts; i ++) {
S << " Transformed ("<< T.X() << "," << T.Y() << "," << T.Z() << ")";
}
}
- S << endl;
+ S << Message_EndLine;
}
}
else S << " [ for content, ask level > 4 ]";
- S << endl;
+ S << Message_EndLine;
}
const Handle(Message_Messenger)& S,
const Standard_Integer level) const
{
- S << "IGESGeom_CurveOnSurface" << endl << endl;
+ S << "IGESGeom_CurveOnSurface" << Message_EndLine << Message_EndLine;
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
Standard_Integer crem = ent->CreationMode();
S << "Creation Mode : " << crem << " i.e. ";
- if (crem == 0) S << " <Unspecified>" << endl;
- else if (crem == 1) S << " Projection of a Curve on a Surface" << endl;
- else if (crem == 2) S << " Intersection of two Surfaces" << endl;
- else if (crem == 3) S << " Isoparametric Curve (either U or V)" << endl;
- else S << " <Incorrect Value>" << endl;
+ if (crem == 0) S << " <Unspecified>" << Message_EndLine;
+ else if (crem == 1) S << " Projection of a Curve on a Surface" << Message_EndLine;
+ else if (crem == 2) S << " Intersection of two Surfaces" << Message_EndLine;
+ else if (crem == 3) S << " Isoparametric Curve (either U or V)" << Message_EndLine;
+ else S << " <Incorrect Value>" << Message_EndLine;
S << "The Surface on which the curve lies : ";
dumper.Dump(ent->Surface(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "The curve B (in the parametric space (u, v)) : ";
dumper.Dump(ent->CurveUV(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "The curve C (in the 3D Space) : ";
dumper.Dump(ent->Curve3D(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
Standard_Integer pref = ent->PreferenceMode();
S << "Preferred representation mode : " << pref << " i.e. ";
- if (pref == 0) S << " <Unspecified>" << endl;
- else if (pref == 1) S << " Curve B on Surface" << endl;
- else if (pref == 2) S << " Curve C in 3D Space" << endl;
- else if (pref == 3) S << " Curves B & C equally preferred" << endl;
- else S << " <Incorrect Value>" << endl;
+ if (pref == 0) S << " <Unspecified>" << Message_EndLine;
+ else if (pref == 1) S << " Curve B on Surface" << Message_EndLine;
+ else if (pref == 2) S << " Curve C in 3D Space" << Message_EndLine;
+ else if (pref == 3) S << " Curves B & C equally preferred" << Message_EndLine;
+ else S << " <Incorrect Value>" << Message_EndLine;
}
(const Handle(IGESGeom_Direction)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESGeom_Direction" << endl << endl;
+ S << "IGESGeom_Direction" << Message_EndLine << Message_EndLine;
S << "Value : ";
IGESData_DumpXYZL(S,level, ent->Value(), ent->VectorLocation());
- S << endl;
+ S << Message_EndLine;
}
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
Standard_Integer fn = ent->FormNumber();
- S << "IGESGeom_Flash" << endl;
+ S << "IGESGeom_Flash" << Message_EndLine;
switch (fn) {
- case 0 : S << " -- Form defined by reference entity --" << endl; break;
+ case 0 : S << " -- Form defined by reference entity --" << Message_EndLine; break;
case 1 : S << " -- Circular -- "; break;
case 2 : S << " -- Rectangle -- "; break;
case 3 : S << " -- Donut -- "; break;
S << "Flash reference point : ";
IGESData_DumpXYL(S,level, ent->ReferencePoint(), ent->Location());
S << " First sizing parameter : " << ent->Dimension1() << " ";
- S << " Second sizing parameter : " << ent->Dimension2() << endl;
- S << " Rotation about reference entity : " << ent->Rotation() << endl;
+ S << " Second sizing parameter : " << ent->Dimension2() << Message_EndLine;
+ S << " Rotation about reference entity : " << ent->Rotation() << Message_EndLine;
S << "Reference Entity : ";
dumper.Dump(ent->ReferenceEntity(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
}
{
Standard_Integer infin = ent->Infinite();
switch (infin) {
- case 1 : S << "Semi-Infinite Line"<<endl; break;
- case 2 : S << "Infinite Line"<<endl; break;
- default : S << "Bounded Line"<<endl; break;
+ case 1 : S << "Semi-Infinite Line"<<Message_EndLine; break;
+ case 2 : S << "Infinite Line"<<Message_EndLine; break;
+ default : S << "Bounded Line"<<Message_EndLine; break;
}
- S << "Line from IGESGeom" << endl;
+ S << "Line from IGESGeom" << Message_EndLine;
S << "Starting Point : ";
IGESData_DumpXYZL(S,level, ent->StartPoint(), ent->Location());
- S << endl;
+ S << Message_EndLine;
S << "End Point : ";
IGESData_DumpXYZL(S,level, ent->EndPoint(), ent->Location());
- S << endl;
+ S << Message_EndLine;
}
{
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
- S << "IGESGeom_OffsetCurve" << endl;
+ S << "IGESGeom_OffsetCurve" << Message_EndLine;
- S << "The curve to be offset : " << endl;
+ S << "The curve to be offset : " << Message_EndLine;
dumper.Dump(ent->BaseCurve(),S, sublevel);
- S << "Offset Distance Flag : " << ent->OffsetType() << endl;
+ S << "Offset Distance Flag : " << ent->OffsetType() << Message_EndLine;
S << "Curve entity whose coordinate defines the offset : ";
dumper.Dump(ent->Function(),S, sublevel);
- S << endl;
- S << "In which Coordinate to use : " << ent->FunctionParameter() << endl;
- S << "Tapered Offset Type Flag : " << ent->TaperedOffsetType() << endl;
+ S << Message_EndLine;
+ S << "In which Coordinate to use : " << ent->FunctionParameter() << Message_EndLine;
+ S << "Tapered Offset Type Flag : " << ent->TaperedOffsetType() << Message_EndLine;
S << "First Offset Distance : " << ent->FirstOffsetDistance() << " ";
- S << "Arc Length : " << ent->ArcLength1() << endl;
+ S << "Arc Length : " << ent->ArcLength1() << Message_EndLine;
S << "Second Offset Distance : " << ent->SecondOffsetDistance() << " ";
- S << "Arc Length : " << ent->ArcLength2() << endl;
+ S << "Arc Length : " << ent->ArcLength2() << Message_EndLine;
S << "Normal Vector : ";
- IGESData_DumpXYZL(S,level, ent->NormalVector(), ent->VectorLocation()); S<<endl;
+ IGESData_DumpXYZL(S,level, ent->NormalVector(), ent->VectorLocation()); S<<Message_EndLine;
S << "Offset curve Parameters. Starting : " << ent->StartParameter() << " ";
- S << "Ending : " << ent->EndParameter() << endl;
+ S << "Ending : " << ent->EndParameter() << Message_EndLine;
}
{
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
- S << "IGESGeom_OffsetSurface" << endl;
+ S << "IGESGeom_OffsetSurface" << Message_EndLine;
S << "Offset Indicator : ";
IGESData_DumpXYZL(S,level, ent->OffsetIndicator(), ent->VectorLocation());
- S << endl;
+ S << Message_EndLine;
S << "Offset Distance : " << ent->Distance() << " ";
S << "Surface to be offset : ";
dumper.Dump(ent->Surface(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
}
const Handle(Message_Messenger)& S,
const Standard_Integer level) const
{
- S << "IGESGeom_Plane" << endl;
+ S << "IGESGeom_Plane" << Message_EndLine;
Standard_Real A,B,C,D;
ent->Equation(A,B,C,D);
- S << "Plane Coefficient A : " << A << endl;
- S << "Plane Coefficient B : " << B << endl;
- S << "Plane Coefficient C : " << C << endl;
- S << "Plane Coefficient D : " << D << endl;
+ S << "Plane Coefficient A : " << A << Message_EndLine;
+ S << "Plane Coefficient B : " << B << Message_EndLine;
+ S << "Plane Coefficient C : " << C << Message_EndLine;
+ S << "Plane Coefficient D : " << D << Message_EndLine;
S << "The Bounding Curve : " ;
dumper.Dump(ent->BoundingCurve(),S, (level <= 4) ? 0 : 1);
- S << endl;
+ S << Message_EndLine;
S << "Display Symbol Location : ";
IGESData_DumpXYZL(S,level, ent->SymbolAttach(), ent->Location());
- S << " Size : " << ent->SymbolSize() << endl;
+ S << " Size : " << ent->SymbolSize() << Message_EndLine;
}
(const Handle(IGESGeom_Point)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESGeom_Point" << endl;
+ S << "IGESGeom_Point" << Message_EndLine;
S << " Value : ";
IGESData_DumpXYZL(S,level, ent->Value(), ent->Location());
- S << endl;
+ S << Message_EndLine;
S << " Display Symbol : ";
dumper.Dump(ent->DisplaySymbol(),S, (level <= 4) ? 0 : 1);
- S << endl;
+ S << Message_EndLine;
}
{
Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
- S << "IGESGeom_RuledSurface" << endl;
+ S << "IGESGeom_RuledSurface" << Message_EndLine;
S << "First Curve : ";
dumper.Dump(ent->FirstCurve(),S, tempSubLevel);
- S << endl;
+ S << Message_EndLine;
S << "Second Curve : ";
dumper.Dump(ent->SecondCurve(),S, tempSubLevel);
- S << endl;
+ S << Message_EndLine;
S << "Direction Flag : " << ent->DirectionFlag() << " i.e.";
- if (ent->DirectionFlag() == 0) S<< "Join First to First, Last to Last"<<endl;
- else S<< "Join First to Last, Last to First"<<endl;
- if (ent->IsDevelopable()) S << " .. Is Developable" << endl;
- else S << " .. Is possibly not developable .." << endl;
+ if (ent->DirectionFlag() == 0) S<< "Join First to First, Last to Last"<<Message_EndLine;
+ else S<< "Join First to Last, Last to First"<<Message_EndLine;
+ if (ent->IsDevelopable()) S << " .. Is Developable" << Message_EndLine;
+ else S << " .. Is possibly not developable .." << Message_EndLine;
}
(const Handle(IGESGeom_SplineCurve)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESGeom_SplineCurve" << endl;
+ S << "IGESGeom_SplineCurve" << Message_EndLine;
Standard_Integer nbSegments = ent->NbSegments();
S << "Spline Type : " << ent->SplineType() << " ";
case 6 : S << "(B-Spline)"; break;
default : S << "(Invalid value)"; break;
}
- S << endl;
- S << "Degree Of Continuity : " << ent->Degree() << endl;
- S << "Number Of Dimensions : " << ent->NbDimensions() << endl;
- S << "Number Of Segments : " << ent->NbSegments() << endl;
+ S << Message_EndLine;
+ S << "Degree Of Continuity : " << ent->Degree() << Message_EndLine;
+ S << "Number Of Dimensions : " << ent->NbDimensions() << Message_EndLine;
+ S << "Number Of Segments : " << ent->NbSegments() << Message_EndLine;
S << "Segment Break Points : ";
IGESData_DumpVals(S ,level,1, nbSegments+1,ent->BreakPoint);
if (level <= 4) {
- S << " [ also ask level > 4 for X-Y-Z Polynomials ]" << endl;
+ S << " [ also ask level > 4 for X-Y-Z Polynomials ]" << Message_EndLine;
return;
}
- S << " -- Polynomial Values --" << endl;
+ S << " -- Polynomial Values --" << Message_EndLine;
Standard_Real AX,BX,CX,DX, AY,BY,CY,DY, AZ,BZ,CZ,DZ;
for (Standard_Integer I = 1; I <= nbSegments; I++) {
//no need to declare (hides the same name in an outer scope)
ent->XCoordPolynomial(I,AX,BX,CX,DX);
ent->YCoordPolynomial(I,AY,BY,CY,DY);
ent->ZCoordPolynomial(I,AZ,BZ,CZ,DZ);
- S << "Segment "<<I<<" : X Y Z"<<endl;
- S << " A ... "<<AX<<" "<<AY<<" "<<AZ<<endl;
- S << " B ... "<<BX<<" "<<BY<<" "<<BZ<<endl;
- S << " C ... "<<CX<<" "<<CY<<" "<<CZ<<endl;
- S << " D ... "<<DX<<" "<<DY<<" "<<DZ<<endl;
+ S << "Segment "<<I<<" : X Y Z"<<Message_EndLine;
+ S << " A ... "<<AX<<" "<<AY<<" "<<AZ<<Message_EndLine;
+ S << " B ... "<<BX<<" "<<BY<<" "<<BZ<<Message_EndLine;
+ S << " C ... "<<CX<<" "<<CY<<" "<<CZ<<Message_EndLine;
+ S << " D ... "<<DX<<" "<<DY<<" "<<DZ<<Message_EndLine;
}
ent->XValues(AX,BX,CX,DX);
ent->YValues(AY,BY,CY,DY);
ent->ZValues(AZ,BZ,CZ,DZ);
- S << "Terminate Point : X Y Z"<<endl;
- S << " Value "<<AX<<" "<<AY<<" "<<AZ<<endl;
- S << " 1st Derivative "<<BX<<" "<<BY<<" "<<BZ<<endl;
- S << " 2nd Der./2! "<<CX<<" "<<CY<<" "<<CZ<<endl;
- S << " 3rd Der./3! "<<DX<<" "<<DY<<" "<<DZ<<endl;
+ S << "Terminate Point : X Y Z"<<Message_EndLine;
+ S << " Value "<<AX<<" "<<AY<<" "<<AZ<<Message_EndLine;
+ S << " 1st Derivative "<<BX<<" "<<BY<<" "<<BZ<<Message_EndLine;
+ S << " 2nd Der./2! "<<CX<<" "<<CY<<" "<<CZ<<Message_EndLine;
+ S << " 3rd Der./3! "<<DX<<" "<<DY<<" "<<DZ<<Message_EndLine;
}
(const Handle(IGESGeom_SplineSurface)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESGeom_SplineSurface" << endl;
+ S << "IGESGeom_SplineSurface" << Message_EndLine;
Standard_Integer I, J;
Standard_Integer nbUSegs = ent->NbUSegments();
case 6 : S << " (B-Spline)"; break;
default : S << " (Invalid value)"; break;
}
- S << endl;
+ S << Message_EndLine;
S << "The Patch Type : " << ent->PatchType();
if (ent->PatchType() == 1) S << " (Cartesian Product)";
else S << " (Unspecified)";
- S << endl;
+ S << Message_EndLine;
S << "Number Of Segments. In U : "
- << nbUSegs << " In V : " << nbVSegs << endl;
+ << nbUSegs << " In V : " << nbVSegs << Message_EndLine;
S << "The U Break Points : ";
IGESData_DumpVals(S ,level,1, nbUSegs+1,ent->UBreakPoint);
- S <<endl<< "The V Break Points : ";
+ S <<Message_EndLine<< "The V Break Points : ";
IGESData_DumpVals(S ,level,1, nbVSegs+1,ent->VBreakPoint);
- S <<endl<< " X-Y-Z Polynomials Of Segments : ";
- S << endl;
+ S <<Message_EndLine<< " X-Y-Z Polynomials Of Segments : ";
+ S << Message_EndLine;
if (level > 4)
{
for (I = 1; I <= nbUSegs; I++)
for (J = 1; J <= nbVSegs; J++)
{
- S << "[" << I <<"," << J << "]: " << endl;
+ S << "[" << I <<"," << J << "]: " << Message_EndLine;
S << "X Polynomial : ";
temp = ent->XPolynomial(I,J);
IGESData_DumpVals(S,level,1, temp->Length(),temp->Value);
- S << endl;
+ S << Message_EndLine;
S << "Y Polynomial : ";
temp = ent->YPolynomial(I,J);
IGESData_DumpVals(S,level,1, temp->Length(),temp->Value);
- S << endl;
+ S << Message_EndLine;
S << "Z Polynomial : ";
temp = ent->ZPolynomial(I,J);
IGESData_DumpVals(S,level,1, temp->Length(),temp->Value);
- S << endl;
+ S << Message_EndLine;
}
}
- else S << endl;
+ else S << Message_EndLine;
}
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESGeom_SurfaceOfRevolution" << endl << endl;
+ S << "IGESGeom_SurfaceOfRevolution" << Message_EndLine << Message_EndLine;
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
S << "Axis Of Revolution : ";
dumper.Dump(ent->AxisOfRevolution(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "Generatrix : ";
dumper.Dump(ent->Generatrix(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "Start Angle : " << ent->StartAngle() << " ";
- S << "End Angle : " << ent->EndAngle() << endl;
+ S << "End Angle : " << ent->EndAngle() << Message_EndLine;
}
{
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
- S << "IGESGeom_TabulatedCylinder" << endl;
+ S << "IGESGeom_TabulatedCylinder" << Message_EndLine;
S << "Directrix : ";
dumper.Dump(ent->Directrix(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "Terminate Point : ";
IGESData_DumpXYZL(S,level, ent->EndPoint(), ent->Location());
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESGeom_TransformationMatrix)& ent, const IGESData_IGESDumper& /*dumper*/,
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
{
- S << "IGESGeom_TransformationMatrix" << endl;
+ S << "IGESGeom_TransformationMatrix" << Message_EndLine;
S << "| R11, R12, R13, T1 | "
<< ent->Data(1, 1) << ", " << ent->Data(1, 2) << ", "
- << ent->Data(1, 3) << ", " << ent->Data(1, 4) << endl;
+ << ent->Data(1, 3) << ", " << ent->Data(1, 4) << Message_EndLine;
S << "| R21, R22, R23, T2 | "
<< ent->Data(2, 1) << ", " << ent->Data(2, 2) << ", "
- << ent->Data(2, 3) << ", " << ent->Data(2, 4) << endl;
+ << ent->Data(2, 3) << ", " << ent->Data(2, 4) << Message_EndLine;
S << "| R31, R32, R33, T3 | "
<< ent->Data(3, 1) << ", " << ent->Data(3, 2) << ", "
- << ent->Data(3, 3) << ", " << ent->Data(3, 4) << endl;
+ << ent->Data(3, 3) << ", " << ent->Data(3, 4) << Message_EndLine;
switch (ent->FormNumber()) {
- case 0 : S << "-- Direct Orthogonal Matrix" << endl; break;
- case 1 : S << "-- Reverse Orthogonal Matrix" << endl; break;
- case 10 : S << "-- Cartesien Coordinate System" << endl; break;
- case 11 : S << "-- Cylindrical Coordinate System" << endl; break;
- case 12 : S << "-- Spherical Coordinate System" << endl; break;
- default : S << "-- (Incorrect Form Number)" << endl; break;
+ case 0 : S << "-- Direct Orthogonal Matrix" << Message_EndLine; break;
+ case 1 : S << "-- Reverse Orthogonal Matrix" << Message_EndLine; break;
+ case 10 : S << "-- Cartesien Coordinate System" << Message_EndLine; break;
+ case 11 : S << "-- Cylindrical Coordinate System" << Message_EndLine; break;
+ case 12 : S << "-- Spherical Coordinate System" << Message_EndLine; break;
+ default : S << "-- (Incorrect Form Number)" << Message_EndLine; break;
}
}
{
Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
- S << "IGESGeom_TrimmedSurface" << endl;
+ S << "IGESGeom_TrimmedSurface" << Message_EndLine;
S << "Surface to be trimmed : ";
dumper.Dump(ent->Surface(),S, tempSubLevel);
- S << endl;
- S << "Boundary type : " << ent->OuterBoundaryType() << endl;
+ S << Message_EndLine;
+ S << "Boundary type : " << ent->OuterBoundaryType() << Message_EndLine;
S << "Outer Boundary : ";
dumper.Dump(ent->OuterContour(),S, tempSubLevel);
- S << endl;
+ S << Message_EndLine;
S << "Inner Boundaries : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbInnerContours(),ent->InnerContour);
- S << endl;
+ S << Message_EndLine;
}
void IGESGeom_TransformationMatrix::SetFormNumber (const Standard_Integer fm)
{
if(theData.IsNull())
- cout<<"Inavalid Transformation Data"<<endl;
+ std::cout<<"Inavalid Transformation Data"<<std::endl;
if ((fm < 0 || fm > 1) && (fm < 10 || fm > 12)) throw Standard_OutOfRange("IGESGeom_TransformationMatrix : SetFormNumber");
InitTypeAndForm(124,fm);
}
(const Handle(IGESGraph_Color)& ent, const IGESData_IGESDumper& /*dumper*/,
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
{
- S << "IGESGraph_Color" << endl;
+ S << "IGESGraph_Color" << Message_EndLine;
Standard_Real Red,Green,Blue;
ent->RGBIntensity(Red,Green,Blue);
- S << "Red (in % Of Full Intensity) : " << Red << endl;
- S << "Green (in % Of Full Intensity) : " << Green << endl;
- S << "Blue (in % Of Full Intensity) : " << Blue << endl;
+ S << "Red (in % Of Full Intensity) : " << Red << Message_EndLine;
+ S << "Green (in % Of Full Intensity) : " << Green << Message_EndLine;
+ S << "Blue (in % Of Full Intensity) : " << Blue << Message_EndLine;
S << "Color Name : ";
IGESData_DumpString(S,ent->ColorName());
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESGraph_DefinitionLevel)& ent, const IGESData_IGESDumper& /*dumper*/,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESGraph_DefinitionLevel" << endl;
+ S << "IGESGraph_DefinitionLevel" << Message_EndLine;
S << "Level Numbers : ";
IGESData_DumpVals(S ,level,1, ent->NbPropertyValues(),ent->LevelNumber);
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESGraph_DrawingSize)& ent, const IGESData_IGESDumper& /*dumper*/,
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
{
- S << "IGESGraph_DrawingSize" << endl;
+ S << "IGESGraph_DrawingSize" << Message_EndLine;
- S << "No. of property values : " << ent->NbPropertyValues() << endl;
- S << "Drawing extent along positive X-axis : " << ent->XSize() << endl;
- S << "Drawing extent along positive Y-axis : " << ent->YSize() << endl;
- S << endl;
+ S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
+ S << "Drawing extent along positive X-axis : " << ent->XSize() << Message_EndLine;
+ S << "Drawing extent along positive Y-axis : " << ent->YSize() << Message_EndLine;
+ S << Message_EndLine;
}
(const Handle(IGESGraph_DrawingUnits)& ent, const IGESData_IGESDumper& /*dumper*/,
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
{
- S << "IGESGraph_DrawingUnits" << endl;
+ S << "IGESGraph_DrawingUnits" << Message_EndLine;
- S << "No. of property values : " << ent->NbPropertyValues() << endl;
+ S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
S << " Units Flag : " << ent->Flag();
S << " Units Name : ";
IGESData_DumpString(S,ent->Unit());
S << " computed Value (in meters) : " << ent->UnitValue();
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESGraph_HighLight)& ent, const IGESData_IGESDumper& /*dumper*/,
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
{
- S << "IGESGraph_HighLight" << endl;
+ S << "IGESGraph_HighLight" << Message_EndLine;
- S << "No. of property values : " << ent->NbPropertyValues() << endl;
- S << "Highlight Status : " << ent->HighLightStatus() << endl;
- S << endl;
+ S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
+ S << "Highlight Status : " << ent->HighLightStatus() << Message_EndLine;
+ S << Message_EndLine;
}
(const Handle(IGESGraph_IntercharacterSpacing)& ent, const IGESData_IGESDumper& /*dumper*/,
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
{
- S << "IGESGraph_IntercharacterSpacing" << endl;
+ S << "IGESGraph_IntercharacterSpacing" << Message_EndLine;
- S << "No. of property values : " << ent->NbPropertyValues() << endl;
- S << "Intercharacter space in % of text height : " << ent->ISpace() << endl;
- S << endl;
+ S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
+ S << "Intercharacter space in % of text height : " << ent->ISpace() << Message_EndLine;
+ S << Message_EndLine;
}
(const Handle(IGESGraph_LineFontDefPattern)& ent, const IGESData_IGESDumper& /*dumper*/,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESGraph_LineFontDefPattern" << endl;
+ S << "IGESGraph_LineFontDefPattern" << Message_EndLine;
S << "Visible-Blank Segments : ";
Standard_Integer nb = ent->NbSegments();
IGESData_DumpVals(S ,level,1, nb,ent->Length);
- S <<endl << "Display Pattern : ";
+ S <<Message_EndLine << "Display Pattern : ";
IGESData_DumpString(S,ent->DisplayPattern());
- S << endl;
+ S << Message_EndLine;
if (level > 4) {
- S << " -> Which Segments are Visible (the others are Blank) : " << endl;
+ S << " -> Which Segments are Visible (the others are Blank) : " << Message_EndLine;
for (Standard_Integer I = 1; I <= nb; I ++) {
if (ent->IsVisible(I)) S << " " << I;
}
- S << endl;
+ S << Message_EndLine;
}
}
{
Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
- S << "IGESGraph_LineFontDefTemplate" << endl;
+ S << "IGESGraph_LineFontDefTemplate" << Message_EndLine;
- S << "Orientation : " << ent->Orientation() << endl;
+ S << "Orientation : " << ent->Orientation() << Message_EndLine;
S << "Subfigure Display Entity For Template Display : ";
dumper.Dump(ent->TemplateEntity(),S, tempSubLevel);
- S << endl;
- S << "Length Between Successive Template Figure : " << ent->Distance()<<endl;
- S << "Scale Factor for Subfigure : " << ent->Scale() << endl;
- S << endl;
+ S << Message_EndLine;
+ S << "Length Between Successive Template Figure : " << ent->Distance()<<Message_EndLine;
+ S << "Scale Factor for Subfigure : " << ent->Scale() << Message_EndLine;
+ S << Message_EndLine;
}
(const Handle(IGESGraph_LineFontPredefined)& ent, const IGESData_IGESDumper& /*dumper*/,
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
{
- S << "IGESGraph_LineFontPredefined" << endl;
+ S << "IGESGraph_LineFontPredefined" << Message_EndLine;
- S << "No. of property values : " << ent->NbPropertyValues() << endl;
- S << "Line font pattern code : " << ent->LineFontPatternCode() << endl;
- S << endl;
+ S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
+ S << "Line font pattern code : " << ent->LineFontPatternCode() << Message_EndLine;
+ S << Message_EndLine;
}
(const Handle(IGESGraph_NominalSize)& ent, const IGESData_IGESDumper& /*dumper*/,
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
{
- S << "IGESGraph_NominalSize" << endl;
+ S << "IGESGraph_NominalSize" << Message_EndLine;
- S << "No. of property values : " << ent->NbPropertyValues() << endl;
- S << "Nominal size value : " << ent->NominalSizeValue() << endl;
+ S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
+ S << "Nominal size value : " << ent->NominalSizeValue() << Message_EndLine;
S << "Nominal size name : ";
IGESData_DumpString(S,ent->NominalSizeName());
- S << endl;
+ S << Message_EndLine;
S << "Name of relevant engineering standard : ";
IGESData_DumpString(S,ent->StandardName());
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESGraph_Pick)& ent, const IGESData_IGESDumper& /*dumper*/,
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
{
- S << "IGESGraph_Pick" << endl;
+ S << "IGESGraph_Pick" << Message_EndLine;
- S << "No. of property values : " << ent->NbPropertyValues() << endl;
+ S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
S << "Pick flag : " << ent->PickFlag();
S << (ent->PickFlag() == 0 ? " NO" : " YES" );
- S << endl;
+ S << Message_EndLine;
}
{
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
- S << "IGESGraph_TextDisplayTemplate" << endl;
+ S << "IGESGraph_TextDisplayTemplate" << Message_EndLine;
S << "Character box width : " << ent->BoxWidth() << " ";
- S << "Character box height : " << ent->BoxHeight() << endl;
+ S << "Character box height : " << ent->BoxHeight() << Message_EndLine;
if ( ent->IsFontEntity() )
{
S << "Font Entity : ";
}
else
S << "Font code : " << ent->FontCode();
- S << endl;
+ S << Message_EndLine;
S << "Slant angle : " << ent->SlantAngle() << " ";
- S << "Rotation angle : " << ent->RotationAngle() << endl;
+ S << "Rotation angle : " << ent->RotationAngle() << Message_EndLine;
S << "Mirror flag : " << ent->MirrorFlag() << " ";
- S << "Rotate flag : " << ent->RotateFlag() << endl;
+ S << "Rotate flag : " << ent->RotateFlag() << Message_EndLine;
if ( ent->FormNumber() == 0 )
S << "Lower Left Corner coordinates : ";
else
S << "Increments from coordinates : ";
IGESData_DumpXYZL(S,level, ent->StartingCorner(), ent->Location());
- S << endl;
+ S << Message_EndLine;
}
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
Standard_Integer nbchars = ent->NbCharacters();
- S << "IGESGraph_TextFontDef" << endl;
+ S << "IGESGraph_TextFontDef" << Message_EndLine;
- S << "Font Code : " << ent->FontCode() << endl;
+ S << "Font Code : " << ent->FontCode() << Message_EndLine;
S << "Font Name : ";
IGESData_DumpString(S,ent->FontName());
- S << endl;
+ S << Message_EndLine;
if ( ent->IsSupersededFontEntity() ) {
S << "Text Definition Entity : ";
dumper.Dump(ent->SupersededFontEntity(),S, sublevel);
}
else S << "Superseding Font Number : " << ent->SupersededFontCode();
- S << endl;
- S << "No. of Grid Units eqvt to 1 Text Height : " << ent->Scale() << endl;
- S << "ASCII Codes : " << endl
- << "Grid Locations of next character origins : " << endl
- << "Pen Motions : " << endl
- << "Pen Positions : " << endl
+ S << Message_EndLine;
+ S << "No. of Grid Units eqvt to 1 Text Height : " << ent->Scale() << Message_EndLine;
+ S << "ASCII Codes : " << Message_EndLine
+ << "Grid Locations of next character origins : " << Message_EndLine
+ << "Pen Motions : " << Message_EndLine
+ << "Pen Positions : " << Message_EndLine
<< "Grid Locations the pen moves to : ";
- S << "Count = " << nbchars << endl;
+ S << "Count = " << nbchars << Message_EndLine;
IGESData_DumpVals(S,-level,1,nbchars,ent->ASCIICode);
- S << endl;
+ S << Message_EndLine;
if (level > 4 )
{
Handle(TColgp_HArray1OfXY) arrXY;
{
Standard_Integer IX,IY;
S << "[" << I << "]: ";
- S << "ASCII Code : " << ent->ASCIICode(I) << endl;
+ S << "ASCII Code : " << ent->ASCIICode(I) << Message_EndLine;
S << "Grid Location of next character's origin : ";
ent->NextCharOrigin(I,IX,IY);
S << "X=" << IX << " Y=" << IY;
nbmotions = ent->NbPenMotions(I);
S << " No. of Pen Motions : " << nbmotions;
- if (level <= 5) S << " [ ask level > 5 for Details ]" << endl;
+ if (level <= 5) S << " [ ask level > 5 for Details ]" << Message_EndLine;
else {
- S << endl;
+ S << Message_EndLine;
for (J = 1; J <= nbmotions; J++)
{
S << "Pen up(1) / down(0) flag : " << (Standard_Integer)ent->IsPenUp(I,J);
S << " Next Pen Position : ";
ent->NextPenPosition(I,J, IX,IY);
S << " X="<<IX<<" Y="<<IY;
- S << endl;
+ S << Message_EndLine;
}
}
}
}
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESGraph_UniformRectGrid)& ent, const IGESData_IGESDumper& /*dumper*/,
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
{
- S << "IGESGraph_UniformRectGrid" << endl;
+ S << "IGESGraph_UniformRectGrid" << Message_EndLine;
- S << "No. of property values : " << ent->NbPropertyValues() << endl;
+ S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
S << "Grid : " << ( ent->IsFinite() ? "Finite" : "Infinite");
S << " - Composed of " << ( ent->IsLine() ? "Lines" : "Points");
- S << " - " << ( ent->IsWeighted() ? "Weighted" : "Unweighted") << endl;
+ S << " - " << ( ent->IsWeighted() ? "Weighted" : "Unweighted") << Message_EndLine;
S << "Grid Point : ";
IGESData_DumpXY(S, ent->GridPoint());
S << " Grid Spacing : ";
- IGESData_DumpXY(S, ent->GridSpacing()); S << endl;
+ IGESData_DumpXY(S, ent->GridSpacing()); S << Message_EndLine;
if (ent->IsFinite())
S << "No. of points/lines in direction : X : " << ent->NbPointsX()
- << " - Y : " << ent->NbPointsY() << endl;
+ << " - Y : " << ent->NbPointsY() << Message_EndLine;
}
Standard_Integer listmode = 0;
if (argc == 2 && arg1[0] == '?') argc = -1;
if (argc < 2) {
- cout<<"Ajouter un argument pour avoir :\n"<<
+ std::cout<<"Ajouter un argument pour avoir :\n"<<
" l : liste resumee"<<
" c : liste complete par item (mais pas pour remaining)\n"<<
" r : idem + liste complete remaining\n"<<
- " sur tout le modele. Ajouter nom selection pour lister sur une partie"<<endl;
+ " sur tout le modele. Ajouter nom selection pour lister sur une partie"<<std::endl;
return (argc >= 0 ? IFSelect_RetError : IFSelect_RetVoid);
}
if (arg1[0] == 'l') {
- listmode = 0; cout<<"Liste resumee";
+ listmode = 0; std::cout<<"Liste resumee";
}
else if (arg1[0] == 'c') {
- listmode = 1; cout<<"Liste complete par item (pas pour Remaining)"<<endl;
+ listmode = 1; std::cout<<"Liste complete par item (pas pour Remaining)"<<std::endl;
}
else if (arg1[0] == 'r') {
- listmode = 2; cout<<"Liste complete par item et pour Remaining"<<endl;
+ listmode = 2; std::cout<<"Liste complete par item et pour Remaining"<<std::endl;
}
else {
- cout<<"Parametre de listage non compris"<<endl; return IFSelect_RetError;
+ std::cout<<"Parametre de listage non compris"<<std::endl; return IFSelect_RetError;
}
Handle(IGESSelect_ViewSorter) vs = new IGESSelect_ViewSorter;
// on demande une selection
DeclareAndCast(IFSelect_Selection,sel,WS->NamedItem(arg2));
if (sel.IsNull()) {
- cout<<"Pas une selection : "<<arg2<<endl;
+ std::cout<<"Pas une selection : "<<arg2<<std::endl;
return IFSelect_RetError;
}
vs->AddList (WS->SelectionResult(sel));
if (number == 7) vs->SortSingleViews(Standard_True);
Handle(IFSelect_PacketList) sets = vs->Sets(listdr);
Standard_Integer nb = vs->NbSets(listdr);
- cout<<" -- ViewSorter for";
- if (number == 5) cout<<" Views & Drawings";
- if (number == 6) cout<<" Drawings only (complete)";
- if (number == 7) cout<<" Single Views & Drawing Frames";
- cout<<", on "<<vs->NbEntities()<<" ent.s, give "<<nb<<" Sets"<<endl;
+ std::cout<<" -- ViewSorter for";
+ if (number == 5) std::cout<<" Views & Drawings";
+ if (number == 6) std::cout<<" Drawings only (complete)";
+ if (number == 7) std::cout<<" Single Views & Drawing Frames";
+ std::cout<<", on "<<vs->NbEntities()<<" ent.s, give "<<nb<<" Sets"<<std::endl;
Interface_EntityIterator iter;
for (Standard_Integer i = 1; i <= nb; i ++) {
- cout<<" -- Set n0 "<<i<<" Item=entity n0: "<<
+ std::cout<<" -- Set n0 "<<i<<" Item=entity n0: "<<
WS->Model()->Number(vs->SetItem(i,listdr))<<" List:";
- cout<<sets->NbEntities(i)<<" ent.s:"<<endl;
+ std::cout<<sets->NbEntities(i)<<" ent.s:"<<std::endl;
if (listmode == 0) continue;
iter = sets->Entities(i);
WS->ListEntities (iter,0);
}
- cout <<" -- Remaining Entities (not yet sorted) :"
- <<sets->NbDuplicated(0,Standard_False)<<endl;
+ std::cout <<" -- Remaining Entities (not yet sorted) :"
+ <<sets->NbDuplicated(0,Standard_False)<<std::endl;
if (listmode < 2) return IFSelect_RetVoid;
iter = sets->Duplicated(0,Standard_False);
WS->ListEntities(iter,0);
case 10 : { // **** IGESType (form Type/Form)
if (argc < 2) {
- cout<<"Donner le n0 de type desire, + en option la forme\n"
- <<" Si pas de forme, prend toutes les formes du type demande"<<endl;
+ std::cout<<"Donner le n0 de type desire, + en option la forme\n"
+ <<" Si pas de forme, prend toutes les formes du type demande"<<std::endl;
return IFSelect_RetError;
}
char signature[20];
case 12 : { // **** IGES Name
if (argc < 2) {
- cout<<"Donner un Nom de TextParam pour IGESName"<<endl;
+ std::cout<<"Donner un Nom de TextParam pour IGESName"<<std::endl;
return IFSelect_RetError;
}
Handle(IGESSelect_SelectName) sel = new IGESSelect_SelectName;
case 14 : { // **** IGES LevelNumber
if (argc < 2) {
- cout<<"Donner nom IntParam pour Level"<<endl;
+ std::cout<<"Donner nom IntParam pour Level"<<std::endl;
return IFSelect_RetError;
}
DeclareAndCast(IFSelect_IntParam,lev,WS->NamedItem(arg1));
if (lev.IsNull()) {
- cout<<arg1<<" : pas un IntParam (pour Level)"<<endl;
+ std::cout<<arg1<<" : pas un IntParam (pour Level)"<<std::endl;
return IFSelect_RetError;
}
Handle(IGESSelect_SelectLevelNumber) sel = new IGESSelect_SelectLevelNumber;
char prem = ' ';
if (argc < 2) prem = '?';
else if (argc == 5) {
- cout<<"floatformat tout court donne les formes admises"<<endl;
+ std::cout<<"floatformat tout court donne les formes admises"<<std::endl;
return IFSelect_RetError;
}
else prem = arg1[0];
else if (prem == 'Z' || prem == 'z') zerosup = Standard_True;
else if (prem >= 48 && prem <= 57) digits = atoi(arg1);
else {
- cout<<"floatformat digits, digits=nb de chiffres signifiants, ou\n"
+ std::cout<<"floatformat digits, digits=nb de chiffres signifiants, ou\n"
<< "floatformat NZ %mainformat [%rangeformat [Rmin Rmax]]\n"
<<" NZ : N ou n pour Non-zero-suppress, Z ou z pour zero-suppress\n"
<<" %mainformat : format principal type printf, ex,: %E\n"
<<" + optionnel : format secondaire (flottants autour de 1.) :\n"
<<" %rangeformat Rmin Rmax : format type printf entre Rmin et Rmax\n"
<<" %rangeformat tout seul : format type printf entre 0.1 et 1000.\n"
- <<flush;
+ <<std::flush;
return (prem == '?' ? IFSelect_RetVoid : IFSelect_RetError);
}
Standard_Real Rmin=0., Rmax=0.;
if (argc > 4) {
Rmin = Atof(pilot->Word(4).ToCString());
Rmax = Atof(pilot->Word(5).ToCString());
- if (Rmin <= 0 || Rmax <= 0) { cout<<"intervalle : donner reels > 0"<<endl; return IFSelect_RetError; }
+ if (Rmin <= 0 || Rmax <= 0) { std::cout<<"intervalle : donner reels > 0"<<std::endl; return IFSelect_RetError; }
}
Handle(IGESSelect_FloatFormat) fm = new IGESSelect_FloatFormat;
if (argc == 2) fm->SetDefault(digits);
case 41 : { // **** SetGlobalParameter
if (argc < 3) {
- cout<<"Donner entier=n0 param a changer + nom TextParam pour la valeur"<<endl;
+ std::cout<<"Donner entier=n0 param a changer + nom TextParam pour la valeur"<<std::endl;
return IFSelect_RetError;
}
Standard_Integer numpar = atoi(arg1);
if (numpar <= 0) {
- cout<<"Pas un n0 de param global correct:"<<arg1<<endl;
+ std::cout<<"Pas un n0 de param global correct:"<<arg1<<std::endl;
return IFSelect_RetError;
}
DeclareAndCast(TCollection_HAsciiString,val,WS->NamedItem(arg2));
if (val.IsNull()) {
- cout<<"Pas un nom de TextParam:"<<arg2<<endl;
+ std::cout<<"Pas un nom de TextParam:"<<arg2<<std::endl;
return IFSelect_RetError;
}
Handle(IGESSelect_SetGlobalParameter) mod =
case 60 : { // **** Spline To BSpline
if (argc < 2) {
- cout<<"Pour SplineToBSpline, donner mode :\n"<<
- " n pour normal, t pour tryC2"<<endl;
+ std::cout<<"Pour SplineToBSpline, donner mode :\n"<<
+ " n pour normal, t pour tryC2"<<std::endl;
return IFSelect_RetError;
}
Standard_Boolean tryC2;
else if (arg1[0] == 't' || arg1[0] == 'T')
tryC2 = Standard_True;
else {
- cout<<" Mode incorrect : "<<arg1<<endl;
+ std::cout<<" Mode incorrect : "<<arg1<<std::endl;
return IFSelect_RetError;
}
Handle(IGESSelect_SplineToBSpline) conv =
(const Handle(Message_Messenger)& S) const
{
IFSelect_SignatureList::PrintCount(S);
- S<<" Highest value : " << thehigh << endl;
+ S<<" Highest value : " << thehigh << Message_EndLine;
if (thenblists > 0) S<<"REMARK for LEVEL LIST : Entities are counted in"
- <<" <LEVEL LIST>\n, and in each Level value of their list"<<endl;
+ <<" <LEVEL LIST>\n, and in each Level value of their list"<<Message_EndLine;
}
if (!igesent->HasName()) return Standard_False;
if (thename.IsNull()) return Standard_False;
Handle(TCollection_HAsciiString) name = igesent->NameValue();
-// cout<<"SelectName:"<<thename->ToCString()<<",with:"<<name->ToCString()<<",IsSameString="<<thename->IsSameString (name,Standard_False)<<endl;
+// std::cout<<"SelectName:"<<thename->ToCString()<<",with:"<<name->ToCString()<<",IsSameString="<<thename->IsSameString (name,Standard_False)<<std::endl;
Standard_Integer nb0 = thename->Length();
Standard_Integer nb1 = name->Length();
Standard_Integer nbf = (nb1 <= nb0 ? nb1 : nb0);
if (it == 112 || it == 126) {
thefound = Standard_True;
#ifdef OCCT_DEBUG
- cout<<"IGESSelect_SplineToBSpline : n0."<<i
- << (it == 112 ? ", Curve" : ", Surface")<<" to convert"<<endl;
+ std::cout<<"IGESSelect_SplineToBSpline : n0."<<i
+ << (it == 112 ? ", Curve" : ", Surface")<<" to convert"<<std::endl;
#endif
}
}
char* pname=(char*) name;
Standard_Integer status = IGESFile_Read (pname,igesmod,prot);
- if (status < 0) sout<<"File not found : "<<name<<endl;
- if (status > 0) sout<<"Error when reading file : "<<name<<endl;
+ if (status < 0) sout<<"File not found : "<<name<<Message_EndLine;
+ if (status > 0) sout<<"Error when reading file : "<<name<<Message_EndLine;
if (status == 0) model = igesmod;
else model.Nullify();
return status;
DeclareAndCast(IGESData_Protocol,prot,ctx.Protocol());
if (igesmod.IsNull() || prot.IsNull()) return Standard_False;
- ofstream fout;
- OSD_OpenStream(fout,ctx.FileName(),ios::out );
+ std::ofstream fout;
+ OSD_OpenStream(fout,ctx.FileName(),std::ios::out );
if (!fout) {
ctx.CCheck(0)->AddFail("IGES File could not be created");
- sout<<" - IGES File could not be created : " << ctx.FileName() << endl; return 0;
+ sout<<" - IGES File could not be created : " << ctx.FileName() << Message_EndLine; return 0;
}
sout<<" IGES File Name : "<<ctx.FileName();
IGESData_IGESWriter VW(igesmod);
sout << " .. FileMod." << numod <<" "<< filemod->Label();
if (ctx.IsForAll()) sout << " (all model)";
else sout << " (" << ctx.NbEntities() << " entities)";
-// sout << flush;
+// sout << std::flush;
}
// Envoi
VW.SendModel(prot);
sout<<" Write ";
if (themodefnes) VW.WriteMode() = 10;
- Standard_Boolean status = VW.Print(fout); sout<<" Done"<<endl;
+ Standard_Boolean status = VW.Print(fout); sout<<" Done"<<Message_EndLine;
errno = 0;
fout.close();
status = fout.good() && status && !errno;
if(errno)
- sout << strerror(errno) << endl;
+ sout << strerror(errno) << Message_EndLine;
return status;
}
Standard_Boolean iserr = model->IsRedefinedContent(num);
Handle(Standard_Transient) con;
if (iserr) con = model->ReportEntity(num)->Content();
- if (entity.IsNull()) { S<<" Null"<<endl; return ; }
+ if (entity.IsNull()) { S<<" Null"<<Message_EndLine; return ; }
// On attaque le dump : d abord cas de l Erreur
if (iserr) {
S << " ERRONEOUS, Content, Type cdl : ";
if (!con.IsNull()) S << con->DynamicType()->Name();
- else S << "(undefined)" << endl;
+ else S << "(undefined)" << Message_EndLine;
igesent = GetCasted(IGESData_IGESEntity,con);
con.Nullify();
Handle(Interface_Check) check = model->ReportEntity(num)->Check();
dump.Dump(igesent,S,level,(level-1)/3);
}
catch (Standard_Failure const&) {
- S << " ** Dump Interrupt **" << endl;
+ S << " ** Dump Interrupt **" << Message_EndLine;
}
}
(const Handle(IGESSolid_Block)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESSolid_Block" << endl;
+ S << "IGESSolid_Block" << Message_EndLine;
S << "Size : ";
IGESData_DumpXYZ(S, ent->Size());
- S << endl << "Corner : ";
+ S << Message_EndLine << "Corner : ";
IGESData_DumpXYZL(S,level, ent->Corner(), ent->Location());
- S << endl << "XAxis : ";
+ S << Message_EndLine << "XAxis : ";
IGESData_DumpXYZL(S,level, ent->XAxis(), ent->VectorLocation());
- S << endl << "ZAxis : ";
+ S << Message_EndLine << "ZAxis : ";
IGESData_DumpXYZL(S,level, ent->ZAxis(), ent->VectorLocation());
- S << endl;
+ S << Message_EndLine;
}
{
Standard_Integer i, length = ent->Length();
- S << "IGESSolid_Boolean Tree" << endl;
+ S << "IGESSolid_Boolean Tree" << Message_EndLine;
- S << "Length of the post-order notation :" << length << endl;
+ S << "Length of the post-order notation :" << length << Message_EndLine;
if (level > 4)
{
- S << "Post-order notation of the Boolean Tree :" << endl;
+ S << "Post-order notation of the Boolean Tree :" << Message_EndLine;
for (i = 1; i <= length; i++)
{
if (ent->IsOperand(i))
{
S << "[" << i << "] Operand : ";
dumper.Dump (ent->Operand(i),S, 1);
- S << endl;
+ S << Message_EndLine;
}
else
{
Standard_Integer opcode = ent->Operation(i);
S << "[" << i << "] Operator : " << opcode;
if (opcode == 1) S << " (Union)";
- else if (opcode == 2) S << " (Intersection)" << endl;
- else if (opcode == 3) S << " (Difference)" << endl;
- else S << " (incorrect value)" << endl;
+ else if (opcode == 2) S << " (Intersection)" << Message_EndLine;
+ else if (opcode == 3) S << " (Difference)" << Message_EndLine;
+ else S << " (incorrect value)" << Message_EndLine;
}
}
}
-// S << endl;
+// S << std::endl;
}
(const Handle(IGESSolid_ConeFrustum)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESSolid_ConeFrustum" << endl;
+ S << "IGESSolid_ConeFrustum" << Message_EndLine;
S << "Height : " << ent->Height() << " ";
S << "Larger face Radius : " << ent->LargerRadius() << " ";
- S << "Smaller face Radius : " << ent->SmallerRadius() << endl;
+ S << "Smaller face Radius : " << ent->SmallerRadius() << Message_EndLine;
S << "Face Center : ";
IGESData_DumpXYZL(S,level, ent->FaceCenter(), ent->Location());
- S << endl << "Axis : ";
+ S << Message_EndLine << "Axis : ";
IGESData_DumpXYZL(S,level, ent->Axis(), ent->VectorLocation());
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESSolid_ConicalSurface)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESSolid_ConicalSurface" << endl;
+ S << "IGESSolid_ConicalSurface" << Message_EndLine;
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
S << "Point on axis : ";
dumper.Dump(ent->LocationPoint(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "Axis direction : ";
dumper.Dump(ent->Axis(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "Radius : " << ent->Radius() << " ";
- S << "Semi-angle : " << ent->SemiAngle() << endl;
+ S << "Semi-angle : " << ent->SemiAngle() << Message_EndLine;
if (ent->IsParametrised())
{
- S << "Surface is Parametrised - Reference direction : " << endl;
+ S << "Surface is Parametrised - Reference direction : " << Message_EndLine;
dumper.Dump(ent->ReferenceDir(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
}
- else S << "Surface is UnParametrised" << endl;
+ else S << "Surface is UnParametrised" << Message_EndLine;
}
// gp_Pnt TCenter = ent->TransformedFaceCenter();
// gp_Dir TAxis = ent->TransformedAxis();
- S << "IGESSolid_Cylinder" << endl;
+ S << "IGESSolid_Cylinder" << Message_EndLine;
S << "Height : " << ent->Height() << " ";
- S << "Radius : " << ent->Radius() << endl;
+ S << "Radius : " << ent->Radius() << Message_EndLine;
S << "Center : ";
IGESData_DumpXYZL(S,level, ent->FaceCenter(), ent->Location());
- S << endl << "Axis : ";
+ S << Message_EndLine << "Axis : ";
IGESData_DumpXYZL(S,level, ent->Axis(), ent->VectorLocation());
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESSolid_CylindricalSurface)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESSolid_CylindricalSurface" << endl;
+ S << "IGESSolid_CylindricalSurface" << Message_EndLine;
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
S << "Point on axis : ";
dumper.Dump(ent->LocationPoint(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "Axis direction : ";
dumper.Dump(ent->Axis(),S, sublevel);
- S << endl;
- S << "Radius : " << ent->Radius() << endl;
+ S << Message_EndLine;
+ S << "Radius : " << ent->Radius() << Message_EndLine;
if (ent->IsParametrised())
{
S << "Surface is Parametrised - Reference direction : ";
dumper.Dump(ent->ReferenceDir(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
}
- else S << "Surface is UnParametrised" << endl;
+ else S << "Surface is UnParametrised" << Message_EndLine;
}
{
Standard_Integer i, length = ent->NbEdges();
- S << "IGESSolid_EdgeList" << endl;
- S << "Number of edge tuples : " << length << endl;
+ S << "IGESSolid_EdgeList" << Message_EndLine;
+ S << "Number of edge tuples : " << length << Message_EndLine;
switch (level)
{
case 4 :
S << "Start Vertex List : ";
S << "Start Vertex Index : ";
IGESData_DumpVals(S ,level,1, length,ent->StartVertexIndex);
- S << endl;
+ S << Message_EndLine;
S << "End Vertex List : ";
S << "End Vertex Index : ";
IGESData_DumpVals(S ,level,1, length,ent->EndVertexIndex);
- S << endl;
+ S << Message_EndLine;
break;
case 5 :
case 6 :
- S<<" Curve - Vertices. Start : (VertexList,Index) End : (VertexList,Index)"<<endl;
+ S<<" Curve - Vertices. Start : (VertexList,Index) End : (VertexList,Index)"<<Message_EndLine;
for (i = 1; i <= length; i ++)
{
//[123]:Curve : #1234 - Vertices. Start = (#5678 , 3467) End = (#1234 , 4664)
S << ") End : (";
dumper.Dump (ent->EndVertexList(i),S, 0);
S << " , " << ent->EndVertexIndex(i);
- S << ")" << endl;
+ S << ")" << Message_EndLine;
}
break;
default :
break;
}
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESSolid_Ellipsoid)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESSolid_Ellipsoid" << endl;
+ S << "IGESSolid_Ellipsoid" << Message_EndLine;
S << "Size : ";
IGESData_DumpXYZ(S, ent->Size());
- S << endl << "Center : ";
+ S << Message_EndLine << "Center : ";
IGESData_DumpXYZL(S,level, ent->Center(), ent->Location());
- S << endl << "XAxis : ";
+ S << Message_EndLine << "XAxis : ";
IGESData_DumpXYZL(S,level, ent->XAxis(), ent->VectorLocation());
- S << endl << "ZAxis : ";
+ S << Message_EndLine << "ZAxis : ";
IGESData_DumpXYZL(S,level, ent->ZAxis(), ent->VectorLocation());
- S << endl;
+ S << Message_EndLine;
}
const Handle(Message_Messenger)& S,
const Standard_Integer level) const
{
- S << "IGESSolid_Face" << endl;
+ S << "IGESSolid_Face" << Message_EndLine;
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
S << "Surface : ";
dumper.Dump(ent->Surface(),S, sublevel);
- S << endl;
- if (ent->HasOuterLoop()) S << "Outer loop is present (First one)" << endl;
- else S << "Outer loop is not present" << endl;
+ S << Message_EndLine;
+ if (ent->HasOuterLoop()) S << "Outer loop is present (First one)" << Message_EndLine;
+ else S << "Outer loop is not present" << Message_EndLine;
S << "Loops : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbLoops(),ent->Loop);
- S << endl;
+ S << Message_EndLine;
}
Standard_Integer nbedges = ent->NbEdges();
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
- S << "IGESSolid_Loop" << endl;
+ S << "IGESSolid_Loop" << Message_EndLine;
- S << "Edge types : " << endl;
- S << "Edges : " << endl;
- S << "List index : " << endl;
- S << "Orientation flags : " << endl;
+ S << "Edge types : " << Message_EndLine;
+ S << "Edges : " << Message_EndLine;
+ S << "List index : " << Message_EndLine;
+ S << "Orientation flags : " << Message_EndLine;
S << "Parametric flags : ";
IGESData_DumpEntities(S,dumper,-level,1, nbedges,ent->Edge);
- S << endl;
+ S << Message_EndLine;
if (level > 4)
{
S << "[ ";
<< ( ent->IsIsoparametric(i,j) ? "True" : "False" ) << " ";
S << "Parametric curve : ";
dumper.Dump (ent->ParametricCurve(i,j),S, sublevel);
- S << endl;
+ S << Message_EndLine;
}
S << " ]";
}
}
- S << endl;
+ S << Message_EndLine;
}
S << " ]";
}
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESSolid_ManifoldSolid)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESSolid_ManifoldSolid" << endl;
+ S << "IGESSolid_ManifoldSolid" << Message_EndLine;
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
S << "Shell : ";
dumper.Dump(ent->Shell(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
if (ent->OrientationFlag())
- S << "Orientation agrees with the underlying surface" << endl;
+ S << "Orientation agrees with the underlying surface" << Message_EndLine;
else
- S << "Orientation does not agrees with the underlying surface" << endl;
- S << "Void shells :" << endl << "Orientation flags : ";
+ S << "Orientation does not agrees with the underlying surface" << Message_EndLine;
+ S << "Void shells :" << Message_EndLine << "Orientation flags : ";
IGESData_DumpEntities(S,dumper,-level,1, ent->NbVoidShells(),ent->VoidShell);
- S << endl;
+ S << Message_EndLine;
if (level > 4)
{
- S << "[ " << endl;
+ S << "[ " << Message_EndLine;
if (ent->NbVoidShells() > 0)
{
Standard_Integer upper = ent->NbVoidShells();
S << "Void shell : ";
dumper.Dump (ent->VoidShell(i),S, sublevel);
S << " - Orientation flag : ";
- if (ent->VoidOrientationFlag(i)) S << "True" << endl;
- else S << "False" << endl;
+ if (ent->VoidOrientationFlag(i)) S << "True" << Message_EndLine;
+ else S << "False" << Message_EndLine;
}
}
- S << " ]" << endl;
+ S << " ]" << Message_EndLine;
}
- S << endl;
+ S << Message_EndLine;
}
const Handle(Message_Messenger)& S,
const Standard_Integer level) const
{
- S << "IGESSolid_PlaneSurface" << endl;
+ S << "IGESSolid_PlaneSurface" << Message_EndLine;
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
S << "Point on axis : ";
dumper.Dump(ent->LocationPoint(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "Normal direction : ";
dumper.Dump(ent->Normal(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
if (ent->IsParametrised())
{
S << "Surface is Parametrised - Reference direction : ";
dumper.Dump(ent->ReferenceDir(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
}
- else S << "Surface is UnParametrised" << endl;
+ else S << "Surface is UnParametrised" << Message_EndLine;
}
(const Handle(IGESSolid_RightAngularWedge)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESSolid_RightAngularWedge" << endl;
+ S << "IGESSolid_RightAngularWedge" << Message_EndLine;
S << "Size : ";
IGESData_DumpXYZ(S, ent->Size()); S << " ";
- S << "XSmall : " << ent->XSmallLength() << endl;
+ S << "XSmall : " << ent->XSmallLength() << Message_EndLine;
S << "Corner : ";
IGESData_DumpXYZL(S,level, ent->Corner(), ent->Location());
- S << endl << "XAxis : ";
+ S << Message_EndLine << "XAxis : ";
IGESData_DumpXYZL(S,level, ent->XAxis(), ent->VectorLocation());
- S << endl << "ZAxis : ";
+ S << Message_EndLine << "ZAxis : ";
IGESData_DumpXYZL(S,level, ent->ZAxis(), ent->VectorLocation());
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESSolid_SelectedComponent)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESSolid_SelectedComponent" << endl;
+ S << "IGESSolid_SelectedComponent" << Message_EndLine;
// the heading for boolean tree is in BooleanTree OwnDump
- S << "Boolean Tree Entity : " << endl;
+ S << "Boolean Tree Entity : " << Message_EndLine;
dumper.Dump(ent->Component(),S, (level <= 4) ? 0 : 1);
S << "Seleted Point : ";
IGESData_DumpXYZL(S,level, ent->SelectPoint(), ent->Location());
- S << endl;
+ S << Message_EndLine;
}
const Handle(Message_Messenger)& S,
const Standard_Integer level) const
{
- S << "IGESSolid_Shell" << endl;
+ S << "IGESSolid_Shell" << Message_EndLine;
Standard_Integer upper = ent->NbFaces();
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
- S << "Faces : " << endl << "Orientation flags : ";
+ S << "Faces : " << Message_EndLine << "Orientation flags : ";
IGESData_DumpEntities(S,dumper,-level,1, ent->NbFaces(),ent->Face);
- S << endl;
+ S << Message_EndLine;
if (level > 4)
{
- S << "[" << endl;
+ S << "[" << Message_EndLine;
for (Standard_Integer i = 1; i <= upper; i ++)
{
S << "[" << i << "]: ";
S << "Face : ";
dumper.Dump (ent->Face(i),S, sublevel);
S << " - Orientation flag : ";
- if (ent->Orientation(i)) S << "True" << endl;
- else S << "False" << endl;
+ if (ent->Orientation(i)) S << "True" << Message_EndLine;
+ else S << "False" << Message_EndLine;
}
}
- S << endl;
+ S << Message_EndLine;
}
{
// Standard_Integer upper = ent->NbItems();
- S << "IGESSolid_SolidAssembly" << endl;
+ S << "IGESSolid_SolidAssembly" << Message_EndLine;
S << "Items : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbItems(),ent->Item);
- S << endl;
+ S << Message_EndLine;
S << "Matrices : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbItems(),ent->TransfMatrix);
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESSolid_SolidInstance)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESSolid_SolidInstance" << endl;
+ S << "IGESSolid_SolidInstance" << Message_EndLine;
S << "Solid entity : ";
dumper.Dump(ent->Entity(),S, (level <= 4) ? 0 : 1);
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESSolid_SolidOfLinearExtrusion)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESSolid_SolidOfLinearExtrusion" << endl;
+ S << "IGESSolid_SolidOfLinearExtrusion" << Message_EndLine;
S << "Curve entity : ";
dumper.Dump(ent->Curve(),S, (level <= 4) ? 0 : 1);
- S << endl;
- S << "Extrusion length : " << ent->ExtrusionLength() << endl;
+ S << Message_EndLine;
+ S << "Extrusion length : " << ent->ExtrusionLength() << Message_EndLine;
S << "Extrusion direction : ";
IGESData_DumpXYZL(S,level, ent->ExtrusionDirection(), ent->VectorLocation());
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESSolid_SolidOfRevolution)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESSolid_SolidOfRevolution" << endl;
+ S << "IGESSolid_SolidOfRevolution" << Message_EndLine;
S << "Curve entity :";
dumper.Dump(ent->Curve(),S, (level <= 4) ? 0 : 1);
- S << endl;
- S << "Fraction of rotation : " << ent->Fraction() << endl;
+ S << Message_EndLine;
+ S << "Fraction of rotation : " << ent->Fraction() << Message_EndLine;
S << "Axis Point : ";
IGESData_DumpXYZL(S,level, ent->AxisPoint(), ent->Location());
- S << endl << "Axis direction : ";
+ S << Message_EndLine << "Axis direction : ";
IGESData_DumpXYZL(S,level, ent->Axis(), ent->VectorLocation());
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESSolid_Sphere)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESSolid_Sphere" << endl;
+ S << "IGESSolid_Sphere" << Message_EndLine;
- S << "Radius : " << ent->Radius() << endl;
+ S << "Radius : " << ent->Radius() << Message_EndLine;
S << "Center : ";
IGESData_DumpXYZL(S,level, ent->Center(), ent->Location());
- S << endl;
+ S << Message_EndLine;
}
(const Handle(IGESSolid_SphericalSurface)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESSolid_SphericalSurface" << endl;
+ S << "IGESSolid_SphericalSurface" << Message_EndLine;
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
S << "Center : ";
dumper.Dump(ent->Center(),S, sublevel);
- S << endl;
- S << "Radius : " << ent->Radius() << endl;
+ S << Message_EndLine;
+ S << "Radius : " << ent->Radius() << Message_EndLine;
if (ent->IsParametrised())
{
- S << "Surface is Parametrised" << endl;
+ S << "Surface is Parametrised" << Message_EndLine;
S << "Axis direction : ";
dumper.Dump(ent->Axis(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "Reference direction : ";
dumper.Dump(ent->ReferenceDir(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
}
- else S << "Surface is UnParametrised" << endl;
+ else S << "Surface is UnParametrised" << Message_EndLine;
}
(const Handle(IGESSolid_ToroidalSurface)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESSolid_ToroidalSurface" << endl;
+ S << "IGESSolid_ToroidalSurface" << Message_EndLine;
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
S << "Center : ";
dumper.Dump(ent->Center(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "Axis direction : ";
dumper.Dump(ent->Axis(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
S << "Major Radius : " << ent->MajorRadius() << " ";
- S << "Minor Radius : " << ent->MinorRadius() << endl;
+ S << "Minor Radius : " << ent->MinorRadius() << Message_EndLine;
if (ent->IsParametrised())
{
S << "Surface is Parametrised - Reference direction : ";
dumper.Dump(ent->ReferenceDir(),S, sublevel);
- S << endl;
+ S << Message_EndLine;
}
- else S << "Surface is UnParametrised" << endl;
+ else S << "Surface is UnParametrised" << Message_EndLine;
}
(const Handle(IGESSolid_Torus)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
{
- S << "IGESSolid_Torus" << endl;
+ S << "IGESSolid_Torus" << Message_EndLine;
S << "Radius of revolution : " << ent->MajorRadius() << " ";
- S << "Radius of the disc : " << ent->DiscRadius() << endl;
+ S << "Radius of the disc : " << ent->DiscRadius() << Message_EndLine;
S << "Center Point : ";
IGESData_DumpXYZL(S,level, ent->AxisPoint(), ent->Location());
- S << endl << "Axis direction : ";
+ S << Message_EndLine << "Axis direction : ";
IGESData_DumpXYZL(S,level, ent->Axis(), ent->VectorLocation());
- S << endl;
+ S << Message_EndLine;
}
const Handle(Message_Messenger)& S,
const Standard_Integer level) const
{
- S << "IGESSolid_VertexList" << endl;
+ S << "IGESSolid_VertexList" << Message_EndLine;
S << "Vertices : ";
IGESData_DumpListXYZL(S ,level,1, ent->NbVertices(),ent->Vertex,ent->Location());
- S << endl;
+ S << Message_EndLine;
}
}
else {
#ifdef OCCT_DEBUG
- cout << "Warning: IGESToBRep::TransferPCurve: pcurves are not SameRange" << endl;
+ std::cout << "Warning: IGESToBRep::TransferPCurve: pcurves are not SameRange" << std::endl;
#endif
result = Standard_False;
}
}
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "\n**IGESToBRep::TransferPCurve: Exception in SameRange : ";
- anException.Print(cout);
+ std::cout << "\n**IGESToBRep::TransferPCurve: Exception in SameRange : ";
+ anException.Print(std::cout);
#endif
(void)anException;
result = Standard_False;
} //:36
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "\n** Exception in IGESToBRep_BasicCurve::TransferBasicCurve : ";
- anException.Print(cout);
+ std::cout << "\n** Exception in IGESToBRep_BasicCurve::TransferBasicCurve : ";
+ anException.Print(std::cout);
#endif
(void)anException;
}
} //:h8
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "\n** Exception in IGESToBRep_BasicCurve::Transfer2dBasicCurve : ";
- anException.Print(cout);
+ std::cout << "\n** Exception in IGESToBRep_BasicCurve::Transfer2dBasicCurve : ";
+ anException.Print(std::cout);
#endif
(void)anException;
}
}
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "\n** Exception in IGESToBRep_BasicCurve::TransferBSplineCurve during creation of Geom_BSplineCurve : ";
- anException.Print(cout);
+ std::cout << "\n** Exception in IGESToBRep_BasicCurve::TransferBSplineCurve during creation of Geom_BSplineCurve : ";
+ anException.Print(std::cout);
#endif
(void)anException;
}
} //:36
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "\n** Exception in IGESToBRep_BasicSurface::TransferBasicSurface : ";
- anException.Print(cout);
+ std::cout << "\n** Exception in IGESToBRep_BasicSurface::TransferBasicSurface : ";
+ anException.Print(std::cout);
#endif
(void)anException;
}
if (unitfactor != 1.)
{
if ( myTP->TraceLevel() > 2 )
- myTP->Messenger() << "UnitFactor = "<< unitfactor << endl;
+ myTP->Messenger() << "UnitFactor = "<< unitfactor << Message_EndLine;
myUnitFactor = unitfactor;
}
UpdateMinMaxTol();
}
catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Warning: IgesToBRep_TopoSurface::"
+ std::cout << "Warning: IgesToBRep_TopoSurface::"
"TransferSurfaceOfRevolution(): exception by Geom: ";
- anException.Print ( cout ); cout << endl;
+ anException.Print ( std::cout ); std::cout << std::endl;
#endif
(void)anException;
}//catch (Standard_Failure)
}
catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Warning: IgesToBRep_TopoSurface::TransferTabulatedCylinder(): exception by Geom: ";
- anException.Print ( cout ); cout << endl;
+ std::cout << "Warning: IgesToBRep_TopoSurface::TransferTabulatedCylinder(): exception by Geom: ";
+ anException.Print ( std::cout ); std::cout << std::endl;
#endif
(void)anException;
}
if (myshape.IsNull()) {
//#55 rln 24.12.98 UKI60878 entity D593
#ifdef OCCT_DEBUG
- cout << "Fail: IGESToBRep_TopoSurface::TransferBoundedSurface UntrimmedSurface is translated into Null" << endl;
+ std::cout << "Fail: IGESToBRep_TopoSurface::TransferBoundedSurface UntrimmedSurface is translated into Null" << std::endl;
#endif
return res;
}
Handle(Message_Messenger) anOutput = Message::DefaultMessenger();
if (!myPipelines->IsBound(aShapeID))
{
- anOutput << "Warning: there is no VTK pipeline registered for highlighted shape" << endl;
+ anOutput << "Warning: there is no VTK pipeline registered for highlighted shape" << Message_EndLine;
continue;
}
Handle(Message_Messenger) anOutput = Message::DefaultMessenger();
if (!myPipelines->IsBound (aShapeID))
{
- anOutput << "Warning: there is no VTK pipeline registered for picked shape" << endl;
+ anOutput << "Warning: there is no VTK pipeline registered for picked shape" << Message_EndLine;
continue;
}
gp_Pnt IntAna_Curve::InternalValue(const Standard_Real U,
const Standard_Real _V) const
{
- //-- cout<<" ["<<U<<","<<V<<"]";
+ //-- std::cout<<" ["<<U<<","<<V<<"]";
Standard_Real V = _V;
if(V > 100000.0 ) { V= 100000.0; }
if(V < -100000.0 ) { V=-100000.0; }
if(a0>0.0000000001) {
aNbBadSol++;
#if 0
- cout<<" ------- Erreur : P Ligne < > P Tore "<<endl;
- cout<<"Ligne : X:"<<PSolL.X()<<" Y:"<<PSolL.Y()<<" Z:"<<PSolL.Z()<<" l:"<<t<<endl;
- cout<<"Tore : X:"<<PSolT.X()<<" Y:"<<PSolT.Y()<<" Z:"<<PSolT.Z()<<" u:"<<u<<" v:"<<v<<endl;
+ std::cout<<" ------- Erreur : P Ligne < > P Tore "<<std::endl;
+ std::cout<<"Ligne : X:"<<PSolL.X()<<" Y:"<<PSolL.Y()<<" Z:"<<PSolL.Z()<<" l:"<<t<<std::endl;
+ std::cout<<"Tore : X:"<<PSolT.X()<<" Y:"<<PSolT.Y()<<" Z:"<<PSolT.Z()<<" u:"<<u<<" v:"<<v<<std::endl;
#endif
}
else {
- cout<<"\n ---------- Coefficients Line - Torus : "<<endl;
- cout<<" a0 : "<<a0<<endl;
- cout<<" a1 : "<<a1<<endl;
- cout<<" a2 : "<<a2<<endl;
- cout<<" a3 : "<<a3<<endl;
- cout<<" a4 : "<<a4<<endl;
+ std::cout<<"\n ---------- Coefficients Line - Torus : "<<std::endl;
+ std::cout<<" a0 : "<<a0<<std::endl;
+ std::cout<<" a1 : "<<a1<<std::endl;
+ std::cout<<" a2 : "<<a2<<std::endl;
+ std::cout<<" a3 : "<<a3<<std::endl;
+ std::cout<<" a4 : "<<a4<<std::endl;
Standard_Real u,v;
math_DirectPolynomialRoots mdpr(a4,a3,a2,a1,a0);
a0 = PSolT.SquareDistance(PSolL);
if(a0>0.0000000001) {
- cout<<" ------- Erreur : P Ligne < > P Tore ";
- cout<<"Ligne : X:"<<PSolL.X()<<" Y:"<<PSolL.Y()<<" Z:"<<PSolL.Z()<<" l:"<<t<<endl;
- cout<<"Tore : X:"<<PSolL.X()<<" Y:"<<PSolL.Y()<<" Z:"<<PSolL.Z()<<" u:"<<u<<" v:"<<v<<endl;
+ std::cout<<" ------- Erreur : P Ligne < > P Tore ";
+ std::cout<<"Ligne : X:"<<PSolL.X()<<" Y:"<<PSolL.Y()<<" Z:"<<PSolL.Z()<<" l:"<<t<<std::endl;
+ std::cout<<"Tore : X:"<<PSolL.X()<<" Y:"<<PSolL.Y()<<" Z:"<<PSolL.Z()<<" u:"<<u<<" v:"<<v<<std::endl;
}
else {
theParam[nbsolvalid] = t;
//-- Si il n y a que 2 racines alors on prend tout l interval
//----------------------------------------------------------------
if(Abs(Theta2-Theta1)<=1e-12) {
- //-- cout<<"\n####### Un Point de Tangence en Theta = "<<Theta1<<endl;
+ //-- std::cout<<"\n####### Un Point de Tangence en Theta = "<<Theta1<<std::endl;
//-- i++;
}
else { //-- On evite les pbs numeriques (Tout est du meme signe entre les racines)
Standard_Real Theta=PolZ1.Value(ii);
if(Abs(MTFZ1.Value(Theta))<=myEpsilon) {
//-- Une droite Solution Z= -INF -> +INF pour Theta
- //-- cout<<"######## Droite Solution Pour Theta = "<<Theta<<endl;
+ //-- std::cout<<"######## Droite Solution Pour Theta = "<<Theta<<std::endl;
}
else {
- //-- cout<<"\n#### _+_+_+_+_+ CAS A(t) Z + B = 0 avec A et B ==0 "<<endl;
+ //-- std::cout<<"\n#### _+_+_+_+_+ CAS A(t) Z + B = 0 avec A et B ==0 "<<std::endl;
}
}
*/
Standard_Real& ,
Standard_Real& ) const
{
- cout << "IntAna_IntQuadQuad::Parameters(...) is not yet implemented" << endl;
+ std::cout << "IntAna_IntQuadQuad::Parameters(...) is not yet implemented" << std::endl;
}
/*********************************************************************************
math_TrigonometricFunctionRoots Sol(pcc,p2sc,pc,ps,pcte,0.0,2.0*M_PI);
if(!Sol.IsDone()) {
- cout << "\n\nmath_TrigonometricFunctionRoots -> NotDone\n\n"<<endl;
+ std::cout << "\n\nmath_TrigonometricFunctionRoots -> NotDone\n\n"<<std::endl;
done=Standard_False;
return;
}
MyDirectPolynomialRoots Sol(px4,px3,px2,px1,px0);
if(!Sol.IsDone()) {
- //-- cout<<" Done = False ds IntAna2d_AnaIntersection_8.cxx "<<endl;
+ //-- std::cout<<" Done = False ds IntAna2d_AnaIntersection_8.cxx "<<std::endl;
done=Standard_False;
return;
}
const Standard_Real A2,
const Standard_Real A1,
const Standard_Real A0) {
- //-- cout<<" IntAna2d : A4..A0 "<<A4<<" "<<A3<<" "<<A2<<" "<<A1<<" "<<A0<<" "<<endl;
+ //-- std::cout<<" IntAna2d : A4..A0 "<<A4<<" "<<A3<<" "<<A2<<" "<<A1<<" "<<A0<<" "<<std::endl;
nbsol = 0;
same = Standard_False;
// Modified by Sergey KHROMOV - Thu Oct 24 13:10:14 2002 Begin
NbsolPolyComplet = nbp;
for(i=1;i<=nbp;i++) {
Standard_Real x = MATH_A43210.Value(i);
- //-- cout<<" IntAna2d : x Pol Complet :"<<x<<endl;
+ //-- std::cout<<" IntAna2d : x Pol Complet :"<<x<<std::endl;
val[nbsol] = A0 + x*(A1+x*(A2+x*(A3+x*A4)));
sol[nbsol] = x;
if(val[nbsol]> tol || val[nbsol]<-tol) {
//------------------------------------------------------------
//-- On trie les valeurs par ordre decroissant de val
//-- for(i=0;i<nbsol;i++) {
- //-- cout<<" IntAna2d Sol,Val"<<sol[i]<<" "<<val[i]<<endl;
+ //-- std::cout<<" IntAna2d Sol,Val"<<sol[i]<<" "<<val[i]<<std::endl;
//-- }
Standard_Boolean TriOK = Standard_False;
do {
//-- Au moins autant que le polynome Complet
//--
for(nbsol=0; nbsol<NbsolPolyComplet || Abs(val[nbsol])<Epsilon(10000.0); nbsol++) ;
- //-- cout<<" IntAna2d : nbsol:"<<nbsol<<endl;
+ //-- std::cout<<" IntAna2d : nbsol:"<<nbsol<<std::endl;
}
if(nbsol==0) {
nbsol=-1;
MyDirectPolynomialRoots::MyDirectPolynomialRoots(const Standard_Real A2,
const Standard_Real A1,
const Standard_Real A0) {
- //-- cout<<" IntAna2d : A2..A0 "<<A2<<" "<<A1<<" "<<A0<<" "<<endl;
+ //-- std::cout<<" IntAna2d : A2..A0 "<<A2<<" "<<A1<<" "<<A0<<" "<<std::endl;
nbsol=0;
if((Abs(A2)+Abs(A1)+Abs(A0))<Epsilon(10000.0)) {
same = Standard_True;
Standard_Real x = MATH_A210.Value(i);
val[nbsol] = A0 + x*(A1+x*A2);
sol[nbsol] = x;
- //-- cout<<" IntAna2d : x Pol Complet :"<<x<<" Val:"<<val[nbsol]<<endl;
+ //-- std::cout<<" IntAna2d : x Pol Complet :"<<x<<" Val:"<<val[nbsol]<<std::endl;
nbsol++;
}
}
case GeomAbs_Circle: return(ElCLib::CircleValue(X,Axis,Circle_r));
case GeomAbs_Parabola: return(ElCLib::ParabolaValue(X,Axis,Parab_f));
case GeomAbs_Hyperbola: return(ElCLib::HyperbolaValue(X,Axis,Hypr_a,Hypr_b));
- default: { cout<<"### Erreur sur le type de la courbe ###";
+ default: { std::cout<<"### Erreur sur le type de la courbe ###";
return(gp_Pnt2d(0.0,0.0)); }
}
}
case GeomAbs_Circle: ElCLib::CircleD1(X,Axis,Circle_r,Pt,Tan); break;
case GeomAbs_Parabola: ElCLib::ParabolaD1(X,Axis,Parab_f,Pt,Tan); break;
case GeomAbs_Hyperbola: ElCLib::HyperbolaD1(X,Axis,Hypr_a,Hypr_b,Pt,Tan); break;
- default: { cout<<"### Erreur sur le type de la courbe ###"; }
+ default: { std::cout<<"### Erreur sur le type de la courbe ###"; }
}
}
case GeomAbs_Circle: ElCLib::CircleD2(X,Axis,Circle_r,Pt,Tan,Norm); break;
case GeomAbs_Parabola: ElCLib::ParabolaD2(X,Axis,Parab_f,Pt,Tan,Norm); break;
case GeomAbs_Hyperbola: ElCLib::HyperbolaD2(X,Axis,Hypr_a,Hypr_b,Pt,Tan,Norm); break;
- default: { cout<<"### Erreur sur le type de la courbe ###"; }
+ default: { std::cout<<"### Erreur sur le type de la courbe ###"; }
}
}
//----------------------------------------------------------------------
return((-P.X()*P.X())/Hypr_aa
-(P.Y()*P.Y())/Hypr_bb -1.0);
}
- default: { cout<<"### Erreur sur le type de la courbe ###";
+ default: { std::cout<<"### Erreur sur le type de la courbe ###";
return(0.0); }
}
}
Gradient.Transform(Object_To_Abs);
return(Gradient);
}
- default: { cout<<"### Erreur sur le type de la courbe ###";
+ default: { std::cout<<"### Erreur sur le type de la courbe ###";
return(gp_Vec2d(0.0,0.0)); }
}
}
D.SetEquivalentParameters(DE.FirstParameter(),DE.FirstParameter()+M_PI+M_PI);
}
- //-- cout<<" Parab Elips "<<endl;
+ //-- std::cout<<" Parab Elips "<<std::endl;
Standard_Real binf = Precision::Infinite(),bsup = -Precision::Infinite(),maxtol;
gp_Pnt2d Pntinf,Pntsup;
theIntAna2d.Perform(P,Ep);
SetBinfBsupFromIntAna2d(theIntAna2d,binf,Pntinf,bsup,Pntsup,P,maxtol,PARAM_MAX_ON_PARABOLA);
}
- //-- cout<<" binf,bsup "<<binf<<" "<<bsup<<endl;
+ //-- std::cout<<" binf,bsup "<<binf<<" "<<bsup<<std::endl;
if(binf<=bsup) {
if(!BOUNDED_DOMAIN(DP)) {
Standard_Real tolinf = 0.0;
done=Standard_True; return;
}
}
- //-- cout<<"BOUNDED binf,bsup "<<binf<<" "<<bsup<<endl;
- //-- cout<<"Domain "<<DP.FirstParameter()<<" "<<DP.LastParameter()<<endl;
+ //-- std::cout<<"BOUNDED binf,bsup "<<binf<<" "<<bsup<<std::endl;
+ //-- std::cout<<"Domain "<<DP.FirstParameter()<<" "<<DP.LastParameter()<<std::endl;
IntRes2d_Domain DPModif(Pntinf,binf,ft,Pntsup,bsup,lt);
Inter.Perform(ITool,D,PCurve,DPModif,TolConf,Tol);
}
}
}
- //-- cout<<" C1_binf1:"<<C1_binf1;
- //-- cout<<" C1_bsup1:"<<C1_bsup1;
- //-- cout<<" C1_binf2:"<<C1_binf2;
- //-- cout<<" C1_bsup2:"<<C1_bsup2<<endl;
+ //-- std::cout<<" C1_binf1:"<<C1_binf1;
+ //-- std::cout<<" C1_bsup1:"<<C1_bsup1;
+ //-- std::cout<<" C1_binf2:"<<C1_binf2;
+ //-- std::cout<<" C1_bsup2:"<<C1_bsup2<<std::endl;
//----------------------------------------------------------------
//-- Mise en forme des resultats :
//-- Les calculs ont ete fait dans le repere x1,y1, (O1,O2)
((Circle1.Location().SquareDistance(Circle2.Location())) > (R1*R1+R2*R2)) ?
Standard_True : Standard_False;
- //if(Circle1.IsDirect()) { cout<<" C1 Direct"<<endl; } else { cout<<" C1 INDirect"<<endl; }
- //if(Circle2.IsDirect()) { cout<<" C2 Direct"<<endl; } else { cout<<" C2 INDirect"<<endl; }
+ //if(Circle1.IsDirect()) { std::cout<<" C1 Direct"<<std::endl; } else { std::cout<<" C1 INDirect"<<std::endl; }
+ //if(Circle2.IsDirect()) { std::cout<<" C2 Direct"<<std::endl; } else { std::cout<<" C2 INDirect"<<std::endl; }
for(i=0; i<NbSolTotal; i++)
{
Standard_Integer Indexp1,Index = Aindex;
Standard_Real ParamOnLine = TheParamOnLine;
if (Index > NbPntIn) {
- cout << "OutOfRange Polygon2d::ApproxParamOnCurve " <<endl;
+ std::cout << "OutOfRange Polygon2d::ApproxParamOnCurve " <<std::endl;
}
if((Index == NbPntIn) && (ParamOnLine == 0.0)) {
Index--; ParamOnLine=1.0;
if(debug) {
Standard_Real bx0,bx1,by0,by1;
- cout<<"\n ----- Dump of IntCurve_Polygon2dGen -----"<<endl;
+ std::cout<<"\n ----- Dump of IntCurve_Polygon2dGen -----"<<std::endl;
if(myBox.IsVoid()) {
- cout<<" Polygone Vide "<<endl;
+ std::cout<<" Polygone Vide "<<std::endl;
return;
}
myBox.Get(bx0,by0,bx1,by1);
- cout<<" bx0:"<<bx0 <<endl;
- cout<<" by0:"<<by0<<endl;
- cout<<" bx1:"<<bx1<<endl;
- cout<<" by1:"<<by1<<endl;
+ std::cout<<" bx0:"<<bx0 <<std::endl;
+ std::cout<<" by0:"<<by0<<std::endl;
+ std::cout<<" bx1:"<<bx1<<std::endl;
+ std::cout<<" by1:"<<by1<<std::endl;
Standard_Integer i;
for(i=1;i<=NbPntIn; i++) {
const gp_Pnt2d& P = ThePnts(TheIndex(i));
- cout<<" ("<<i<<") u:"<<TheParams.Value(TheIndex(i))<<" X:"<<P.X()<<" Y:"<<P.Y()<<endl;
+ std::cout<<" ("<<i<<") u:"<<TheParams.Value(TheIndex(i))<<" X:"<<P.X()<<" Y:"<<P.Y()<<std::endl;
}
}
}
const gp_Pnt2d& P,
const Standard_Real) {
- //cout<<"\n\n---- Dans ProjectOnPConicTool::FindParameter Point : "<<P.X()<<","<<P.Y();
+ //std::cout<<"\n\n---- Dans ProjectOnPConicTool::FindParameter Point : "<<P.X()<<","<<P.Y();
Standard_Real Param=0;
const IntAna_IntConicQuad& intana_ConicQuad) {
if(intana_ConicQuad.IsDone()) {
if(intana_ConicQuad.IsInQuadric()) {
- //-- cout<<" Courbe Dans la Quadrique !!! Non Traite !!!"<<endl;
+ //-- std::cout<<" Courbe Dans la Quadrique !!! Non Traite !!!"<<std::endl;
myIsParallel = Standard_True;
}
else if(intana_ConicQuad.IsParallel()) {
- //-- cout<<" Courbe // a la Quadrique !!! Non Traite !!!"<<endl;
+ //-- std::cout<<" Courbe // a la Quadrique !!! Non Traite !!!"<<std::endl;
myIsParallel = Standard_True;
}
else {
}
}
else {
- //-- cout<<" IntAna Conic Quad Not Done "<<endl;
+ //-- std::cout<<" IntAna Conic Quad Not Done "<<std::endl;
}
}
//=======================================================================
const Standard_Real ,
const Standard_Real ,
const TheSurface& ) {
- //cout<<" !!! Not Yet Implemented
- //IntCurveSurface_Inter::Append(const IntCurveSurf ...)"<<endl;
+ //std::cout<<" !!! Not Yet Implemented
+ //IntCurveSurface_Inter::Append(const IntCurveSurf ...)"<<std::endl;
}
//=======================================================================
}
default:
{
- cout<<" Default dans SectionPointToParameters "<<endl;
+ std::cout<<" Default dans SectionPointToParameters "<<std::endl;
break;
}
}
ProjLib_Plane aLineProj( thePln, theLine );
if (!aLineProj.IsDone()) {
#ifdef OCCT_DEBUG
- cout
+ std::cout
<< "Info: IntCurveSurface_Inter::ProjectIntersectAndEstLim(), !aLineProj.IsDone()"
- << endl;
+ << std::endl;
#endif
return;
}
}
if (!aBasCurvProj.IsDone()) {
#ifdef OCCT_DEBUG
- cout << "Info: IntCurveSurface_Inter::EstLimForInfRevl(), !aBasCurvProj.IsDone()" << endl;
+ std::cout << "Info: IntCurveSurface_Inter::EstLimForInfRevl(), !aBasCurvProj.IsDone()" << std::endl;
#endif
return;
}
if (V1inf) V1new = aVmin;
if (V2inf) V2new = aVmax;
- //cout << "EstLimForInfRevl: Vmin " << V1new << " Vmax " << V2new << endl;
+ //std::cout << "EstLimForInfRevl: Vmin " << V1new << " Vmax " << V2new << std::endl;
return;
}
for(i=1;i<=ni;i++) { Segment(i).Dump(); }
}
else {
- cout<<" Intersection NotDone"<<endl;
+ std::cout<<" Intersection NotDone"<<std::endl;
}
}
}
//================================================================================
void IntCurveSurface_IntersectionPoint::Dump() const {
- cout<<"IntersectionPoint: P("<<myP.X()<<","<<myP.Y()<<","<<myP.Z()<<")"<<endl;
- cout<<" : USurf("<<myUSurf<<") VSurf("<<myVSurf<<") UCurve("<<myUCurv<<")"<<endl;
- cout<<" : TransitionOnSurf ";
+ std::cout<<"IntersectionPoint: P("<<myP.X()<<","<<myP.Y()<<","<<myP.Z()<<")"<<std::endl;
+ std::cout<<" : USurf("<<myUSurf<<") VSurf("<<myVSurf<<") UCurve("<<myUCurv<<")"<<std::endl;
+ std::cout<<" : TransitionOnSurf ";
switch(myTrOnCurv) {
- case IntCurveSurface_Tangent: cout<<" Tangent "; break;
- case IntCurveSurface_In: cout<<" In "; break;
- case IntCurveSurface_Out: cout<<" Out "; break;
+ case IntCurveSurface_Tangent: std::cout<<" Tangent "; break;
+ case IntCurveSurface_In: std::cout<<" In "; break;
+ case IntCurveSurface_Out: std::cout<<" Out "; break;
- default: cout<< " XXXXX ";
+ default: std::cout<< " XXXXX ";
}
- cout<<endl;
+ std::cout<<std::endl;
}
}
//================================================================================
void IntCurveSurface_IntersectionSegment::Dump() const {
- cout<<"\nIntersectionSegment : "<<endl;
+ std::cout<<"\nIntersectionSegment : "<<std::endl;
myP1.Dump();
myP2.Dump();
- cout<<endl;
+ std::cout<<std::endl;
}
//ddout << "IntCurveSurface_Polygon::ApproxParamOnCurve" << endl;
if(TheParamOnLine < 0.0 || TheParamOnLine >1.0) {
#ifdef OCCT_DEBUG
- cout<<" ParamOnLine = "<<TheParamOnLine<<" avec Index = "
- <<TheIndex<<" dans IntCurveSurface_Polygon::ApproxParamOnCurve"<<endl;
+ std::cout<<" ParamOnLine = "<<TheParamOnLine<<" avec Index = "
+ <<TheIndex<<" dans IntCurveSurface_Polygon::ApproxParamOnCurve"<<std::endl;
#endif
return(Binf+(TheParamOnLine*(Bsup-Binf))/(Standard_Real)(NbPntIn-1));
}
Standard_Real ParamOnLine = TheParamOnLine;
#ifdef OCCT_DEBUG
if (Index > NbPntIn) {
- cout << "OutOfRange Polygon::ApproxParamOnCurve " <<endl;
+ std::cout << "OutOfRange Polygon::ApproxParamOnCurve " <<std::endl;
}
#endif
if((Index == NbPntIn) && (ParamOnLine == 0.0)) {
char tamp[100];
Compteur++;
sprintf(tamp,"Poly%d",Compteur);
- cout<<" @@@@@@@@@@@ F i c h i e r : "<<tamp<<" @@@@@@@@@@"<<endl;
+ std::cout<<" @@@@@@@@@@@ F i c h i e r : "<<tamp<<" @@@@@@@@@@"<<std::endl;
FILE *fp;
fp=fopen(tamp,"w");
if(fp==NULL) {
- cout<<"PolyGonGen::Erreur en Ouverture Fichier"<<tamp<<endl;
+ std::cout<<"PolyGonGen::Erreur en Ouverture Fichier"<<tamp<<std::endl;
return;
}
fprintf(fp,"\n#Discretisation de : %f ---> %f \n",Binf,Bsup);
static Standard_Integer num=0;
num++;
Standard_Integer nbs = IntCurveSurface_PolygonTool::NbSegments(L);
- cout<<"\npol2d "<<num<<" "<<nbs<<endl;
- cout<<"Deflection "<<IntCurveSurface_PolygonTool::DeflectionOverEstimation(L)<<endl;
+ std::cout<<"\npol2d "<<num<<" "<<nbs<<std::endl;
+ std::cout<<"Deflection "<<IntCurveSurface_PolygonTool::DeflectionOverEstimation(L)<<std::endl;
for(Standard_Integer i=1;i<=nbs;i++) {
gp_Pnt P(IntCurveSurface_PolygonTool::BeginOfSeg(L,i));
- cout<<"pnt "<<num<<" "<<i<<" "<<P.X()<<" "<<P.Y()<<" "<<P.Z()<<endl;
+ std::cout<<"pnt "<<num<<" "<<i<<" "<<P.X()<<" "<<P.Y()<<" "<<P.Z()<<std::endl;
}
gp_Pnt PF(IntCurveSurface_PolygonTool::EndOfSeg(L,nbs));
- cout<<"pnt "<<num<<" "<<nbs<<" "<< PF.X()<<" "<<PF.Y()<<" "<<PF.Z()<<endl;
+ std::cout<<"pnt "<<num<<" "<<nbs<<" "<< PF.X()<<" "<<PF.Y()<<" "<<PF.Z()<<std::endl;
}
if((VTXi.IsOnDomS1()==Standard_False) && (VTXi.IsOnDomS2()==Standard_False)) {
if(Abs(par-VTXi.ParameterOnLine())<=PCONFUSION) {
#if DEBUG
- cout<<" Rejet IntPatch_ALine::AddVertex (0) "<<endl;
+ std::cout<<" Rejet IntPatch_ALine::AddVertex (0) "<<std::endl;
#endif
return;
}
if(Abs(VTXi.ParameterOnArc1()-VTXj.ParameterOnArc1())<=PCONFUSION) {
if(VTXi.ArcOnS1() == VTXj.ArcOnS1()) {
#if DEBUG
- cout<<" Rejet IntPatch_ALine::AddVertex (1) "<<endl;
+ std::cout<<" Rejet IntPatch_ALine::AddVertex (1) "<<std::endl;
#endif
return;
}
if(Abs(VTXi.ParameterOnArc2()-VTXj.ParameterOnArc2())<=PCONFUSION) {
if(VTXi.ArcOnS2() == VTXj.ArcOnS2()) {
#if DEBUG
- cout<<" Rejet IntPatch_ALine::AddVertex (2) "<<endl;
+ std::cout<<" Rejet IntPatch_ALine::AddVertex (2) "<<std::endl;
#endif
return;
}
if(VTXi.ArcOnS2() == VTXj.ArcOnS2()) {
if(VTXi.ArcOnS1() == VTXj.ArcOnS1()) {
#if DEBUG
- cout<<" Rejet IntPatch_ALine::AddVertex (3) "<<endl;
+ std::cout<<" Rejet IntPatch_ALine::AddVertex (3) "<<std::endl;
#endif
return;
}
if((VTXi.IsOnDomS2()==Standard_False) && (VTXi.IsOnDomS1()==Standard_True)) {
Standard_Real p = Abs(VTXi.ParameterOnArc1()-VTXj.ParameterOnArc1());
#if DEBUG
- cout<<" Est ce que VTXj present sur 1 et 2 remplace un point VTXi present sur 1 : "<<p<<endl;
+ std::cout<<" Est ce que VTXj present sur 1 et 2 remplace un point VTXi present sur 1 : "<<p<<std::endl;
#endif
if(p<=PCONFUSION) {
if(VTXi.ArcOnS1() == VTXj.ArcOnS1()) {
#if DEBUG
- cout<<" Replace IntPatch_ALine::AddVertex (1) "<<endl;
+ std::cout<<" Replace IntPatch_ALine::AddVertex (1) "<<std::endl;
#endif
Replace(i,VTXj);
return;
if((VTXi.IsOnDomS2()==Standard_True) && (VTXi.IsOnDomS1()==Standard_False)) {
Standard_Real p = Abs(VTXi.ParameterOnArc2()-VTXj.ParameterOnArc2());
#if DEBUG
- cout<<" Est ce que VTXj present sur 1 et 2 remplace un point VTXi present sur 2 : "<<p<<endl;
+ std::cout<<" Est ce que VTXj present sur 1 et 2 remplace un point VTXi present sur 2 : "<<p<<std::endl;
#endif
if(p<=PCONFUSION) {
if(VTXi.ArcOnS2() == VTXj.ArcOnS2()) {
#if DEBUG
- cout<<" Replace IntPatch_ALine::AddVertex (2) "<<endl;
+ std::cout<<" Replace IntPatch_ALine::AddVertex (2) "<<std::endl;
#endif
Replace(i,VTXj);
return;
if(p<=PCONFUSION) {
if(VTXi.ArcOnS1() == VTXj.ArcOnS1()) {
#if DEBUG
- cout<<" Replace IntPatch_ALine::AddVertex (1) -> RIEN "<<endl;
+ std::cout<<" Replace IntPatch_ALine::AddVertex (1) -> RIEN "<<std::endl;
#endif
return;
}
SortIsOK=Standard_False;
- //-- cout<<" IntPatch_ALine : ComputeVertexParameters : Ajust "<<endl;
+ //-- std::cout<<" IntPatch_ALine : ComputeVertexParameters : Ajust "<<std::endl;
}
}
}
// Line->InsertBefore(ip,Line->Value(ipn));
// Line->RemovePoint(ip+2);
// result = Standard_True;
- // cout << "swap vertex " << endl;
+ // std::cout << "swap vertex " << std::endl;
// break;
}
}
Standard_Real d=piOT(-ideb).Pnt().Distance(piOT(-ifin).Pnt());
if(d<Tolerance) {
Insert(piOT(-ideb), piOT(-ifin));
- //-- cout<<"Insertion Point IntPatch_InterferencePolyhedron 1,2 d="<<d<<" Tol="<<Tolerance<<" num:"<<++nisp<<endl;
+ //-- std::cout<<"Insertion Point IntPatch_InterferencePolyhedron 1,2 d="<<d<<" Tol="<<Tolerance<<" num:"<<++nisp<<std::endl;
//-- piOT(-ideb).Dump(1); piOT(-ifin).Dump(0);
- //-- cout<<"point p"<<++nisp<<" "<<piOT(-ideb).Pnt().X()<<" "<<piOT(-ideb).Pnt().Y()<<" "<<piOT(-ideb).Pnt().Z()<<endl;
+ //-- std::cout<<"point p"<<++nisp<<" "<<piOT(-ideb).Pnt().X()<<" "<<piOT(-ideb).Pnt().Y()<<" "<<piOT(-ideb).Pnt().Z()<<std::endl;
}
else {
- //-- cout<<"Insertion Point IntPatch_InterferencePolyhedron 1,2 d="<<d<<" Tol="<<Tolerance<<" NON INSERE "<<endl;
+ //-- std::cout<<"Insertion Point IntPatch_InterferencePolyhedron 1,2 d="<<d<<" Tol="<<Tolerance<<" NON INSERE "<<std::endl;
}
}
}
myTolTang = TolTang;
if(myFleche == 0.0) {
#if DEBUG
- //cout<<" -- IntPatch_Intersection::myFleche fixe par defaut a 0.01 --"<<endl;
- //cout<<" -- Utiliser la Methode SetTolerances( ... ) "<<endl;
+ //std::cout<<" -- IntPatch_Intersection::myFleche fixe par defaut a 0.01 --"<<std::endl;
+ //std::cout<<" -- Utiliser la Methode SetTolerances( ... ) "<<std::endl;
#endif
myFleche = 0.01;
}
if(myUVMaxStep==0.0) {
#if DEBUG
- //cout<<" -- IntPatch_Intersection::myUVMaxStep fixe par defaut a 0.01 --"<<endl;
- //cout<<" -- Utiliser la Methode SetTolerances( ... ) "<<endl;
+ //std::cout<<" -- IntPatch_Intersection::myUVMaxStep fixe par defaut a 0.01 --"<<std::endl;
+ //std::cout<<" -- Utiliser la Methode SetTolerances( ... ) "<<std::endl;
#endif
myUVMaxStep = 0.01;
}
}
if(allon1==NbPnts || allon2==NbPnts) {
#ifdef OCCT_DEBUG
- cout<<" IntPatch_LineConstructor.gxx : CC**ONS"<<(allon1==NbPnts?1:2)<<"** Traitement WLIne + ARC CLASS "<<endl;
+ std::cout<<" IntPatch_LineConstructor.gxx : CC**ONS"<<(allon1==NbPnts?1:2)<<"** Traitement WLIne + ARC CLASS "<<std::endl;
#endif
Standard_Real tol2d = Max(tol2d1,tol2d2);
return TestWLineIsARLine(slinref,wlin,tol2d);
}
if (!iv1 || !iv2) {
#ifdef OCCT_DEBUG
- cout<<" Pb getting vertices linked with arc"<<endl;
+ std::cout<<" Pb getting vertices linked with arc"<<std::endl;
#endif
continue;
}
? (WLine->Vertex(iv2).*pParOnArc)()
: paramsResolved(iv2));
#ifdef OCCT_DEBUG
- cout<<"****** Parameters on arc on S"<<is+1<<": "<<par1<<" "<<par2<<endl;
+ std::cout<<"****** Parameters on arc on S"<<is+1<<": "<<par1<<" "<<par2<<std::endl;
#endif
// check that the middle point is on arc
Standard_Real par,dist;
if (!ProjectOnArc(utst,vtst,arc,surf,TolArc,par,dist)) {
#ifdef OCCT_DEBUG
- cout<<" Pb en projection ds IntPatch_LineConstructor"<<endl;
+ std::cout<<" Pb en projection ds IntPatch_LineConstructor"<<std::endl;
#endif
continue;
}
if(in1 == TopAbs_OUT || in2 == TopAbs_OUT) {
}
else {
- //-- cout<<"Analytic : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<endl;
+ //-- std::cout<<"Analytic : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<std::endl;
TabIndex[i]=TabIndex[i+1]=++numline;
AddLine(L,i,i+1,typs1,typs2,TabIndex,slin);
}
}
}
if(LignetropPetite==Standard_False) {
- //-- cout<<"WLine : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<endl;
+ //-- std::cout<<"WLine : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<std::endl;
TabIndex[i]=TabIndex[i+1]=++numline;
AddLine(L,i,i+1,typs1,typs2,TabIndex,slin);
TestWLineToRLine(slinref,slin,mySurf1,myDom1,mySurf2,myDom2,TolArc); //-- on teste la derniere entree de slin
if(in1 == TopAbs_OUT || in2 == TopAbs_OUT) {
}
else {
- //-- cout<<"GLine : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<endl;
+ //-- std::cout<<"GLine : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<std::endl;
TabIndex[i]=TabIndex[i+1]=++numline;
AddLine(L,i,i+1,typs1,typs2,TabIndex,slin);
}
if(in1 == TopAbs_OUT || in2 == TopAbs_OUT) {
}
else {
- //-- cout<<"GLine bis : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<endl;
+ //-- std::cout<<"GLine bis : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<std::endl;
TabIndex[nbvtx]=TabIndex[1]=++numline;
AddLine(L,nbvtx,1,typs1,typs2,TabIndex,slin);
}
}
if(in2!=TopAbs_OUT) {
- //-- cout<<"RLine ons1 : u0 ="<<u0<<" u1 ="<<u1<<" Vtx:"<<i<<","<<i+1<<endl;
+ //-- std::cout<<"RLine ons1 : u0 ="<<u0<<" u1 ="<<u1<<" Vtx:"<<i<<","<<i+1<<std::endl;
AddLine(L,i,i+1,typs1,typs2,TabIndex,slin);
}
}
}
if(in2!=TopAbs_OUT) {
- //-- cout<<"RLine ons2 : u0 ="<<u0<<" u1 ="<<u1<<" Vtx:"<<i<<","<<i+1<<endl;
+ //-- std::cout<<"RLine ons2 : u0 ="<<u0<<" u1 ="<<u1<<" Vtx:"<<i<<","<<i+1<<std::endl;
AddLine(L,i,i+1,typs1,typs2,TabIndex,slin);
}
static void DumpTransition(const IntSurf_Transition& T)
{
IntSurf_TypeTrans typetrans = T.TransitionType();
- if(typetrans == IntSurf_In) cout<<" In ";
- else if(typetrans == IntSurf_Out) cout<<" Out ";
- else if(typetrans == IntSurf_Undecided) cout<<" Und.";
+ if(typetrans == IntSurf_In) std::cout<<" In ";
+ else if(typetrans == IntSurf_Out) std::cout<<" Out ";
+ else if(typetrans == IntSurf_Undecided) std::cout<<" Und.";
else if(typetrans == IntSurf_Touch) {
- cout<<" Touch ";
- if(T.Situation() == IntSurf_Inside) cout<<" Inside ";
- else if(T.Situation() == IntSurf_Outside) cout<<" Outside";
- else cout<<" Unknown";
- if(T.IsOpposite()) cout<<" Opposite ";
- else cout<<" Non_Opposite ";
+ std::cout<<" Touch ";
+ if(T.Situation() == IntSurf_Inside) std::cout<<" Inside ";
+ else if(T.Situation() == IntSurf_Outside) std::cout<<" Outside";
+ else std::cout<<" Unknown";
+ if(T.IsOpposite()) std::cout<<" Opposite ";
+ else std::cout<<" Non_Opposite ";
}
if(typetrans != IntSurf_Undecided) {
- if(T.IsTangent()) cout<<" Tangent ";
- else cout<<" Non_Tangent";
+ if(T.IsTangent()) std::cout<<" Tangent ";
+ else std::cout<<" Non_Tangent";
}
}
#include <Standard_Transient.hxx>
void IntPatch_Point::Dump() const {
- cout<<"----------- IntPatch_Point : "<<endl;
+ std::cout<<"----------- IntPatch_Point : "<<std::endl;
Standard_Real u1,v1,u2,v2;
pt.Parameters(u1,v1,u2,v2);
fflush(stdout);
if(onS1 || onS2) {
- cout<<" tgt:"<<((tgt)? 1 : 0) <<" mult:"<<((mult)? 1 :0);
+ std::cout<<" tgt:"<<((tgt)? 1 : 0) <<" mult:"<<((mult)? 1 :0);
if(onS1) {
- cout<<"\n-traline1 : "; DumpTransition(traline1);
- cout<<" -tra1 : "; DumpTransition(tra1);
+ std::cout<<"\n-traline1 : "; DumpTransition(traline1);
+ std::cout<<" -tra1 : "; DumpTransition(tra1);
}
if(onS2) {
- cout<<"\n-traline2 : "; DumpTransition(traline2);
- cout<<" -tra2 : "; DumpTransition(tra2);
+ std::cout<<"\n-traline2 : "; DumpTransition(traline2);
+ std::cout<<" -tra2 : "; DumpTransition(tra2);
}
- cout<<endl;
+ std::cout<<std::endl;
}
- cout << "\nToler = " << Tolerance();
- cout << endl;
+ std::cout << "\nToler = " << Tolerance();
+ std::cout << std::endl;
}
if(IndexInf > IndexSup) {
r+=r;
r2 = r*r*49.;
- //-- cout<<" Le rayon : "<<r<<" est insuffisant "<<endl;
+ //-- std::cout<<" Le rayon : "<<r<<" est insuffisant "<<std::endl;
}
else {
//----------------------------------------------
//-- encore
//----------------------------------------------
if((IndexSup-IndexInf)<(NbSample/2)) {
- //-- cout<<" --- On remet ca entre les index "<<IndexInf<<" et "<<IndexSup<<endl;
+ //-- std::cout<<" --- On remet ca entre les index "<<IndexInf<<" et "<<IndexSup<<std::endl;
nbloop = 10;
//if(IndexInf>1) IndexInf--;
//if(IndexSup<NbSample) IndexSup++;
{
static int num=0;
num++;
- cout<<"\n#------------- D u m p B o x 2 d ("<<num<<")"<<endl;
+ std::cout<<"\n#------------- D u m p B o x 2 d ("<<num<<")"<<std::endl;
Bounding().Dump();
- cout<<"\n#-----------------------------------------------"<<endl;
+ std::cout<<"\n#-----------------------------------------------"<<std::endl;
const Standard_Integer nbs = NbSegments();
- cout<<"\npol2d "<<num<<" "<<nbs<<" ";
- cout<<DeflectionOverEstimation()<<endl;
+ std::cout<<"\npol2d "<<num<<" "<<nbs<<" ";
+ std::cout<<DeflectionOverEstimation()<<std::endl;
gp_Pnt2d P, PF;
for(Standard_Integer i=1;i<=nbs;i++) {
Segment(i,P,PF);
- cout<<"pnt2d "<<num<<" "<< P.X()<<" "<<P.Y()<<endl;
+ std::cout<<"pnt2d "<<num<<" "<< P.X()<<" "<<P.Y()<<std::endl;
}
- cout<<"pnt2d "<<num<<" "<< PF.X()<<" "<<PF.Y()<<endl;
+ std::cout<<"pnt2d "<<num<<" "<< PF.X()<<" "<<PF.Y()<<std::endl;
}
OtherP=0;
TriCon=Triang;
#if MSG_DEBUG
- cout<<" Probleme ds IntCurveSurface_Polyhedron : Pivot et PEdge Confondus "<<endl;
+ std::cout<<" Probleme ds IntCurveSurface_Polyhedron : Pivot et PEdge Confondus "<<std::endl;
#endif
return(TriCon);
}
if(Point(OtherP).SquareDistance(Point(Pedge))<=LONGUEUR_MINI_EDGE_TRIANGLE) {
#if MSG_DEBUG
- cout<<" Probleme ds IntCurveSurface_Polyhedron : OtherP et PEdge Confondus "<<endl;
+ std::cout<<" Probleme ds IntCurveSurface_Polyhedron : OtherP et PEdge Confondus "<<std::endl;
#endif
return(0); //-- BUG NON CORRIGE ( a revoir le role de nbdeltaU et nbdeltaV)
// Standard_Integer TempTri,TempOtherP;
}
default:
{
- //-- cout<<" Default dans SectionPointToParameters "<<endl;
+ //-- std::cout<<" Default dans SectionPointToParameters "<<std::endl;
break;
}
}
}
default:
{
- //-- cout<<" Default dans SectionPointToParameters "<<endl;
+ //-- std::cout<<" Default dans SectionPointToParameters "<<std::endl;
break;
}
}
// Standard_Real nIncrement=Increment;
// if(MaxOscill>10) {
// #ifdef OCCT_DEBUG
- // cout<<"\n IntPatch_PrmPrmIntersection.gxx : Increment:"<<Increment<<" -> "<<Increment/(0.5*MaxOscill)<<endl;
+ // std::cout<<"\n IntPatch_PrmPrmIntersection.gxx : Increment:"<<Increment<<" -> "<<Increment/(0.5*MaxOscill)<<std::endl;
// #endif
// nIncrement/=0.5*MaxOscill;
// }
}
else
{
- //-- cout<<" ----- REJET DE LIGNE (POINT DE DEPART) ----- "<<endl;
+ //-- std::cout<<" ----- REJET DE LIGNE (POINT DE DEPART) ----- "<<std::endl;
}
//------------------------------------------------------------
}
}
else
{
- //-- cout<<" ----- REJET DE LIGNE (POINT DE DEPART) ----- "<<endl;
+ //-- std::cout<<" ----- REJET DE LIGNE (POINT DE DEPART) ----- "<<std::endl;
}
//------------------------------------------------------------
}
}
}
}
- //-- cout<<" Grille du 1 fini "<<endl;
+ //-- std::cout<<" Grille du 1 fini "<<std::endl;
for(i=0;i<SU2;i++) {
for(j=0;j<SV2;j++) {
aIPD.xIP2(i, j)=-1;
void IntPatch_RLine::Dump(const Standard_Integer theMode) const
{
- cout<<" ----------- D u m p I n t P a t c h _ R L i n e -(begin)------"<<endl;
+ std::cout<<" ----------- D u m p I n t P a t c h _ R L i n e -(begin)------"<<std::endl;
const Standard_Integer aNbPoints = NbPnts();
const Standard_Integer aNbVertex = NbVertex();
if(pol>=1 && pol<=aNbVertex)
{
- cout<<"----> IntSurf_PntOn2S : "<<
+ std::cout<<"----> IntSurf_PntOn2S : "<<
polr <<", Pnt (" << Vertex(pol).Value().X() << "," <<
Vertex(pol).Value().Y() << "," <<
- Vertex(pol).Value().Z() <<")" <<endl;
+ Vertex(pol).Value().Z() <<")" <<std::endl;
}
}
break;
}
- cout<<"\n--------------------------------------------------- (end) -------"<<endl;
+ std::cout<<"\n--------------------------------------------------- (end) -------"<<std::endl;
}
PLast = myInfinite;
//if (Precision::IsNegativeInfinite(PFirst) ||
// Precision::IsPositiveInfinite(PLast)) {
- // //-- cout<<" IntPatch_RstInt::PutVertexOnLine ---> Restrictions Infinies :"<<endl;
+ // //-- std::cout<<" IntPatch_RstInt::PutVertexOnLine ---> Restrictions Infinies :"<<std::endl;
// return;
//}
static int debug_polygon2d =0;
if(debug_polygon2d) {
- cout<<" ***** Numero Restriction : "<<NumeroEdge<<" *****"<<endl;
+ std::cout<<" ***** Numero Restriction : "<<NumeroEdge<<" *****"<<std::endl;
PLin.Dump();
Brise.Dump();
}
}
}
else {
- //-- cout << "pb dans RstInt Type 1 " << endl;
+ //-- std::cout << "pb dans RstInt Type 1 " << std::endl;
}
}
else {
}
else {
- //-- cout << "pb dans RstInt Type 2 " << endl;
+ //-- std::cout << "pb dans RstInt Type 2 " << std::endl;
}
}
}
}
else if(Surf1->IsUClosed()) {
pu1=Surf1->LastUParameter() - Surf1->FirstUParameter();
- //cout<<" UClosed1 "<<pu1<<endl;
+ //std::cout<<" UClosed1 "<<pu1<<std::endl;
}
if( Surf1->IsVPeriodic()) {
pv1=Surf1->VPeriod();
}
else if(Surf1->IsVClosed()) {
pv1=Surf1->LastVParameter() - Surf1->FirstVParameter();
- //cout<<" VClosed1 "<<pv1<<endl;
+ //std::cout<<" VClosed1 "<<pv1<<std::endl;
}
break;
}
else if(Surf2->IsUClosed()) {
pu2=Surf2->LastUParameter() - Surf2->FirstUParameter();
- //cout<<" UClosed2 "<<pu2<<endl;
+ //std::cout<<" UClosed2 "<<pu2<<std::endl;
}
if( Surf2->IsVPeriodic()) {
}
else if(Surf2->IsVClosed()) {
pv2=Surf2->LastVParameter() - Surf2->FirstVParameter();
- //cout<<" VClosed2 "<<pv2<<endl;
+ //std::cout<<" VClosed2 "<<pv2<<std::endl;
}
break;
//of the pole.
#ifdef INTPATCH_ADDSPECIALPOINTS_DEBUG
- cout << "Cannot find UV-coordinate for quadric in the pole."
+ std::cout << "Cannot find UV-coordinate for quadric in the pole."
" See considered comment above. IntPatch_SpecialPoints.cxx,"
- " ProcessSphere(...)" << endl;
+ " ProcessSphere(...)" << std::endl;
#endif
Standard_Real aUIso = 0.0, aVIso = 0.0;
if (theIsReversed)
if (theIsIsoChoosen)
{
#ifdef INTPATCH_ADDSPECIALPOINTS_DEBUG
- cout << "Cannot find UV-coordinate for quadric in the pole."
- " IntPatch_AddSpecialPoints.cxx, ProcessCone(...)" << endl;
+ std::cout << "Cannot find UV-coordinate for quadric in the pole."
+ " IntPatch_AddSpecialPoints.cxx, ProcessCone(...)" << std::endl;
#endif
theIsIsoChoosen = Standard_True;
nbvtx = NbVertex();
#if DEBUGV
- cout<<"\n----------- avant ComputeVertexParameters -------------"<<endl;
+ std::cout<<"\n----------- avant ComputeVertexParameters -------------"<<std::endl;
for(i=1;i<=nbvtx;i++) {
Vertex(i).Dump();
Standard_Real polr = Vertex(i).ParameterOnLine();
Standard_Real pol = (Standard_Integer)polr;
if(pol>=1 && pol<=nbvtx) {
- cout<<"----> IntSurf_PntOn2S : "<<polr<<" Pnt ("<<Vertex(pol).Value().X()
+ std::cout<<"----> IntSurf_PntOn2S : "<<polr<<" Pnt ("<<Vertex(pol).Value().X()
<<","<<Vertex(pol).Value().Y()
- <<","<<Vertex(pol).Value().Z()<<")"<<endl;
+ <<","<<Vertex(pol).Value().Z()<<")"<<std::endl;
}
}
- cout<<"\n----------------------------------------------------------"<<endl;
+ std::cout<<"\n----------------------------------------------------------"<<std::endl;
#endif
//-- Dump();
#if DEBUGV
- cout<<"\n----------- apres ComputeVertexParameters -------------"<<endl;
+ std::cout<<"\n----------- apres ComputeVertexParameters -------------"<<std::endl;
for(i=1;i<=nbvtx;i++) {
Vertex(i).Dump();
Standard_Real polr = Vertex(i).ParameterOnLine();
Standard_Real pol = (Standard_Integer)polr;
if(pol>=1 && pol<=nbvtx) {
- cout<<"----> IntSurf_PntOn2S : "<<polr<<" Pnt ("<<Vertex(pol).Value().X()
+ std::cout<<"----> IntSurf_PntOn2S : "<<polr<<" Pnt ("<<Vertex(pol).Value().X()
<<","<<Vertex(pol).Value().Y()
- <<","<<Vertex(pol).Value().Z()<<")"<<endl;
+ <<","<<Vertex(pol).Value().Z()<<")"<<std::endl;
}
}
- cout<<"\n----------------------------------------------------------"<<endl;
+ std::cout<<"\n----------------------------------------------------------"<<std::endl;
#endif
void IntPatch_WLine::Dump(const Standard_Integer theMode) const
{
- cout<<" ----------- D u m p I n t P a t c h _ W L i n e -(begin)------"<<endl;
+ std::cout<<" ----------- D u m p I n t P a t c h _ W L i n e -(begin)------"<<std::endl;
const Standard_Integer aNbPoints = NbPnts();
const Standard_Integer aNbVertex = NbVertex();
if(pol>=1 && pol<=aNbVertex)
{
- cout<<"----> IntSurf_PntOn2S : "<<
+ std::cout<<"----> IntSurf_PntOn2S : "<<
polr <<", Pnt (" << Vertex(pol).Value().X() << "," <<
Vertex(pol).Value().Y() << "," <<
- Vertex(pol).Value().Z() <<")" <<endl;
+ Vertex(pol).Value().Z() <<")" <<std::endl;
}
}
break;
}
- cout<<"\n--------------------------------------------------- (end) -------"<<endl;
+ std::cout<<"\n--------------------------------------------------- (end) -------"<<std::endl;
}
//(*this)[i].Dump(i);
Value(i).Dump(i);
// const IntPolyh_StartPoint& SP = Value(i);
-// cout << "point P" << i << " " << SP.X() << " " << SP.Y() << " " << SP.Z() << endl;
+// std::cout << "point P" << i << " " << SP.X() << " " << SP.Y() << " " << SP.Z() << std::endl;
}
printf("\n");
}
#if DEBUGPOSITION
void AffPosition(IntRes2d_Transition& T,const Standard_Real u,const char *Texte);
void AffPosition(IntRes2d_Transition& T,const Standard_Real u,const char *Texte) {
- if(T.PositionOnCurve() == IntRes2d_End) { cout <<Texte<<" Param :"<<u<<" End "<<endl; }
- if(T.PositionOnCurve() == IntRes2d_Middle) { cout <<Texte<<" Param :"<<u<<" Middle "<<endl; }
- if(T.PositionOnCurve() == IntRes2d_Head) { cout <<Texte<<" Param :"<<u<<" Head "<<endl; }
+ if(T.PositionOnCurve() == IntRes2d_End) { std::cout <<Texte<<" Param :"<<u<<" End "<<std::endl; }
+ if(T.PositionOnCurve() == IntRes2d_Middle) { std::cout <<Texte<<" Param :"<<u<<" Middle "<<std::endl; }
+ if(T.PositionOnCurve() == IntRes2d_Head) { std::cout <<Texte<<" Param :"<<u<<" Head "<<std::endl; }
}
#endif
#if 0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-#define Debug(q) cout<<"IntRes2d_Intersectionq ="<<q<<endl;
+#define Debug(q) std::cout<<"IntRes2d_Intersectionq ="<<q<<std::endl;
char *DebugPos(const IntRes2d_Position P);
Debug(LastParam2);
Debug(PParamOnFirst);
Debug(PParamOnSecond);
-cout<<" ##### T1 <> Middle ###### "<<DebugPos(T1.PositionOnCurve())<<endl;
+std::cout<<" ##### T1 <> Middle ###### "<<DebugPos(T1.PositionOnCurve())<<std::endl;
char *DebugPos(const IntRes2d_Position P) {
if(P==IntRes2d_Middle) return(" Middle ");
if(P==IntRes2d_Head) return(" Head ");
}
-ostream& operator << (ostream& os, IntRes2d_Transition& Trans) {
+std::ostream& operator << (std::ostream& os, IntRes2d_Transition& Trans) {
os << " Position : ";
if (Trans.PositionOnCurve()==IntRes2d_Head) {
#include <Standard_DomainError.hxx>
-ostream& operator << (ostream&, IntRes2d_Transition&);
+std::ostream& operator << (std::ostream&, IntRes2d_Transition&);
inline IntRes2d_Transition::IntRes2d_Transition (const Standard_Boolean Tangent,
const IntRes2d_Position Pos,
toler = TheSOBTool::Tolerance(vtx,A);
#ifdef OCCT_DEBUG
if(toler>0.1) {
- cout<<"IntStart_SearchOnBoundaries_1.gxx : ** WARNING ** Tol Vertex="<<toler<<endl;
- cout<<" Ou Edge degenere Ou Kro pointu"<<endl;
+ std::cout<<"IntStart_SearchOnBoundaries_1.gxx : ** WARNING ** Tol Vertex="<<toler<<std::endl;
+ std::cout<<" Ou Edge degenere Ou Kro pointu"<<std::endl;
if(toler>10000) toler=1e-7;
}
#endif
Sprintf(aBuff, "%s -p %+10.20f %+10.20f %+10.20f %+10.20f", aBuff, u1, v1, u2, v2);
}
- cout << aBuff << endl;
+ std::cout << aBuff << std::endl;
}
#endif
inline void IntWalk_IWLine::Cut(const Standard_Integer Index)
{
-//-- cout<<" split : "<<Index<<endl;
+//-- std::cout<<" split : "<<Index<<std::endl;
Handle(IntSurf_LineOn2S) lost = line->Split(Index);
}
indextg = Index;
vcttg = V;
- //-- cout<<"\n IntWalk_IWLine::SetTangentVector : "<<V.X()<<" "<<V.Y()<<" "<<V.Z()<<" Ind:"<<Index<<" NbPts:"<<NbPoints()<<endl;
+ //-- std::cout<<"\n IntWalk_IWLine::SetTangentVector : "<<V.X()<<" "<<V.Y()<<" "<<V.Z()<<" Ind:"<<Index<<" NbPts:"<<NbPoints()<<std::endl;
}
inline const gp_Vec& IntWalk_IWLine::TangentVector
(Standard_Integer& Index) const {
//-- if(istgtend == Standard_False && istgtbeg == Standard_False) {
-//-- cout<<" IntWalk_IWLine.lxx : Pb "<<endl;
+//-- std::cout<<" IntWalk_IWLine.lxx : Pb "<<std::endl;
//-- }
Index = indextg;
return vcttg;
}
#ifdef OCCT_DEBUG
else {
- cout<<" IntWalk_IWalking_2.gxx : bizarrerie 30 10 97 "<<endl;
+ std::cout<<" IntWalk_IWalking_2.gxx : bizarrerie 30 10 97 "<<std::endl;
}
#endif
}
{
Arrive=Standard_True;
#ifdef OCCT_DEBUG
- cout << "IntWalk_PWalking_1.gxx: Problems with intersection"<<endl;
+ std::cout << "IntWalk_PWalking_1.gxx: Problems with intersection"<<std::endl;
#endif
}
if((nbIterWithoutAppend > 20) || (nbEqualPoints > 20)) {
#ifdef OCCT_DEBUG
- cout<<"Infinite loop detected. Stop iterations (IntWalk_PWalking_1.gxx)" << endl;
+ std::cout<<"Infinite loop detected. Stop iterations (IntWalk_PWalking_1.gxx)" << std::endl;
#endif
bStop = Standard_True;
break;
if (level >= 1) {
nb = NbFails();
-// if (nb > 0) S<<" --> Fails : "<<nb<<endl;
+// if (nb > 0) S<<" --> Fails : "<<nb<<std::endl;
for (j = 1; j <= nb; j ++) {
if (final >= 0)
S<<CFail(j,Standard_True)<<"\n";
if (level >= 2) {
nb = NbWarnings();
-// if (nb > 0) S<<" --> Warnings : "<<nb<<endl;
+// if (nb > 0) S<<" --> Warnings : "<<nb<<std::endl;
for (j = 1; j <= nb; j ++) {
if (final >= 0)
S<<CWarning(j,Standard_True)<<"\n";
// InfoMsg : regle causant (user message)
if (level >= 0) {
nb = NbInfoMsgs();
-// if (nb > 0) S<<" --> Infos : "<<nb<<endl;
+// if (nb > 0) S<<" --> Infos : "<<nb<<std::endl;
for (j = 1; j <= nb; j ++) {
if (final >= 0)
S<<CInfoMsg(j,Standard_True)<<"\n";
// mesnum = mesnum0;
// if (yamod) mesnum = (nm0 > 0 ? mesnum1 : mesnum2);
- if (!titre) S<<" ** " << Name() << " **"<<endl;
+ if (!titre) S<<" ** " << Name() << " **"<<Message_EndLine;
titre = Standard_True;
S<<"Check:"; if(nb > 9 && i < 10) S<<" "; if (nb > 99 && i < 100) S<<" ";
S<<i;
- if (num < 0) S<<" -- Global Check"<<endl;
+ if (num < 0) S<<" -- Global Check"<<Message_EndLine;
else if (num == 0) S<<" -- Entity n0 ??:";
else {
if (yamod) { S<<" -- Entity (n0:id) "; model->Print (ent,S); }
// S<<" -- Entity n0 "<<num<<mesnum;
// if (yamod) model->PrintLabel(ent,S);
}
- if (num >= 0 && entnul) S<<" (unknown Type)"<<endl;
+ if (num >= 0 && entnul) S<<" (unknown Type)"<<Message_EndLine;
else if (num >= 0 && !entnul) {
- if (yamod) S<<" Type:"<<model->TypeName(ent)<<endl;
- else S<<" Type:"<<ent->DynamicType()->Name()<<endl;
+ if (yamod) S<<" Type:"<<model->TypeName(ent)<<Message_EndLine;
+ else S<<" Type:"<<ent->DynamicType()->Name()<<Message_EndLine;
}
nbch ++;
ach->Print (S, (failsonly ? 1 : 3));
}
-// if (nbch > 0) S<<" ---- Checks : "<<nbch<<" ----"<<endl;
+// if (nbch > 0) S<<" ---- Checks : "<<nbch<<" ----"<<std::endl;
}
}
////sln 21.01.2002 OCC133: Exception handling
// catch (Standard_OutOfRange) {
- // cout<<" Catch of sln"<<endl;
+ // std::cout<<" Catch of sln"<<std::endl;
// return dummy;
// }
// some work-around, the best would be to modify CDL to
// return "Handle(Standard_Transient)" not "const Handle(Standard_Transient)&"
static Handle(Standard_Transient) dummy;
- // cout<<" Catch of smh"<<endl;
+ // std::cout<<" Catch of smh"<<std::endl;
return dummy;
}
}
- //cout<<" Normal"<<endl;
- if (theents.Value(num).IsImmutable()) cout << "IMMUTABLE:"<<num<<endl;
+ //std::cout<<" Normal"<<std::endl;
+ if (theents.Value(num).IsImmutable()) std::cout << "IMMUTABLE:"<<num<<std::endl;
return theents(num);
}
*/
{
// #ifdef OCCT_DEBUG
// if (ent.IsImmutable())
-// cout << "Bind IMMUTABLE:"<<num<<endl;
+// std::cout << "Bind IMMUTABLE:"<<num<<std::endl;
// #endif
theents.SetValue(num,ent);
}
//! This class converts a floting number (Real) to a string
//! It can be used if the standard C-C++ output functions
-//! (sprintf or cout<<) are not convenient. That is to say :
+//! (sprintf or std::cout<<) are not convenient. That is to say :
//! - to suppress trailing '0' and 'E+00' (if desired)
//! - to control exponant output and floating point output
//!
Standard_Integer Interface_MSG::Read (const Standard_CString file)
{
- ifstream S(file);
+ std::ifstream S(file);
if (!S) return -1;
return Read (S);
}
{
Standard_Integer nb = 0;
if (thedic.IsEmpty()) return nb;
- if (rootkey[0] != '\0') S<<"@@ ROOT:"<<rootkey<<endl;
+ if (rootkey[0] != '\0') S<<"@@ ROOT:"<<rootkey<<std::endl;
NCollection_DataMap<TCollection_AsciiString, Handle(TCollection_HAsciiString)>::Iterator iter(thedic);
for (; iter.More(); iter.Next()) {
if (!iter.Key().StartsWith(rootkey)) continue;
nb ++;
S<<str->ToCString()<<"\n";
}
- S<<flush;
+ S<<std::flush;
return nb;
}
if (thedic.Find(key, str))
return str->ToCString();
}
- if (theprint) cout<<" ** Interface_MSG:Translate ?? "<<key<<" **"<<endl;
+ if (theprint) std::cout<<" ** Interface_MSG:Translate ?? "<<key<<" **"<<std::endl;
if (therec) {
if (thelist.IsBound(key)) {
thelist.ChangeFind(key)++;
thedic.Bind(key,str);
return;
}
- if (theprint) cout<<" ** Interface_MSG:Record ?? "<<key<<" ** "<<item<<" **"<<endl;
+ if (theprint) std::cout<<" ** Interface_MSG:Record ?? "<<key<<" ** "<<item<<" **"<<std::endl;
if (therec) {
if (thedup.IsNull()) thedup = new TColStd_HSequenceOfHAsciiString();
dup = new TCollection_HAsciiString(key);
dup = thedup->Value(2*i-1);
S<<"** DUP:"<<dup->ToCString();
dup = thedup->Value(2*i);
- S<<" ** "<<dup->ToCString()<<endl;
+ S<<" ** "<<dup->ToCString()<<std::endl;
}
if (thelist.IsEmpty()) return;
NCollection_DataMap<TCollection_AsciiString, Standard_Integer>::Iterator iter(thelist);
for (; iter.More(); iter.Next()) {
- S<<"** MSG(NB="<<iter.Value()<<"): "<<iter.Key()<<endl;
+ S<<"** MSG(NB="<<iter.Value()<<"): "<<iter.Key()<<std::endl;
}
}
Handle(Standard_Transient) ent = iter.Value();
S << " n0/id:"; Model()->Print(ent,S);
}
- S<<endl;
+ S<<Message_EndLine;
}
S<<"--- Static Value : "<<Name()<<" Family:"<<Family();
Print (S);
if (!thewild.IsNull())
- S<<" -- Attached to wild-card : "<<thewild->Name()<<endl;
+ S<<" -- Attached to wild-card : "<<thewild->Name()<<Message_EndLine;
S<<"--- Actual status : "<<(theupdate ? "" : "original")<<" Value : ";
- if (thesatisf) S<<" -- Specific Function for Satisfies : "<<thesatisn.ToCString()<<endl;
+ if (thesatisf) S<<" -- Specific Function for Satisfies : "<<thesatisn.ToCString()<<Message_EndLine;
}
Handle(Interface_Static) item = Interface_Static::Static(name);
if (item.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "Warning: Interface_Static::CVal: incorrect parameter " << name << endl;
+ std::cout << "Warning: Interface_Static::CVal: incorrect parameter " << name << std::endl;
#endif
return "";
}
Handle(Interface_Static) item = Interface_Static::Static(name);
if (item.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "Warning: Interface_Static::IVal: incorrect parameter " << name << endl;
+ std::cout << "Warning: Interface_Static::IVal: incorrect parameter " << name << std::endl;
#endif
return 0;
}
Handle(Interface_Static) item = Interface_Static::Static(name);
if (item.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "Warning: Interface_Static::RVal: incorrect parameter " << name << endl;
+ std::cout << "Warning: Interface_Static::RVal: incorrect parameter " << name << std::endl;
#endif
return 0.0;
}
//----------------------------------------------------
void Intf_Interference::Dump() const
{
- cout << "Mes SectionPoint :" << endl;
+ std::cout << "Mes SectionPoint :" << std::endl;
for (Standard_Integer p=1; p<=mySPoins.Length(); p++) {
mySPoins(p).Dump(2);
}
- cout << "Mes SectionLine :" << endl;
+ std::cout << "Mes SectionLine :" << std::endl;
for (Standard_Integer l=1; l<=mySLines.Length(); l++) {
mySLines(l).Dump(2);
}
- cout << "Mes TangentZone :" << endl;
+ std::cout << "Mes TangentZone :" << std::endl;
for (Standard_Integer t=1; t<=myTZones.Length(); t++) {
myTZones(t).Dump(2);
}
void Intf_SectionLine::Dump
(const Standard_Integer Indent) const
{
- for (Standard_Integer id=0; id<Indent; id++) cout << " ";
- cout << "LS ";
- if (IsClosed()) cout << "Closed :" << endl;
- else cout << "Open :" << endl;
+ for (Standard_Integer id=0; id<Indent; id++) std::cout << " ";
+ std::cout << "LS ";
+ if (IsClosed()) std::cout << "Closed :" << std::endl;
+ else std::cout << "Open :" << std::endl;
for (Standard_Integer p=1; p<=myPoints.Length(); p++) {
myPoints.Value(p).Dump(Indent+2);
}
}
else if (Other.DimenObje==Intf_VERTEX) {
#if DEBUG_INTFSECTIONPOINT
- cout << " IsOnSameEdge on Intersection VERTEX VERTEX Obje !" << endl;
+ std::cout << " IsOnSameEdge on Intersection VERTEX VERTEX Obje !" << std::endl;
#endif
isOn=(IndexT1==Other.IndexT1);
}
}
else if (Other.DimenTool==Intf_VERTEX) {
#if DEBUG_INTFSECTIONPOINT
- cout << " IsOnSameEdge on Intersection VERTEX VERTEX Tool !" << endl;
+ std::cout << " IsOnSameEdge on Intersection VERTEX VERTEX Tool !" << std::endl;
#endif
isOn=(IndexT1==Other.IndexT1);
}
) const
{
#if DEBUG_INTFSECTIONPOINT
- for (Standard_Integer id=0; id<Indent; id++) cout << " ";
+ for (Standard_Integer id=0; id<Indent; id++) std::cout << " ";
- cout << "PIType(" << DimenObje << "," << DimenTool << ") entre("
+ std::cout << "PIType(" << DimenObje << "," << DimenTool << ") entre("
<< IndexO1 << "," << IndexO2 << ") par(" << ParamObje
<< ") et ("
<< IndexT1 << "," << IndexT2 << ") par(" << ParamTool
- << ")" << endl;
+ << ")" << std::endl;
- for (id=0; id<Indent; id++) cout << " ";
+ for (id=0; id<Indent; id++) std::cout << " ";
- cout << " Lieu(" << myPnt.X() << ","
+ std::cout << " Lieu(" << myPnt.X() << ","
<< myPnt.Y() << ","
<< myPnt.Z() <<
- ") Incidence(" << Incide << ")" << endl;
+ ") Incidence(" << Incide << ")" << std::endl;
#endif
}
Standard_Boolean Intf_TangentZone::Insert (const Intf_SectionPoint& )
{
#if DEBUG_TANGENTZONE
- cout<<" Standard_Boolean Intf_TangentZone::Insert (const Intf_SectionPoint& Pi) ???? "<<endl;
+ std::cout<<" Standard_Boolean Intf_TangentZone::Insert (const Intf_SectionPoint& Pi) ???? "<<std::endl;
#endif
Standard_Boolean Inserted=Standard_False;
/*
void Intf_TangentZone::Dump (const Standard_Integer /*Indent*/) const
{
#if DEBUG_TANGENTZONE
- for (Standard_Integer id=0; id<Indent; id++) cout << " ";
- cout << "TZ \n" ;
- cout<<" ParamOnFirstMin Max : "<<ParamOnFirstMin<<" "<<ParamOnFirstMax<<endl;
- cout<<" ParamOnSecondMin Max : "<<ParamOnSecondMin<<" "<<ParamOnSecondMax<<endl;
+ for (Standard_Integer id=0; id<Indent; id++) std::cout << " ";
+ std::cout << "TZ \n" ;
+ std::cout<<" ParamOnFirstMin Max : "<<ParamOnFirstMin<<" "<<ParamOnFirstMax<<std::endl;
+ std::cout<<" ParamOnSecondMin Max : "<<ParamOnSecondMin<<" "<<ParamOnSecondMax<<std::endl;
for (Standard_Integer p=1; p<=Result.Length(); p++) {
Result(p).Dump(Indent+2);
}
out << str;
out << '\"';
finis:
- out << ends;
+ out << std::ends;
return (char *)out.str();
}
#endif
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
-//AGV 060302: Input from istream
+//AGV 060302: Input from std::istream
// AGV 130302: Return error if there are data after the root element
//#define LDOM_PARSER_TRACE
//purpose :
//=======================================================================
-Standard_Boolean LDOMParser::parse (istream& anInput,
+Standard_Boolean LDOMParser::parse (std::istream& anInput,
const Standard_Boolean theTagPerStep,
const Standard_Boolean theWithoutRoot)
{
//purpose : parse the whole document (abstracted from the XML source)
//=======================================================================
-Standard_Boolean LDOMParser::ParseDocument (istream& theIStream, const Standard_Boolean theWithoutRoot)
+Standard_Boolean LDOMParser::ParseDocument (std::istream& theIStream, const Standard_Boolean theWithoutRoot)
{
Standard_Boolean isError = Standard_False;
Standard_Boolean isElement = Standard_False;
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
-//AGV 060302: Input from istream
+//AGV 060302: Input from std::istream
#ifndef LDOMParser_HeaderFile
#define LDOMParser_HeaderFile
#include <LDOM_OSStream.hxx>
class LDOM_XmlReader;
-//class istream;
+//class std::istream;
// Class LDOMParser
//
// Returns True if error occurred, then GetError() can be called
Standard_EXPORT Standard_Boolean
- parse (istream& anInput,
+ parse (std::istream& anInput,
const Standard_Boolean theTagPerStep = Standard_False,
const Standard_Boolean theWithoutRoot = Standard_False);
// Parse a C++ stream
aBNode = aBElem.GetFirstChild();
int counter = MAX_SIBLINGS;
if (aBNode) {
- out << endl << " == Children:" << endl;
+ out << std::endl << " == Children:" << std::endl;
while (aBNode && counter--) {
if (aBNode -> getNodeType() == LDOM_Node::ATTRIBUTE_NODE) break;
out << " *(LDOM_BasicNode*)" << aBNode << " : " <<
- db_pretty_print (aBNode, FLITERAL, 0) << endl;
+ db_pretty_print (aBNode, FLITERAL, 0) << std::endl;
aBNode = aBNode -> GetSibling();
}
}
aBNode = aBElem.GetSibling();
if (aBNode) {
- out << " == Siblings:" << endl;
+ out << " == Siblings:" << std::endl;
counter = MAX_SIBLINGS;
while (aBNode && counter--) {
if (aBNode -> getNodeType() == LDOM_Node::ATTRIBUTE_NODE) break;
out << " *(LDOM_BasicNode*)" << aBNode << " : " <<
- db_pretty_print (aBNode, FLITERAL, 0) << endl;
+ db_pretty_print (aBNode, FLITERAL, 0) << std::endl;
aBNode = aBNode -> GetSibling();
}
}
}
- out << ends;
+ out << std::ends;
break;
}
case LDOM_Node::ATTRIBUTE_NODE:
const LDOM_BasicAttribute& aBAtt = * (const LDOM_BasicAttribute *) aBNode;
if ((fl & FLITERAL) == 0) out << "LDOM_BasicAttribute: ";
out << aBAtt.GetName() << '='
- << db_pretty_print (&aBAtt.GetValue(), FLITERAL, 0) << ends;
+ << db_pretty_print (&aBAtt.GetValue(), FLITERAL, 0) << std::ends;
break;
}
case LDOM_Node::TEXT_NODE:
{
const LDOM_BasicText& aBText = * (const LDOM_BasicText *) aBNode;
if ((fl & FLITERAL) == 0) out << "LDOM_BasicText: ";
- out << db_pretty_print (&aBText.GetData(), FLITERAL, 0) << ends;
+ out << db_pretty_print (&aBText.GetData(), FLITERAL, 0) << std::ends;
break;
}
default:
- out << "UNKNOWN" << ends;
+ out << "UNKNOWN" << std::ends;
break;
}
return (char *)out.str();
aBlock = aBlock -> Next();
}
if (aCount > 1)
- cout << ".. Destroying " << aCount << " LDOM memory allocations: "
- << aSomme / 256 << " kB" << endl;
+ std::cout << ".. Destroying " << aCount << " LDOM memory allocations: "
+ << aSomme / 256 << " kB" << std::endl;
//fclose (out);
#endif
delete myFirstBlock;
#include <stdlib.h>
#include <stdio.h> /* EOF */
-//! Class LDOM_SBuffer inherits streambuf and
+//! Class LDOM_SBuffer inherits std::streambuf and
//! redefines some virtual methods of it (overflow() and xsputn()).
//! This class contains pointers on first and current element
//! of sequence, also it has methods for the sequence management.
//! Clears first element of sequence and removes all others
Standard_EXPORT void Clear ();
- // Methods of streambuf
+ // Methods of std::streambuf
Standard_EXPORT virtual int overflow(int c = EOF) Standard_OVERRIDE;
Standard_EXPORT virtual int underflow() Standard_OVERRIDE;
//! of outputting data into a string avoiding reallocation of buffer.
//! Class LDOM_OSStream implements output into a sequence of
//! strings and getting the result as a string.
-//! It inherits Standard_OStream (ostream).
-//! Beside methods of ostream, it also has additional
+//! It inherits Standard_OStream (std::ostream).
+//! Beside methods of std::ostream, it also has additional
//! useful methods: str(), Length() and Clear().
class LDOM_OSStream : public Standard_OStream
{
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
-//AGV 060302: Input from istream
+//AGV 060302: Input from std::istream
// AGV 130302: bug corr: was error if strlen(root_elem_name) < 7
#include <LDOM_XmlReader.hxx>
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
-//AGV 060302: Input from istream
+//AGV 060302: Input from std::istream
// AGV 130302: bug corr: was error if strlen(root_elem_name) < 7
#ifndef LDOM_XmlReader_HeaderFile
TCollection_AsciiString& anErrorString,
const Standard_Boolean theTagPerStep = Standard_False);
// Constructor - takes a file descriptor for input
- // Constructor - takes an istream for input
+ // Constructor - takes an std::istream for input
RecordType ReadRecord (Standard_IStream& theIStream, LDOM_OSStream& theData);
// reading a markup or other element of XML format
}
default:
#ifndef _MSC_VER
- cerr << "Unrecognized node type = "
- << (long)theNode.getNodeType() << endl
+ std::cerr << "Unrecognized node type = "
+ << (long)theNode.getNodeType() << std::endl
#endif
; }
}
}
}
#ifdef OCCT_DEBUG
- cout << "Classification impossible sur vertex " << endl;
+ std::cout << "Classification impossible sur vertex " << std::endl;
#endif
return Standard_True;
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) {
- cout << "LocOpe_DPrism::BarycCurve()" << endl;
- cout << " Reversed Spine orientation" << endl;
+ std::cout << "LocOpe_DPrism::BarycCurve()" << std::endl;
+ std::cout << " Reversed Spine orientation" << std::endl;
}
#endif
// Normale.Reverse(); //cts20871
else {
// Cas non traite : on est a cheval
#ifdef OCCT_DEBUG
- cout <<" cas a cheval."<< endl;
+ std::cout <<" cas a cheval."<< std::endl;
#endif
// myLFrom.Append(edgf);
else {
// Cas non traite : on est a cheval
#ifdef OCCT_DEBUG
- cout <<" cas a cheval."<< endl;
+ std::cout <<" cas a cheval."<< std::endl;
#endif
// myLFrom.Append(edgf);
// myLTo.Append(edgt);
if (IsSame) {
#ifdef OCCT_DEBUG
- cout <<"memes bsplines."<< endl;
+ std::cout <<"memes bsplines."<< std::endl;
#endif
myLFrom.Append(edgf);
myLTo.Append(edgt);
if (IsSame) {
#ifdef OCCT_DEBUG
- cout <<"memes beziers."<< endl;
+ std::cout <<"memes beziers."<< std::endl;
#endif
myLFrom.Append(edgf);
myLTo.Append(edgt);
B.UpdateEdge(edg,C2d,newface,tol);
}
// else {
- // cout << "Edge double bizarre... " << endl;
+ // std::cout << "Edge double bizarre... " << std::endl;
// }
}
}
B.UpdateEdge(edg,C2d,newface,tol);
}
// else {
- // cout << "Edge double bizarre... " << endl;
+ // std::cout << "Edge double bizarre... " << std::endl;
// }
}
}
}
if (!FinS) {
- cout << "LocOpe_SplitDrafts:!Fins throw Standard_ConstructionError()" << endl;
+ std::cout << "LocOpe_SplitDrafts:!Fins throw Standard_ConstructionError()" << std::endl;
throw Standard_ConstructionError();
}
TopoDS_Wire theW = W;
if (i2s.IsDone() && i2s.NbLines() > 0) {
- // on split le wire" << endl;
+ // on split le wire" << std::endl;
GeomFill_Pipe thePipe;
thePipe.GenerateParticularCase(Standard_True);
}
}
if (!itl.More()) {
- cout << "LocOpe_SplitDrafts: betite probleme "<< endl;
+ std::cout << "LocOpe_SplitDrafts: betite probleme "<< std::endl;
return;
}
}
else {
#ifdef OCCT_DEBUG
- cout << "Pb d'analyse" << endl;
+ std::cout << "Pb d'analyse" << std::endl;
#endif
return;
}
if (theSubs.IsCopied(itl.Value())) {
if (theSubs.Copy(itl.Value()).Extent() != 1) {
#ifdef OCCT_DEBUG
- cout << "Invalid number of descendant" << endl;
+ std::cout << "Invalid number of descendant" << std::endl;
#endif
return;
}
}
}
}
- cout << "fin newplane return standard_false" << endl;
+ std::cout << "fin newplane return standard_false" << std::endl;
return Standard_False;
}
}
}
if (C2d.IsNull()) {
- cout << "Ca merde violemment" << endl;
+ std::cout << "Ca merde violemment" << std::endl;
}
}
}
B.Add(F,lwires.First());
}
else {
- cout << "Not yet implemented : nbwire >= 2" << endl;
+ std::cout << "Not yet implemented : nbwire >= 2" << std::endl;
}
}
Standard_Real ptol = Precision::PConfusion();
if (prmf < imf - ptol || prmf > iml + ptol ||
prml < imf - ptol || prml > iml + ptol) {
- cout << "Ca ne va pas aller" << endl;
+ std::cout << "Ca ne va pas aller" << std::endl;
}
#endif
}
} catch (Standard_Failure const&) {
#ifdef OCCT_DEBUG
- cout << "Warning: SpliShape internal problem detected, some faces may be lost. Check input edges/wires" <<endl;
+ std::cout << "Warning: SpliShape internal problem detected, some faces may be lost. Check input edges/wires" <<std::endl;
#endif
return Standard_False;
}
}
//MODIFICATION PIERRE SMEYERS : si pas de possibilite, on sort avec erreur
else{
- cout<<"erreur Spliter : pas de chainage du wire"<<endl;
+ std::cout<<"erreur Spliter : pas de chainage du wire"<<std::endl;
return Standard_False;
}
//fin MODIF.
else {
// Ce wire est ni dans newF2 ni dans newF1
// Peut etre faut il construire une troisieme face
- cout << "WARNING: LocOpe_SPlitShape : Ce wire est ni dans newF2 ni dans newF1" << endl;
+ std::cout << "WARNING: LocOpe_SPlitShape : Ce wire est ni dans newF2 ni dans newF1" << std::endl;
}
}
}
}
#ifdef OCCT_DEBUG
if (!myDblE.IsEmpty()) {
- cout << "Le shape comporte des faces invalides" << endl;
+ std::cout << "Le shape comporte des faces invalides" << std::endl;
}
#endif
return myMap(S);
Handle(Geom2d_Curve) C2d = BRep_Tool::CurveOnSurface(edg,F,f,l);
if(C2d.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "Edge is not on surface" <<endl;
+ std::cout << "Edge is not on surface" <<std::endl;
#endif
return Standard_False;
}
}
else {
#ifdef OCCT_DEBUG
- cout << "Pb pour substitution" << endl;
+ std::cout << "Pb pour substitution" << std::endl;
#endif
}
}
}
#ifdef OCCT_DEBUG_MESH
else {
- cout <<"LocOpe_WiresOnShape::Project --> le vertex projete est a une ";
- cout <<"distance / la face = "<<dmin <<" superieure a la tolerance = "<<ttol<<endl;
+ std::cout <<"LocOpe_WiresOnShape::Project --> le vertex projete est a une ";
+ std::cout <<"distance / la face = "<<dmin <<" superieure a la tolerance = "<<ttol<<std::endl;
}
#endif
return valret;
/*********************************************************************************/
void LocalAnalysis::Dump(const LocalAnalysis_SurfaceContinuity& surfconti, Standard_OStream& o)
{ if (!surfconti.IsDone())
- { o<<"Problem in the computation "<<endl;
+ { o<<"Problem in the computation "<<std::endl;
if (surfconti.StatusError()==LocalAnalysis_NullFirstDerivative)
- o<<"one of the first derivatives is null" <<endl;
+ o<<"one of the first derivatives is null" <<std::endl;
else if(surfconti.StatusError()==LocalAnalysis_NullSecondDerivative)
- o<<"one of the second derivatives is null" <<endl;
+ o<<"one of the second derivatives is null" <<std::endl;
else if(surfconti.StatusError()==LocalAnalysis_NormalNotDefined)
- o<<"one (or both) normal is undefined" <<endl;
+ o<<"one (or both) normal is undefined" <<std::endl;
else if(surfconti.StatusError()==LocalAnalysis_CurvatureNotDefined)
- o<<"one of the mean curvatures is undefined" <<endl; }
+ o<<"one of the mean curvatures is undefined" <<std::endl; }
else
switch(surfconti.ContinuityStatus())
{ case GeomAbs_C0 :{ if (surfconti.IsC0() )
- o<<" Continuity Status : C0 " <<endl;
- else o<<" Continuity Status : No C0 "<<endl;
- o<<" C0Value = "<<surfconti.C0Value() <<endl;
+ o<<" Continuity Status : C0 " <<std::endl;
+ else o<<" Continuity Status : No C0 "<<std::endl;
+ o<<" C0Value = "<<surfconti.C0Value() <<std::endl;
} break;
case GeomAbs_C1 :{ if (surfconti.IsC1())
- o<<" Continuity Status : C1 " <<endl;
+ o<<" Continuity Status : C1 " <<std::endl;
else
{if (surfconti.IsC0() )
- o<<" Continuity Status : C0 " <<endl;
- else o<<" Continuity Status : NoC0 "<<endl;
+ o<<" Continuity Status : C0 " <<std::endl;
+ else o<<" Continuity Status : NoC0 "<<std::endl;
}
- o<<" C0Value = "<<surfconti.C0Value()<<endl;
- o<<" C1UAngle = "<<surfconti.C1UAngle()<<endl;
- o<<" C1URatio = "<<surfconti.C1URatio()<<endl;
- o<<" C1VAngle = "<<surfconti.C1VAngle()<<endl;
- o<<" C1VRatio = "<<surfconti.C1VRatio()<<endl;
+ o<<" C0Value = "<<surfconti.C0Value()<<std::endl;
+ o<<" C1UAngle = "<<surfconti.C1UAngle()<<std::endl;
+ o<<" C1URatio = "<<surfconti.C1URatio()<<std::endl;
+ o<<" C1VAngle = "<<surfconti.C1VAngle()<<std::endl;
+ o<<" C1VRatio = "<<surfconti.C1VRatio()<<std::endl;
} break;
case GeomAbs_C2 :{ if (surfconti.IsC2())
- o<<" Continuity Status : C2 " <<endl;
+ o<<" Continuity Status : C2 " <<std::endl;
else
{if (surfconti.IsC1() )
- o<<" Continuity Status : C1 " <<endl;
+ o<<" Continuity Status : C1 " <<std::endl;
else
{ if (surfconti.IsC0() )
- o<<" Continuity Status : C0 " <<endl;
- else o<<" Continuity Status : NoC0 "<<endl;}
+ o<<" Continuity Status : C0 " <<std::endl;
+ else o<<" Continuity Status : NoC0 "<<std::endl;}
}
- o<<" C0Value = "<<surfconti.C0Value()<<endl;
- o<<" C1UAngle = "<<surfconti.C1UAngle()<<endl;
- o<<" C1VAngle = "<<surfconti.C1VAngle()<<endl;
- o<<" C2UAngle = "<<surfconti.C2UAngle()<<endl;
- o<<" C2VAngle = "<<surfconti.C2VAngle()<<endl;
- o<<" C1URatio = "<<surfconti.C1URatio()<<endl;
- o<<" C1VRatio = "<<surfconti.C1VRatio()<<endl;
- o<<" C2URatio = "<<surfconti.C2URatio()<<endl;
- o<<" C2VRatio = "<<surfconti.C2VRatio()<<endl;
+ o<<" C0Value = "<<surfconti.C0Value()<<std::endl;
+ o<<" C1UAngle = "<<surfconti.C1UAngle()<<std::endl;
+ o<<" C1VAngle = "<<surfconti.C1VAngle()<<std::endl;
+ o<<" C2UAngle = "<<surfconti.C2UAngle()<<std::endl;
+ o<<" C2VAngle = "<<surfconti.C2VAngle()<<std::endl;
+ o<<" C1URatio = "<<surfconti.C1URatio()<<std::endl;
+ o<<" C1VRatio = "<<surfconti.C1VRatio()<<std::endl;
+ o<<" C2URatio = "<<surfconti.C2URatio()<<std::endl;
+ o<<" C2VRatio = "<<surfconti.C2VRatio()<<std::endl;
} break;
case GeomAbs_G1 :{ if (surfconti.IsG1())
- o<<" Continuity Status : G1 " <<endl;
+ o<<" Continuity Status : G1 " <<std::endl;
else
{if (surfconti.IsC0() )
- o<<" Continuity Status : G0 " <<endl;
- else o<<" Continuity Status : NoG0 "<<endl;
+ o<<" Continuity Status : G0 " <<std::endl;
+ else o<<" Continuity Status : NoG0 "<<std::endl;
}
- o<<" G0Value = "<<surfconti.C0Value()<<endl;
- o<<" G1Angle = "<<surfconti.G1Angle()<<endl<<endl;
+ o<<" G0Value = "<<surfconti.C0Value()<<std::endl;
+ o<<" G1Angle = "<<surfconti.G1Angle()<<std::endl<<std::endl;
} break;
case GeomAbs_G2 :{ if (surfconti.IsG2())
- o<<" Continuity Status : G2 " <<endl;
+ o<<" Continuity Status : G2 " <<std::endl;
else
{if (surfconti.IsG1() )
- o<<" Continuity Status : G1 " <<endl;
+ o<<" Continuity Status : G1 " <<std::endl;
else
{ if (surfconti.IsC0() )
- o<<" Continuity Status : G0 " <<endl;
- else o<<" Continuity Status : NoG0 "<<endl;}
+ o<<" Continuity Status : G0 " <<std::endl;
+ else o<<" Continuity Status : NoG0 "<<std::endl;}
}
- o<<" G0Value = "<<surfconti.C0Value()<<endl;
- o<<" G1Value = "<<surfconti.G1Angle()<<endl;
- o<<" G2CurvatureGap = "<<surfconti.G2CurvatureGap()<<endl;
+ o<<" G0Value = "<<surfconti.C0Value()<<std::endl;
+ o<<" G1Value = "<<surfconti.G1Angle()<<std::endl;
+ o<<" G2CurvatureGap = "<<surfconti.G2CurvatureGap()<<std::endl;
} break;
default : {}
void LocalAnalysis::Dump(const LocalAnalysis_CurveContinuity& curvconti, Standard_OStream& o)
{ if (!curvconti.IsDone())
- { o<<"Problem in the computation "<<endl;
+ { o<<"Problem in the computation "<<std::endl;
if (curvconti.StatusError()==LocalAnalysis_NullFirstDerivative)
- o<<"one (or both) first derivative is null" <<endl;
+ o<<"one (or both) first derivative is null" <<std::endl;
else if(curvconti.StatusError()==LocalAnalysis_NullSecondDerivative)
- o<<"one (or both) second derivative is null" <<endl;
+ o<<"one (or both) second derivative is null" <<std::endl;
else if(curvconti.StatusError()==LocalAnalysis_TangentNotDefined)
- o<<"one (or both) tangent is undefined " <<endl;
+ o<<"one (or both) tangent is undefined " <<std::endl;
else if(curvconti.StatusError()==LocalAnalysis_NormalNotDefined)
- o<<"one (or both) normal is undefined" <<endl;}
+ o<<"one (or both) normal is undefined" <<std::endl;}
else
switch(curvconti.ContinuityStatus())
{ case GeomAbs_C0 :{ if (curvconti.IsC0() )
- o<<" Continuity Status : C0 " <<endl;
- else o<<" Continuity Status : No C0 "<<endl;
- o<<" C0Value = "<<curvconti.C0Value() <<endl;
+ o<<" Continuity Status : C0 " <<std::endl;
+ else o<<" Continuity Status : No C0 "<<std::endl;
+ o<<" C0Value = "<<curvconti.C0Value() <<std::endl;
} break;
case GeomAbs_C1 :{ if (curvconti.IsC1())
- o<<" Continuity Status : C1 " <<endl;
+ o<<" Continuity Status : C1 " <<std::endl;
else
{if (curvconti.IsC0() )
- o<<" Continuity Status : C0 " <<endl;
- else o<<" Continuity Status : NoC0 "<<endl;
+ o<<" Continuity Status : C0 " <<std::endl;
+ else o<<" Continuity Status : NoC0 "<<std::endl;
}
- o<<" C0Value = "<<curvconti.C0Value()<<endl;
- o<<" C1Angle = "<<curvconti.C1Angle()<<endl;
- o<<" C1Ratio = "<<curvconti.C1Ratio()<<endl;
+ o<<" C0Value = "<<curvconti.C0Value()<<std::endl;
+ o<<" C1Angle = "<<curvconti.C1Angle()<<std::endl;
+ o<<" C1Ratio = "<<curvconti.C1Ratio()<<std::endl;
} break;
case GeomAbs_C2 :{ if (curvconti.IsC2())
- o<<" Continuity Status : C2 " <<endl;
+ o<<" Continuity Status : C2 " <<std::endl;
else
{if (curvconti.IsC1() )
- o<<" Continuity Status : C1 " <<endl;
+ o<<" Continuity Status : C1 " <<std::endl;
else
{ if (curvconti.IsC0() )
- o<<" Continuity Status : C0 " <<endl;
- else o<<" Continuity Status : NoC0 "<<endl;}
+ o<<" Continuity Status : C0 " <<std::endl;
+ else o<<" Continuity Status : NoC0 "<<std::endl;}
}
- o<<" C0Value = "<<curvconti.C0Value()<<endl;
- o<<" C1Angle = "<<curvconti.C1Angle()<<endl;
- o<<" C2Angle = "<<curvconti.C2Angle()<<endl;
- o<<" C1Ratio = "<<curvconti.C1Ratio()<<endl;
- o<<" C2Ratio = "<<curvconti.C2Ratio()<<endl;
+ o<<" C0Value = "<<curvconti.C0Value()<<std::endl;
+ o<<" C1Angle = "<<curvconti.C1Angle()<<std::endl;
+ o<<" C2Angle = "<<curvconti.C2Angle()<<std::endl;
+ o<<" C1Ratio = "<<curvconti.C1Ratio()<<std::endl;
+ o<<" C2Ratio = "<<curvconti.C2Ratio()<<std::endl;
}break;
case GeomAbs_G1 :{ if (curvconti.IsG1())
- o<<" Continuity Status : G1 " <<endl;
+ o<<" Continuity Status : G1 " <<std::endl;
else
{if (curvconti.IsC0() )
- o<<" Continuity Status : G0 " <<endl;
- else o<<" Continuity Status : NoG0 "<<endl;
+ o<<" Continuity Status : G0 " <<std::endl;
+ else o<<" Continuity Status : NoG0 "<<std::endl;
}
- o<<" G0Value = "<<curvconti.C0Value()<<endl;
- o<<" G1Angle = "<<curvconti.G1Angle()<<endl;
+ o<<" G0Value = "<<curvconti.C0Value()<<std::endl;
+ o<<" G1Angle = "<<curvconti.G1Angle()<<std::endl;
} break;
case GeomAbs_G2 :{ if (curvconti.IsG2())
- o<<" Continuity Status : G2 " <<endl;
+ o<<" Continuity Status : G2 " <<std::endl;
else
{if (curvconti.IsG1() )
- o<<" Continuity Status : G1 " <<endl;
+ o<<" Continuity Status : G1 " <<std::endl;
else
{ if (curvconti.IsC0() )
- o<<" Continuity Status : G0 " <<endl;
- else o<<" Continuity Status : NoG0 "<<endl;}
+ o<<" Continuity Status : G0 " <<std::endl;
+ else o<<" Continuity Status : NoG0 "<<std::endl;}
}
- o<<" G0Value = "<<curvconti.C0Value()<<endl;
- o<<" G1Angle = "<<curvconti.G1Angle()<<endl;
- o<<" G2Angle = "<<curvconti.G2Angle()<<endl;
- o<<" Relative curvature variation = "<<curvconti.G2CurvatureVariation()<<endl;
+ o<<" G0Value = "<<curvconti.C0Value()<<std::endl;
+ o<<" G1Angle = "<<curvconti.G1Angle()<<std::endl;
+ o<<" G2Angle = "<<curvconti.G2Angle()<<std::endl;
+ o<<" Relative curvature variation = "<<curvconti.G2CurvatureVariation()<<std::endl;
} break;
{
Standard_Integer i;
- for(i=0; i<ashift; i++)cout<<" ";
- cout<<" BISECTOR : "<<thebisectornumber<<endl;
- for(i=0; i<ashift; i++)cout<<" ";
- cout<<" First edge : "<<thefirstedge->EdgeNumber()<<endl;
- for(i=0; i<ashift; i++)cout<<" ";
- cout<<" Second edge : "<<thesecondedge->EdgeNumber()<<endl;
- for(i=0; i<ashift; i++)cout<<" ";
+ for(i=0; i<ashift; i++)std::cout<<" ";
+ std::cout<<" BISECTOR : "<<thebisectornumber<<std::endl;
+ for(i=0; i<ashift; i++)std::cout<<" ";
+ std::cout<<" First edge : "<<thefirstedge->EdgeNumber()<<std::endl;
+ for(i=0; i<ashift; i++)std::cout<<" ";
+ std::cout<<" Second edge : "<<thesecondedge->EdgeNumber()<<std::endl;
+ for(i=0; i<ashift; i++)std::cout<<" ";
if(alevel)
{
if(!thelistofbisectors->More())
{
- cout<<" Bisectors List : "<<endl;
+ std::cout<<" Bisectors List : "<<std::endl;
thelistofbisectors->Dump(ashift+1,1);
}
}
- cout<<endl;
+ std::cout<<std::endl;
}
Standard_Real DistExt;
#ifdef OCCT_DEBUG_Graph
- cout<<"Construction Arc : Index"<<aBisector->IndexNumber()<<endl;
- cout<<"Construction Arc : Bisector"<<aBisector->BisectorNumber()<<endl;
+ std::cout<<"Construction Arc : Index"<<aBisector->IndexNumber()<<std::endl;
+ std::cout<<"Construction Arc : Bisector"<<aBisector->BisectorNumber()<<std::endl;
#endif
CurrentArc = new MAT_Arc(IndTabArcs,
if (DistExt == Precision::Infinite()) {
DistExt = 1.0;
#ifdef OCCT_DEBUG_Graph
- cout<<"PB:RECUPERATION DISTANCE SUR ISSUEPOINT."<<endl;
+ std::cout<<"PB:RECUPERATION DISTANCE SUR ISSUEPOINT."<<std::endl;
#endif
}
}
#ifdef OCCT_DEBUG_Graph
- cout<<"IndTabArcs = "<<IndTabArcs<<endl;
- cout<<"ArcIndex = "<<CurrentArc->ArcIndex()<<endl;
+ std::cout<<"IndTabArcs = "<<IndTabArcs<<std::endl;
+ std::cout<<"ArcIndex = "<<CurrentArc->ArcIndex()<<std::endl;
#endif
CurrentArc->SetIndex(IndTabArcs);
TheArcs.Bind(IndTabArcs,CurrentArc);
#ifdef OCCT_DEBUG
if (AffichCircuit) {
for (i = 1; i <= 2*NbItems - 2; i++) {
- cout<< "Correspondance "<< i<<" -> "<<Corres(i)<<endl;
+ std::cout<< "Correspondance "<< i<<" -> "<<Corres(i)<<std::endl;
}
}
#endif
static void Indent(const Standard_Integer Offset) {
if (Offset > 0) {
- for (Standard_Integer i = 0; i <Offset; i++) {cout <<" ";}
+ for (Standard_Integer i = 0; i <Offset; i++) {std::cout <<" ";}
}
}
{
Standard_Integer MyOffset = Offset;
Indent (Offset);
- cout<<"MAT2d_Connexion :"<<endl;
+ std::cout<<"MAT2d_Connexion :"<<std::endl;
MyOffset++;
Indent (MyOffset);
- cout <<"IndexFirstLine :"<<lineA<<endl;
+ std::cout <<"IndexFirstLine :"<<lineA<<std::endl;
Indent (MyOffset);
- cout <<"IndexSecondLine :"<<lineB<<endl;
+ std::cout <<"IndexSecondLine :"<<lineB<<std::endl;
Indent (MyOffset);
- cout <<"IndexItemOnFirst :"<<itemA<<endl;
+ std::cout <<"IndexItemOnFirst :"<<itemA<<std::endl;
Indent (MyOffset);
- cout <<"IndexItemOnSecond :"<<itemB<<endl;
+ std::cout <<"IndexItemOnSecond :"<<itemB<<std::endl;
Indent (MyOffset);
- cout <<"ParameterOnFirst :"<<parameterOnA<<endl;
+ std::cout <<"ParameterOnFirst :"<<parameterOnA<<std::endl;
Indent (MyOffset);
- cout <<"ParameterOnSecond :"<<parameterOnB<<endl;
+ std::cout <<"ParameterOnSecond :"<<parameterOnB<<std::endl;
Indent (MyOffset);
- cout <<"PointOnFirst :"<<endl;
- cout <<" X = "<<pointA.X()<<endl;
- cout <<" Y = "<<pointA.Y()<<endl;
+ std::cout <<"PointOnFirst :"<<std::endl;
+ std::cout <<" X = "<<pointA.X()<<std::endl;
+ std::cout <<" Y = "<<pointA.Y()<<std::endl;
Indent (MyOffset);
- cout <<"PointOnSecond :"<<endl;
- cout <<" X = "<<pointB.X()<<endl;
- cout <<" Y = "<<pointB.Y()<<endl;
+ std::cout <<"PointOnSecond :"<<std::endl;
+ std::cout <<" X = "<<pointB.X()<<std::endl;
+ std::cout <<" Y = "<<pointB.Y()<<std::endl;
Indent (MyOffset);
- cout <<"Distance :"<<distance<<endl;
+ std::cout <<"Distance :"<<distance<<std::endl;
}
#ifdef OCCT_DEBUG_Mat
atool.Dump(bisectormap(i)->BisectorNumber(),1);
#ifdef ICONTINUE
- cin>>Icontinue;
+ std::cin>>Icontinue;
#endif
#endif
}
//-------------------------------------------
#ifdef ICONTINUE
- cin>>Icontinue;
+ std::cin>>Icontinue;
#endif
} //--------------
// Fin Boucle 2.
//-----------------------------------------------------------------
#ifdef OCCT_DEBUG_Mat
- cout <<" Test sur les parametres pour elimination"<<endl;
- cout << " Edge number :"<<theedgelist->Current()->EdgeNumber()<<endl;
+ std::cout <<" Test sur les parametres pour elimination"<<std::endl;
+ std::cout << " Edge number :"<<theedgelist->Current()->EdgeNumber()<<std::endl;
#endif
if(paramb[0] > 0 && parama[1] > 0) {
#ifdef OCCT_DEBUG_Mat
- cout <<" A ELIMINER "<<endl;
+ std::cout <<" A ELIMINER "<<std::endl;
#endif
if(narea < 0) {
firstarea(++narea) = theedgelist->Index();
shift++;
#ifdef OCCT_DEBUG_Mat
- cout<<" Suppression de l'arete : "<<edgetoremove->EdgeNumber()<<endl;
+ std::cout<<" Suppression de l'arete : "<<edgetoremove->EdgeNumber()<<std::endl;
#endif
if(all == 0 || j+1 != noofarea(i)) {
#ifdef OCCT_DEBUG_Mat
atool.Dump(bisectormap(i)->BisectorNumber(),1);
#ifdef ICONTINUE
- cin>>Icontinue;
+ std::cin>>Icontinue;
#endif
#endif
}
//-------------------------------------------
#ifdef ICONTINUE
- cin>>Icontinue;
+ std::cin>>Icontinue;
#endif
} //--------------
// Fin Boucle 2.
//-----------------------------------------------------------------
#ifdef OCCT_DEBUG_Mat
- cout <<" Test sur les parametres pour elimination"<<endl;
- cout << " Edge number :"<<theedgelist->Current()->EdgeNumber()<<endl;
+ std::cout <<" Test sur les parametres pour elimination"<<std::endl;
+ std::cout << " Edge number :"<<theedgelist->Current()->EdgeNumber()<<std::endl;
#endif
if(paramb[0] > 0 && parama[1] > 0) {
#ifdef OCCT_DEBUG_Mat
- cout <<" A ELIMINER "<<endl;
+ std::cout <<" A ELIMINER "<<std::endl;
#endif
if(narea < 0) {
firstarea(++narea) = theedgelist->Index();
shift++;
#ifdef OCCT_DEBUG_Mat
- cout<<" Suppression de l'arete : "<<edgetoremove->EdgeNumber()<<endl;
+ std::cout<<" Suppression de l'arete : "<<edgetoremove->EdgeNumber()<<std::endl;
#endif
if(all == 0 || j+1 != noofarea(i)) {
if(found != -1) {
#ifdef OCCT_DEBUG_Mat
- cout<<" first last bisector to remove :"<<
+ std::cout<<" first last bisector to remove :"<<
firstbisectortoremove[index]->BisectorNumber()<<" "<<
- lastbisectortoremove[index]->BisectorNumber()<<endl;
+ lastbisectortoremove[index]->BisectorNumber()<<std::endl;
#endif
bisectoronetoremove.Bind(found,firstbisectortoremove[index]);
bisectortwotoremove.Bind(found,lastbisectortoremove[index]);
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
-#define Debug(expr) cout<<" MAT2d_Tool2d.cxx : expr :"<<expr<<endl;
+#define Debug(expr) std::cout<<" MAT2d_Tool2d.cxx : expr :"<<expr<<std::endl;
//#define OCCT_DEBUG
//#define DRAW
#ifdef DRAW
#ifdef OCCT_DEBUG
Standard_Boolean Affich = Standard_False;
if (Affich) {
- cout<<endl;
- cout<<"BISECTOR number : "<<theNumberOfBisectors+1<<endl;
- cout<<" Item 1 : "<<endl;
- cout<<edge1number<<endl;
- cout<<endl;
+ std::cout<<std::endl;
+ std::cout<<"BISECTOR number : "<<theNumberOfBisectors+1<<std::endl;
+ std::cout<<" Item 1 : "<<std::endl;
+ std::cout<<edge1number<<std::endl;
+ std::cout<<std::endl;
// elt1->Dump(1,1);
- cout<<endl;
- cout<<" Item 2 : "<<endl;
- cout<<edge2number<<endl;
- cout<<endl;
+ std::cout<<std::endl;
+ std::cout<<" Item 2 : "<<std::endl;
+ std::cout<<edge2number<<std::endl;
+ std::cout<<std::endl;
// elt2->Dump(1,1);
- cout<<endl;
+ std::cout<<std::endl;
}
#endif
#ifdef OCCT_DEBUG
Standard_Boolean Affich = Standard_False;
- if (Affich) cout<<"TRIM de "<<abisector->BisectorNumber()<<endl;
+ if (Affich) std::cout<<"TRIM de "<<abisector->BisectorNumber()<<std::endl;
#endif
Handle(Geom2d_TrimmedCurve) bisector =
#ifdef OCCT_DEBUG
if (AffichDist)
for (Standard_Integer j = 1; j <= 4;j++){
- cout <<"Distance number : "<<j<<" is :"<< Dist(j)<<endl;
+ std::cout <<"Distance number : "<<j<<" is :"<< Dist(j)<<std::endl;
}
#endif
#ifdef OCCT_DEBUG
Standard_Boolean Affich = Standard_False;
if (Affich) {
- cout<<endl;
- cout<<"INTERSECTION de "<<BisectorOne->BisectorNumber()<<
- " et de "<<BisectorTwo->BisectorNumber()<<endl;
- cout<<" Bisector 1 : "<<endl;
+ std::cout<<std::endl;
+ std::cout<<"INTERSECTION de "<<BisectorOne->BisectorNumber()<<
+ " et de "<<BisectorTwo->BisectorNumber()<<std::endl;
+ std::cout<<" Bisector 1 : "<<std::endl;
// (Bisector1->BasisCurve())->Dump(-1,1);
- cout<<endl;
+ std::cout<<std::endl;
Debug(Domain1.FirstParameter());
Debug(Domain1.LastParameter());
- cout<<"-----------------"<<endl;
- cout<<" Bisector 2 : "<<endl;
+ std::cout<<"-----------------"<<std::endl;
+ std::cout<<" Bisector 2 : "<<std::endl;
// (Bisector2->BasisCurve())->Dump(-1,1);
- cout<<endl;
+ std::cout<<std::endl;
Debug(Domain2.FirstParameter());
Debug(Domain2.LastParameter());
- cout<<"-----------------"<<endl;
+ std::cout<<"-----------------"<<std::endl;
}
#endif
#ifdef OCCT_DEBUG
if (Affich) {
- cout<<" coordonnees : "<<GeomPnt (IntPnt).X()<<" "
- <<GeomPnt (IntPnt).Y()<<endl;
- cout<<" parametres : "<<Param1<<" "<<Param2<<endl;
- cout<<" distancemini : "<<DistanceMini<<endl;
+ std::cout<<" coordonnees : "<<GeomPnt (IntPnt).X()<<" "
+ <<GeomPnt (IntPnt).Y()<<std::endl;
+ std::cout<<" parametres : "<<Param1<<" "<<Param2<<std::endl;
+ std::cout<<" distancemini : "<<DistanceMini<<std::endl;
}
#endif
BRep_Tool::PolygonOnTriangulation(aEdge, aT1, aLoc1);
if (aPoly1.IsNull() || aT1.IsNull()) {
#ifdef OCCT_DEBUG
- cout<<"problem getting PolygonOnTriangulation of edge "<<ie<<endl;
+ std::cout<<"problem getting PolygonOnTriangulation of edge "<<ie<<std::endl;
#endif
continue;
}
BRep_Tool::PolygonOnTriangulation(aEdge, aT2, aLoc2);
if (aPoly2.IsNull() || aT2.IsNull()) {
#ifdef OCCT_DEBUG
- cout<<"problem getting PolygonOnTriangulation of edge "<<ie<<endl;
+ std::cout<<"problem getting PolygonOnTriangulation of edge "<<ie<<std::endl;
#endif
continue;
}
if (aMeshData.IsNull())
return "Null mesh data structure";
Standard_Integer nbLinks = aMeshData->NbLinks();
- cout << "nblink=" << nbLinks << endl;
+ std::cout << "nblink=" << nbLinks << std::endl;
TCollection_AsciiString aName(theNameStr);
for (Standard_Integer i = 1; i <= nbLinks; i++)
{
if (aMeshData.IsNull())
return "Null mesh data structure";
Standard_Integer nbElem = aMeshData->NbElements();
- cout << "nbelem=" << nbElem << endl;
+ std::cout << "nbelem=" << nbElem << std::endl;
TCollection_AsciiString aName(theNameStr);
for (Standard_Integer i = 1; i <= nbElem; i++)
{
TopLoc_Location aLoc;
Handle(Poly_Triangulation) aPoly = BRep_Tool::Triangulation(aFace,aLoc);
if (aPoly.IsNull()) {
- cout << "face "<<i<<" has no triangulation"<<endl;
+ std::cout << "face "<<i<<" has no triangulation"<<std::endl;
continue;
}
const Poly_Array1OfTriangle& triangles = aPoly->Triangles();
Standard_Integer min, hour;
gTimer.Show ( sec, min, hour, cpu );
- cout << "HilightSelected : " << endl;
- cout << aSelNodes.Extent() << " nodes " << endl;
- cout << aSelElements.Extent() << " elements " << endl;
- cout << "Time : " << sec << " sec" << endl;
- cout << "CPU time : " << cpu << " sec" << endl << endl;
+ std::cout << "HilightSelected : " << std::endl;
+ std::cout << aSelNodes.Extent() << " nodes " << std::endl;
+ std::cout << aSelElements.Extent() << " elements " << std::endl;
+ std::cout << "Time : " << sec << " sec" << std::endl;
+ std::cout << "CPU time : " << cpu << " sec" << std::endl << std::endl;
gTimer.Stop();
#endif
}
//! Defines default messenger for OCCT applications.
//! This is global static instance of the messenger.
- //! By default, it contains single printer directed to cout.
+ //! By default, it contains single printer directed to std::cout.
//! It can be customized according to the application needs.
Standard_EXPORT static const Handle(Message_Messenger)& DefaultMessenger();
DEFINE_STANDARD_RTTIEXT(Message_Messenger, Standard_Transient)
public:
- //! Empty constructor; initializes by single printer directed to cout.
+ //! Empty constructor; initializes by single printer directed to std::cout.
//! Note: the default messenger is not empty but directed to cout
//! in order to protect against possibility to forget defining printers.
//! If printing to cout is not needed, clear messenger by GetPrinters().Clear()
return pman (theMessenger);
}
+// Message_EndLine
+inline const Handle(Message_Messenger)& Message_EndLine (const Handle(Message_Messenger)& theMessenger)
+{
+ theMessenger->Send ("", Message_Info, Standard_True);
+ return theMessenger;
+}
+
// endl
inline const Handle(Message_Messenger)& endl (const Handle(Message_Messenger)& theMessenger)
{
//=======================================================================
//function : Constructor
-//purpose : Opening a file as an ostream
+//purpose : Opening a file as an std::ostream
// for specific file names standard streams are created
//=======================================================================
Message_PrinterOStream::Message_PrinterOStream (const Standard_CString theFileName,
if ( theGravity < myTraceLevel || ! myStream ) return;
Standard_OStream* ostr = (Standard_OStream*)myStream;
(*ostr) << theString;
- if ( putEndl ) (*ostr) << endl;
+ if ( putEndl ) (*ostr) << std::endl;
}
//=======================================================================
class Message_PrinterOStream;
DEFINE_STANDARD_HANDLE(Message_PrinterOStream, Message_Printer)
-//! Implementation of a message printer associated with an ostream
-//! The ostream may be either externally defined one (e.g. cout),
+//! Implementation of a message printer associated with an std::ostream
+//! The std::ostream may be either externally defined one (e.g. std::cout),
//! or file stream maintained internally (depending on constructor).
class Message_PrinterOStream : public Message_Printer
{
Sprintf ( buff, "Elapsed:%6.1f sec, CPU User:%9.4f sec, CPU Sys:%9.4f sec, hits: %d",
elapsed, user, system, myCount );
- ostr << buff << endl;
+ ostr << buff << std::endl;
}
//=======================================================================
Standard_Integer NbTimers = dic.Extent();
- ostr << "DUMP OF TIMERS:" << endl;
+ ostr << "DUMP OF TIMERS:" << std::endl;
Standard_CString *keys = new Standard_CString[NbTimers];
Standard_Integer i=0;
for( ; iter.More() && i < NbTimers; iter.Next()) {
//iter.Value()->Dump ( ostr );
Timer(stmp)->Dump(ostr);
keys[ntmp]=0;
- if ( Timer(stmp)->IsRunning() ) cerr << "Warning: timer " << stmp << " is running" << endl;
+ if ( Timer(stmp)->IsRunning() ) std::cerr << "Warning: timer " << stmp << " is running" << std::endl;
}
delete[] keys;
}
amAccess += ( 0.5 * ( cpu3 - cpu1 ) ) / NBTESTS;
amError = Abs ( cpu1 + cpu3 - 2 * cpu2 ) / NBTESTS;
- cout << "CPU 0: " << cpu0 << endl;
- cout << "CPU 1: " << cpu1 << " INTERNAL: " << cput1 << endl;
- cout << "CPU 2: " << cpu2 << " INTERNAL: " << cput2 << endl;
- cout << "CPU 3: " << cpu3 << " INTERNAL: " << cput3 << endl;
- cout << "Access: " << amAccess << ", External: " << amExternal <<
- ", Internal: " << amInternal << ", Error: " << amError << endl;
+ std::cout << "CPU 0: " << cpu0 << std::endl;
+ std::cout << "CPU 1: " << cpu1 << " INTERNAL: " << cput1 << std::endl;
+ std::cout << "CPU 2: " << cpu2 << " INTERNAL: " << cput2 << std::endl;
+ std::cout << "CPU 3: " << cpu3 << " INTERNAL: " << cput3 << std::endl;
+ std::cout << "Access: " << amAccess << ", External: " << amExternal <<
+ ", Internal: " << amInternal << ", Error: " << amError << std::endl;
}
{
S<<"--- Typed Value : "<<Name();
if (thelabel.Length() > 0) S<<" Label : "<<Label();
- S<<endl<<"--- Type : "<<Definition()<<endl<<"--- Value : ";
+ S<<Message_EndLine<<"--- Type : "<<Definition()<<Message_EndLine<<"--- Value : ";
PrintValue (S);
- S<<endl;
+ S<<Message_EndLine;
- if (thesatisf) S<<" -- Specific Function for Satisfies : "<<thesatisn.ToCString()<<endl;
+ if (thesatisf) S<<" -- Specific Function for Satisfies : "<<thesatisn.ToCString()<<Message_EndLine;
}
if (sizes[i] > 0)
{
l += sizes[i] * i;
- S << setw(5) << sizes[i] <<" buckets of size "<<i<<"\n";
+ S << std::setw(5) << sizes[i] <<" buckets of size "<<i<<"\n";
}
}
/**
* Check the filled tree for the total number of items and the balance
- * outputting these results to ostream.
+ * outputting these results to std::ostream.
* @return
* the tree size (the same value is returned by method Fill()).
*/
{
if (mySeqPtr.Length() > 0)
#ifdef OCCT_DEBUG_UBTREE
- cout << "~NCollection_UBTreeFiller: " << Fill()
- << " objects added to the tree" << endl;
+ std::cout << "~NCollection_UBTreeFiller: " << Fill()
+ << " objects added to the tree" << std::endl;
#else
Fill();
#endif
char buf[128];
sprintf (buf, "Checking UBTree:%8d leaves, balance =%7.2f",
aNumber, aLen1 / aLen0);
- theStream << buf << endl;
+ theStream << buf << std::endl;
return aNumber;
}
#else
struct utsname info;
uname(&info);
- cout << info.sysname << endl;
- cout << info.nodename << endl;
- cout << info.release << endl;
- cout << info.version << endl;
- cout << info.machine << endl;
+ std::cout << info.sysname << std::endl;
+ std::cout << info.nodename << std::endl;
+ std::cout << info.release << std::endl;
+ std::cout << info.version << std::endl;
+ std::cout << info.machine << std::endl;
return OSD_Default;
#endif
}
break;
default:
#ifdef OCCT_DEBUG
- cout << " WARNING WARNING : OSD Path for an Unknown SYSTEM : " << (Standard_Integer)todo << endl;
+ std::cout << " WARNING WARNING : OSD Path for an Unknown SYSTEM : " << (Standard_Integer)todo << std::endl;
#endif
break ;
}
void OSD_Timer::Show() const
{
- Show (cout);
+ Show (std::cout);
}
//=======================================================================
buffer[0] = '\0' ;
-// cout << "CallHandler " << dwExceptionCode << endl ;
+// std::cout << "CallHandler " << dwExceptionCode << std::endl ;
switch ( dwExceptionCode ) {
case EXCEPTION_FLT_DENORMAL_OPERAND:
-// cout << "CallHandler : EXCEPTION_FLT_DENORMAL_OPERAND:" << endl ;
+// std::cout << "CallHandler : EXCEPTION_FLT_DENORMAL_OPERAND:" << std::endl ;
StringCchCopyW (buffer, _countof(buffer), L"FLT DENORMAL OPERAND");
flterr = 1 ;
break ;
case EXCEPTION_FLT_DIVIDE_BY_ZERO:
-// cout << "CallHandler : EXCEPTION_FLT_DIVIDE_BY_ZERO:" << endl ;
+// std::cout << "CallHandler : EXCEPTION_FLT_DIVIDE_BY_ZERO:" << std::endl ;
StringCchCopyW (buffer, _countof(buffer), L"FLT DIVIDE BY ZERO");
flterr = 1 ;
break ;
case EXCEPTION_FLT_INEXACT_RESULT:
-// cout << "CallHandler : EXCEPTION_FLT_INEXACT_RESULT:" << endl ;
+// std::cout << "CallHandler : EXCEPTION_FLT_INEXACT_RESULT:" << std::endl ;
StringCchCopyW (buffer, _countof(buffer), L"FLT INEXACT RESULT");
flterr = 1 ;
break ;
case EXCEPTION_FLT_INVALID_OPERATION:
-// cout << "CallHandler : EXCEPTION_FLT_INVALID_OPERATION:" << endl ;
+// std::cout << "CallHandler : EXCEPTION_FLT_INVALID_OPERATION:" << std::endl ;
StringCchCopyW (buffer, _countof(buffer), L"FLT INVALID OPERATION");
flterr = 1 ;
break ;
case EXCEPTION_FLT_OVERFLOW:
-// cout << "CallHandler : EXCEPTION_FLT_OVERFLOW:" << endl ;
+// std::cout << "CallHandler : EXCEPTION_FLT_OVERFLOW:" << std::endl ;
StringCchCopyW (buffer, _countof(buffer), L"FLT OVERFLOW");
flterr = 1 ;
break ;
case EXCEPTION_FLT_STACK_CHECK:
-// cout << "CallHandler : EXCEPTION_FLT_STACK_CHECK:" << endl ;
+// std::cout << "CallHandler : EXCEPTION_FLT_STACK_CHECK:" << std::endl ;
StringCchCopyW (buffer, _countof(buffer), L"FLT STACK CHECK");
flterr = 1 ;
break ;
case EXCEPTION_FLT_UNDERFLOW:
-// cout << "CallHandler : EXCEPTION_FLT_UNDERFLOW:" << endl ;
+// std::cout << "CallHandler : EXCEPTION_FLT_UNDERFLOW:" << std::endl ;
StringCchCopyW (buffer, _countof(buffer), L"FLT UNDERFLOW");
flterr = 1 ;
break ;
case STATUS_FLOAT_MULTIPLE_TRAPS:
-// cout << "CallHandler : EXCEPTION_FLT_UNDERFLOW:" << endl ;
+// std::cout << "CallHandler : EXCEPTION_FLT_UNDERFLOW:" << std::endl ;
StringCchCopyW (buffer, _countof(buffer), L"FLT MULTIPLE TRAPS (possible overflow in conversion of double to integer)");
flterr = 1 ;
break ;
case STATUS_FLOAT_MULTIPLE_FAULTS:
-// cout << "CallHandler : EXCEPTION_FLT_UNDERFLOW:" << endl ;
+// std::cout << "CallHandler : EXCEPTION_FLT_UNDERFLOW:" << std::endl ;
StringCchCopyW (buffer, _countof(buffer), L"FLT MULTIPLE FAULTS");
flterr = 1 ;
break ;
case STATUS_NO_MEMORY:
-// cout << "CallHandler : STATUS_NO_MEMORY:" << endl ;
+// std::cout << "CallHandler : STATUS_NO_MEMORY:" << std::endl ;
THROW_OR_JUMP (OSD_Exception_STATUS_NO_MEMORY, "MEMORY ALLOCATION ERROR ( no room in the process heap )");
break;
case EXCEPTION_ACCESS_VIOLATION:
-// cout << "CallHandler : EXCEPTION_ACCESS_VIOLATION:" << endl ;
+// std::cout << "CallHandler : EXCEPTION_ACCESS_VIOLATION:" << std::endl ;
StringCchPrintfW (buffer, _countof(buffer), L"%s%s%s0x%.8p%s%s%s", L"ACCESS VIOLATION",
fMsgBox ? L"\n" : L" ", L"at address ",
ExceptionInformation1 ,
L"' operation");
break;
case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
-// cout << "CallHandler : EXCEPTION_ARRAY_BOUNDS_EXCEEDED:" << endl ;
+// std::cout << "CallHandler : EXCEPTION_ARRAY_BOUNDS_EXCEEDED:" << std::endl ;
StringCchCopyW (buffer, _countof(buffer), L"ARRAY BOUNDS EXCEEDED");
break;
case EXCEPTION_DATATYPE_MISALIGNMENT:
-// cout << "CallHandler : EXCEPTION_DATATYPE_MISALIGNMENT:" << endl ;
+// std::cout << "CallHandler : EXCEPTION_DATATYPE_MISALIGNMENT:" << std::endl ;
StringCchCopyW (buffer, _countof(buffer), L"DATATYPE MISALIGNMENT");
break;
case EXCEPTION_ILLEGAL_INSTRUCTION:
-// cout << "CallHandler : EXCEPTION_ILLEGAL_INSTRUCTION:" << endl ;
+// std::cout << "CallHandler : EXCEPTION_ILLEGAL_INSTRUCTION:" << std::endl ;
StringCchCopyW (buffer, _countof(buffer), L"ILLEGAL INSTRUCTION");
break;
case EXCEPTION_IN_PAGE_ERROR:
-// cout << "CallHandler : EXCEPTION_IN_PAGE_ERROR:" << endl ;
+// std::cout << "CallHandler : EXCEPTION_IN_PAGE_ERROR:" << std::endl ;
StringCchCopyW (buffer, _countof(buffer), L"IN_PAGE ERROR");
break;
case EXCEPTION_INT_DIVIDE_BY_ZERO:
-// cout << "CallHandler : EXCEPTION_INT_DIVIDE_BY_ZERO:" << endl ;
+// std::cout << "CallHandler : EXCEPTION_INT_DIVIDE_BY_ZERO:" << std::endl ;
StringCchCopyW (buffer, _countof(buffer), L"INTEGER DIVISION BY ZERO");
break;
case EXCEPTION_INT_OVERFLOW:
-// cout << "CallHandler : EXCEPTION_INT_OVERFLOW:" << endl ;
+// std::cout << "CallHandler : EXCEPTION_INT_OVERFLOW:" << std::endl ;
StringCchCopyW (buffer, _countof(buffer), L"INTEGER OVERFLOW");
break;
case EXCEPTION_INVALID_DISPOSITION:
-// cout << "CallHandler : EXCEPTION_INVALID_DISPOSITION:" << endl ;
+// std::cout << "CallHandler : EXCEPTION_INVALID_DISPOSITION:" << std::endl ;
StringCchCopyW (buffer, _countof(buffer), L"INVALID DISPOSITION");
break;
case EXCEPTION_NONCONTINUABLE_EXCEPTION:
-// cout << "CallHandler : EXCEPTION_NONCONTINUABLE_EXCEPTION:" << endl ;
+// std::cout << "CallHandler : EXCEPTION_NONCONTINUABLE_EXCEPTION:" << std::endl ;
StringCchCopyW (buffer, _countof(buffer), L"NONCONTINUABLE EXCEPTION");
break;
case EXCEPTION_PRIV_INSTRUCTION:
-// cout << "CallHandler : EXCEPTION_PRIV_INSTRUCTION:" << endl ;
+// std::cout << "CallHandler : EXCEPTION_PRIV_INSTRUCTION:" << std::endl ;
StringCchCopyW (buffer, _countof(buffer), L"PRIVELEGED INSTRUCTION ENCOUNTERED");
break;
case EXCEPTION_STACK_OVERFLOW:
-// cout << "CallHandler : EXCEPTION_STACK_OVERFLOW:" << endl ;
+// std::cout << "CallHandler : EXCEPTION_STACK_OVERFLOW:" << std::endl ;
#if defined( _MSC_VER ) && ( _MSC_VER >= 1300 ) && !defined(OCCT_UWP)
// try recovering from stack overflow: available in MS VC++ 7.0
if (!_resetstkoflw())
_fpreset () ;
_clearfp() ;
_controlfp ( 0, _OSD_FPX ) ; // JR add :
-// cout << "OSD::WntHandler _controlfp( 0, _OSD_FPX ) " << hex << _controlfp(0,0) << dec << endl ;
+// std::cout << "OSD::WntHandler _controlfp( 0, _OSD_FPX ) " << std::hex << _controlfp(0,0) << std::dec << std::endl ;
}
char aBufferA[2048];
switch( signum ) {
case SIGFPE :
if ( signal( signum , (void(*)(int))SIGWntHandler ) == SIG_ERR )
- cout << "signal error" << endl ;
+ std::cout << "signal error" << std::endl ;
switch( sub_code ) {
case _FPE_INVALID :
CallHandler( EXCEPTION_FLT_INVALID_OPERATION ,0,0) ;
CallHandler( EXCEPTION_FLT_INEXACT_RESULT ,0,0) ;
break ;
default:
- cout << "SIGWntHandler(default) -> throw Standard_NumericError(\"Floating Point Error\");" << endl;
+ std::cout << "SIGWntHandler(default) -> throw Standard_NumericError(\"Floating Point Error\");" << std::endl;
THROW_OR_JUMP (Standard_NumericError, "Floating Point Error");
break ;
}
break ;
case SIGSEGV :
if ( signal( signum, (void(*)(int))SIGWntHandler ) == SIG_ERR )
- cout << "signal error" << endl ;
+ std::cout << "signal error" << std::endl ;
CallHandler( EXCEPTION_ACCESS_VIOLATION ,0,0) ;
break ;
case SIGILL :
if ( signal( signum, (void(*)(int))SIGWntHandler ) == SIG_ERR )
- cout << "signal error" << endl ;
+ std::cout << "signal error" << std::endl ;
CallHandler( EXCEPTION_ILLEGAL_INSTRUCTION ,0,0) ;
break ;
default:
- cout << "SIGWntHandler unexpected signal : " << signum << endl ;
+ std::cout << "SIGWntHandler unexpected signal : " << signum << std::endl ;
break ;
}
#ifndef OCCT_UWP
TCollection_AsciiString val = env.Value();
if (!env.Failed())
{
- cout << "Environment variable CSF_DEBUG_MODE setted.\n";
+ std::cout << "Environment variable CSF_DEBUG_MODE setted.\n";
fMsgBox = Standard_True;
}
else
// Signal handlers will only be used when the method ::raise() will be used
// Handlers must be set for every thread
if (signal (SIGSEGV, (void(*)(int))SIGWntHandler) == SIG_ERR)
- cout << "signal(OSD::SetSignal) error\n";
+ std::cout << "signal(OSD::SetSignal) error\n";
if (signal (SIGFPE, (void(*)(int))SIGWntHandler) == SIG_ERR)
- cout << "signal(OSD::SetSignal) error\n";
+ std::cout << "signal(OSD::SetSignal) error\n";
if (signal (SIGILL, (void(*)(int))SIGWntHandler) == SIG_ERR)
- cout << "signal(OSD::SetSignal) error\n";
+ std::cout << "signal(OSD::SetSignal) error\n";
// Set Ctrl-C and Ctrl-Break handler
fCtrlBrk = Standard_False;
si.cb = sizeof ( STARTUPINFO );
si.dwFlags = STARTF_FORCEONFEEDBACK;
- // cout << "_osd_debug -> CreateProcess" << endl ;
+ // std::cout << "_osd_debug -> CreateProcess" << std::endl ;
if ( !CreateProcess (
NULL, cmdLine, NULL, NULL, TRUE, CREATE_DEFAULT_ERROR_MODE,
NULL, NULL, &si, &pi
)
) __leave;
- // cout << "_osd_debug -> WaitForSingleObject " << endl ;
+ // std::cout << "_osd_debug -> WaitForSingleObject " << std::endl ;
WaitForSingleObject ( hEvent, INFINITE );
- // cout << "_osd_debug <- WaitForSingleObject -> CloseHandle " << endl ;
+ // std::cout << "_osd_debug <- WaitForSingleObject -> CloseHandle " << std::endl ;
CloseHandle ( pi.hProcess );
CloseHandle ( pi.hThread );
- // cout << "_osd_debug fDbgLoaded " << endl ;
+ // std::cout << "_osd_debug fDbgLoaded " << std::endl ;
fDbgLoaded = TRUE;
} // end __try
__finally {
-// cout << "_osd_debug -> CloseHandle(hKey) " << endl ;
+// std::cout << "_osd_debug -> CloseHandle(hKey) " << std::endl ;
if ( hKey != INVALID_HANDLE_VALUE ) CloseHandle ( hKey );
-// cout << "_osd_debug -> CloseHandle(hEvent) " << endl ;
+// std::cout << "_osd_debug -> CloseHandle(hEvent) " << std::endl ;
if ( hEvent != INVALID_HANDLE_VALUE ) CloseHandle ( hEvent );
-// cout << "_osd_debug end __finally " << endl ;
+// std::cout << "_osd_debug end __finally " << std::endl ;
} // end __finally
} /* end if */
action = fDbgLoaded ? EXCEPTION_CONTINUE_EXECUTION : EXCEPTION_EXECUTE_HANDLER;
-// cout << "_osd_debug return " << action << " EXCEPTION_CONTINUE_EXECUTION("
-// << EXCEPTION_CONTINUE_EXECUTION << ")" << endl ;
+// std::cout << "_osd_debug return " << action << " EXCEPTION_CONTINUE_EXECUTION("
+// << EXCEPTION_CONTINUE_EXECUTION << ")" << std::endl ;
return action ;
} // end _osd_debug
struct sigaction oldact, act;
// re-install the signal
if ( ! sigaction (theSignal, NULL, &oldact) ) {
- // cout << " signal is " << theSignal << " handler is " << oldact.sa_handler << endl;
+ // std::cout << " signal is " << theSignal << " handler is " << oldact.sa_handler << std::endl;
if (sigaction (theSignal, &oldact, &act)) perror ("sigaction");
}
else {
perror ("sigaction");
}
- // cout << "OSD::Handler: signal " << (int) theSignal << " occured inside a try block " << endl ;
+ // std::cout << "OSD::Handler: signal " << (int) theSignal << " occured inside a try block " << std::endl ;
if ( ADR_ACT_SIGIO_HANDLER != NULL )
(*ADR_ACT_SIGIO_HANDLER)() ;
#ifdef __linux__
#endif
default:
#ifdef OCCT_DEBUG
- cout << "Unexpected signal " << theSignal << endl ;
+ std::cout << "Unexpected signal " << theSignal << std::endl ;
#endif
break;
}
feenableexcept (FE_INVALID | FE_DIVBYZERO | FE_OVERFLOW);
//feenableexcept (FE_INVALID | FE_DIVBYZERO);
#endif
-// cout << "OSD::SegvHandler activated(SA_SIGINFO)" << endl ;
+// std::cout << "OSD::SegvHandler activated(SA_SIGINFO)" << std::endl ;
if ( ip != NULL ) {
sigset_t set;
sigemptyset(&set);
}
#ifdef OCCT_DEBUG
else {
- cout << "Wrong undefined address." << endl ;
+ std::cout << "Wrong undefined address." << std::endl ;
}
#endif
exit(SIGSEGV);
if ( theContext != NULL ) {
Space = ((struct sigcontext *)theContext)->sc_sl.sl_ss.ss_cr20 ;
Offset = ((struct sigcontext *)theContext)->sc_sl.sl_ss.ss_cr21 ;
-// cout << "Wrong address = " << hex(Offset) << endl ;
+// std::cout << "Wrong address = " << hex(Offset) << std::endl ;
{
sprintf(Msg,"SIGSEGV 'segmentation violation' detected. Address %lx",Offset) ;
OSD_SIGSEGV::Jump(Msg);
}
#ifdef OCCT_DEBUG
else {
- cout << "Wrong undefined address." << endl ;
+ std::cout << "Wrong undefined address." << std::endl ;
}
#endif
exit(SIGSEGV);
if (stat) {
#ifdef OCCT_DEBUG
- cerr << "ieee_handler does not work !!! KO " << endl;
+ std::cerr << "ieee_handler does not work !!! KO " << std::endl;
#endif
}
#elif defined (__linux__)
char *TRAP_FPE = getenv("TRAP_FPE") ;
if ( TRAP_FPE == NULL ) {
#ifdef OCCT_DEBUG
- cout << "On SGI you must set TRAP_FPE environment variable : " << endl ;
- cout << "set env(TRAP_FPE) \"UNDERFL=FLUSH_ZERO;OVERFL=DEFAULT;DIVZERO=DEFAULT;INT_OVERFL=DEFAULT\" or" << endl ;
- cout << "setenv TRAP_FPE \"UNDERFL=FLUSH_ZERO;OVERFL=DEFAULT;DIVZERO=DEFAULT;INT_OVERFL=DEFAULT\"" << endl ;
+ std::cout << "On SGI you must set TRAP_FPE environment variable : " << std::endl ;
+ std::cout << "set env(TRAP_FPE) \"UNDERFL=FLUSH_ZERO;OVERFL=DEFAULT;DIVZERO=DEFAULT;INT_OVERFL=DEFAULT\" or" << std::endl ;
+ std::cout << "setenv TRAP_FPE \"UNDERFL=FLUSH_ZERO;OVERFL=DEFAULT;DIVZERO=DEFAULT;INT_OVERFL=DEFAULT\"" << std::endl ;
#endif
}
#endif
stat = sigaction(SIGFPE,&act,&oact); // ...... floating point exception
if (stat) {
#ifdef OCCT_DEBUG
- cerr << "sigaction does not work !!! KO " << endl;
+ std::cerr << "sigaction does not work !!! KO " << std::endl;
#endif
perror("sigaction ");
}
#include "../Shaders/Shaders_RaytraceSmooth_fs.pxx"
#include "../Shaders/Shaders_Display_fs.pxx"
-using namespace OpenGl_Raytrace;
-
//! Use this macro to output ray-tracing debug info
// #define RAY_TRACE_PRINT_INFO
if(refUserInfo(i).Search(REFERENCE_COUNTER) != -1) {
try { OCC_CATCH_SIGNALS theReferencesCounter=refUserInfo(i).Token(" ",2).IntegerValue();}
catch (Standard_Failure const&) {
-// cout << "warning: could not read the reference counter in " << aFileName << endl;
+// std::cout << "warning: could not read the reference counter in " << aFileName << std::endl;
TCollection_ExtendedString aMsg("Warning: ");
aMsg = aMsg.Cat("could not read the reference counter in ").Cat(aFileName).Cat("\0");
if(!theMsgDriver.IsNull())
if(!theAbsolutePath.IsEmpty()) thePath=theAbsolutePath;
}
if(!theMsgDriver.IsNull()) {
-// cout << "reference found; ReferenceIdentifier: " << theReferenceIdentifier << "; File:" << thePath << ", version:" << theDocumentVersion;
+// std::cout << "reference found; ReferenceIdentifier: " << theReferenceIdentifier << "; File:" << thePath << ", version:" << theDocumentVersion;
TCollection_ExtendedString aMsg("Warning: ");
aMsg = aMsg.Cat("reference found; ReferenceIdentifier: ").Cat(theReferenceIdentifier).Cat("; File:").Cat(thePath).Cat(", version:").Cat(theDocumentVersion).Cat("\0");
theMsgDriver->Send(aMsg.ToExtString());
if(refUserInfo(i).Search(MODIFICATION_COUNTER) != -1) {
try { OCC_CATCH_SIGNALS theVersion=refUserInfo(i).Token(" ",2).IntegerValue();}
catch (Standard_Failure const&) {
-// cout << "warning: could not read the version in " << aFileName << endl;
+// std::cout << "warning: could not read the version in " << aFileName << std::endl;
TCollection_ExtendedString aMsg("Warning: ");
aMsg = aMsg.Cat("could not read the version in ").Cat(aFileName).Cat("\0");
if(!theMsgDriver.IsNull())
// If FirstOrder=LastOrder=0 then 2,3,5,6th rows and 3,4,5,6th columns are missing
math_Gauss Equations(A);
- // cout << "A=" << A << endl;
+ // std::cout << "A=" << A << std::endl;
for (Standard_Integer idim=1; idim<=Dimension; idim++) {
- // cout << "idim=" << idim << endl;
+ // std::cout << "idim=" << idim << std::endl;
math_Vector B(0,FirstOrder+LastOrder+1);
Standard_Integer icol ;
for (icol=0; icol<=LastOrder; icol++)
B(FirstOrder+1+icol) = LastConstr(idim,icol);
- // cout << "B=" << B << endl;
+ // std::cout << "B=" << B << std::endl;
// The solving of equations system A * X = B. Then B = X
Equations.Solve(B);
- // cout << "After Solving" << endl << "B=" << B << endl;
+ // std::cout << "After Solving" << std::endl << "B=" << B << std::endl;
if (Equations.IsDone()==Standard_False) return Standard_False;
if(!PluginResource->Find(theResource.ToCString())) {
Standard_SStream aMsg; aMsg << "could not find the resource:";
- aMsg << theResource.ToCString() << endl;
+ aMsg << theResource.ToCString() << std::endl;
if (theVerbose)
- cout << "could not find the resource:" << theResource.ToCString() << endl;
+ std::cout << "could not find the resource:" << theResource.ToCString() << std::endl;
throw Plugin_Failure(aMsg.str().c_str());
}
aMsg << "; reason:";
aMsg << error.ToCString();
if (theVerbose)
- cout << "could not open: " << PluginResource->Value(theResource.ToCString())<< " ; reason: "<< error.ToCString() << endl;
+ std::cout << "could not open: " << PluginResource->Value(theResource.ToCString())<< " ; reason: "<< error.ToCString() << std::endl;
throw Plugin_Failure(aMsg.str().c_str());
}
f = theSharedLibrary.DlSymb("PLUGINFACTORY");
OS << ((T->HasUVNodes()) ? "1" : "0") << "\n";
}
else {
- OS << setw(8) << T->NbNodes() << " Nodes\n";
- OS << setw(8) << T->NbTriangles() << " Triangles\n";
+ OS << std::setw(8) << T->NbNodes() << " Nodes\n";
+ OS << std::setw(8) << T->NbTriangles() << " Triangles\n";
OS << ((T->HasUVNodes()) ? "with" : "without") << " UV nodes\n";
}
Standard_Integer i, nbNodes = T->NbNodes();
const TColgp_Array1OfPnt& Nodes = T->Nodes();
for (i = 1; i <= nbNodes; i++) {
- if (!Compact) OS << setw(10) << i << " : ";
- if (!Compact) OS << setw(17);
+ if (!Compact) OS << std::setw(10) << i << " : ";
+ if (!Compact) OS << std::setw(17);
OS << Nodes(i).X() << " ";
- if (!Compact) OS << setw(17);
+ if (!Compact) OS << std::setw(17);
OS << Nodes(i).Y() << " ";
- if (!Compact) OS << setw(17);
+ if (!Compact) OS << std::setw(17);
OS << Nodes(i).Z() << "\n";
}
if (!Compact) OS << "\nUV Nodes :\n";
const TColgp_Array1OfPnt2d& UVNodes = T->UVNodes();
for (i = 1; i <= nbNodes; i++) {
- if (!Compact) OS << setw(10) << i << " : ";
- if (!Compact) OS << setw(17);
+ if (!Compact) OS << std::setw(10) << i << " : ";
+ if (!Compact) OS << std::setw(17);
OS << UVNodes(i).X() << " ";
- if (!Compact) OS << setw(17);
+ if (!Compact) OS << std::setw(17);
OS << UVNodes(i).Y() << "\n";
}
}
Standard_Integer n1, n2, n3;
const Poly_Array1OfTriangle& Triangles = T->Triangles();
for (i = 1; i <= nbTriangles; i++) {
- if (!Compact) OS << setw(10) << i << " : ";
+ if (!Compact) OS << std::setw(10) << i << " : ";
Triangles(i).Get(n1, n2, n3);
- if (!Compact) OS << setw(10);
+ if (!Compact) OS << std::setw(10);
OS << n1 << " ";
- if (!Compact) OS << setw(10);
+ if (!Compact) OS << std::setw(10);
OS << n2 << " ";
- if (!Compact) OS << setw(10);
+ if (!Compact) OS << std::setw(10);
OS << n3 << "\n";
}
OS << ((P->HasParameters()) ? "1" : "0") << "\n";
}
else {
- OS << setw(8) << P->NbNodes() << " Nodes\n";
+ OS << std::setw(8) << P->NbNodes() << " Nodes\n";
OS << ((P->HasParameters()) ? "with" : "without") << " parameters\n";
}
Standard_Integer i, nbNodes = P->NbNodes();
const TColgp_Array1OfPnt& Nodes = P->Nodes();
for (i = 1; i <= nbNodes; i++) {
- if (!Compact) OS << setw(10) << i << " : ";
- if (!Compact) OS << setw(17);
+ if (!Compact) OS << std::setw(10) << i << " : ";
+ if (!Compact) OS << std::setw(17);
OS << Nodes(i).X() << " ";
- if (!Compact) OS << setw(17);
+ if (!Compact) OS << std::setw(17);
OS << Nodes(i).Y() << " ";
- if (!Compact) OS << setw(17);
+ if (!Compact) OS << std::setw(17);
OS << Nodes(i).Z() << "\n";
}
OS << P->NbNodes() << " ";
}
else {
- OS << setw(8) << P->NbNodes() << " Nodes\n";
+ OS << std::setw(8) << P->NbNodes() << " Nodes\n";
}
// write the deflection
Standard_Integer i, nbNodes = P->NbNodes();
const TColgp_Array1OfPnt2d& Nodes = P->Nodes();
for (i = 1; i <= nbNodes; i++) {
- if (!Compact) OS << setw(10) << i << " : ";
- if (!Compact) OS << setw(17);
+ if (!Compact) OS << std::setw(10) << i << " : ";
+ if (!Compact) OS << std::setw(17);
OS << Nodes(i).X() << " ";
- if (!Compact) OS << setw(17);
+ if (!Compact) OS << std::setw(17);
OS << Nodes(i).Y() << "\n";
}
}
IS >> line;
if (strcmp(line,"Poly_Triangulation")) {
#ifdef OCCT_DEBUG
- cout << "Not a Triangulation in the file" << endl;
+ std::cout << "Not a Triangulation in the file" << std::endl;
#endif
return Handle(Poly_Triangulation)();
}
IS >> line;
if (strcmp(line,"Poly_Polygon3D")) {
#ifdef OCCT_DEBUG
- cout << "Not a Polygon3D in the file" << endl;
+ std::cout << "Not a Polygon3D in the file" << std::endl;
#endif
return Handle(Poly_Polygon3D)();
}
IS >> line;
if (strcmp(line,"Poly_Polygon2D")) {
#ifdef OCCT_DEBUG
- cout << "Not a Polygon2D in the file" << endl;
+ std::cout << "Not a Polygon2D in the file" << std::endl;
#endif
return Handle(Poly_Polygon2D)();
}
{
char buf[256];
Sprintf (buf, " X =%9.4f; Y =%9.4f; Z =%9.4f", X(), Y(), Z());
- theStream << buf << endl;
+ theStream << buf << std::endl;
Poly_CoherentTriPtr::Iterator anIter(* myTriangles);
for (; anIter.More(); anIter.Next()) {
const Poly_CoherentTriangle& aTri = anIter.Value();
Sprintf (buf, " %5d %5d %5d", aTri.Node(0),aTri.Node(1),aTri.Node(2));
- theStream << buf << endl;
+ theStream << buf << std::endl;
}
}
if (aStartNumber > 1)
if (doDebug)
{
- cout << "--- found contour with hanging links:" << endl;
+ std::cout << "--- found contour with hanging links:" << std::endl;
for (i = 1; i <= aContour.Extent(); i++)
- cout << " " << aContour(i);
- cout << endl;
+ std::cout << " " << aContour(i);
+ std::cout << std::endl;
}
#endif
if (aStartNumber == 0)
}
#ifdef OCCT_DEBUG
if (doDebug && nbLoopsOnPass2)
- cout << "MakeLoops: " << nbLoopsOnPass2
- << " contours accepted on the second pass" << endl;
+ std::cout << "MakeLoops: " << nbLoopsOnPass2
+ << " contours accepted on the second pass" << std::endl;
#endif
if (!myLoops.IsEmpty())
if (isFirst)
{
isFirst = Standard_False;
- cout << "boundary breaks are found in the following nodes:" << endl;
+ std::cout << "boundary breaks are found in the following nodes:" << std::endl;
}
- cout << aNode << " ";
+ std::cout << aNode << " ";
}
}
if (!isFirst)
- cout << endl;
+ std::cout << std::endl;
}
#endif
myTolU, myTolV, myCurve, mySurface))
{
#ifdef OCCT_DEBUG
- cout<<"There is a problem with ExactBound computation"<<endl;
+ std::cout<<"There is a problem with ExactBound computation"<<std::endl;
#endif
DichExactBound(Triple, t - Step, Tol, myTolU, myTolV,
myCurve, mySurface);
myCurve, mySurface))
{
#ifdef OCCT_DEBUG
- cout<<"There is a problem with ExactBound computation"<<endl;
+ std::cout<<"There is a problem with ExactBound computation"<<std::endl;
#endif
DichExactBound(Triple, t, Tol, myTolU, myTolV,
myCurve, mySurface);
TColStd_SequenceOfReal TUdisc;
for(k = 2; k <= NbIntSurU; k++) {
- // cout<<"CutPntsU("<<k<<") = "<<CutPntsU(k)<<endl;
+ // std::cout<<"CutPntsU("<<k<<") = "<<CutPntsU(k)<<std::endl;
for(i = 1; i <= myNbCurves; i++)
{
for(j = 1; j < mySequence->Value(i)->Length(); j++)
{
for(i = 1; i <= myNbCurves; i++)
{
- // cout<<"CutPntsV("<<k<<") = "<<CutPntsV(k)<<endl;
+ // std::cout<<"CutPntsV("<<k<<") = "<<CutPntsV(k)<<std::endl;
for(j = 1; j < mySequence->Value(i)->Length(); j++) {
Vl = mySequence->Value(i)->Value(j).Z();
// for ( Standard_Integer i = 1; i <= Nb+1; i++) {
// U = U1 + (i-1)*dU;
// Poles(i) = F.Value(U);
- // cout << "i = " << i << ": U = " << U <<
- // ", p(" << Poles(i).X() << ", " << Poles(i).Y() << ");" << endl;
+ // std::cout << "i = " << i << ": U = " << U <<
+ // ", p(" << Poles(i).X() << ", " << Poles(i).Y() << ");" << std::endl;
// Knots(i) = i;
// Mults(i) = 1;
// }
}
#ifdef OCCT_DEBUG
if (!OK) {
- cout << "ProjLib_ComputeApproxOnPolarSurface : Smoothing echoue"<<endl;
+ std::cout << "ProjLib_ComputeApproxOnPolarSurface : Smoothing echoue"<<std::endl;
}
#endif
return Dummy;
D(2, 2) = (DS1_v*DS1_u + V*DS2_uv)*myNorm;// dE2/du
}
-/* cout<<"F = ("<<F(1)<<", "<<F(2)<<")"<<endl;
- cout<<"dE1/dt = "<<D(1,1)<<endl;
- cout<<"dE1/dv = "<<D(1,2)<<endl;
- cout<<"dE2/dt = "<<D(2,1)<<endl;
- cout<<"dE2/dv = "<<D(2,2)<<endl;
+/* std::cout<<"F = ("<<F(1)<<", "<<F(2)<<")"<<std::endl;
+ std::cout<<"dE1/dt = "<<D(1,1)<<std::endl;
+ std::cout<<"dE1/dv = "<<D(1,2)<<std::endl;
+ std::cout<<"dE2/dt = "<<D(2,1)<<std::endl;
+ std::cout<<"dE2/dv = "<<D(2,2)<<std::endl;
*/
}
}
if ( Index == 0 ) {
- cout << " Extrema non trouve pour U = " << U << endl;
+ std::cout << " Extrema non trouve pour U = " << U << std::endl;
return gp_Pnt(0.,0.,0.);
}
else {
}
Handle(TDocStd_Document) D;
- //cout << "OCC73_SelectionMode 1" << endl;
+ //std::cout << "OCC73_SelectionMode 1" << std::endl;
if (!DDocStd::GetDocument(argv[1],D)) return 1;
TDF_Label L;
- //cout << "OCC73_SelectionMode 2" << endl;
+ //std::cout << "OCC73_SelectionMode 2" << std::endl;
if (!DDF::FindLabel(D->GetData(),argv[2],L)) return 1;
Handle(TPrsStd_AISViewer) viewer;
- //cout << "OCC73_SelectionMode 3" << endl;
+ //std::cout << "OCC73_SelectionMode 3" << std::endl;
if( !TPrsStd_AISViewer::Find(L, viewer) ) return 1;
Handle(TPrsStd_AISPresentation) prs;
- //cout << "OCC73_SelectionMode 4" << endl;
+ //std::cout << "OCC73_SelectionMode 4" << std::endl;
if(L.FindAttribute( TPrsStd_AISPresentation::GetID(), prs) ) {
if( argc == 4 ) {
prs->SetSelectionMode((Standard_Integer)Draw::Atoi(argv[3]));
}
else {
Standard_Integer SelectionMode = prs->SelectionMode();
- //cout << "SelectionMode = " << SelectionMode << endl;
+ //std::cout << "SelectionMode = " << SelectionMode << std::endl;
di<<SelectionMode;
}
}
- //cout << "OCC73_SelectionMode 5" << endl;
+ //std::cout << "OCC73_SelectionMode 5" << std::endl;
return 0;
}
di << "Adding Edges ..... \n";
for(int i = 1; i <= edgemap.Extent(); i++)
{
- // cout << "Adding Edge : " << i << endl;
+ // std::cout << "Adding Edge : " << i << std::endl;
TopoDS_Edge edg = TopoDS::Edge( edgemap.FindKey(i) );
if(!edg.IsNull()) blend.Add(1, edg);
}
}
}
- di << "All Faces added. Building... \n"; //cout.flush();
+ di << "All Faces added. Building... \n"; //std::cout.flush();
draftSlab.Build();
- di << "Build done...\n"; //cout.flush();
+ di << "Build done...\n"; //std::cout.flush();
if (!draftSlab.IsDone()) //--------------> STEP:1
{
di << " Error in Build \n";
}
if (index < argc) DBRep::Set(argv[index++], slab.Shape());
-// cout << "Slab Successfully Created ! Now Blending ..." << endl;
+// std::cout << "Slab Successfully Created ! Now Blending ..." << std::endl;
// TopoDS_Shape aShape;
// int ret = performBlend(slab.Shape(), radius, aShape);
// if (ret) return 1;
// if (index < argc) DBRep::Set(argv[index++], aShape);
-// cout << "Blending Successfully Done ! Now Triangulating ..." << endl;
+// std::cout << "Blending Successfully Done ! Now Triangulating ..." << std::endl;
// performTriangulation(aShape);
}
catch ( Standard_Failure const& )
math_Vector Vector(LowerVector, UpperVector, InitialValueVector);
math_Matrix Matrix(LowerRowMatrix, UpperRowMatrix, LowerColMatrix, UpperColMatrix, InitialValueMatrix);
- //Vector.Dump(cout);
- //cout<<endl;
+ //Vector.Dump(std::cout);
+ //std::cout<<std::endl;
- //Matrix.Dump(cout);
- //cout<<endl;
+ //Matrix.Dump(std::cout);
+ //std::cout<<std::endl;
Vector1.Multiply(Vector, Matrix);
- //Vector1.Dump(cout);
+ //Vector1.Dump(std::cout);
Standard_SStream aSStream1;
Vector1.Dump(aSStream1);
di << aSStream1;
}
Vector2.TMultiply(Vector, Matrix);
- //Vector2.Dump(cout);
+ //Vector2.Dump(std::cout);
Standard_SStream aSStream2;
Vector2.Dump(aSStream2);
di << aSStream2;
return -1;
}
Standard_GUID guid(argv[1]);
- //guid.ShallowDump(cout);
+ //guid.ShallowDump(std::cout);
Standard_SStream aSStream;
guid.ShallowDump(aSStream);
di << aSStream;
return -1;
}
const Standard_GUID& guid = XCAFDoc::ShapeRefGUID ();
- //guid.ShallowDump(cout);
+ //guid.ShallowDump(std::cout);
Standard_SStream aSStream;
guid.ShallowDump(aSStream);
di << aSStream;
return -1;
}
const Standard_GUID& guid = XCAFDoc::AssemblyGUID ();
- //guid.ShallowDump(cout);
+ //guid.ShallowDump(std::cout);
Standard_SStream aSStream;
guid.ShallowDump(aSStream);
di << aSStream;
return -1;
}
const Standard_GUID& guid = DDataStd_DrawPresentation::GetID() ;
- //guid.ShallowDump(cout);
+ //guid.ShallowDump(std::cout);
Standard_SStream aSStream;
guid.ShallowDump(aSStream);
di << aSStream;
}
catch (Standard_Failure const& anException) {
std::cout << "Caught successfully: ";
- std::cout << anException << endl;
+ std::cout << anException << std::endl;
}
return 0;
}
pv[i] = new math_Vector (1, sz, val);
if ((i % (nb/10)) == 0) {
di<<" "<<i;
- //cout.flush();
+ //std::cout.flush();
di<<"\n";
}
}
delete pv[i];
if ((i % (nb/10)) == 0) {
di<<" "<<i;
- //cout.flush();
+ //std::cout.flush();
di<<"\n";
}
}
// check that points are coinsiding
Standard_Real error_dist = pnt.Distance(check_pnt);
if (error_dist > Precision::Confusion()) {
- //cout.precision(3);
+ //std::cout.precision(3);
di<<"error_dist = "<<error_dist<<
" ( "<<error_dist/need_length*100<<" %)\n";
return 0;
{
if (argc != 1)
{
- cout << "Usage : " << argv[0] << "\n";
+ std::cout << "Usage : " << argv[0] << "\n";
return 1;
}
Standard_Boolean Succes;
{//==== Test Divide ByZero (Integer) ========================================
try{
OCC_CATCH_SIGNALS
- cout << "(Integer) Divide By Zero..." << endl;
+ std::cout << "(Integer) Divide By Zero..." << std::endl;
di << "(Integer) Divide By Zero...";
- //cout.flush();
+ //std::cout.flush();
di << "\n";
Standard_Integer res, a =4, b = 0 ;
res = a / b;
{//==== Test Divide ByZero (Real) ===========================================
try{
OCC_CATCH_SIGNALS
- cout << "(Real) Divide By Zero..." << endl;
+ std::cout << "(Real) Divide By Zero..." << std::endl;
di << "(Real) Divide By Zero...";
- //cout.flush();
+ //std::cout.flush();
di << "\n";
Standard_Real res, a= 4.0, b=0.0;
res = a / b;
di << "Caught, OK\n";
}
catch(Standard_Failure const& anException) {
- //cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << endl;
+ //std::cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << std::endl;
di << " Caught (";
di << anException.GetMessageString();
di << ")... KO\n";
{//==== Test Overflow (Integer) =============================================
try{
OCC_CATCH_SIGNALS
- cout << "(Integer) Overflow..." << endl;
+ std::cout << "(Integer) Overflow..." << std::endl;
di << "(Integer) Overflow...";
- //cout.flush();
+ //std::cout.flush();
di << "\n";
Standard_Integer res, i=IntegerLast();
res = i + 1;
- //++++ cout << " -- "<<res<<"="<<i<<"+1 Does not Caught... KO"<< endl;
+ //++++ std::cout << " -- "<<res<<"="<<i<<"+1 Does not Caught... KO"<< std::endl;
//++++ Succes = Standard_False;
di << "Not caught: " << i << " + 1 = " << res << ", still OK\n";
}
di << "Caught, OK\n";
}
catch(Standard_Failure const& anException) {
- //cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << endl;
+ //std::cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << std::endl;
di << " Caught (";
di << anException.GetMessageString();
di << ")... KO\n";
{//==== Test Overflow (Real) ================================================
try{
OCC_CATCH_SIGNALS
- cout << "(Real) Overflow..." << endl;
+ std::cout << "(Real) Overflow..." << std::endl;
di << "(Real) Overflow...";
- //cout.flush();
+ //std::cout.flush();
di << "\n";
Standard_Real res, r=RealLast();
res = r * r;
di << "Caught, OK\n";
}
catch(Standard_Failure const& anException) {
- //cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << endl;
+ //std::cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << std::endl;
di << " Caught (";
di << anException.GetMessageString();
di << ")... KO\n";
{//==== Test Underflow (Real) ===============================================
try{
OCC_CATCH_SIGNALS
- cout << "(Real) Underflow" << endl; // to have message in log even if process crashed
+ std::cout << "(Real) Underflow" << std::endl; // to have message in log even if process crashed
di << "(Real) Underflow";
- //cout.flush();
+ //std::cout.flush();
di << "\n";
Standard_Real res, r = RealSmall();
res = r * r;
//res = res + 1.;
- //++++ cout<<"-- "<<res<<"="<<r<<"*"<<r<<" Does not Caught... KO"<<endl;
+ //++++ std::cout<<"-- "<<res<<"="<<r<<"*"<<r<<" Does not Caught... KO"<<std::endl;
//++++ Succes = Standard_False;
di << "Not caught: " << r << "*" << r << " = " << res << ", still OK\n";
}
Succes = Standard_False;
}
catch(Standard_Failure const& anException) {
- //cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << endl;
+ //std::cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << std::endl;
di << " Caught (";
di << anException.GetMessageString();
di << ")... KO\n";
{//==== Test Invalid Operation (Real) ===============================================
try{
OCC_CATCH_SIGNALS
- cout << "(Real) Invalid Operation..." << endl;
+ std::cout << "(Real) Invalid Operation..." << std::endl;
di << "(Real) Invalid Operation...";
- //cout.flush();
+ //std::cout.flush();
di << "\n";
Standard_Real res, r=-1;
res = sqrt(r);
di << "Caught, OK\n";
}
catch(Standard_Failure const& anException) {
- //cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << endl;
+ //std::cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << std::endl;
di << " Caught (";
di << anException.GetMessageString();
di << ")... KO\n";
{//==== Test Access Violation ===============================================
try {
OCC_CATCH_SIGNALS
- cout << "Segmentation Fault..." << endl;
+ std::cout << "Segmentation Fault..." << std::endl;
di << "Segmentation Fault...";
- //cout.flush();
+ //std::cout.flush();
di << "\n";
int* pint=NULL;
*pint = 4;
{
di << "Caught, OK\n";
} catch(Standard_Failure const& anException) {
- //cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << endl;
+ //std::cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << std::endl;
di << " Caught (";
di << anException.GetMessageString();
di << ")... KO\n";
{//==== Test Stack Overflow ===============================================
try {
OCC_CATCH_SIGNALS
- cout << "Stack Overflow..." << endl;
+ std::cout << "Stack Overflow..." << std::endl;
di << "Stack Overflow...";
- //cout.flush();
+ //std::cout.flush();
di << "\n";
StackOverflow();
di << "Error - no exception is raised!\n";
di << "Caught, OK\n";
}
catch(Standard_Failure const& anException) {
- //cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << endl;
+ //std::cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << std::endl;
di << " Caught (";
di << anException.GetMessageString();
di << ")... KO\n";
}
catch (Standard_Failure const& anException) {
di << "Failed :\n\n";
- //cout << Standard_Failure::Caught() << endl;
+ //std::cout << Standard_Failure::Caught() << std::endl;
di << anException.GetMessageString();
}
di << argv[0] << " : Finish\n";
Handle(TDataStd_RealArray) array;
if (label1.FindAttribute(TDataStd_RealArray::GetID(), array) &&
array->Lower() == LOWER && array->Upper() == UPPER)
- cout<<"1: OK"<<endl;
+ std::cout<<"1: OK"<<std::endl;
else
{
- cout<<"1: Failed.."<<endl;
+ std::cout<<"1: Failed.."<<std::endl;
return 1;
}
doc->CommitCommand();
{
if (array->Value(i) != i)
{
- cout<<"2: Failed.."<<endl;
+ std::cout<<"2: Failed.."<<std::endl;
return 2;
}
}
- cout<<"2: OK"<<endl;
+ std::cout<<"2: OK"<<std::endl;
doc->CommitCommand();
//! 3. Re-init the array
array->Init(LOWER + 2, UPPER + 4);
if (array->Lower() != LOWER + 2 && array->Upper() != UPPER + 4)
{
- cout<<"3: Failed.."<<endl;
+ std::cout<<"3: Failed.."<<std::endl;
return 3;
}
for (i = LOWER + 2; i <= UPPER + 4; i++)
{
if (array->Value(i) != i)
{
- cout<<"3: Failed.."<<endl;
+ std::cout<<"3: Failed.."<<std::endl;
return 3;
}
}
- cout<<"3: OK"<<endl;
+ std::cout<<"3: OK"<<std::endl;
doc->CommitCommand();
//! 4. Change array
{
if (array->Value(i) != i)
{
- cout<<"4: Failed.."<<endl;
+ std::cout<<"4: Failed.."<<std::endl;
return 4;
}
}
- cout<<"4: OK"<<endl;
+ std::cout<<"4: OK"<<std::endl;
doc->CommitCommand();
//! 5. Copy the array
copier.Perform();
if (!copier.IsDone())
{
- cout<<"5: Failed.."<<endl;
+ std::cout<<"5: Failed.."<<std::endl;
return 5;
}
Handle(TDataStd_RealArray) array2;
if (!label2.FindAttribute(TDataStd_RealArray::GetID(), array2))
{
- cout<<"5: Failed.."<<endl;
+ std::cout<<"5: Failed.."<<std::endl;
return 5;
}
for (i = LOWER + 5; i <= UPPER + 5; i++)
{
if (array->Value(i) != i)
{
- cout<<"5: Failed.."<<endl;
+ std::cout<<"5: Failed.."<<std::endl;
return 5;
}
}
- cout<<"5: OK"<<endl;
+ std::cout<<"5: OK"<<std::endl;
doc->CommitCommand();
//! 6. Undo/Redo
if (!label1.FindAttribute(TDataStd_RealArray::GetID(), array) ||
label2.FindAttribute(TDataStd_RealArray::GetID(), array2))
{
- cout<<"6.a: Failed.."<<endl;
+ std::cout<<"6.a: Failed.."<<std::endl;
return 6;
}
//! 6.b: undoes the 4th action: the array should be changed to (lower+2,upper+4)
array->Lower() != LOWER + 2 ||
array->Upper() != UPPER + 4)
{
- cout<<"6.b: Failed.."<<endl;
+ std::cout<<"6.b: Failed.."<<std::endl;
return 6;
}
for (i = LOWER + 2; i <= UPPER + 4; i++)
{
if (array->Value(i) != i)
{
- cout<<"6.b: Failed.."<<endl;
+ std::cout<<"6.b: Failed.."<<std::endl;
return 6;
}
}
array->Lower() != LOWER ||
array->Upper() != UPPER)
{
- cout<<"6.c: Failed.."<<endl;
+ std::cout<<"6.c: Failed.."<<std::endl;
return 6;
}
for (i = LOWER; i <= UPPER; i++)
{
if (array->Value(i) != i)
{
- cout<<"6.c: Failed.."<<endl;
+ std::cout<<"6.c: Failed.."<<std::endl;
return 6;
}
}
array->Lower() != LOWER ||
array->Upper() != UPPER)
{
- cout<<"6.d: Failed.."<<endl;
+ std::cout<<"6.d: Failed.."<<std::endl;
return 6;
}
for (i = LOWER; i <= UPPER; i++)
{
if (array->Value(i) != i)
{
- cout<<"6.d: Failed.."<<endl;
+ std::cout<<"6.d: Failed.."<<std::endl;
return 6;
}
}
- cout<<"6: OK"<<endl;
+ std::cout<<"6: OK"<<std::endl;
//! 7. Re-set the array
doc->OpenCommand();
array = TDataStd_RealArray::Set(label1, LOWER + 1, UPPER + 1);
if (array->Lower() != LOWER + 1 && array->Upper() != UPPER + 1)
{
- cout<<"7: Failed.."<<endl;
+ std::cout<<"7: Failed.."<<std::endl;
return 7;
}
for (i = LOWER + 1; i <= UPPER + 1; i++)
{
if (array->Value(i) != i)
{
- cout<<"7: Failed.."<<endl;
+ std::cout<<"7: Failed.."<<std::endl;
return 7;
}
}
- cout<<"7: OK"<<endl;
+ std::cout<<"7: OK"<<std::endl;
doc->CommitCommand();
//! 8.Test of speed: set LOWER and UPPER equal to great integer number and
GeomAdaptor_Curve adaptor_spline(spline);
GCPnts_AbscissaPoint temp;
l_abcissa=temp.Length(adaptor_spline);
- cout<<"Length Spline(abcissa_Pnt): "<<l_abcissa<<endl;
+ std::cout<<"Length Spline(abcissa_Pnt): "<<l_abcissa<<std::endl;
//length!! 2.
TopoDS_Edge edge = BRepBuilderAPI_MakeEdge (spline);
GProp_GProps prop;
BRepGProp::LinearProperties(edge,prop);
l_gprop=prop.Mass();
- cout<<"Length Spline(GProp_GProps): "<<l_gprop<<endl;
+ std::cout<<"Length Spline(GProp_GProps): "<<l_gprop<<std::endl;
- cout<<"Difference (abcissa_Pnt<->GProp_GProps): "<<l_gprop-l_abcissa<<endl;
+ std::cout<<"Difference (abcissa_Pnt<->GProp_GProps): "<<l_gprop-l_abcissa<<std::endl;
return 0;
}
BRepGProp::VolumeProperties (SubvolumeSolid(l), subvolumeVProps);
const Standard_Real vol = subvolumeVProps.Mass();
const Standard_Boolean err = (vol > SubvolumeVol(l)) || (vol <= 0.0);
- //cout << (err? "ERROR" : "Info") << ": final subvolume " << l << " volume = " << vol << endl;
+ //std::cout << (err? "ERROR" : "Info") << ": final subvolume " << l << " volume = " << vol << std::endl;
if (err)
di << "ERROR: final subvolume " << l << " volume = " << vol << "\n";
else
else
di << "Faulty : The convertion is incorrect : " << out.ToCString() << "\n";
di << out.ToCString() << "\n";
-// cout << aPath->Trek() << " !" << endl;
+// std::cout << aPath->Trek() << " !" << std::endl;
return 0;
}
Handle(AIS_InteractiveContext) myAISContext = ViewerTest::GetAISContext();
if(myAISContext.IsNull()) {
- cerr << "use 'vinit' command before " << argv[0] << "\n";
+ std::cerr << "use 'vinit' command before " << argv[0] << "\n";
return -1;
}
double Xv,Yv;
myV3dView->Project(20,20,0,Xv,Yv);
-// cout<<Xv<<"\t"<<Yv<<endl;
+// std::cout<<Xv<<"\t"<<Yv<<std::endl;
Standard_Integer Xp,Yp;
myV3dView->Convert(Xv,Yv,Xp,Yp);
-// cout<<Xp<<"\t"<<Yp<<endl;
+// std::cout<<Xp<<"\t"<<Yp<<std::endl;
myAISContext->MoveTo (Xp,Yp, myV3dView, Standard_True);
// if (myAISContext->IsHilighted(anAISShape))
-// cout << "has hilighted shape : OK" << endl;
-// else cout << "has hilighted shape : bugged - Faulty " << endl;
+// std::cout << "has hilighted shape : OK" << std::endl;
+// else std::cout << "has hilighted shape : bugged - Faulty " << std::endl;
return 0;
}
//{
// if( argc != 1)
// {
-// cout << "Usage : " << argv[0] << endl;
+// std::cout << "Usage : " << argv[0] << std::endl;
// return 1;
// }
//
// }
// catch ( Standard_Failure ) {
// isCaught = Standard_True;
-// cout << "OCC1723 Case 1 : OK" << endl;
+// std::cout << "OCC1723 Case 1 : OK" << std::endl;
// }
// }
// isBad = isBad || !isCaught;
// }
// catch ( Standard_Failure ) {
// isCaught = Standard_True;
-// cout << "OCC1723 Case 2 : OK" << endl;
+// std::cout << "OCC1723 Case 2 : OK" << std::endl;
// }
// }
// isBad = isBad || !isCaught;
// }
// catch ( Standard_Failure ) {
// isCaught = Standard_True;
-// cout << "OCC1723 Case 3 : OK" << endl;
+// std::cout << "OCC1723 Case 3 : OK" << std::endl;
// }
// }
// // MSV: underflow is not caught
// }
// catch ( Standard_Failure ) {
// isCaught = Standard_True;
-// cout << "OCC1723 Case 4 : OK" << endl;
+// std::cout << "OCC1723 Case 4 : OK" << std::endl;
// }
// }
// isBad = isBad || !isCaught;
//
// if (isBad) {
-// cout << "OCC1723 : Error" << endl;
+// std::cout << "OCC1723 : Error" << std::endl;
// } else {
-// cout << "OCC1723 : OK" << endl;
+// std::cout << "OCC1723 : OK" << std::endl;
// }
//
// return 0;
TCollection_ExtendedString ExtendedString;
TCollection_ExtendedString InputString(argv[1]);
ExtendedString.Cat(InputString);
- //ExtendedString.Print(cout);
+ //ExtendedString.Print(std::cout);
Standard_SStream aSStream;
ExtendedString.Print(aSStream);
di << aSStream;
Standard_Real xmin, ymin, zmin, xmax, ymax, zmax;
Box.Get (xmin, ymin, zmin, xmax, ymax, zmax);
- //cout.precision(16);
- //cout << "Resulting dimensions: Xmin = " << xmin << " , Xmax = " << xmax << " , Tolerance = " << tol << endl;
+ //std::cout.precision(16);
+ //std::cout << "Resulting dimensions: Xmin = " << xmin << " , Xmax = " << xmax << " , Tolerance = " << tol << std::endl;
di << "Resulting dimensions: Xmin = " << xmin << " , Xmax = " << xmax << " , Tolerance = " << tol << "\n";
if ( Abs ( xmin + tol ) > 1e-10 )
di << "TEST FAILED: Xmin must be equal to -1e3!\n";
else
di << "TEST OK\n";
- //cout << "TEST FAILED: Xmin must be equal to -1e3!" << endl;
- //cout << "TEST OK" << endl;
+ //std::cout << "TEST FAILED: Xmin must be equal to -1e3!" << std::endl;
+ //std::cout << "TEST OK" << std::endl;
//di << "TEST FAILED: Xmin must be equal to -1e3!\n";
//di << "TEST OK\n";
return 0;
IntRes2d_SequenceOfIntersectionPoint points2d;
TColgp_SequenceOfPnt points3d;
- cout << "\n j =" << j << ", CheckSelfIntersectingEdge = " <<
+ std::cout << "\n j =" << j << ", CheckSelfIntersectingEdge = " <<
advWA->CheckSelfIntersectingEdge(j, points2d, points3d);
GeomConvert_ApproxSurface aGAS (info->surf, 1e-4, GeomAbs_C1, GeomAbs_C1, 9, 9, 100, 1);
if (!aGAS.IsDone()) {
- cout << "Error: ApproxSurface is not done!" << endl;
+ std::cout << "Error: ApproxSurface is not done!" << std::endl;
return 0;
}
const Handle(Geom_BSplineSurface)& aBSurf = aGAS.Surface();
if (aBSurf.IsNull()) {
- cout << "Error: BSplineSurface is not created!" << endl;
+ std::cout << "Error: BSplineSurface is not created!" << std::endl;
return 0;
}
- cout << "Number of UPoles:" << aBSurf->NbUPoles();
+ std::cout << "Number of UPoles:" << aBSurf->NbUPoles();
if (aBSurf->NbUPoles() == info->nbupoles)
{
- cout << ": OK" << endl;
+ std::cout << ": OK" << std::endl;
return data; // any non-null pointer
}
else
{
- cout << ": Error, must be " << info->nbupoles << endl;
+ std::cout << ": Error, must be " << info->nbupoles << std::endl;
return 0;
}
}
static Standard_Integer OCC23952sweep (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
{
if (argc != 3) {
- cout << "Error: invalid number of arguments" << endl;
+ std::cout << "Error: invalid number of arguments" << std::endl;
return 1;
}
aStorage.surf = DrawTrSurf::GetSurface(argv[2]);
if (aStorage.surf.IsNull())
{
- cout << "Error: " << argv[2] << " is not a DRAW surface!" << endl;
+ std::cout << "Error: " << argv[2] << " is not a DRAW surface!" << std::endl;
return 0;
}
GeomInt_IntSS anInter;
anInter.Perform (info->surf1, info->surf2, Precision::Confusion(), Standard_True);
if (!anInter.IsDone()) {
- cout << "An intersection is not done!" << endl;
+ std::cout << "An intersection is not done!" << std::endl;
return 0;
}
- cout << "Number of Lines:" << anInter.NbLines();
+ std::cout << "Number of Lines:" << anInter.NbLines();
if (anInter.NbLines() == info->nbsol)
{
- cout << ": OK" << endl;
+ std::cout << ": OK" << std::endl;
return data; // any non-null pointer
}
else
{
- cout << ": Error, must be " << info->nbsol << endl;
+ std::cout << ": Error, must be " << info->nbsol << std::endl;
return 0;
}
}
static Standard_Integer OCC23952intersect (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
{
if (argc != 4) {
- cout << "Error: invalid number of arguments" << endl;
+ std::cout << "Error: invalid number of arguments" << std::endl;
return 1;
}
aStorage.surf2 = DrawTrSurf::GetSurface(argv[3]);
if (aStorage.surf1.IsNull() || aStorage.surf2.IsNull())
{
- cout << "Error: Either " << argv[2] << " or " << argv[3] << " is not a DRAW surface!" << endl;
+ std::cout << "Error: Either " << argv[2] << " or " << argv[3] << " is not a DRAW surface!" << std::endl;
return 0;
}
di<<"Usage: "<<a[0]<<" invalid number of arguments\n";
return 1;
}
-// cout <<"FileName1: " << argv[1] <<endl;
+// std::cout <<"FileName1: " << argv[1] <<std::endl;
TopoDS_Shape aShape = DBRep::Get (a[1]);
aF.open(argv[1]);
if (!aF.is_open())
{
- cout << "cannot create file " << argv[1] << endl;
+ std::cout << "cannot create file " << argv[1] << std::endl;
return 1;
}
}
theDI << "Conversion was done OK";
if (aF.is_open())
{
- cout << "the file " << argv[1] << " has been created" << endl;
+ std::cout << "the file " << argv[1] << " has been created" << std::endl;
aF.close();
}
return 0;
{
if (theNArg != 2)
{
- cout << "Use: " << theArgVal[0] << " shape" << endl;
+ std::cout << "Use: " << theArgVal[0] << " shape" << std::endl;
return 1;
}
{
if (theNArg != 5)
{
- cout << "Use: " << theArgVal[0] <<" surface curve start end" << endl;
+ std::cout << "Use: " << theArgVal[0] <<" surface curve start end" << std::endl;
return 1;
}
{
if (theNArg != 4)
{
- cout << "Use: " << theArgVal[0] << " face point start_pnt2d" << endl;
+ std::cout << "Use: " << theArgVal[0] << " face point start_pnt2d" << std::endl;
return 1;
}
{
Standard_Boolean isSame (Standard_False);
if(Standard_GUID::IsEqual(aGuidNull, aGuid2)) {
- aGuid2.ShallowDump(cout);
+ aGuid2.ShallowDump(std::cout);
isSame = Standard_True;
} else {
- aGuid2.ShallowDump(cout);
- cout <<endl;
+ aGuid2.ShallowDump(std::cout);
+ std::cout <<std::endl;
}
return isSame;
}
{
if (theArgc < 2)
{
- cout << "Error: give argument indicating type of map (map, doublemap, datamap, indexedmap, indexeddatamap)" << endl;
+ std::cout << "Error: give argument indicating type of map (map, doublemap, datamap, indexedmap, indexeddatamap)" << std::endl;
return 1;
}
AllocDummyArr<NCollection_IndexedDataMap<int, int> > (theDI, nbm1, nbm2);
else
{
- cout << "Error: unrecognized argument " << theArgv[1] << endl;
+ std::cout << "Error: unrecognized argument " << theArgv[1] << std::endl;
return 1;
}
return 0;
return 1;
}
- std::ifstream aFile (theArgVec[2], ios::in);
+ std::ifstream aFile (theArgVec[2], std::ios::in);
if (!aFile)
{
theDi << "unable to open " << theArgVec[2] << " for input\n";
Handle(TDF_Delta) D = IDL.Value();
TCollection_ExtendedString S(Names[i-1]);
D->SetName(S);
-// cout<<" U"<<i<<"="<<D->Name()<<endl;
+// std::cout<<" U"<<i<<"="<<D->Name()<<std::endl;
}
aDocument->Undo();
for(IDL.Initialize(Us),i=1;IDL.More();IDL.Next(),i++){
Handle(TDF_Delta) D = IDL.Value();
-// cout<<" U"<<i<<"="<<D->Name()<<endl;
+// std::cout<<" U"<<i<<"="<<D->Name()<<std::endl;
}
TCollection_ExtendedString n2name ("n2");
}
else {
if (prs->HasOwnWidth()){
-// cout << "Width = " << prs->Width() << endl;
+// std::cout << "Width = " << prs->Width() << std::endl;
di<<prs->Width();
}
else{
Handle(AIS_InteractiveContext) aContext = ViewerTest::GetAISContext();
if(aContext.IsNull())
{
- cerr << "use 'vinit' command before " << argv[0] << "\n";
+ std::cerr << "use 'vinit' command before " << argv[0] << "\n";
return -1;
}
if(argc < 4) {
TDF_Label Label;
Standard_Boolean Found = DDF::AddLabel (DF, LabelName, Label);
if (!Found) {
- cout <<"no labels"<<endl;
+ std::cout <<"no labels"<<std::endl;
return S;
}
if (Found) {
Label.FindAttribute(TNaming_NamedShape::GetID(),NS);
S = TNaming_Tool::CurrentShape(NS);
if (S.IsNull())
- cout <<"current shape from "<< LabelName <<" is deleted"<<endl;
+ std::cout <<"current shape from "<< LabelName <<" is deleted"<<std::endl;
return S;
}
return S;
const char** arg = (const char**)theArguments;
Handle(TDF_Data) DF;
if (!DDF::GetDF(arg[1],DF)) {
- cout<<"Wrong df"<<endl;
+ std::cout<<"Wrong df"<<std::endl;
return Standard_False;
}
DDF::AddLabel(DF,arg[2],theLabel);
if (!theLabel.IsNull()) return Standard_True;
- cout<<"Wrong entry"<<endl;
+ std::cout<<"Wrong entry"<<std::endl;
return Standard_False;
}
return 0;
}
- //TNaming::Print(NS->Evolution(),cout);
+ //TNaming::Print(NS->Evolution(),std::cout);
Standard_SStream aSStream;
TNaming::Print(NS->Evolution(),aSStream);
di << aSStream;
TCollection_AsciiString Entry;
const TNaming_Name& AName = naming->GetName();
- //TNaming::Print(AName.Type(),cout);
+ //TNaming::Print(AName.Type(),std::cout);
Standard_SStream aSStream1;
TNaming::Print(AName.Type(),aSStream1);
di << aSStream1;
di << " ";
- //TopAbs::Print(AName.ShapeType(),cout);
+ //TopAbs::Print(AName.ShapeType(),std::cout);
Standard_SStream aSStream2;
TopAbs::Print(AName.ShapeType(),aSStream2);
di << aSStream2;
TR.Perform();
if(TR.IsDone()){
-// cout << "QADNaming_CopyShape:: Copy is Done " << endl;
+// std::cout << "QADNaming_CopyShape:: Copy is Done " << std::endl;
DNaming_DataMapIteratorOfDataMapOfShapeOfName itrn(aDMapOfShapeOfName);
for(;itrn.More();itrn.Next()) {
}
printAllMeters(theDI);
if (iFail1 || iFail2)
- cout << "Warning : N map failed " << iFail1 << " times, T map - " <<
- iFail2 << endl;
+ std::cout << "Warning : N map failed " << iFail1 << " times, T map - " <<
+ iFail2 << std::endl;
}
// ===================== Test perform of IndexedMap type ==========================
Standard_Integer i;
printf ("Info: testing Map(l=%d)\n", iExt);
- theM.Statistics(cout);
+ theM.Statistics(std::cout);
// Resize
theM.ReSize(8);
- theM.Statistics(cout);
- cout.flush();
+ theM.Statistics(std::cout);
+ std::cout.flush();
// Constructor
////////////////////////////////QANCollection_Map aM;
QANCollection_MapFunc aM;
else
{
aM.Remove(aKey);
- cout << " successfully removed item, l=%d\n" << aM.Size() << "\n";
+ std::cout << " successfully removed item, l=%d\n" << aM.Size() << "\n";
}
// Copy constructor (including operator=)
////////////////////////////////QANCollection_Map aM2 = QANCollection_Map(aM);
Standard_Integer i;
printf ("Info: testing DataMap(l=%d)\n", iExt);
- theM.Statistics(cout);
+ theM.Statistics(std::cout);
// Resize
theM.ReSize(8);
- theM.Statistics(cout);
- cout.flush();
+ theM.Statistics(std::cout);
+ std::cout.flush();
// Constructor
////////////////////////////////QANCollection_DataMap aM;
QANCollection_DataMapFunc aM;
Standard_Integer i;
printf ("Info: testing DoubleMap(l=%d)\n", iExt);
- theM.Statistics(cout);
+ theM.Statistics(std::cout);
// Resize
theM.ReSize(8);
- theM.Statistics(cout);
- cout.flush();
+ theM.Statistics(std::cout);
+ std::cout.flush();
// Constructor
////////////////////////////////QANCollection_DoubleMap aM;
QANCollection_DoubleMapFunc aM;
Standard_Integer i;
printf ("Info: testing IndexedMap(l=%d)\n", iExt);
- theM.Statistics(cout);
+ theM.Statistics(std::cout);
// Resize
theM.ReSize(8);
- theM.Statistics(cout);
- cout.flush();
+ theM.Statistics(std::cout);
+ std::cout.flush();
// Constructor
////////////////////////////////QANCollection_IndexedMap aM;
QANCollection_IndexedMapFunc aM;
Standard_Integer i;
printf ("Info: testing IndexedDataMap(l=%d)\n", iExt);
- theM.Statistics(cout);
+ theM.Statistics(std::cout);
// Resize
theM.ReSize(8);
- theM.Statistics(cout);
- cout.flush();
+ theM.Statistics(std::cout);
+ std::cout.flush();
// Constructor
////////////////////////////////QANCollection_IDMap aM;
QANCollection_IDMapFunc aM;
aVec.Append(5);
if (aVec(0) != 5)
- std::cout << "Error: wrong value in original vector!" << endl;
+ std::cout << "Error: wrong value in original vector!" << std::endl;
aVec2.Append(5);
if (aVec2(0) != 5)
- std::cout << "Error: wrong value in copy-constructed vector!" << endl;
+ std::cout << "Error: wrong value in copy-constructed vector!" << std::endl;
aVec3.Append(5);
if (aVec3(0) != 5)
- std::cout << "Error: wrong value in copied vector!" << endl;
- std::cout << "Test OK" << endl;
+ std::cout << "Error: wrong value in copied vector!" << std::endl;
+ std::cout << "Test OK" << std::endl;
return 0;
}
}
catch (Standard_Failure const& anException) {
- cout << anException << endl;
+ std::cout << anException << std::endl;
}
}
Standard_Real DC, DI;
Standard_Integer i;
-cout << "definition color tests\n----------------------\n";
+std::cout << "definition color tests\n----------------------\n";
Quantity_Color C1;
Quantity_Color C2 (Quantity_NOC_ROYALBLUE2);
const Standard_Real DELTA = 1.0e-4;
-cout << "Get values and names of color tests\n-----------------------------------\n";
+std::cout << "Get values and names of color tests\n-----------------------------------\n";
C1.Values (R, G, B, Quantity_TOC_RGB);
if ( (R!=1.0) || (G!=1.0) || (B!=0.0) ) {
- cout << "TEST_ERROR : Values () bad default color\n";
- cout << "R, G, B values: " << R << " " << G << " " << B << "\n";
+ std::cout << "TEST_ERROR : Values () bad default color\n";
+ std::cout << "R, G, B values: " << R << " " << G << " " << B << "\n";
}
if ( (C1.Red ()!=1.0) || (C1.Green ()!=1.0) || (C1.Blue ()!=0.0) ) {
- cout << "TEST_ERROR : Values () bad default color\n";
- cout << "R, G, B values: " << C1.Red () << " " << C1.Green ()
+ std::cout << "TEST_ERROR : Values () bad default color\n";
+ std::cout << "R, G, B values: " << C1.Red () << " " << C1.Green ()
<< " " << C1.Blue () << "\n";
}
if (strcmp (Quantity_Color::StringName (C1.Name()), cyan) != 0)
- cout << "TEST_ERROR : StringName () " <<
+ std::cout << "TEST_ERROR : StringName () " <<
Quantity_Color::StringName (C1.Name()) <<
" != YELLOW\n";
if ( (Abs (RR-R) > DELTA) ||
(Abs (GG-G) > DELTA) ||
(Abs (BB-B) > DELTA) ) {
- cout << "TEST_ERROR : Values () bad default color\n";
- cout << "R, G, B values: " << R << " " << G << " " << B << "\n";
+ std::cout << "TEST_ERROR : Values () bad default color\n";
+ std::cout << "R, G, B values: " << R << " " << G << " " << B << "\n";
}
if (C2 != C1) {
- cout << "TEST_ERROR : IsDifferent ()\n";
+ std::cout << "TEST_ERROR : IsDifferent ()\n";
}
if (C3 == C1) {
- cout << "TEST_ERROR : IsEqual ()\n";
+ std::cout << "TEST_ERROR : IsEqual ()\n";
}
- cout << "Distance C1,C2 " << C1.Distance (C2) << "\n";
- cout << "Distance C1,C3 " << C1.Distance (C3) << "\n";
- cout << "Distance C2,C3 " << C2.Distance (C3) << "\n";
- cout << "SquareDistance C1,C2 " << C1.SquareDistance (C2) << "\n";
- cout << "SquareDistance C1,C3 " << C1.SquareDistance (C3) << "\n";
- cout << "SquareDistance C2,C3 " << C2.SquareDistance (C3) << "\n";
+ std::cout << "Distance C1,C2 " << C1.Distance (C2) << "\n";
+ std::cout << "Distance C1,C3 " << C1.Distance (C3) << "\n";
+ std::cout << "Distance C2,C3 " << C2.Distance (C3) << "\n";
+ std::cout << "SquareDistance C1,C2 " << C1.SquareDistance (C2) << "\n";
+ std::cout << "SquareDistance C1,C3 " << C1.SquareDistance (C3) << "\n";
+ std::cout << "SquareDistance C2,C3 " << C2.SquareDistance (C3) << "\n";
if (strcmp (Quantity_Color::StringName (C2.Name()), blue) != 0)
- cout << "TEST_ERROR : StringName () " <<
+ std::cout << "TEST_ERROR : StringName () " <<
Quantity_Color::StringName (C2.Name()) <<
" != ROYALBLUE2\n";
-cout << "conversion rgbhls tests\n-----------------------\n";
+std::cout << "conversion rgbhls tests\n-----------------------\n";
Quantity_Color::RgbHls (R, G, B, H, L, S);
Quantity_Color::HlsRgb (H, L, S, R, G, B);
RR=0.262745; GG=0.431373; BB=0.933333;
if ( (Abs (RR-R) > DELTA) ||
(Abs (GG-G) > DELTA) ||
(Abs (BB-B) > DELTA) ) {
- cout << "TEST_ERROR : RgbHls or HlsRgb bad conversion\n";
- cout << "RGB init : " << RR << " " << GG << " " << BB << "\n";
- cout << "RGB values : " << R << " " << G << " " << B << "\n";
- cout << "Difference RGB : "
+ std::cout << "TEST_ERROR : RgbHls or HlsRgb bad conversion\n";
+ std::cout << "RGB init : " << RR << " " << GG << " " << BB << "\n";
+ std::cout << "RGB values : " << R << " " << G << " " << B << "\n";
+ std::cout << "Difference RGB : "
<< RR-R << " " << GG-G << " " << BB-B << "\n";
}
-cout << "distance tests\n--------------\n";
+std::cout << "distance tests\n--------------\n";
R = (float ) 0.9568631; G = (float ) 0.6431371; B = (float ) 0.3764711;
C2.SetValues (R, G, B, Quantity_TOC_RGB);
if (C2.Distance (C3) > DELTA) {
- cout << "TEST_ERROR : Distance () bad result\n";
- cout << "Distance C2 and C3 : " << C2.Distance (C3) << "\n";
+ std::cout << "TEST_ERROR : Distance () bad result\n";
+ std::cout << "Distance C2 and C3 : " << C2.Distance (C3) << "\n";
}
C2.Delta (C3, DC, DI);
if (Abs (DC) > DELTA)
- cout << "TEST_ERROR : Delta () bad result for DC\n";
+ std::cout << "TEST_ERROR : Delta () bad result for DC\n";
if (Abs (DI) > DELTA)
- cout << "TEST_ERROR : Delta () bad result for DI\n";
+ std::cout << "TEST_ERROR : Delta () bad result for DI\n";
-cout << "name tests\n----------\n";
+std::cout << "name tests\n----------\n";
R = (float ) 0.9568631; G = (float ) 0.6431371; B = (float ) 0.3764711;
C2.SetValues (R, G, B, Quantity_TOC_RGB);
if (strcmp (Quantity_Color::StringName (C2.Name()), brown) != 0)
- cout << "TEST_ERROR : StringName () " <<
+ std::cout << "TEST_ERROR : StringName () " <<
Quantity_Color::StringName (C2.Name()) <<
" != SANDYBROWN\n";
-cout << "contrast change tests\n---------------------\n";
+std::cout << "contrast change tests\n---------------------\n";
for (i=1; i<=10; i++) {
C2.ChangeContrast (10.);
C2.ChangeContrast (-9.09090909);
if ( (Abs (RR-R) > DELTA) ||
(Abs (GG-G) > DELTA) ||
(Abs (BB-B) > DELTA) ) {
- cout << "TEST_ERROR : ChangeContrast () bad values\n";
- cout << "RGB init : " << RR << " " << GG << " " << BB << "\n";
- cout << "RGB values : " << R << " " << G << " " << B << "\n";
+ std::cout << "TEST_ERROR : ChangeContrast () bad values\n";
+ std::cout << "RGB init : " << RR << " " << GG << " " << BB << "\n";
+ std::cout << "RGB values : " << R << " " << G << " " << B << "\n";
}
}
{
Standard_Integer NbComp = types.Length();
if (NbComp < 2) {
- cout << "Plex Instance illegal " << endl;
+ std::cout << "Plex Instance illegal " << std::endl;
}
return 0;
}
Standard_Integer NbComp = theTypes.Length();
if (NbComp < 2) {
#ifdef OCCT_DEBUG
- cout << "Not a Plex" << endl;
+ std::cout << "Not a Plex" << std::endl;
#endif
}
else {
{
if (CN == 0) {
#ifdef OCCT_DEBUG
- cout << "CN = 0 for num = " << num << endl;
+ std::cout << "CN = 0 for num = " << num << std::endl;
#endif
return;
}
Standard_Integer nbMult = ent->NbKnotMultiplicities();
Standard_Integer nbKno = ent->NbKnots();
Standard_Integer sumMult = 0;
-// cout << "BSplineCurveWithKnots: nbMult=" << nbMult << " nbKno= " <<
-// nbKno << " nbCPL= " << nbCPL << " degree= " << dgBSC << endl;
+// std::cout << "BSplineCurveWithKnots: nbMult=" << nbMult << " nbKno= " <<
+// nbKno << " nbCPL= " << nbCPL << " degree= " << dgBSC << std::endl;
if(nbMult != nbKno) {
ach->AddFail("ERROR: No.of KnotMultiplicities not equal No.of Knots");
}
Standard_Integer sumNonP = nbCPL + dgBSC + 1;
Standard_Integer mult1 = ent->KnotMultiplicitiesValue(1);
Standard_Integer multN = ent->KnotMultiplicitiesValue(nbMult);
-// cout << "BSplineCurveWithKnots: mult1=" << mult1 << " multN= " <<
-// multN << " sumMult= " << sumMult << endl;
+// std::cout << "BSplineCurveWithKnots: mult1=" << mult1 << " multN= " <<
+// multN << " sumMult= " << sumMult << std::endl;
if((sumMult + multN) == sumNonP) {
}
else if((sumMult == nbCPL) && (mult1 == multN)) {
Standard_Integer sumMulU = 0;
Standard_Integer sumMulV = 0;
Standard_Integer i;
-// cout << "BSplineSurfaceWithKnots: nbMulU=" << nbMulU << " nbKnoU= " <<
-// nbKnoU << " nbCPLU= " << nbCPLU << " degreeU= " << dgBSSU << endl;
-// cout << " nbMulV=" << nbMulV << " nbKnoV= " <<
-// nbKnoV << " nbCPLV= " << nbCPLV << " degreeV= " << dgBSSV << endl;
+// std::cout << "BSplineSurfaceWithKnots: nbMulU=" << nbMulU << " nbKnoU= " <<
+// nbKnoU << " nbCPLU= " << nbCPLU << " degreeU= " << dgBSSU << std::endl;
+// std::cout << " nbMulV=" << nbMulV << " nbKnoV= " <<
+// nbKnoV << " nbCPLV= " << nbCPLV << " degreeV= " << dgBSSV << std::endl;
if(nbMulU != nbKnoU) {
ach->AddFail("ERROR: No.of KnotMultiplicities not equal No.of Knots in U");
}
Standard_Integer sumNonPU = nbCPLU + dgBSSU + 1;
Standard_Integer mult1U = ent->UMultiplicitiesValue(1);
Standard_Integer multNU = ent->UMultiplicitiesValue(nbMulU);
-// cout << "BSplineSurfaceWithKnots: mult1U=" << mult1U << " multNU= " <<
-// multNU << " sumMulU= " << sumMulU << endl;
+// std::cout << "BSplineSurfaceWithKnots: mult1U=" << mult1U << " multNU= " <<
+// multNU << " sumMulU= " << sumMulU << std::endl;
if((sumMulU + multNU) == sumNonPU) {
}
else if((sumMulU == nbCPLU) && (mult1U == multNU)) {
Standard_Integer sumNonPV = nbCPLV + dgBSSV + 1;
Standard_Integer mult1V = ent->VMultiplicitiesValue(1);
Standard_Integer multNV = ent->VMultiplicitiesValue(nbMulV);
-// cout << " : mult1V=" << mult1V << " multNV= " <<
-// multNV << " sumMulV= " << sumMulV << endl;
+// std::cout << " : mult1V=" << mult1V << " multNV= " <<
+// multNV << " sumMulV= " << sumMulV << std::endl;
if((sumMulV + multNV) == sumNonPV) {
}
else if((sumMulV == nbCPLV) && (mult1V == multNV)) {
{
Standard_Integer nbWght = ent->NbWeightsData();
Standard_Integer nbCPL = ent->NbControlPointsList();
-// cout << "RationalBSplineCurve: nbWght=" << nbWght << " nbCPL: " <<
-// nbCPL << endl;
+// std::cout << "RationalBSplineCurve: nbWght=" << nbWght << " nbCPL: " <<
+// nbCPL << std::endl;
if(nbWght != nbCPL) {
ach->AddFail("ERROR: No.of ControlPoints not equal No.of Weights");
}
Standard_Integer nbCPLV = ent->NbControlPointsListJ();
Standard_Integer i;
Standard_Integer j;
-// cout << "RationalBSplineCurve: nbWgtU=" << nbWgtU << " nbCPLU: " <<
-// nbCPLU << endl;
-// cout << " nbWgtV=" << nbWgtV << " nbCPLV: " <<
-// nbCPLV << endl;
+// std::cout << "RationalBSplineCurve: nbWgtU=" << nbWgtU << " nbCPLU: " <<
+// nbCPLU << std::endl;
+// std::cout << " nbWgtV=" << nbWgtV << " nbCPLV: " <<
+// nbCPLV << std::endl;
if(nbWgtU != nbCPLU) {
ach->AddFail("ERROR: No.of ControlPoints not equal No.of Weights in U");
}
const Interface_ShareTool& ,
Handle(Interface_Check)& ach) const
{
-// cout << "------ calling CheckToroidalSurface ------" << endl;
+// std::cout << "------ calling CheckToroidalSurface ------" << std::endl;
if (ent->MajorRadius() < 0.0)
ach->AddFail("ERROR: ToroidalSurface: MajorRadius < 0.0");
if (ent->MinorRadius() < 0.0)
const Interface_ShareTool& aShto,
Handle(Interface_Check)& ach) const
{
-// cout << "------ calling CheckEdgeCurve ------" << endl;
+// std::cout << "------ calling CheckEdgeCurve ------" << std::endl;
Handle(StepShape_OrientedEdge) theOE1, theOE2;
Handle(StepShape_FaceBound) theFOB1, theFOB2;
Standard_Boolean sharOE1 = aShto.IsShared(theOE1);
if(!sharOE1){
#ifdef OCCT_DEBUG
- cout << "OrientedEdge1 not shared" <<endl;
+ std::cout << "OrientedEdge1 not shared" <<std::endl;
#endif
}
else {
Standard_Boolean sharEL1 = aShto.IsShared(theEL1);
if(!sharEL1) {
#ifdef OCCT_DEBUG
- cout << "EdgeLoop1 not shared" <<endl;
+ std::cout << "EdgeLoop1 not shared" <<std::endl;
#endif
}
else {
}
else {
#ifdef OCCT_DEBUG
- cout << "EdgeLoop not referenced by FaceBound" << endl;
+ std::cout << "EdgeLoop not referenced by FaceBound" << std::endl;
#endif
}
}
else {
if (nbRef == 0) {
#ifdef OCCT_DEBUG
- cout << "OrientedEdge not referenced" << endl;
+ std::cout << "OrientedEdge not referenced" << std::endl;
#endif
}
else {
if (aShto.NbTypedSharings(theOE1,
STANDARD_TYPE(StepShape_EdgeLoop)) > 1) {
#ifdef OCCT_DEBUG
- cout << "OrientedEdge referenced more than once" << endl;
+ std::cout << "OrientedEdge referenced more than once" << std::endl;
#endif
}
}
Standard_Boolean sharOE2 = aShto.IsShared(theOE2);
if(!sharOE2){
#ifdef OCCT_DEBUG
- cout << "OrientedEdge2 not shared" <<endl;
+ std::cout << "OrientedEdge2 not shared" <<std::endl;
#endif
}
else {
Standard_Boolean sharEL2 = aShto.IsShared(theEL2);
if(!sharEL2){
#ifdef OCCT_DEBUG
- cout << "EdgeLoop2 not shared" <<endl;
+ std::cout << "EdgeLoop2 not shared" <<std::endl;
#endif
}
else {
}
else {
#ifdef OCCT_DEBUG
- cout << "EdgeLoop not referenced by FaceBound" << endl;
+ std::cout << "EdgeLoop not referenced by FaceBound" << std::endl;
#endif
}
}
const Interface_ShareTool& ,
Handle(Interface_Check)& ach) const
{
-// cout << "------ calling CheckEdgeLoop ------" << endl;
+// std::cout << "------ calling CheckEdgeLoop ------" << std::endl;
Standard_Boolean headToTail = Standard_True;
//Standard_Boolean noIdentVtx = Standard_True; //szv#4:S4163:12Mar99 unused
Standard_Integer nbEdg = ent->NbEdgeList();
Standard_Boolean sharOE2 = aShto.IsShared(theOE2);
if(!sharOE2){
#ifdef OCCT_DEBUG
- cout << "OrientedEdge2 not shared" <<endl;
+ std::cout << "OrientedEdge2 not shared" <<std::endl;
#endif
}
else {
Standard_Boolean sharEL2 = aShto.IsShared(theEL2);
if(!sharEL2){
#ifdef OCCT_DEBUG
- cout << "EdgeLoop2 not shared" <<endl;
+ std::cout << "EdgeLoop2 not shared" <<std::endl;
#endif
}
else {
}
else {
#ifdef OCCT_DEBUG
- cout << "EdgeLoop not referenced by FaceBound" << endl;
+ std::cout << "EdgeLoop not referenced by FaceBound" << std::endl;
#endif
}
}
} //end if(!theEL1.IsNull)
else {
#ifdef OCCT_DEBUG
- cout << "no EdgeLoop in FaceBound" << endl;
+ std::cout << "no EdgeLoop in FaceBound" << std::endl;
#endif
}
}
#define sscanf_l(theBuffer, theLocale, theFormat, ...) sscanf(theBuffer, theFormat, __VA_ARGS__)
#endif
-// Macro to get 64-bit position of the file from streampos
+// Macro to get 64-bit position of the file from std::streampos
#if defined(_MSC_VER) && _MSC_VER < 1700
- // In MSVC 2010, cast of streampos to 64-bit int is implemented incorrectly;
+ // In MSVC 2010, cast of std::streampos to 64-bit int is implemented incorrectly;
// work-around (relevant for files larger than 4 GB) is to use internal function seekpos().
// Since MSVC 15.8, seekpos() is deprecated and is said to always return 0.
#define GETPOS(aPos) aPos.seekpos()
}
else
if (myVerbose)
- cout << "Resource Manager Warning: aDefaultsDirectory is empty." << endl;
+ std::cout << "Resource Manager Warning: aDefaultsDirectory is empty." << std::endl;
if ( !anUserDefaultsDirectory.IsEmpty() ) {
OSD_Path anOSDPath(anUserDefaultsDirectory);
}
else
if (myVerbose)
- cout << "Resource Manager Warning: anUserDefaultsDirectory is empty." << endl;
+ std::cout << "Resource Manager Warning: anUserDefaultsDirectory is empty." << std::endl;
}
Resource_Manager::Resource_Manager(const Standard_CString aName,
if (!aPath.IsEmpty())
Load(aPath,myRefMap);
else if (myVerbose)
- cout << "Resource Manager Warning: Environment variable \"CSF_" << aName << "Defaults\" not set." << endl;
+ std::cout << "Resource Manager Warning: Environment variable \"CSF_" << aName << "Defaults\" not set." << std::endl;
if (!aUserPath.IsEmpty())
Load(aUserPath,myRefMap);
else if (myVerbose)
- cout << "Resource Manager Warning: Environment variable \"CSF_" << aName << "UserDefaults\" not set." << endl;
+ std::cout << "Resource Manager Warning: Environment variable \"CSF_" << aName << "UserDefaults\" not set." << std::endl;
}
void Resource_Manager::Load(TCollection_AsciiString& aPath,
File.Open(OSD_ReadOnly,OSD_Protection());
if (File.Failed()) {
if (myVerbose)
- cout << "Resource Manager Warning: Cannot read file \"" << FileName
- << "\". File not found or permission denied." << endl;
+ std::cout << "Resource Manager Warning: Cannot read file \"" << FileName
+ << "\". File not found or permission denied." << std::endl;
return;
}
Standard_Integer LineNumber = 1;
break;
case Resource_KOL_Error:
if (myVerbose)
- cout << "Resource Manager: Syntax error at line "
- << LineNumber << " in file : " << FileName << endl;
+ std::cout << "Resource Manager: Syntax error at line "
+ << LineNumber << " in file : " << FileName << std::endl;
break;
}
LineNumber++;
}
File.Close();
if (myVerbose)
- cout << "Resource Manager: " << ((&aMap == &myUserMap) ? "User" : "Reference")
- << " file \"" << FileName << "\" loaded" << endl;
+ std::cout << "Resource Manager: " << ((&aMap == &myUserMap) ? "User" : "Reference")
+ << " file \"" << FileName << "\" loaded" << std::endl;
}
static Resource_KindOfLine WhatKindOfLine(OSD_File& aFile,
aToken1 = Line.SubString(Pos1, Pos);
if (Debug)
- cout << "Key = '" << aToken1 << flush ;
+ std::cout << "Key = '" << aToken1 << std::flush ;
Pos = Line.FirstLocationNotInSet(WhiteSpace, Pos2+1, Line.Length());
if (Pos) {
aToken2 = Line;
}
if (Debug)
- cout << "'\t Value = '" << aToken2 << "'" << endl << flush;
+ std::cout << "'\t Value = '" << aToken2 << "'" << std::endl << std::flush;
return Resource_KOL_Resource;
}
dir = anEnv.Value();
if (dir.IsEmpty()) {
if (myVerbose)
- cout << "Resource Manager Warning: environment variable \""
- << anEnvVar << "\" not set. Cannot save resources." << endl ;
+ std::cout << "Resource Manager Warning: environment variable \""
+ << anEnvVar << "\" not set. Cannot save resources." << std::endl ;
return Standard_False;
}
aStatus = aStatus && !Dir.Failed();
if (!aStatus) {
if (myVerbose)
- cout << "Resource Manager: Error opening or creating directory \"" << aFilePath
- << "\". Permission denied. Cannot save resources." << endl;
+ std::cout << "Resource Manager: Error opening or creating directory \"" << aFilePath
+ << "\". Permission denied. Cannot save resources." << std::endl;
return Standard_False;
}
}
aStatus = aStatus && !File.Failed();
if (!aStatus) {
if (myVerbose)
- cout << "Resource Manager: Error opening or creating file \"" << aFilePath
- << "\". Permission denied. Cannot save resources." << endl;
+ std::cout << "Resource Manager: Error opening or creating file \"" << aFilePath
+ << "\". Permission denied. Cannot save resources." << std::endl;
return Standard_False;
}
Line = KeyArray(Index) + ":\t" + Value + "\n";
if (Debug)
- cout << "Line = '" << Line << "'" << endl;
+ std::cout << "Line = '" << Line << "'" << std::endl;
File.Write(Line, Line.Length());
}
if (myVerbose)
- cout << "Resource Manager: Resources saved in file " << aFilePath << endl;
+ std::cout << "Resource Manager: Resources saved in file " << aFilePath << std::endl;
}
File.Close();
return Standard_True;
if (!format->IsSameString(ap203, Standard_False) &&
!format->IsSameString(ap214, Standard_False)) {
#ifdef OCCT_DEBUG
- cout << "Warning: STEPCAFControl_Reader::Transfer: Extern document is neither STEP AP203 nor AP214" << endl;
+ std::cout << "Warning: STEPCAFControl_Reader::Transfer: Extern document is neither STEP AP203 nor AP214" << std::endl;
#else
continue;
#endif
}
}
#ifdef OCCT_DEBUG
- else cout << "Warning: STEPCAFControl_Reader::Transfer: Extern document format not defined" << endl;
+ else std::cout << "Warning: STEPCAFControl_Reader::Transfer: Extern document format not defined" << std::endl;
#endif
// get and check filename of the current extern ref
const Standard_CString filename = ExtRefs.FileName(i);
#ifdef OCCT_DEBUG
- cout << "filename=" << filename << endl;
+ std::cout << "filename=" << filename << std::endl;
#endif
if (!filename || !filename[0]) {
#ifdef OCCT_DEBUG
- cout << "Warning: STEPCAFControl_Reader::Transfer: Extern reference file name is empty" << endl;
+ std::cout << "Warning: STEPCAFControl_Reader::Transfer: Extern reference file name is empty" << std::endl;
#endif
continue; // not a valid extern ref
}
}
#ifdef OCCT_DEBUG
if (!EF->GetLabel().IsNull())
- cout << "Warning: STEPCAFControl_Reader::AddShape: Non-empty shape with external ref; ref is ignored" << endl;
+ std::cout << "Warning: STEPCAFControl_Reader::AddShape: Non-empty shape with external ref; ref is ignored" << std::endl;
else if (nbComponents <= 0)
- cout << "Warning: STEPCAFControl_Reader::AddShape: Result of reading extern ref is Null" << endl;
+ std::cout << "Warning: STEPCAFControl_Reader::AddShape: Result of reading extern ref is Null" << std::endl;
#endif
}
}
}
#ifdef OCCT_DEBUG
- cout << "Reading extern file: " << fullname << endl;
+ std::cout << "Reading extern file: " << fullname << std::endl;
#endif
// create new WorkSession and Reader
STEPConstruct_Styles Styles(WS);
if (!Styles.LoadStyles()) {
#ifdef OCCT_DEBUG
- cout << "Warning: no styles are found in the model" << endl;
+ std::cout << "Warning: no styles are found in the model" << std::endl;
#endif
return Standard_False;
}
Handle(Transfer_Binder) binder = TP->Find(NAUO);
if (binder.IsNull() || !binder->HasResult()) {
#ifdef OCCT_DEBUG
- cout << "Error: STEPCAFControl_Reader::FindInstance: NAUO is not mapped to shape" << endl;
+ std::cout << "Error: STEPCAFControl_Reader::FindInstance: NAUO is not mapped to shape" << std::endl;
#endif
return L;
}
TopoDS_Shape S = TransferBRep::ShapeResult(TP, binder);
if (S.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "Error: STEPCAFControl_Reader::FindInstance: NAUO is not mapped to shape" << endl;
+ std::cout << "Error: STEPCAFControl_Reader::FindInstance: NAUO is not mapped to shape" << std::endl;
#endif
return L;
}
STEPConstruct_ValidationProps Props(WS);
if (!Props.LoadProps(props)) {
#ifdef OCCT_DEBUG
- cout << "Warning: no validation props found in the model" << endl;
+ std::cout << "Warning: no validation props found in the model" << std::endl;
#endif
return Standard_False;
}
for (subs.Start(); subs.More(); subs.Next()) {
if (!subs.Value()->IsKind(STANDARD_TYPE(StepVisual_Invisibility))) continue;
#ifdef OCCT_DEBUG
- cout << "\tLayer \"" << aLayerName << "\" is invisible" << endl;
+ std::cout << "\tLayer \"" << aLayerName << "\" is invisible" << std::endl;
#endif
//TDF_Label InvLayerLab = LTool->FindLayer(aLayerName);
TDF_Label InvLayerLab = LTool->AddLayer(aLayerName); //skl for OCC3926
Handle(StepRepr_NextAssemblyUsageOccurrence) NUNAUO = SHUO->NextUsage();
if (UUNAUO.IsNull() || NUNAUO.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "Warning: " << __FILE__ << ": Upper_usage or Next_usage of styled SHUO is null. Skip it" << endl;
+ std::cout << "Warning: " << __FILE__ << ": Upper_usage or Next_usage of styled SHUO is null. Skip it" << std::endl;
#endif
return aMainLabel;
}
STEPConstruct_Styles Styles(WS);
if (!Styles.LoadStyles()) {
#ifdef OCCT_DEBUG
- cout << "Warning: no styles are found in the model" << endl;
+ std::cout << "Warning: no styles are found in the model" << std::endl;
#endif
return Standard_False;
}
continue;
// found that current style is invisible.
#ifdef OCCT_DEBUG
- cout << "Warning: item No " << i << "(" << style->Item()->DynamicType()->Name() << ") is invisible" << endl;
+ std::cout << "Warning: item No " << i << "(" << style->Item()->DynamicType()->Name() << ") is invisible" << std::endl;
#endif
IsVisible = Standard_False;
break;
TDF_Label aLabelForStyle = setSHUOintoDoc(WS, SHUO, STool, PDFileMap, ShapeLabelMap);
if (aLabelForStyle.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "Warning: " << __FILE__ << ": coudnot create SHUO structure in the document" << endl;
+ std::cout << "Warning: " << __FILE__ << ": coudnot create SHUO structure in the document" << std::endl;
#endif
continue;
}
}
if (dim1 < 0) continue;
if (dim2 < 0) dim2 = dim1;
- //cout<<"DimensionalSize: dim1="<<dim1<<" dim2="<<dim2<<endl;
+ //std::cout<<"DimensionalSize: dim1="<<dim1<<" dim2="<<dim2<<std::endl;
// now we know edge_curve and value range therefore
// we can create corresponding D> labels
Standard_Integer index = aTP->MapIndex(EC);
STEPConstruct_UnitContext anUnitCtx;
anUnitCtx.ComputeFactors(NU);
dim = dim * anUnitCtx.LengthFactor();
- //cout<<"GeometricTolerance: Magnitude = "<<dim<<endl;
+ //std::cout<<"GeometricTolerance: Magnitude = "<<dim<<std::endl;
Handle(TColStd_HArray1OfReal) arr = new TColStd_HArray1OfReal(1, 1);
arr->SetValue(1, dim);
Handle(TCollection_HAsciiString) aName = GT->Name();
else if (GTWDR->IsKind(STANDARD_TYPE(StepDimTol_PerpendicularityTolerance))) kind = 29;
else if (GTWDR->IsKind(STANDARD_TYPE(StepDimTol_SymmetryTolerance))) kind = 30;
else if (GTWDR->IsKind(STANDARD_TYPE(StepDimTol_TotalRunoutTolerance))) kind = 31;
- //cout<<"GTWDR: kind="<<kind<<endl;
+ //std::cout<<"GTWDR: kind="<<kind<<std::endl;
TDF_Label TolerL = aDGTTool->SetDimTol(shL, kind, arr, aName, aDescription);
ReadDatums(aSTool, aDGTTool, aGraph, aTP, TolerL, GTWDR);
}
TCollection_AsciiString fname = OSD_Path::AbsolutePath ( dpath, EF->GetName()->String() );
if ( fname.Length() <= 0 ) fname = EF->GetName()->String();
#ifdef OCCT_DEBUG
- cout << "Writing external file: " << fname.ToCString() << endl;
+ std::cout << "Writing external file: " << fname.ToCString() << std::endl;
#endif
EF->SetWriteStatus ( EF->GetWS()->SendAll ( fname.ToCString() ) );
Handle(TransferBRep_ShapeMapper) mapper = TransferBRep::ShapeMapper ( FP, S );
if ( ! FP->FindTypedTransient ( mapper, STANDARD_TYPE(StepShape_ShapeDefinitionRepresentation), SDR ) ) {
#ifdef OCCT_DEBUG
- cout << "Warning: Cannot find SDR for " << S.TShape()->DynamicType()->Name() << endl;
+ std::cout << "Warning: Cannot find SDR for " << S.TShape()->DynamicType()->Name() << std::endl;
#endif
continue;
}
Handle(StepRepr_PropertyDefinition) aPropDef = RD.PropertyDefinition();
if (aPropDef.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "Warning: STEPCAFControl_Writer::WriteExternRefs StepRepr_PropertyDefinition is null for " << S.TShape()->DynamicType()->Name() << endl;
+ std::cout << "Warning: STEPCAFControl_Writer::WriteExternRefs StepRepr_PropertyDefinition is null for " << S.TShape()->DynamicType()->Name() << std::endl;
#endif
continue;
}
Handle(StepBasic_ProductDefinition) PD = CharDef.ProductDefinition();
if (PD.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "Warning: STEPCAFControl_Writer::WriteExternRefs StepBasic_ProductDefinition is null for " << S.TShape()->DynamicType()->Name() << endl;
+ std::cout << "Warning: STEPCAFControl_Writer::WriteExternRefs StepBasic_ProductDefinition is null for " << S.TShape()->DynamicType()->Name() << std::endl;
#endif
continue;
}
TColStd_SequenceOfTransient seqRI;
Standard_Integer nb = FindEntities ( Styles.FinderProcess(), S, L, seqRI );
#ifdef OCCT_DEBUG
- if ( nb <=0 ) cout << "Warning: Cannot find RI for " << S.TShape()->DynamicType()->Name() << endl;
+ if ( nb <=0 ) std::cout << "Warning: Cannot find RI for " << S.TShape()->DynamicType()->Name() << std::endl;
#endif
//Get overridden style gka 10.06.03
if ( isComponent && nb)
// are not supported (it is not clear how to encode that in STEP)
if ( XCAFDoc_ShapeTool::IsAssembly ( L ) ) {
#ifdef OCCT_DEBUG
- cout << "Warning: Cannot write color for Assembly" << endl;
- cout << "Info: Check for colors assigned to components in assembly" << endl;
+ std::cout << "Warning: Cannot write color for Assembly" << std::endl;
+ std::cout << "Info: Check for colors assigned to components in assembly" << std::endl;
#endif
// PTV 22.01.2003 Write color for instances.
TDF_LabelSequence compLabels;
if (!isComponent) {
if ( myMapCompMDGPR.IsBound( aTopSh )) {
#ifdef OCCT_DEBUG
- cerr << "Error: Current Top-Level shape have MDGPR already " << endl;
+ std::cerr << "Error: Current Top-Level shape have MDGPR already " << std::endl;
#endif
}
Styles.CreateMDGPR ( Context, aMDGPR );
Handle(TransferBRep_ShapeMapper) mapper = TransferBRep::ShapeMapper ( FP, S );
if ( ! FP->FindTypedTransient ( mapper, STANDARD_TYPE(StepShape_ShapeDefinitionRepresentation), SDR ) ) {
#ifdef OCCT_DEBUG
- cout << "Warning: Cannot find SDR for " << S.TShape()->DynamicType()->Name() << endl;
+ std::cout << "Warning: Cannot find SDR for " << S.TShape()->DynamicType()->Name() << std::endl;
#endif
continue;
}
Standard_Integer nb =
FindEntities ( FP, oneShape, Loc, seqRI );
if ( nb <=0 )
- FP->Messenger() << "Warning: Cannot find RI for " << oneShape.TShape()->DynamicType()->Name() << endl;
+ FP->Messenger() << "Warning: Cannot find RI for " << oneShape.TShape()->DynamicType()->Name() << Message_EndLine;
}
if ( seqRI.Length() <= 0 ) continue;
if (L.FindAttribute(XCAFDoc::InvisibleGUID(), aUAttr)) {
descr = new TCollection_HAsciiString ("invisible");
#ifdef OCCT_DEBUG
- FP->Messenger() << "\tLayer \"" << hName->String().ToCString() << "\" is invisible"<<endl;
+ FP->Messenger() << "\tLayer \"" << hName->String().ToCString() << "\" is invisible"<<Message_EndLine;
#endif
isLinv = Standard_True;
}
// store SHUO recursive
#ifdef OCCT_DEBUG
if ( aNextUsageLabs.Length() > 1 )
- cout << "Warning: store only one next_usage of current SHUO" << endl;
+ std::cout << "Warning: store only one next_usage of current SHUO" << std::endl;
#endif
theSTool->GetSHUO( aNextUsageLabs.Value(1), NuSHUO );
Handle(StepRepr_SpecifiedHigherUsageOccurrence) aNUEntSHUO =
if (!getProDefinitionOfNAUO( WS, aUUSh, nullPD, UUNAUO, Standard_True ) ||
!getProDefinitionOfNAUO( WS, aNUSh, aRelatedPD, NUNAUO, Standard_False )) {
#ifdef OCCT_DEBUG
- cout << "Warning: cannot get related or relating PD" << endl;
+ std::cout << "Warning: cannot get related or relating PD" << std::endl;
#endif
return Standard_False;
}
FindEntities ( FP, Sh, L, seqRI );
#ifdef OCCT_DEBUG
if ( seqRI.Length() <=0 )
- FP->Messenger() << "Warning: Cannot find RI for " << Sh.TShape()->DynamicType()->Name() << endl;
+ FP->Messenger() << "Warning: Cannot find RI for " << Sh.TShape()->DynamicType()->Name() << Message_EndLine;
#endif
item = Handle(StepRepr_RepresentationItem)::DownCast(seqRI(1));
//get overridden styled item
if ( !aTopSh.IsNull() && !myMapCompMDGPR.IsBound( aTopSh ) ) {
// create MDGPR and record it in model
#ifdef OCCT_DEBUG
- cout << "Warning: " << __FILE__ << ": Create new MDGPR for SHUO instance" << endl;
+ std::cout << "Warning: " << __FILE__ << ": Create new MDGPR for SHUO instance" << std::endl;
#endif
Handle(StepVisual_MechanicalDesignGeometricPresentationRepresentation) aMDGPR;
Styles.CreateMDGPR ( Context, aMDGPR );
else {
WS->Model()->AddWithRefs ( STEPstyle ); // add as root to the model, but it is not good
#ifdef OCCT_DEBUG
- cout << "Warning: " << __FILE__ << ": adds styled item of SHUO as root, casue cannot find MDGPR" << endl;
+ std::cout << "Warning: " << __FILE__ << ": adds styled item of SHUO as root, casue cannot find MDGPR" << std::endl;
#endif
}
// create invisibility item for the styled item
XCAFPrs_Style SHUOstyle;
if ( !getSHUOstyle ( aSHUOlab, CTool, SHUOstyle ) ) {
#ifdef OCCT_DEBUG
- cout << "Warning: " << __FILE__ << ": do not store SHUO without any style to the STEP model" << endl;
+ std::cout << "Warning: " << __FILE__ << ": do not store SHUO without any style to the STEP model" << std::endl;
#endif
continue;
}
writeSHUO( aSHUO, CTool->ShapeTool(), WS, anEntOfSHUO, NAUOShape, aRelatingPD, isDeepest );
if ( anEntOfSHUO.IsNull() || NAUOShape.IsNull() ) {
#ifdef OCCT_DEBUG
- cout << "Warning: " << __FILE__ << ": Cannot store SHUO" << endl;
+ std::cout << "Warning: " << __FILE__ << ": Cannot store SHUO" << std::endl;
#endif
continue;
}
// create new Product Definition Shape for TOP SHUO
#ifdef OCCT_DEBUG
- cout << "Info: " << __FILE__ << ": Create NEW PDS for current SHUO " << endl;
+ std::cout << "Info: " << __FILE__ << ": Create NEW PDS for current SHUO " << std::endl;
#endif
Handle(StepRepr_ProductDefinitionShape) PDS = new StepRepr_ProductDefinitionShape;
Handle(TCollection_HAsciiString) aPDSname = new TCollection_HAsciiString("SHUO");
TColStd_SequenceOfTransient aSeqRI;
FindEntities( FP, theShape, aLoc, aSeqRI );
if ( aSeqRI.Length() <= 0 ) {
- FP->Messenger() << "Warning: Cannot find RI for "<<theShape.TShape()->DynamicType()->Name()<<endl;
+ FP->Messenger() << "Warning: Cannot find RI for "<<theShape.TShape()->DynamicType()->Name()<<Message_EndLine;
return NULL;
}
aShape = XCAFDoc_ShapeTool::GetShape(theShapeL.Value(i));
FindEntities(FP, aShape, aLoc, aSeqRI);
if (aSeqRI.Length() <= 0) {
- FP->Messenger() << "Warning: Cannot find RI for " << aShape.TShape()->DynamicType()->Name() << endl;
+ FP->Messenger() << "Warning: Cannot find RI for " << aShape.TShape()->DynamicType()->Name() << Message_EndLine;
continue;
}
anEnt = aSeqRI.Value(1);
TColStd_SequenceOfTransient seqRI;
FindEntities( FP, aShape, Loc, seqRI );
if ( seqRI.Length() <= 0 ) {
- FP->Messenger() << "Warning: Cannot find RI for "<<aShape.TShape()->DynamicType()->Name()<<endl;
+ FP->Messenger() << "Warning: Cannot find RI for "<<aShape.TShape()->DynamicType()->Name()<<Message_EndLine;
continue;
}
Handle(StepRepr_ProductDefinitionShape) PDS;
Handle(StepShape_EdgeCurve) EC;
FindPDSforDGT(aGraph,ent,PDS,RC,AF,EC);
if(PDS.IsNull()) continue;
- //cout<<"Model->Number(PDS)="<<Model->Number(PDS)<<endl;
+ //std::cout<<"Model->Number(PDS)="<<Model->Number(PDS)<<std::endl;
Handle(XCAFDoc_Datum) DatumAttr;
if(!DatumL.FindAttribute(XCAFDoc_Datum::GetID(),DatumAttr)) continue;
Handle(TCollection_HAsciiString) aName = DatumAttr->GetName();
TColStd_SequenceOfTransient seqRI;
FindEntities( FP, aShape, Loc, seqRI );
if ( seqRI.Length() <= 0 ) {
- FP->Messenger() << "Warning: Cannot find RI for "<<aShape.TShape()->DynamicType()->Name()<<endl;
+ FP->Messenger() << "Warning: Cannot find RI for "<<aShape.TShape()->DynamicType()->Name()<<Message_EndLine;
continue;
}
Handle(StepRepr_ProductDefinitionShape) PDS;
Handle(StepShape_EdgeCurve) EC;
FindPDSforDGT(aGraph,ent,PDS,RC,AF,EC);
if(PDS.IsNull()) continue;
- //cout<<"Model->Number(PDS)="<<Model->Number(PDS)<<endl;
+ //std::cout<<"Model->Number(PDS)="<<Model->Number(PDS)<<std::endl;
Handle(XCAFDoc_DimTol) DimTolAttr;
if(!DimTolL.FindAttribute(XCAFDoc_DimTol::GetID(),DimTolAttr)) continue;
Handle(TransferBRep_ShapeMapper) mapper = TransferBRep::ShapeMapper ( FinderProcess, Shape );
FinderProcess->FindTypedTransient (mapper,STANDARD_TYPE(StepRepr_RepresentationItem), item);
#ifdef OCCT_DEBUG
- if ( item.IsNull() ) cout << Shape.TShape()->DynamicType()->Name() << ": RepItem not found" << endl;
- else cout << Shape.TShape()->DynamicType()->Name() << ": RepItem found: " << item->DynamicType()->Name() << endl;
+ if ( item.IsNull() ) std::cout << Shape.TShape()->DynamicType()->Name() << ": RepItem not found" << std::endl;
+ else std::cout << Shape.TShape()->DynamicType()->Name() << ": RepItem found: " << item->DynamicType()->Name() << std::endl;
#endif
return item;
}
FinderProcess->FindTypedTransient (mapper,STANDARD_TYPE(StepRepr_RepresentationItem), item);
}
#ifdef OCCT_DEBUG
- if ( item.IsNull() ) cout << Shape.TShape()->DynamicType()->Name() << ": RepItem not found" << endl;
- else if ( Loc != Shape.Location() ) cout << Shape.TShape()->DynamicType()->Name() << ": RepItem found for shape without location: " << item->DynamicType()->Name() << endl;
- else cout << Shape.TShape()->DynamicType()->Name() << ": RepItem found: " << item->DynamicType()->Name() << endl;
+ if ( item.IsNull() ) std::cout << Shape.TShape()->DynamicType()->Name() << ": RepItem not found" << std::endl;
+ else if ( Loc != Shape.Location() ) std::cout << Shape.TShape()->DynamicType()->Name() << ": RepItem found for shape without location: " << item->DynamicType()->Name() << std::endl;
+ else std::cout << Shape.TShape()->DynamicType()->Name() << ": RepItem found: " << item->DynamicType()->Name() << std::endl;
#endif
return item;
}
( CDSR->RepresentedProductRelation()->Definition().ProductDefinitionRelationship() );
if ( nauo.IsNull() ) {
#ifdef OCCT_DEBUG
- cout << "Warning: No NAUO found in CDSR !" << endl;
+ std::cout << "Warning: No NAUO found in CDSR !" << std::endl;
#endif
return Standard_False;
}
}
#ifdef OCCT_DEBUG
- cout << "Warning: SRR and NAUO are incompatible" << endl;
-// cout << "NAUO = " << Model->StringLabel(nauo)->ToCString() <<
-// ",\tCDSR = " << Model->StringLabel(CDSR)->ToCString() << endl;
-// cout << "Rep1 = " << Model->StringLabel(rep1)->ToCString() <<
-// ",\tRep2 = " << Model->StringLabel(rep2)->ToCString() << endl;
-// cout << "PD1 = " << Model->StringLabel(pd1)->ToCString() <<
-// ",\tPD2 = " << Model->StringLabel(pd2)->ToCString() << endl;
-// cout << "Rel1 = " << Model->StringLabel(nauo->RelatingProductDefinition())->ToCString() <<
-// ",\tRel2 = " << Model->StringLabel(nauo->RelatedProductDefinition())->ToCString() << endl;
+ std::cout << "Warning: SRR and NAUO are incompatible" << std::endl;
+// std::cout << "NAUO = " << Model->StringLabel(nauo)->ToCString() <<
+// ",\tCDSR = " << Model->StringLabel(CDSR)->ToCString() << std::endl;
+// std::cout << "Rep1 = " << Model->StringLabel(rep1)->ToCString() <<
+// ",\tRep2 = " << Model->StringLabel(rep2)->ToCString() << std::endl;
+// std::cout << "PD1 = " << Model->StringLabel(pd1)->ToCString() <<
+// ",\tPD2 = " << Model->StringLabel(pd2)->ToCString() << std::endl;
+// std::cout << "Rel1 = " << Model->StringLabel(nauo->RelatingProductDefinition())->ToCString() <<
+// ",\tRel2 = " << Model->StringLabel(nauo->RelatedProductDefinition())->ToCString() << std::endl;
#endif
if ( pd2 == nauo->RelatedProductDefinition() || //:k3 abv 25 Nov 98: rp1sd.stp - bad assemblies
Handle(StepShape_ShapeRepresentation) sr;
if ( FinderProcess()->FindTypedTransient (mapper,STANDARD_TYPE(StepShape_ShapeRepresentation), sr) ) {
#ifdef OCCT_DEBUG
-// cout << "Context of " << Shape.TShape()->DynamicType()->Name() << ": SR found: " << sr->DynamicType()->Name() << endl;
+// std::cout << "Context of " << Shape.TShape()->DynamicType()->Name() << ": SR found: " << sr->DynamicType()->Name() << std::endl;
#endif
Context = sr->ContextOfItems();
}
Handle(StepGeom_GeometricRepresentationItem) item;
if ( FinderProcess()->FindTypedTransient (mapper,STANDARD_TYPE(StepGeom_GeometricRepresentationItem), item) ) {
#ifdef OCCT_DEBUG
-// cout << "Context of " << Shape.TShape()->DynamicType()->Name() << ": GeomRepItem found: " << item->DynamicType()->Name() << endl;
+// std::cout << "Context of " << Shape.TShape()->DynamicType()->Name() << ": GeomRepItem found: " << item->DynamicType()->Name() << std::endl;
#endif
Interface_EntityIterator subs = Graph().Sharings(item);
for (subs.Start(); Context.IsNull() && subs.More(); subs.Next()) {
#ifdef OCCT_DEBUG
-// cout << "Parsing back refs: found " << subs.Value()->DynamicType()->Name() << endl;
+// std::cout << "Parsing back refs: found " << subs.Value()->DynamicType()->Name() << std::endl;
#endif
if ( ! subs.Value()->IsKind(STANDARD_TYPE(StepShape_ShapeRepresentation)) ) continue;
sr = Handle(StepShape_ShapeRepresentation)::DownCast ( subs.Value() );
}
#ifdef OCCT_DEBUG
if ( Context.IsNull() ) {
- cout << Shape.TShape()->DynamicType()->Name() << ": Cannot find context" << endl;
+ std::cout << Shape.TShape()->DynamicType()->Name() << ": Cannot find context" << std::endl;
}
#endif
if ( items.Length() <1 ) {
#ifdef OCCT_DEBUG
- cout << "Error: no color is supplied" << endl;
+ std::cout << "Error: no color is supplied" << std::endl;
#endif
return PSA;
}
else if ( name.IsEqual ( "white" ) ) Col.SetValues ( Quantity_NOC_WHITE );
else {
#ifdef OCCT_DEBUG
- cout << "Error: color name \"" << name << "\" is not recognized" << endl;
+ std::cout << "Error: color name \"" << name << "\" is not recognized" << std::endl;
#endif
return Standard_False;
}
case StepBasic_sunSteradian:
return Standard_True;
default:
-// cout << "Unknown SiUnitName : " << aSiUnit->Name() << endl;
+// std::cout << "Unknown SiUnitName : " << aSiUnit->Name() << std::endl;
return Standard_False;
}
}
if (aContext.IsNull()) {
#ifdef OCCT_DEBUG
- cout<<" -- STEPConstruct_UnitContext:ComputeFactor, Context undefined -> default"<<endl;
+ std::cout<<" -- STEPConstruct_UnitContext:ComputeFactor, Context undefined -> default"<<std::endl;
#endif
return 1;
}
status = ComputeFactors(theNamedUnit);
#ifdef OCCT_DEBUG
if(status == -1)
- cout << " -- STEPConstruct_UnitContext:ComputeFactor: Unit item no." << i << " is not recognized" << endl;
+ std::cout << " -- STEPConstruct_UnitContext:ComputeFactor: Unit item no." << i << " is not recognized" << std::endl;
#endif
}
return status;
}
// Treat the SiUnitName
if (!SiUnitNameFactor(theSIU,theSIUNF)) status = 11; // et continue
- //cout << "The SiUnitNameFactor is :";
- //cout << theSIUNF << endl;
+ //std::cout << "The SiUnitNameFactor is :";
+ //std::cout << theSIUNF << std::endl;
}
else {
- // cout << "Recursive algo required - Aborted" << endl;
+ // std::cout << "Recursive algo required - Aborted" << std::endl;
return 3;
}
Standard_Real theMVAL = theMWU->ValueComponent();
else {
status = 14;
#ifdef OCCT_DEBUG
- cout << "Error in the file : parameter double defined" << endl;
+ std::cout << "Error in the file : parameter double defined" << std::endl;
#endif
}
}
else {
status = 14;
#ifdef OCCT_DEBUG
- cout << "Error in the file : parameter double defined" << endl;
+ std::cout << "Error in the file : parameter double defined" << std::endl;
#endif
}
}
// Defining a type of unit
if(!parameterDone) {
#ifdef OCCT_DEBUG
- cout << "Unit Type not implemented" << endl;
+ std::cout << "Unit Type not implemented" << std::endl;
#endif
return 0;
}
else {
status = 14;
#ifdef OCCT_DEBUG
- cout << "Error in the file : LengthFactor double defined" << endl;
+ std::cout << "Error in the file : LengthFactor double defined" << std::endl;
#endif
}
} // end of LengthUnit
Handle(StepBasic_UncertaintyMeasureWithUnit) aUMWU = aContext->UncertaintyValue(un);
if (aUMWU.IsNull()) {
#ifdef OCCT_DEBUG
- cout<<"BAD Uncertainty Measure with Units, n0."<<un<<endl;
+ std::cout<<"BAD Uncertainty Measure with Units, n0."<<un<<std::endl;
#endif
continue;
}
}
#ifdef OCCT_DEBUG
- if (hasUncertainty) cout << "UNCERTAINTY read as " << theUncertainty << endl;
+ if (hasUncertainty) std::cout << "UNCERTAINTY read as " << theUncertainty << std::endl;
#endif
return status;
}
Context = CDSR->RepresentationRelation()->Rep2()->ContextOfItems();
}
#ifdef OCCT_DEBUG
- else cout << "INSTANCE: CDRS from NAUO NOT found" << endl;
+ else std::cout << "INSTANCE: CDRS from NAUO NOT found" << std::endl;
#endif
}
#ifdef OCCT_DEBUG
- else cout << "INSTANCE: NAUO NOT found" << endl;
+ else std::cout << "INSTANCE: NAUO NOT found" << std::endl;
#endif
*/
}
}
target.SetValue ( PDS );
#ifdef OCCT_DEBUG
-// cout << "COMPOUND: SDR found: " << sdr->DynamicType()->Name() << endl;
+// std::cout << "COMPOUND: SDR found: " << sdr->DynamicType()->Name() << std::endl;
#endif
}
else {
#ifdef OCCT_DEBUG
- cout << "COMPOUND: ProdDef NOT found" << endl;
+ std::cout << "COMPOUND: ProdDef NOT found" << std::endl;
#endif
Handle(StepShape_ShapeRepresentation) SR;
if(FinderProcess()->FindTypedTransient(mapper,STANDARD_TYPE(StepShape_ShapeRepresentation),SR)) {
Handle(StepGeom_GeometricRepresentationItem) item;
if ( FinderProcess()->FindTypedTransient (mapper,STANDARD_TYPE(StepGeom_GeometricRepresentationItem), item) ) {
#ifdef OCCT_DEBUG
-// cout << Shape.TShape()->DynamicType()->Name() << ": GeomRepItem found: " << item->DynamicType()->Name() << endl;
+// std::cout << Shape.TShape()->DynamicType()->Name() << ": GeomRepItem found: " << item->DynamicType()->Name() << std::endl;
#endif
// find PDS (GRI <- SR <- SDR -> PDS)
Handle(StepRepr_ProductDefinitionShape) PDS;
Interface_EntityIterator subs = Graph().Sharings(item);
for (subs.Start(); PDS.IsNull() && subs.More(); subs.Next()) {
#ifdef OCCT_DEBUG
-// cout << "Parsing back refs: found " << subs.Value()->DynamicType()->Name() << endl;
+// std::cout << "Parsing back refs: found " << subs.Value()->DynamicType()->Name() << std::endl;
#endif
if ( ! subs.Value()->IsKind(STANDARD_TYPE(StepShape_ShapeRepresentation)) ) continue;
Handle(StepShape_ShapeRepresentation) sr =
// if ( ! FinderProcess()->FindTypedTransient (mapper,STANDARD_TYPE(StepRepr_ShapeAspect), aspect ) ||
// aspect->OfShape() != PDS )
#ifdef OCCT_DEBUG
- cout << Shape.TShape()->DynamicType()->Name() << ": SHAPE_ASPECT NOT found, creating" << endl;
+ std::cout << Shape.TShape()->DynamicType()->Name() << ": SHAPE_ASPECT NOT found, creating" << std::endl;
#endif
// create aspect and all related data
Handle(TCollection_HAsciiString) AspectName = new TCollection_HAsciiString ( "" );
// SHAPE_ASPECT found, but we also need context: FIND IT !!!!
else {
#ifdef OCCT_DEBUG
- cout << Shape.TShape()->DynamicType()->Name() << ": SHAPE_ASPECT found" << endl;
+ std::cout << Shape.TShape()->DynamicType()->Name() << ": SHAPE_ASPECT found" << std::endl;
#endif
Handle(StepRepr_ProductDefinitionShape) aPDS = aspect->OfShape();
Interface_EntityIterator asubs = Graph().Sharings(aPDS);
if ( ! aspect.IsNull() ) target.SetValue ( aspect );
}
#ifdef OCCT_DEBUG
- else cout << Shape.TShape()->DynamicType()->Name() << ": PDS NOT found, fail to create SHAPE_ASPECT" << endl;
+ else std::cout << Shape.TShape()->DynamicType()->Name() << ": PDS NOT found, fail to create SHAPE_ASPECT" << std::endl;
#endif
}
#ifdef OCCT_DEBUG
- else cout << Shape.TShape()->DynamicType()->Name() << ": GeomRepItem NOT found" << endl;
+ else std::cout << Shape.TShape()->DynamicType()->Name() << ": GeomRepItem NOT found" << std::endl;
#endif
}
Handle(Message_Messenger) sout = Message::DefaultMessenger();
sout << "Error: Cannot find target entity (SA) for geometric_validation_property ";
Model()->PrintLabel ( PD, sout );
- sout << endl;
+ sout << Message_EndLine;
#endif
return ProdDef;
}
Handle(Message_Messenger) sout = Message::DefaultMessenger();
sout << "Error: Cannot find target entity (SDR) for geometric_validation_property ";
Model()->PrintLabel ( PD, sout );
- sout << endl;
+ sout << Message_EndLine;
}
#endif
return ProdDef;
Handle(Message_Messenger) sout = Message::DefaultMessenger();
sout << "Warning: Entity ";
Model()->PrintLabel ( ProdDef, sout );
- sout << " is not mapped to shape" << endl;
+ sout << " is not mapped to shape" << Message_EndLine;
}
#endif
return S;
else if ( Name == "VOLUME_MEASURE" ) isArea = Standard_False;
else {
#ifdef OCCT_DEBUG
- cout << "Warning: Measure " << Model()->StringLabel ( M )->String() << " is neither area not volume" << endl;
+ std::cout << "Warning: Measure " << Model()->StringLabel ( M )->String() << " is neither area not volume" << std::endl;
#endif
return Standard_False;
}
Handle(StepGeom_CartesianPoint) P = Handle(StepGeom_CartesianPoint)::DownCast ( item );
if ( P.IsNull() || P->NbCoordinates() != 3 ) {
#ifdef OCCT_DEBUG
- cout << "Warning: Point " << Model()->StringLabel ( P )->String() << " is not valid for centroid" << endl;
+ std::cout << "Warning: Point " << Model()->StringLabel ( P )->String() << " is not valid for centroid" << std::endl;
#endif
return Standard_False;;
}
}
}
- cout << "//What is?// NB COMPOUNDS: " << nbCompounds << endl;
- cout << "//What is?// NB SOLIDS: " << nbSolids << endl;
- cout << "//What is?// NB SHELLS: " << nbShells << endl;
- cout << "//What is?// OPEN SHELLS: " << nbOpenShells << endl;
- cout << "//What is?// CLOSED SHELLS: " << nbShells - nbOpenShells << endl;
- cout << "//What is?// NB FACES: " << nbFaces << endl;
- cout << "//What is?// NB WIRES: " << nbWires << endl;
- cout << "//What is?// NB EDGES: " << nbEdges << endl;
- cout << "//What is?// NB VERTEXES: " << nbVertexes << endl;
+ std::cout << "//What is?// NB COMPOUNDS: " << nbCompounds << std::endl;
+ std::cout << "//What is?// NB SOLIDS: " << nbSolids << std::endl;
+ std::cout << "//What is?// NB SHELLS: " << nbShells << std::endl;
+ std::cout << "//What is?// OPEN SHELLS: " << nbOpenShells << std::endl;
+ std::cout << "//What is?// CLOSED SHELLS: " << nbShells - nbOpenShells << std::endl;
+ std::cout << "//What is?// NB FACES: " << nbFaces << std::endl;
+ std::cout << "//What is?// NB WIRES: " << nbWires << std::endl;
+ std::cout << "//What is?// NB EDGES: " << nbEdges << std::endl;
+ std::cout << "//What is?// NB VERTEXES: " << nbVertexes << std::endl;
}
#endif
if(aPPVersion.IsNull())
continue;
#ifdef OCCT_DEBUG
- cout << "Preprocessor version detected: " << aPPVersion->ToCString() << endl;
+ std::cout << "Preprocessor version detected: " << aPPVersion->ToCString() << std::endl;
#endif
Standard_Integer anIDeasResult = aPPVersion->Search("I-DEAS");
if (anIDeasResult != -1) {
#ifdef OCCT_DEBUG
- cout << "Recognized as I-DEAS STP" << endl;
+ std::cout << "Recognized as I-DEAS STP" << std::endl;
#endif
myNMTool.SetIDEASCase(Standard_True);
}
#ifdef TRANSLOG
if (TP->TraceLevel() > 1)
- sout<<" -- Actor : Ent.n0 "<<TP->Model()->Number(PD)<<" -> Shared Ent.no"<<TP->Model()->Number(NAUO)<<endl;
+ sout<<" -- Actor : Ent.n0 "<<TP->Model()->Number(PD)<<" -> Shared Ent.no"<<TP->Model()->Number(NAUO)<<Message_EndLine;
#endif
Handle(Transfer_Binder) binder;
if (!TP->IsBound(NAUO)) binder = TransferEntity(NAUO,TP);
Handle(Message_Messenger) sout = TP->Messenger();
#ifdef TRANSLOG
if (TP->TraceLevel() > 2)
- sout<<" -- Actor : case ShapeRepr. NbItems="<<nb<<endl;
+ sout<<" -- Actor : case ShapeRepr. NbItems="<<nb<<Message_EndLine;
#endif
// Compute unit convertion factors and geometric Accuracy
NM_DETECTED = Standard_True;
#ifdef OCCT_DEBUG
Standard_Integer NMSSRItemsLen = sr->Items()->Length();
- cout << "NMSSR with " << NMSSRItemsLen << " items detected" << endl;
+ std::cout << "NMSSR with " << NMSSRItemsLen << " items detected" << std::endl;
#endif
}
// Special processing for I-DEAS STP case (ssv; 15.11.2010)
isManifold = Standard_False;
NM_DETECTED = Standard_True;
#ifdef OCCT_DEBUG
- cout << "I-DEAS post processing for non-manifold topology ENABLED" << endl;
+ std::cout << "I-DEAS post processing for non-manifold topology ENABLED" << std::endl;
#endif
}
#ifdef OCCT_DEBUG
else if ( myNMTool.IsIDEASCase() )
- cout << "I-DEAS post processing for non-manifold topology DISABLED" << endl;
+ std::cout << "I-DEAS post processing for non-manifold topology DISABLED" << std::endl;
#endif
}
myNMTool.CleanUp();
//for (i = 1; i <= nb ; i ++) {
#ifdef TRANSLOG
if (TP->TraceLevel() > 2)
- sout<<" -- Actor, shape_representation.item n0. "<<i<<endl;
+ sout<<" -- Actor, shape_representation.item n0. "<<i<<Message_EndLine;
#endif
Handle(StepRepr_RepresentationItem) anitem = sr->ItemsValue(i);
Handle(Transfer_Binder) binder;
#ifdef TRANSLOG
if (TP->TraceLevel() > 2)
- sout<<" -- Actor : case shape_definition_representation."<<endl;
+ sout<<" -- Actor : case shape_definition_representation."<<Message_EndLine;
#endif
Handle(Transfer_Binder) binder = TP->Find(rep);
if (binder.IsNull()) binder = TP->Transferring(rep);
// if (anitem.IsNull()) continue;
#ifdef TRANSLOG
if (TP->TraceLevel() > 1)
- sout<<" -- Actor : Ent.n0 "<<TP->Model()->Number(start)<<" -> Shared Ent.no"<<TP->Model()->Number(anitem)<<endl;
+ sout<<" -- Actor : Ent.n0 "<<TP->Model()->Number(start)<<" -> Shared Ent.no"<<TP->Model()->Number(anitem)<<Message_EndLine;
#endif
if (!TP->IsBound(anitem)) binder = TP->Transferring(anitem);
OSD_Timer chrono;
if (TP->TraceLevel() > 2)
sout << "Begin transfer STEP -> CASCADE, Type "
- << start->DynamicType()->Name() << endl;
+ << start->DynamicType()->Name() << Message_EndLine;
chrono.Start();
#endif
#ifdef TRANSLOG
chrono.Stop();
if (TP->TraceLevel() > 2)
- sout<<"End transfer STEP -> CASCADE :" << (found ? "OK" : " : no result")<<endl;
+ sout<<"End transfer STEP -> CASCADE :" << (found ? "OK" : " : no result")<<Message_EndLine;
if (TP->TraceLevel() > 2)
chrono.Show();
#endif
#ifdef TRANSLOG
// POUR MISE AU POINT, a supprimer ensuite
if (TP->TraceLevel() > 1)
- sout<<" -- Actor : Transfer Ent.n0 "<<TP->Model()->Number(start)<<" Type "<<start->DynamicType()->Name()<<endl;
+ sout<<" -- Actor : Transfer Ent.n0 "<<TP->Model()->Number(start)<<" Type "<<start->DynamicType()->Name()<<Message_EndLine;
#endif
Handle(TransferBRep_ShapeBinder) shbinder;
// Assign uncertainty
#ifdef TRANSLOG
if (TP->TraceLevel() > 1)
- TP->Messenger() <<" Cc1ToTopoDS : Length Unit = "<<myUnit.LengthFactor()<<" Tolerance CASCADE = "<<myPrecision<<endl;
+ TP->Messenger() <<" Cc1ToTopoDS : Length Unit = "<<myUnit.LengthFactor()<<" Tolerance CASCADE = "<<myPrecision<<Message_EndLine;
#endif
}
brepBuilder.Add(result, currentFace);
else {
#ifdef OCCT_DEBUG
- cout << "Redundant closing face detected: REMOVED from shell";
+ std::cout << "Redundant closing face detected: REMOVED from shell";
#endif
}
}
}
}
- cout << "//What is?// NB SOLIDS: " << nbSolids << endl;
- cout << "//What is?// NB SHELLS: " << nbShells << endl;
- cout << "//What is?// OPEN SHELLS: " << nbOpenShells << endl;
- cout << "//What is?// CLOSED SHELLS: " << nbShells - nbOpenShells << endl;
- cout << "//What is?// NB FACES: " << nbFaces << endl;
- cout << "//What is?// NB WIRES: " << nbWires << endl;
- cout << "//What is?// NB EDGES: " << nbEdges << endl;
- cout << "//What is?// NB VERTEXES: " << nbVertexes << endl;
+ std::cout << "//What is?// NB SOLIDS: " << nbSolids << std::endl;
+ std::cout << "//What is?// NB SHELLS: " << nbShells << std::endl;
+ std::cout << "//What is?// OPEN SHELLS: " << nbOpenShells << std::endl;
+ std::cout << "//What is?// CLOSED SHELLS: " << nbShells - nbOpenShells << std::endl;
+ std::cout << "//What is?// NB FACES: " << nbFaces << std::endl;
+ std::cout << "//What is?// NB WIRES: " << nbWires << std::endl;
+ std::cout << "//What is?// NB EDGES: " << nbEdges << std::endl;
+ std::cout << "//What is?// NB VERTEXES: " << nbVertexes << std::endl;
}
#endif
Standard_Integer aNbEdges = aMapEdgeFaces.Extent();
#ifdef OCCT_DEBUG
- cout << "Checking whether the topology passed is manifold..." << endl;
+ std::cout << "Checking whether the topology passed is manifold..." << std::endl;
#endif
// Check topology
}
#ifdef OCCT_DEBUG
- cout << "Check result: "
- << (aResult ? "TRUE" : "FALSE") << endl;
+ std::cout << "Check result: "
+ << (aResult ? "TRUE" : "FALSE") << std::endl;
#endif
return aResult;
if ( aResult.IsNull() ) {
#ifdef OCCT_DEBUG
- cout << "\nNew NMSSR created" << endl;
+ std::cout << "\nNew NMSSR created" << std::endl;
#endif
aResult = new StepShape_NonManifoldSurfaceShapeRepresentation;
isNMSSRCreated = Standard_True;
} else {
#ifdef OCCT_DEBUG
- cout << "\nExisting NMSSR is used" << endl;
+ std::cout << "\nExisting NMSSR is used" << std::endl;
#endif
isNMSSRCreated = Standard_False;
}
// as assembly - while face already translated, it should be
// re-translated to break sharing
#ifdef OCCT_DEBUG
- cout << "Warning: STEPControl_ActorWrite::TransferShape(): shape already translated" << endl;
+ std::cout << "Warning: STEPControl_ActorWrite::TransferShape(): shape already translated" << std::endl;
#endif
// return binder;
}
#ifdef OCCT_DEBUG
if (!isManifold)
- cout << "Exploding Solids to Shells if any..." << endl;
+ std::cout << "Exploding Solids to Shells if any..." << std::endl;
#endif
for (TopoDS_Iterator iter(theShape); iter.More(); iter.Next()) {
}
if (iSexclude) {
#ifdef OCCT_DEBUG
- cout << "Warning: STEPControl_Reader::NbRootsForTransfer exclude PDWAD from roots" << endl;
+ std::cout << "Warning: STEPControl_Reader::NbRootsForTransfer exclude PDWAD from roots" << std::endl;
#endif
continue;
}
//for ( Standard_Integer j=0; j < level; j++ ) os << "\t";
os << "SDR: " <<Model->StringLabel(cmp->GetSDR())->ToCString()<<"\t";
- os << "Product: "<<GetProductName(cmp->GetSDR())<<endl;
+ os << "Product: "<<GetProductName(cmp->GetSDR())<<std::endl;
for ( Standard_Integer i = 1; i <= cmp->GetList()->Length(); i++) {
for ( Standard_Integer j=0; j < level+1; j++ ) os << "\t";
os << "NAUO :"<<Model->StringLabel(cmp->GetList()->Value(i)->GetNAUO())->ToCString()<<";\t";
{
Handle(Interface_InterfaceModel) model = myGraph.Model();
for(Standard_Integer i = 1 ; i <=myRoots.Length(); i++) {
- os<<"Assembly N: "<<i<<endl<<endl;
+ os<<"Assembly N: "<<i<<std::endl<<std::endl;
PrintSubAssembly(os,myRoots.Value(i),model,0);
}
}
if ( ! num1 ) di << "Concerned faces saved to shapes ";
Sprintf ( name, "%.10s_%d", prefix, num1+1 );
DBRep::Set (name,face);
- //cout << ( num1 ? ", " : "" ) << name;
+ //std::cout << ( num1 ? ", " : "" ) << name;
if (num1 == 0) {
di << "" << name;
} else {
for (int i = 0; i < 2; i ++) {
Standard_Boolean viaCompound = (i != 0);
TopAbs_ShapeEnum ts = sbx.ShapeType(Shape, viaCompound);
- //cout<<" Type "<<(i ? " (via Compound) : " : "(True) : ");
+ //std::cout<<" Type "<<(i ? " (via Compound) : " : "(True) : ");
if (!viaCompound) {
di<<" Type (True) : ";
} else {
Standard_Integer nb = sfw->NbEdges();
for (i = 1; i <= nb; i ++) {
Standard_Boolean stat = sfw->FixSmall (i, Standard_True, 0.0);
- //cout<<"FixSmall for"<<i<<(stat ? " done" : " not done"); //:sw <<" StatusFix="<<STW.StatusFix()<<"\n";
+ //std::cout<<"FixSmall for"<<i<<(stat ? " done" : " not done"); //:sw <<" StatusFix="<<STW.StatusFix()<<"\n";
di<<"FixSmall for"<<i;
if (!stat) {
di<<" not done";
char opt = argv[i][0];
if (opt == '+') opt = argv[i][1];
if (opt == '-') { opt = argv[i][1]; valopt = Standard_False; }
- //cout<<(valopt ? ".." : ".. NO");
+ //std::cout<<(valopt ? ".." : ".. NO");
if (!valopt) {
di<<".. NO";
} else {
}
}
- aSStream << " Fix" << setw (58) << "Count\n";
+ aSStream << " Fix" << std::setw (58) << "Count\n";
aSStream << " ------------------------------------------------------------\n";
for ( TColStd_DataMapIteratorOfDataMapOfAsciiStringInteger anIter ( aMapOfNumberOfFixes ); anIter.More(); anIter.Next() )
{
- aSStream << " " << anIter.Key() << setw ( 60 - anIter.Key().Length() ) << anIter.Value() << "\n";
+ aSStream << " " << anIter.Key() << std::setw ( 60 - anIter.Key().Length() ) << anIter.Value() << "\n";
}
aSStream << " ------------------------------------------------------------\n";
di << aSStream;
if ( uval.Length() >0 ) {
di << "Splitting by U: ";
for ( Standard_Integer j=1; j <= uval.Length(); j++ ) {
- //cout << ( i >j ? ", " : "" ) << uval(j);
+ //std::cout << ( i >j ? ", " : "" ) << uval(j);
if (i >j) {
di << ", ";
} else {
if ( vval.Length() >0 ) {
di << "Splitting by V: ";
for ( Standard_Integer j=1; j <= vval.Length(); j++ ) {
- //cout << ( j >1 ? ", " : "" ) << vval(j);
+ //std::cout << ( j >1 ? ", " : "" ) << vval(j);
if (j >1) {
di << ", ";
} else {
{
if ( theArgc < 4 )
{
- cout << "Error: wrong number of arguments. Type 'help " << theArgv[0] << "'\n";
+ std::cout << "Error: wrong number of arguments. Type 'help " << theArgv[0] << "'\n";
return 1;
}
TopoDS_Shape aSource = DBRep::Get(theArgv[2]);
if ( aSource.IsNull() )
{
- cout << "Error: source shape ('" << theArgv[2] << "') is null\n";
+ std::cout << "Error: source shape ('" << theArgv[2] << "') is null\n";
return 1;
}
{
if ( theArgc - i < 3 )
{
- cout << "Error: not enough arguments for replacement\n";
+ std::cout << "Error: not enough arguments for replacement\n";
return 1;
}
TopoDS_Shape aWhat = DBRep::Get(theArgv[++i]);
if ( aWhat.IsNull() )
{
- cout << "Error: argument shape ('" << theArgv[i] << "') is null\n";
+ std::cout << "Error: argument shape ('" << theArgv[i] << "') is null\n";
return 1;
}
TopoDS_Shape aWith = DBRep::Get(theArgv[++i]);
if ( aWith.IsNull() )
{
- cout << "Error: replacement shape ('" << theArgv[i] << "') is null\n";
+ std::cout << "Error: replacement shape ('" << theArgv[i] << "') is null\n";
return 1;
}
{
if ( theArgc - i < 2 )
{
- cout << "Error: not enough arguments for removal\n";
+ std::cout << "Error: not enough arguments for removal\n";
return 1;
}
TopoDS_Shape aWhat = DBRep::Get(theArgv[++i]);
if ( aWhat.IsNull() )
{
- cout << "Error: shape to remove ('" << theArgv[i] << "') is null\n";
+ std::cout << "Error: shape to remove ('" << theArgv[i] << "') is null\n";
return 1;
}
}
else
{
- cout << "Error: invalid syntax at " << anOpt << "\n" ;
+ std::cout << "Error: invalid syntax at " << anOpt << "\n" ;
return 1;
}
}
TopoDS_Shape aResult = aReShaper->Apply(aSource);
if ( aResult.IsNull() )
{
- cout << "Error: result shape is null\n";
+ std::cout << "Error: result shape is null\n";
return 1;
}
case 2: myStatusPin = ShapeExtend::EncodeStatus (ShapeExtend_DONE2); break;
default : break;
}
- // cout<<(whatstat == 1 ? "Smooth" : "Sharp")<<" Pin on "<<(sens == 1 ? "U" : "V")<<" Row n0 "<<whatrow<<endl;
+ // std::cout<<(whatstat == 1 ? "Smooth" : "Sharp")<<" Pin on "<<(sens == 1 ? "U" : "V")<<" Row n0 "<<whatrow<<std::endl;
if (stat == 1 )
{
// Standard_Boolean EqualPoles = Standard_False;
// }
// catch (Standard_Failure)
// {
-// cout << "Couldn't compute angle between derivative vectors" <<endl;
+// std::cout << "Couldn't compute angle between derivative vectors" <<std::endl;
// return Standard_False;
// }
-// cout << "angle1 " << angle1<< endl;
-// cout << "angle2 " << angle2<< endl;
+// std::cout << "angle1 " << angle1<< std::endl;
+// std::cout << "angle2 " << angle2<< std::endl;
// if (angle1<=0.0001) return Standard_True;
gp_Pnt proj;
if (p1.Distance(p2)<pp1.Distance(pp2))
catch (Standard_Failure const&)
{
#ifdef OCCT_DEBUG
- cout << "Couldn't compute angle between derivative vectors" <<endl;
+ std::cout << "Couldn't compute angle between derivative vectors" <<std::endl;
#endif
return Standard_False;
}
-// cout << "angle1 " << angle1<< endl;
-// cout << "angle2 " << angle2<< endl;
+// std::cout << "angle1 " << angle1<< std::endl;
+// std::cout << "angle2 " << angle2<< std::endl;
if ((angle1<=0.001 && angle2<=0.01) || ((M_PI-angle2)<= 0.001 && (M_PI-angle2)<= 0.01)) return Standard_True;
else return Standard_False;
}
if (aHasChanged)
distmin = Sqrt (distmin2);
#ifdef OCCT_DEBUG
- cout<<"ShapeAnalysis_Geom:Project, param="<<param<<" -> distmin="<<distmin<<endl;
+ std::cout<<"ShapeAnalysis_Geom:Project, param="<<param<<" -> distmin="<<distmin<<std::endl;
#endif
uMax = Min (uMax, param+delta);
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
//:s5
- cout << "\nWarning: ShapeAnalysis_Curve::ProjectAct(): Exception in Extrema_ExtPC: ";
- anException.Print(cout); cout << endl;
+ std::cout << "\nWarning: ShapeAnalysis_Curve::ProjectAct(): Exception in Extrema_ExtPC: ";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
OK = Standard_False;
if (aDistNewton < aModMin)
return aDistNewton;
}
- // cout <<"newton failed"<<endl;
+ // std::cout <<"newton failed"<<std::endl;
ProjectOnSegments (C3D,P3D,40,uMin,uMax,distmin,proj,param);
if (distmin <= preci) return distmin;
ProjectOnSegments (C3D,P3D,20,uMin,uMax,distmin,proj,param);
if (theCurve->IsKind(STANDARD_TYPE(Geom_BoundedCurve)) && !theCurve->IsClosed()) {
if (First < cf) {
#ifdef OCCT_DEBUG
- cout << "Update Edge First Parameter to Curve First Parameter" << endl;
+ std::cout << "Update Edge First Parameter to Curve First Parameter" << std::endl;
#endif
First = cf;
}
else if (First > cl) {
#ifdef OCCT_DEBUG
- cout << "Update Edge First Parameter to Curve Last Parameter" << endl;
+ std::cout << "Update Edge First Parameter to Curve Last Parameter" << std::endl;
#endif
First = cl;
}
if (Last < cf) {
#ifdef OCCT_DEBUG
- cout << "Update Edge Last Parameter to Curve First Parameter" << endl;
+ std::cout << "Update Edge Last Parameter to Curve First Parameter" << std::endl;
#endif
Last = cf;
}
else if (Last > cl) {
#ifdef OCCT_DEBUG
- cout << "Update Edge Last Parameter to Curve Last Parameter" << endl;
+ std::cout << "Update Edge Last Parameter to Curve Last Parameter" << std::endl;
#endif
Last = cl;
}
if ( theCurve->Value(Last).Distance(theCurve->Value(cl)) < preci ) Last = cl;
if ( First > Last ) {
#ifdef OCCT_DEBUG
- cout << "Warning : parameter range of edge crossing non periodic curve origin" << endl;
+ std::cout << "Warning : parameter range of edge crossing non periodic curve origin" << std::endl;
#endif
Standard_Real tmp = First;
First = Last;
// on inverse quand meme les parametres !!!!!!
else {
#ifdef OCCT_DEBUG
- cout << "Warning : parameter range of edge crossing non periodic curve origin" << endl;
+ std::cout << "Warning : parameter range of edge crossing non periodic curve origin" << std::endl;
#endif
Standard_Real tmp = First;
First = Last;
//abv 15.03.00 #72 bm1_pe_t4 protection of exceptions in draw
else if ( First > Last ) {
#ifdef OCCT_DEBUG
- cout << "Warning: parameter range is bad; curve reversed" << endl;
+ std::cout << "Warning: parameter range is bad; curve reversed" << std::endl;
#endif
First = theCurve->ReversedParameter ( First );
Last = theCurve->ReversedParameter ( Last );
}
else {
#ifdef OCCT_DEBUG
- cout << "UpdateParam3d Failed" << endl;
- cout << " - Curve Type : " << theCurve->DynamicType() << endl;
- cout << " - Param 1 : " << First << endl;
- cout << " - Param 2 : " << Last << endl;
+ std::cout << "UpdateParam3d Failed" << std::endl;
+ std::cout << " - Curve Type : " << theCurve->DynamicType() << std::endl;
+ std::cout << " - Param 1 : " << First << std::endl;
+ std::cout << " - Param 2 : " << Last << std::endl;
#endif
//abv 15.03.00 #72 bm1_pe_t4 protection of exceptions in draw
if ( First > Last ) {
#ifdef OCCT_DEBUG
- cout << "Warning: parameter range is bad; curve reversed" << endl;
+ std::cout << "Warning: parameter range is bad; curve reversed" << std::endl;
#endif
First = theCurve->ReversedParameter ( First );
Last = theCurve->ReversedParameter ( Last );
catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
//:s5
- cout << "\nWarning: ShapeAnalysis_Surface, ComputeIso(): Exception in UVIso(): ";
- anException.Print(cout); cout << endl;
+ std::cout << "\nWarning: ShapeAnalysis_Surface, ComputeIso(): Exception in UVIso(): ";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
iso.Nullify();
// if ( rs2 > 100 * preci * preci ) { fail = 6; break; }
// OK, return the result
- // cout << "Newton: solution found in " << i+1 << " iterations" << endl;
+ // std::cout << "Newton: solution found in " << i+1 << " iterations" << std::endl;
sol.SetCoord(U, V);
return (nrm2 < 0.01 * ru2 * rv2 ? 2 : 1); //:q6
}
- // cout << "Newton: failed after " << i+1 << " iterations (fail " << fail << " )" << endl;
+ // std::cout << "Newton: failed after " << i+1 << " iterations (fail " << fail << " )" << std::endl;
return Standard_False;
}
if (SurfaceNewton(prev, P3D, preci, solution) != 0)
{
#ifdef OCCT_DEBUG
- cout << "Newton found point on conic extrusion" << endl;
+ std::cout << "Newton found point on conic extrusion" << std::endl;
#endif
return solution;
}
#ifdef OCCT_DEBUG
- cout << "Newton failed point on conic extrusion" << endl;
+ std::cout << "Newton failed point on conic extrusion" << std::endl;
#endif
uf = -500;
ul = 500;
}
else {
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeAnalysis_Surface::ValueOfUV(): Extrema failed, doing Newton" << endl;
+ std::cout << "Warning: ShapeAnalysis_Surface::ValueOfUV(): Extrema failed, doing Newton" << std::endl;
#endif
// on essai sur les bords
Standard_Real UU = S, VV = T;//, DistMinOnIso;
// En attendant, on met une valeur "pas idiote" mais surement fausse ...
//szv#4:S4163:12Mar99 optimized
//:s5
- cout << "\nWarning: ShapeAnalysis_Surface::ValueOfUV(): Exception: ";
- anException.Print(cout); cout << endl;
+ std::cout << "\nWarning: ShapeAnalysis_Surface::ValueOfUV(): Exception: ";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
S = (Precision::IsInfinite(uf)) ? 0 : (uf + ul) / 2.;
Bnd_Box aPBox;
aPBox.Set(P3d);
- //cout<<"Adaptor3d()->Surface().GetType() = "<<Adaptor3d()->Surface().GetType()<<endl;
+ //std::cout<<"Adaptor3d()->Surface().GetType() = "<<Adaptor3d()->Surface().GetType()<<std::endl;
//modified by rln on 04/12/97 in order to use theese variables later
Standard_Boolean UV = Standard_True;
catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
//:s5
- cout << "\nWarning: ShapeAnalysis_Curve::UVFromIso(): Exception: ";
- anException.Print(cout); cout << endl;
+ std::cout << "\nWarning: ShapeAnalysis_Curve::UVFromIso(): Exception: ";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
theMin = RealLast(); // theMin de depart
void ShapeAnalysis_WireOrder::SetCouples(const Standard_Real /*gap*/)
{
#ifdef OCCT_DEBUG
- cout<<"ShapeAnalysis_WireOrder:SetCouple not yet implemented"<<endl;
+ std::cout<<"ShapeAnalysis_WireOrder:SetCouple not yet implemented"<<std::endl;
#endif
}
}
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "\nWarning: ShapeBuild_Edge: Exception in BuildCurve3d: ";
- anException.Print(cout); cout << endl;
+ std::cout << "\nWarning: ShapeBuild_Edge: Exception in BuildCurve3d: ";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
}
BRepBuilderAPI_MakeEdge ME (curve, p1, p2);
if (!ME.IsDone()) {
#ifdef OCCT_DEBUG
- cout << "\nWarning: ShapeBuild_Edge::MakeEdge BRepAPI_NotDone";
+ std::cout << "\nWarning: ShapeBuild_Edge::MakeEdge BRepAPI_NotDone";
#endif
return;
}
BRepBuilderAPI_MakeEdge ME (pcurve, S, p1, p2);
if (!ME.IsDone()) {
#ifdef OCCT_DEBUG
- cout << "\nWarning: ShapeBuild_Edge::MakeEdge BRepAPI_NotDone";
+ std::cout << "\nWarning: ShapeBuild_Edge::MakeEdge BRepAPI_NotDone";
#endif
return;
}
return S;
}
}
- cout<<"BRepTools_ReShape::Apply NOT YET IMPLEMENTED"<<endl;
+ std::cout<<"BRepTools_ReShape::Apply NOT YET IMPLEMENTED"<<std::endl;
return shape;
}
}
catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Warning: GeomConvert_ApproxSurface Exception: ";
- anException.Print(cout); cout << endl;
+ std::cout << "Warning: GeomConvert_ApproxSurface Exception: ";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
aBSpline = GeomConvert::CurveToBSplineCurve(C3D,Convert_QuasiAngular);
gp_Ax1 axis = revol->Axis();
Handle(Geom_SurfaceOfRevolution) newRevol = new Geom_SurfaceOfRevolution(bspl,axis);
#ifdef OCCT_DEBUG
- cout <<" Revolution on offset converted" << endl;
+ std::cout <<" Revolution on offset converted" << std::endl;
#endif
S = newRevol;
}
#ifdef OCCT_DEBUG
Standard_Integer nbOfSpan = (anApprox.Surface()->NbUKnots()-1)*(anApprox.Surface()->NbVKnots()-1);
- cout << "\terror = " << anApprox.MaxError() << "\tspans = " << nbOfSpan << endl;
- cout << " Surface is aproximated with continuity " << (GeomAbs_Shape)cnt <<endl;
+ std::cout << "\terror = " << anApprox.MaxError() << "\tspans = " << nbOfSpan << std::endl;
+ std::cout << " Surface is aproximated with continuity " << (GeomAbs_Shape)cnt <<std::endl;
#endif
S = anApprox.Surface();
Handle(Geom_BSplineSurface) Bsc = Handle(Geom_BSplineSurface)::DownCast(S);
if(anApprox.HasResult())
errSpl = anApprox.Surface();
#ifdef OCCT_DEBUG
- cout << "\terror = " << anApprox.MaxError() <<endl;
+ std::cout << "\terror = " << anApprox.MaxError() <<std::endl;
#endif
break;
}
catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Warning: GeomConvert_ApproxSurface Exception: try to decrease continuity ";
- anException.Print(cout); cout << endl;
+ std::cout << "Warning: GeomConvert_ApproxSurface Exception: try to decrease continuity ";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
if(cnt > 0) cnt--;
}
catch ( Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout<<"Error: ShapeConstruct::JoinPCurves Exception in GeomConvert_CompCurveToBSplineCurve: ";
- anException.Print(cout); cout<<endl;
+ std::cout<<"Error: ShapeConstruct::JoinPCurves Exception in GeomConvert_CompCurveToBSplineCurve: ";
+ anException.Print(std::cout); std::cout<<std::endl;
#endif
(void)anException;
}
}
catch ( Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeConstruct_Curve::ConvertToBSpline(): Exception in GeomConvert: ";
- anException.Print(cout); cout << endl;
+ std::cout << "Warning: ShapeConstruct_Curve::ConvertToBSpline(): Exception in GeomConvert: ";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
}
}
catch ( Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeConstruct_Curve::ConvertToBSpline(): Exception in Segment: ";
- anException.Print(cout); cout << endl;
+ std::cout << "Warning: ShapeConstruct_Curve::ConvertToBSpline(): Exception in Segment: ";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
}
}
catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeConstruct_Curve::ConvertToBSpline(): Exception in Approx_Curve3d: ";
- anException.Print(cout); cout << endl;
+ std::cout << "Warning: ShapeConstruct_Curve::ConvertToBSpline(): Exception in Approx_Curve3d: ";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
}
}
catch ( Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeConstruct_Curve::ConvertToBSpline(): Exception in Geom2dConvert: ";
- anException.Print(cout); cout << endl;
+ std::cout << "Warning: ShapeConstruct_Curve::ConvertToBSpline(): Exception in Geom2dConvert: ";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
}
}
catch ( Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeConstruct_Curve::ConvertToBSpline(): Exception in Segment: ";
- anException.Print(cout); cout << endl;
+ std::cout << "Warning: ShapeConstruct_Curve::ConvertToBSpline(): Exception in Segment: ";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
}
}
catch ( Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeConstruct_Curve::ConvertToBSpline(): Exception in Approx_Curve3d: ";
- anException.Print(cout); cout << endl;
+ std::cout << "Warning: ShapeConstruct_Curve::ConvertToBSpline(): Exception in Approx_Curve3d: ";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
}
while ( nbPini < minPnt ) nbPini += NCONTROL - 1;
#ifdef OCCT_DEBUG
if ( nbPini > NCONTROL )
- cout << "Warning: number of points for projecting is " << nbPini << endl;
+ std::cout << "Warning: number of points for projecting is " << nbPini << std::endl;
#endif
}
}
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeConstruct_ProjectCurveOnSurface::PerformByProjLib(): Exception: ";
- anException.Print(cout); cout << endl;
+ std::cout << "Warning: ShapeConstruct_ProjectCurveOnSurface::PerformByProjLib(): Exception: ";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
myStatus = ShapeExtend::EncodeStatus (ShapeExtend_FAIL3);
const Standard_Real TolOnVPeriod = Precision::Confusion() * Vp;
#ifdef OCCT_DEBUG
if (mySurf->IsUClosed(myPreci) && mySurf->IsVClosed(myPreci)) {//#78 rln 12.03.99 S4135
- cout << "WARNING : Recadrage incertain sur U & VClosed" << endl;
+ std::cout << "WARNING : Recadrage incertain sur U & VClosed" << std::endl;
}
#endif
// Si la surface est UCLosed, on recadre les points
#ifdef OCCT_DEBUG
dist2d = pnt2d (aPntIter - 1).Distance(pnt2d (aPntIter));
if (dist2d > ( Vp / 2) ) {
- cout << "Echec dans le recadrage" << endl;
+ std::cout << "Echec dans le recadrage" << std::endl;
}
#endif
}
// debug ...
Standard_Integer nbp = params->Length();
Standard_Integer nb2 = points2d->Length();
- cout << "Warning: ShapeConstruct_ProjectCurveOnSurface::ApproximatePCurve(): Exception: ";
- anException.Print(cout);
- cout<<"Pb Geom2dAPI_Approximate, tol2d="<<theTolerance2d<<" NbParams="<<nbp<<" NbPnts="<<nb2<<endl;
+ std::cout << "Warning: ShapeConstruct_ProjectCurveOnSurface::ApproximatePCurve(): Exception: ";
+ anException.Print(std::cout);
+ std::cout<<"Pb Geom2dAPI_Approximate, tol2d="<<theTolerance2d<<" NbParams="<<nbp<<" NbPnts="<<nb2<<std::endl;
// if (nb2 > nbp) nb2 = nbp;
// Standard_Real rbp,rb2; rbp = nbp; rb2 = nb2;
// // dbl.AddString ("NbP2d/NbParams puis X Y Param -> mini");
// // debug ...
Standard_Integer nbp = params->Length();
Standard_Integer nb2 = points2d->Length();
- cout << "Warning: ShapeConstruct_ProjectCurveOnSurface::InterpolatePCurve(): Exception: ";
- anException.Print(cout);
- cout<<"Pb Geom2dAPI_Interpolate, tol2d="<<theTolerance2d<<" NbParams="<<nbp<<" NbPnts="<<nb2<<endl;
+ std::cout << "Warning: ShapeConstruct_ProjectCurveOnSurface::InterpolatePCurve(): Exception: ";
+ anException.Print(std::cout);
+ std::cout<<"Pb Geom2dAPI_Interpolate, tol2d="<<theTolerance2d<<" NbParams="<<nbp<<" NbPnts="<<nb2<<std::endl;
// if (nb2 > nbp) nb2 = nbp;
// Standard_Real rbp,rb2; rbp = nbp; rb2 = nb2;
// // dbl.AddString ("NbP2d/NbParams puis X Y Param -> mini");
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
//:s5
- cout << "Warning: ShapeConstruct_ProjectCurveOnSurface::InterpolateCurve3d(): Exception: ";
- anException.Print(cout); cout << endl;
+ std::cout << "Warning: ShapeConstruct_ProjectCurveOnSurface::InterpolateCurve3d(): Exception: ";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
C3d.Nullify();
return;
#ifdef OCCT_DEBUG
- cout << "Warning : removing 3d points for interpolation" << endl;
+ std::cout << "Warning : removing 3d points for interpolation" << std::endl;
#endif
// Build new HArrays
Standard_Integer newLast = lastElem - nbPntDropped;
if ((newLast - firstElem + 1) < 2) {
#ifdef OCCT_DEBUG
- cout << "Too many degenerated points for 3D interpolation" << endl;
+ std::cout << "Too many degenerated points for 3D interpolation" << std::endl;
#endif
return;
}
return;
#ifdef OCCT_DEBUG
- cout << "Warning : removing 2d points for interpolation" << endl;
+ std::cout << "Warning : removing 2d points for interpolation" << std::endl;
#endif
// Build new HArrays
Standard_Integer newLast = lastElem - nbPntDropped;
if ((newLast - firstElem + 1) < 2) {
#ifdef OCCT_DEBUG
- cout << "Too many degenerated points for 2D interpolation" << endl;
+ std::cout << "Too many degenerated points for 2D interpolation" << std::endl;
#endif
//pdn 12.02.99 S4135 Creating pcurve with minimal length.
tmpParam.SetValue(firstElem,1);
for (i = firstElem; i <= lastElem ; i++) {
if (tmpParam.Value(i) == 1) {
#ifdef OCCT_DEBUG
- cout << "Point " << i << " : " << points->Value(i).X() << " " << points->Value(i).Y() << " at param " << params->Value(i) << endl;
+ std::cout << "Point " << i << " : " << points->Value(i).X() << " " << points->Value(i).Y() << " at param " << params->Value(i) << std::endl;
#endif
newPnts->SetValue(newCurr, points->Value(i));
newParams->SetValue(newCurr, params->Value(i));
}
else {
#ifdef OCCT_DEBUG
- cout << "Removed " << i << " : " << points->Value(i).X() << " " << points->Value(i).Y() << " at param " << params->Value(i) << endl;
+ std::cout << "Removed " << i << " : " << points->Value(i).X() << " " << points->Value(i).Y() << " at param " << params->Value(i) << std::endl;
#endif
}
}
#ifdef OCCT_DEBUG
// pb : on affiche ce qu on peut
for (Standard_Integer numpnt = 1; numpnt <= nbrPnt; numpnt ++) {
- cout<<"["<<numpnt<<"]param="<<params(numpnt)<<" point=("<<
- points(numpnt).X()<<" "<<points(numpnt).Y()<<" "<<points(numpnt).Z()<<")"<<endl;
+ std::cout<<"["<<numpnt<<"]param="<<params(numpnt)<<" point=("<<
+ points(numpnt).X()<<" "<<points(numpnt).Y()<<" "<<points(numpnt).Z()<<")"<<std::endl;
}
- cout << "Warning: ShapeConstruct_ProjectCurveOnSurface::IsAnIsoparametric(): Exception: ";
- anException.Print(cout); cout << endl;
+ std::cout << "Warning: ShapeConstruct_ProjectCurveOnSurface::IsAnIsoparametric(): Exception: ";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
return Standard_False;
Handle(Geom_SurfaceOfRevolution) newRevol = new Geom_SurfaceOfRevolution(ResCurve,Surface->Axis());
aSurf = newRevol;
#ifdef OCCT_DEBUG
- cout <<" Revolution on offset converted" << endl;
+ std::cout <<" Revolution on offset converted" << std::endl;
#endif
}
}
nbOfSpan = (anApprox.Surface()->NbUKnots()-1)*(anApprox.Surface()->NbVKnots()-1);
#ifdef OCCT_DEBUG
if((imax-i+1)!=1) {
- cout << " iteration = " << i
+ std::cout << " iteration = " << i
<< "\terror = " << anApprox.MaxError()
- << "\tspans = " << nbOfSpan << endl;
- cout<< " Surface is aproximated with continuity " << IntegerToGeomAbsShape(Min(aCU,aCV)) <<endl;
+ << "\tspans = " << nbOfSpan << std::endl;
+ std::cout<< " Surface is aproximated with continuity " << IntegerToGeomAbsShape(Min(aCU,aCV)) <<std::endl;
}
#endif
S = anApprox.Surface();
catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Warning: GeomConvert_ApproxSurface Exception: try to decrease continuity ";
- anException.Print(cout); cout << endl;
+ std::cout << "Warning: GeomConvert_ApproxSurface Exception: try to decrease continuity ";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
//szv: protection against loop
}
else {
#ifdef OCCT_DEBUG
- cout<<" Approximation iteration out. Surface is not aproximated." << endl;
+ std::cout<<" Approximation iteration out. Surface is not aproximated." << std::endl;
#endif
return Standard_False;
}
{ MaxDeg = myParameters->GMaxDegree(); continue;}
else {
#ifdef OCCT_DEBUG
- cout<<" Approximation iteration out. Surface is not aproximated." << endl;
+ std::cout<<" Approximation iteration out. Surface is not aproximated." << std::endl;
#endif
return Standard_False;
}
if(MaxSeg < myParameters->GMaxSeg()) { MaxSeg = myParameters->GMaxSeg(); aC =aC1; continue;}
else {
#ifdef OCCT_DEBUG
- cout << "Curve is not aproxed with continuity "<< aCont<<endl;
+ std::cout << "Curve is not aproxed with continuity "<< aCont<<std::endl;
#endif
if(IsConvert) {
C = Handle(Geom_Curve)::DownCast(aCurve->Copy());
}
else {
#ifdef OCCT_DEBUG
- cout << "Curve is not aproxed with continuity "<< aCont<<endl;
+ std::cout << "Curve is not aproxed with continuity "<< aCont<<std::endl;
#endif
if(IsConvert) {
C = Handle(Geom_Curve)::DownCast(aCurve->Copy());
}
catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Warning: GeomConvert_ApproxCurve Exception: Wrong Coefficient : Decrease continuity ";
- anException.Print(cout); cout << endl;
+ std::cout << "Warning: GeomConvert_ApproxCurve Exception: Wrong Coefficient : Decrease continuity ";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
continue;
if(MaxSeg < myParameters->GMaxSeg()) { MaxSeg = myParameters->GMaxSeg(); aC =aC1; continue;}
else {
#ifdef OCCT_DEBUG
- cout << "Curve is not aproxed with continuity "<< aCont<<endl;
+ std::cout << "Curve is not aproxed with continuity "<< aCont<<std::endl;
#endif
if(IsConvert) {
C = Handle(Geom2d_Curve)::DownCast(aCurve->Copy());
}
else {
#ifdef OCCT_DEBUG
- cout << "Curve is not aproxed with continuity "<< aCont<<endl;
+ std::cout << "Curve is not aproxed with continuity "<< aCont<<std::endl;
#endif
if(IsConvert) {
C = Handle(Geom2d_Curve)::DownCast(aCurve->Copy());
}
catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Warning: Geom2dConvert_ApproxCurve Exception: Wrong Cofficient :Decrease Continuity ";
- anException.Print(cout); cout << endl;
+ std::cout << "Warning: Geom2dConvert_ApproxCurve Exception: Wrong Cofficient :Decrease Continuity ";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
continue;
}
}
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeCustom_Surface: Closed BSplineSurface is caused to be periodic" << endl;
+ std::cout << "Warning: ShapeCustom_Surface: Closed BSplineSurface is caused to be periodic" << std::endl;
#endif
if ( ! converted ) return newCurve;
newCurve = BSpl;
0.5*(p1(i).Y()+p2(i).Y()),
0.5*(p1(i).Z()+p2(i).Z()));
R(i) = p3(i).Distance(p1(i));
-// cout<<"sphere, i="<<i<<" V="<<V<<" R="<<R(i)<<" p1="<<p1(i).X()<<","<<p1(i).Y()<<","<<p1(i).Z()<<" p2="<<p2(i).X()<<","<<p2(i).Y()<<","<<p2(i).Z()<<" p3="<<p3(i).X()<<","<<p3(i).Y()<<","<<p3(i).Z()<<endl;
+// std::cout<<"sphere, i="<<i<<" V="<<V<<" R="<<R(i)<<" p1="<<p1(i).X()<<","<<p1(i).Y()<<","<<p1(i).Z()<<" p2="<<p2(i).X()<<","<<p2(i).Y()<<","<<p2(i).Z()<<" p3="<<p3(i).X()<<","<<p3(i).Y()<<","<<p3(i).Z()<<std::endl;
}
iso->D1 (0.,origPnt,origD1U);
//gp_Dir AXY = aAx3.YDirection(); // AXY not used (skl)
if (aAx3.YDirection().Dot (origD1U) < 0) {
#ifdef OCCT_DEBUG
- cout<<" Surface Analytique : sens a inverser"<<endl;
+ std::cout<<" Surface Analytique : sens a inverser"<<std::endl;
#endif
aAx3.YReverse(); // mais X reste !
}
anObject->D1 (0.,0.,resPnt,resD1U,resD1V);
#ifdef OCCT_DEBUG
if (resD1U.Dot(origD1U) < 0 && j != 2)
- cout<<" Tore a inverser !"<<endl;
+ std::cout<<" Tore a inverser !"<<std::endl;
#endif
newSurf = anObject;
isFound = Standard_True;
}
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeCustom_Surface: Closed BSplineSurface is caused to be periodic" << endl;
+ std::cout << "Warning: ShapeCustom_Surface: Closed BSplineSurface is caused to be periodic" << std::endl;
#endif
if ( ! converted ) return newSurf;
newSurf = BSpl;
(Curve (i + 1)->Value (Curve(i + 1)->FirstParameter()), Preci);
}
#ifdef OCCT_DEBUG
- if (!ok) cout << "Warning: ShapeExtend_ComplexCurve: not connected in 3d" << endl;
+ if (!ok) std::cout << "Warning: ShapeExtend_ComplexCurve: not connected in 3d" << std::endl;
#endif
return ok;
}
ok = Standard_False;
ComputeJointValues ( ShapeExtend_Natural );
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeExtend_CompositeSurface::Init: bad joint values" << endl;
+ std::cout << "Warning: ShapeExtend_CompositeSurface::Init: bad joint values" << std::endl;
#endif
}
}
#ifdef OCCT_DEBUG
- if ( ! ok ) cout << "Warning: ShapeExtend_CompositeSurface: not connected in 3d" << endl;
+ if ( ! ok ) std::cout << "Warning: ShapeExtend_CompositeSurface: not connected in 3d" << std::endl;
#endif
return ok;
}
{
if (object.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeExtend_MsgRegistrator::Send: null object" << endl;
+ std::cout << "Warning: ShapeExtend_MsgRegistrator::Send: null object" << std::endl;
#endif
return;
}
{
if (shape.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeExtend_MsgRegistrator::Send: null shape" << endl;
+ std::cout << "Warning: ShapeExtend_MsgRegistrator::Send: null shape" << std::endl;
#endif
return;
}
if (!status) {
#ifdef OCCT_DEBUG
- cout<<"** SameParameter not complete. On "<<numedge<<" Edges:";
- if (nbfail > 0) cout<<" "<<nbfail<<" Failed";
- cout<<endl;
+ std::cout<<"** SameParameter not complete. On "<<numedge<<" Edges:";
+ if (nbfail > 0) std::cout<<" "<<nbfail<<" Failed";
+ std::cout<<std::endl;
#endif
}
return status;
TopoDS_Edge E = TopoDS::Edge ( it.Value() );
if ( ! E.IsNull() ) segw->Add ( E );
#ifdef OCCT_DEBUG
- else cout << "Error: ShapeFix_ComposeShell, ApplyContext: wrong mapping of edge" << endl;
+ else std::cout << "Error: ShapeFix_ComposeShell, ApplyContext: wrong mapping of edge" << std::endl;
#endif
}
}
}
#ifdef OCCT_DEBUG
- else cout << "Warning: ShapeFix_ComposeShell, ApplyContext: edge is to remove - not implemented" << endl;
+ else std::cout << "Warning: ShapeFix_ComposeShell, ApplyContext: edge is to remove - not implemented" << std::endl;
#endif
return index - iedge;
code = IOR_LEFT;
myStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_FAIL2 );
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeFix_ComposeShell::ComputeCode: lost intersection point" << endl;
+ std::cout << "Warning: ShapeFix_ComposeShell::ComputeCode: lost intersection point" << std::endl;
#endif
}
return code;
DistributeSplitPoints ( wire.WireData(), myFace, i, nsplit, indexes, values );
if ( nsplit <=0 ) {
#ifdef OCCT_DEBUG
- cout << "Error: ShapeFix_ComposeShell::SplitWire: edge dismissed" << endl;
+ std::cout << "Error: ShapeFix_ComposeShell::SplitWire: edge dismissed" << std::endl;
#endif
i--;
continue;
if ( tanglevel <0 ) {
// myStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_FAIL4 );
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeFix_ComposeShell::SplitByLine: tangency level <0 !" << endl;
+ std::cout << "Warning: ShapeFix_ComposeShell::SplitByLine: tangency level <0 !" << std::endl;
#endif
}
if ( ! interior ) continue;
if ( SplitLinePar(i) - SplitLinePar(i-1) < ::Precision::PConfusion() ) {
#ifdef OCCT_DEBUG
- cout << "Info: ShapeFix_ComposeShell::SplitByLine: Short segment ignored" << endl;
+ std::cout << "Info: ShapeFix_ComposeShell::SplitByLine: Short segment ignored" << std::endl;
#endif
if ( ! V1.IsSame ( V2 ) ) { // merge coincident vertices
ShapeBuild_Vertex sbv;
Context()->Replace ( V2, V.Oriented ( V2.Orientation() ) );
V1 = V2 = V;
#ifdef OCCT_DEBUG
- cout << "Info: ShapeFix_ComposeShell::SplitByLine: Coincided vertices merged" << endl;
+ std::cout << "Info: ShapeFix_ComposeShell::SplitByLine: Coincided vertices merged" << std::endl;
#endif
}
continue;
if ( parity % 2 ) {
myStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_FAIL4 );
#ifdef OCCT_DEBUG
- cout << "Error: ShapeFix_ComposeShell::SplitByLine: parity error" << endl;
+ std::cout << "Error: ShapeFix_ComposeShell::SplitByLine: parity error" << std::endl;
#endif
}
#ifdef OCCT_DEBUG
for ( Standard_Integer k=1; ! myClosedMode && k <= seqw(i).NbEdges(); k++ )
if ( ! seqw(i).CheckPatchIndex ( k ) ) {
- cout << "Warning: ShapeFix_ComposeShell::CollectWires: Wrong patch indices" << endl;
+ std::cout << "Warning: ShapeFix_ComposeShell::CollectWires: Wrong patch indices" << std::endl;
break;
}
#endif
( seqw(i).NbEdges() == 1 && //:abv 13.05.02: OCC320 - remove if degenerated
BRep_Tool::Degenerated ( seqw(i).Edge(1) ) ) ) ) {
#ifdef OCCT_DEBUG
- cout << "Info: ShapeFix_ComposeShell::CollectWires: Short segment ignored" << endl;
+ std::cout << "Info: ShapeFix_ComposeShell::CollectWires: Short segment ignored" << std::endl;
#endif
seqw(i).Orientation ( TopAbs_INTERNAL );
}
if ( ! endV.IsSame ( sae.FirstVertex ( firstEdge ) ) ) {
myStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_FAIL5 );
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeFix_ComposeShell::CollectWires: can't close wire" << endl;
+ std::cout << "Warning: ShapeFix_ComposeShell::CollectWires: can't close wire" << std::endl;
#endif
}
ShapeFix_WireSegment s ( sbwd, TopAbs_FORWARD );
ShapeFix_WireSegment s ( wd, TopAbs_FORWARD );
wires.Append ( s );
#ifdef OCCT_DEBUG
- cout <<"Warning: Short segment processed as separate wire"<<endl;
+ std::cout <<"Warning: Short segment processed as separate wire"<<std::endl;
#endif
continue;
}
// check for lost wires, and if they are, make them roots
if ( roots.Length() <=0 && loops.Length() >0 ) {
#ifdef OCCT_DEBUG
- cout << "Error: ShapeFix_ComposeShell::MakeFacesOnPatch: can't dispatch wires" << endl;
+ std::cout << "Error: ShapeFix_ComposeShell::MakeFacesOnPatch: can't dispatch wires" << std::endl;
#endif
for ( Standard_Integer j=1; j <= loops.Length(); j++ ) {
roots.Append ( loops(j) );
if ( clas.PerformInfinitePoint() == TopAbs_IN ) {
reverse = Standard_True;
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeFix_ComposeShell::MakeFacesOnPatch: badly oriented wire" << endl;
+ std::cout << "Warning: ShapeFix_ComposeShell::MakeFacesOnPatch: badly oriented wire" << std::endl;
#endif
}
// check for lost wires, and if they are, make them roots
if ( i == roots.Length() && loops.Length() >0 ) {
#ifdef OCCT_DEBUG
- cout << "Error: ShapeFix_ComposeShell::MakeFacesOnPatch: can't dispatch wires" << endl;
+ std::cout << "Error: ShapeFix_ComposeShell::MakeFacesOnPatch: can't dispatch wires" << std::endl;
#endif
for ( j=1; j <= loops.Length(); j++ ) {
TopoDS_Shape aSh = loops(j);
*/
// Other case not yet implemented
#ifdef OCCT_DEBUG
- cout << "TranslatePCurve not performed" << endl;
+ std::cout << "TranslatePCurve not performed" << std::endl;
#endif
return theNewL2d;//*theL2d;
}
aBC = Handle(Geom2d_BSplineCurve)::DownCast(aC2d);
if (aBC.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "Untreated curve type in TranslatePCurve" << endl;
+ std::cout << "Untreated curve type in TranslatePCurve" << std::endl;
#endif
return aC2d;
}
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
//:s5
- cout << "Warning: ShapeFix_Edge::FixAddPCurve(): Exception: ";
- anException.Print(cout); cout << endl;
+ std::cout << "Warning: ShapeFix_Edge::FixAddPCurve(): Exception: ";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
myStatus |= ShapeExtend::EncodeStatus (ShapeExtend_FAIL2);
}
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "\nWarning: ShapeFix_Edge: Exception in SameParameter: ";
- anException.Print(cout); cout << endl;
+ std::cout << "\nWarning: ShapeFix_Edge: Exception in SameParameter: ";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
myStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_FAIL2 );
Standard_Real U2 = LastParam();
if (U1>=U2) {
#ifdef OCCT_DEBUG
- cout << "Parametres inverses ... " << endl;
+ std::cout << "Parametres inverses ... " << std::endl;
#endif
Standard_Real tmp = U1;
U1 = U2; U2 = tmp;
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
//:s5
- cout << "Warning: ShapeFix_EdgeProjAux, FindParameterWithExt(): Exception: ";
- anException.Print(cout); cout << endl;
+ std::cout << "Warning: ShapeFix_EdgeProjAux, FindParameterWithExt(): Exception: ";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
return Standard_False;
}
}
#ifdef OCCT_DEBUG
- else cout <<"Other type of deg curve"<<endl;
+ else std::cout <<"Other type of deg curve"<<std::endl;
#endif
}
cl= 10000;
//pdn not cutted by bounds
#ifdef OCCT_DEBUG
- cout<<"Infinite Surface"<<endl;
+ std::cout<<"Infinite Surface"<<std::endl;
#endif
}
}
}
#ifdef OCCT_DEBUG
- cout<<"Some infinite curve"<<endl;
+ std::cout<<"Some infinite curve"<<std::endl;
#endif
}
}
myLastParam = theCurve2d->ReversedParameter(Uinf);
theCurve2d->Reverse();
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeFix_EdgeProjAux: pcurve reversed" << endl;
+ std::cout << "Warning: ShapeFix_EdgeProjAux: pcurve reversed" << std::endl;
#endif
return;
}
else {
myLastParam+=period;
#ifdef OCCT_DEBUG
- cout <<" Added"<<endl;
+ std::cout <<" Added"<<std::endl;
#endif
}
}
myLastParam -=period;
UpdateParam2d(theCurve2d);
#ifdef OCCT_DEBUG
- cout <<" Added & Inverted"<<endl;
+ std::cout <<" Added & Inverted"<<std::endl;
#endif
} else if (w2 < wmid) {
myFirstParam += period;
else if ( Abs ( myLastParam - cf ) <= preci2d ) myLastParam = cl;
else {
#ifdef OCCT_DEBUG
- cout << "Error : curve 2d range crossing non periodic curve origin";
- cout << endl;
+ std::cout << "Error : curve 2d range crossing non periodic curve origin";
+ std::cout << std::endl;
#endif
// add fail result;
return;
}
else {
#ifdef OCCT_DEBUG
- cout << "Warning : non increasing parameters for 2d curve." << endl;
- cout << " update parameter 2d uncertain." << endl;
+ std::cout << "Warning : non increasing parameters for 2d curve." << std::endl;
+ std::cout << " update parameter 2d uncertain." << std::endl;
#endif
Standard_Real tmp1 = myFirstParam, tmp2 = myLastParam;
myFirstParam = theCurve2d->ReversedParameter(tmp1);
myLastParam = theCurve2d->ReversedParameter(tmp2);
theCurve2d->Reverse();
- //cout<<"Reversed case 2"<<endl;
+ //std::cout<<"Reversed case 2"<<std::endl;
}
}
if(aResWires.Length()>1) {
#ifdef OCCT_DEBUG
- cout<<"Wire was splitted on "<<aResWires.Length()<<" wires"<< endl;
+ std::cout<<"Wire was splitted on "<<aResWires.Length()<<" wires"<< std::endl;
#endif
}
/**/
#ifdef OCCT_DEBUG
- cout<<"Natural bound on sphere or torus with holes added"<<endl; // mise au point !
+ std::cout<<"Natural bound on sphere or torus with holes added"<<std::endl; // mise au point !
#endif
SendWarning ( myFace, Message_Msg ( "FixAdvFace.FixOrientation.MSG0" ) );// Face created with natural bounds
return Standard_True;
SendWarning ( sbdw->Wire(), Message_Msg ( "FixAdvFace.FixOrientation.MSG5" ) );// Wire on face was reversed
done = Standard_True;
#ifdef OCCT_DEBUG
- cout<<"Wire reversed"<<endl; // mise au point !
+ std::cout<<"Wire reversed"<<std::endl; // mise au point !
#endif
}
}
for( ; k <= aSeqReversed.Length(); k++ )
{
#ifdef OCCT_DEBUG
- cout<<"Wire no "<<aSeqReversed.Value(k)<<" of "<<nb<<" reversed"<<endl; // mise au point !
+ std::cout<<"Wire no "<<aSeqReversed.Value(k)<<" of "<<nb<<" reversed"<<std::endl; // mise au point !
#endif
}
else {
w2.Reverse();
#ifdef OCCT_DEBUG
- if ( ! isdeg2 ) cout << "Warning: ShapeFix_Face::FixMissingSeam(): wire reversed" << endl;
+ if ( ! isdeg2 ) std::cout << "Warning: ShapeFix_Face::FixMissingSeam(): wire reversed" << std::endl;
#endif
}
}
#ifdef OCCT_DEBUG
- else cout << "Warning: ShapeFix_Face::FixMissingSeam(): incompatible open wires" << endl;
+ else std::cout << "Warning: ShapeFix_Face::FixMissingSeam(): incompatible open wires" << std::endl;
#endif
}
// else return Standard_False; // abort
else {
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeFix_Face::FixMissingSeam(): more than two open wires detected!" << endl;
+ std::cout << "Warning: ShapeFix_Face::FixMissingSeam(): more than two open wires detected!" << std::endl;
#endif
//:abv 30.08.09: if more than one open wires and more than two of them are
// completely degenerated, remove any of them
w2.Nullify();
i = 0;
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeFix_Face::FixMissingSeam(): open degenerated wire removed" << endl;
+ std::cout << "Warning: ShapeFix_Face::FixMissingSeam(): open degenerated wire removed" << std::endl;
#endif
continue;
}
if ( nbWires <= 0 )
{
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeFix_Face: All wires on a face have small area; left untouched" << endl;
+ std::cout << "Warning: ShapeFix_Face: All wires on a face have small area; left untouched" << std::endl;
#endif
if ( theIsRemoveSmallFace && !Context().IsNull() )
Context()->Remove(myFace);
return Standard_False;
}
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeFix_Face: " << nbRemoved << " small area wire(s) removed" << endl;
+ std::cout << "Warning: ShapeFix_Face: " << nbRemoved << " small area wire(s) removed" << std::endl;
#endif
if ( !Context().IsNull() )
Context()->Replace(myFace, aFace);
if(isDone && aResWires.Length() >1)
{
#ifdef OCCT_DEBUG
- cout<<"Wire was splitted on "<<aResWires.Length()<<" wires"<< endl;
+ std::cout<<"Wire was splitted on "<<aResWires.Length()<<" wires"<< std::endl;
#endif
}
V2=sae.LastVertex(E2);
if(!V1.IsSame(V2)) {
#ifdef OCCT_DEBUG
- cout<<"wire not closed --> stop split"<<endl;
+ std::cout<<"wire not closed --> stop split"<<std::endl;
#endif
return Standard_False;
}
//szv debug - preparation results
//-------------------------------
if (!myOriFreeEdges.IsEmpty()) {
- cout<<endl<<"FACE CONNECT PREPARATION RESULTS:"<<endl;
- cout<<"---------------------------------"<<endl;
+ std::cout<<std::endl<<"FACE CONNECT PREPARATION RESULTS:"<<std::endl;
+ std::cout<<"---------------------------------"<<std::endl;
Standard_Integer freenum = 0, facenum = 0;
for ( TopTools_DataMapIteratorOfDataMapOfShapeListOfShape theOFIter( myOriFreeEdges );
theOFIter.More(); theOFIter.Next() ) {
freenum += theOFIter.Value().Extent();
facenum++;
}
- cout<<"TOTAL: "<<facenum<<" faces containing "<<freenum<<" free edges"<<endl;
+ std::cout<<"TOTAL: "<<facenum<<" faces containing "<<freenum<<" free edges"<<std::endl;
}
//-------------------------------
#endif
// Process second face for the pair of different faces only
if (theFirstFace.IsSame(theSecondFace)) {
#ifdef OCCT_DEBUG
- cout<<"Warning: ShapeFix_FaceConnect::Build: Self-connected face"<<endl;
+ std::cout<<"Warning: ShapeFix_FaceConnect::Build: Self-connected face"<<std::endl;
#endif
}
else theNumOfFacesToSew = 2;
//-------------------------------
//szv debug - sewing results
//-------------------------------
- cout<<endl<<"FACE CONNECT SEWING RESULTS:"<<endl;
- cout<<"----------------------------"<<endl;
- cout<<"Sewing tolerance was set to "<<sewtoler<<endl;
+ std::cout<<std::endl<<"FACE CONNECT SEWING RESULTS:"<<std::endl;
+ std::cout<<"----------------------------"<<std::endl;
+ std::cout<<"Sewing tolerance was set to "<<sewtoler<<std::endl;
Standard_Integer totfree = 0, totshared = 0;
for ( TopTools_DataMapIteratorOfDataMapOfShapeListOfShape theOF2Iter( myOriFreeEdges );
theOF2Iter.More(); theOF2Iter.Next() ) {
totshared += myResSharEdges(theOFL2Iter.Value()).Extent();
}
}
- cout<<"TOTAL: "<<totfree<<" free, "<<totshared<<" shared edges"<<endl;
+ std::cout<<"TOTAL: "<<totfree<<" free, "<<totshared<<" shared edges"<<std::endl;
//-------------------------------
#endif
result = TopoDS::Shell(tmpReShape);
if (theReShape->Status(ShapeExtend_OK)) {
#ifdef OCCT_DEBUG
- cout<<"Warning: ShapeFix_FaceConnect::Build: Edges not replaced by ReShape"<<endl;
+ std::cout<<"Warning: ShapeFix_FaceConnect::Build: Edges not replaced by ReShape"<<std::endl;
#endif
}
else if (theReShape->Status(ShapeExtend_FAIL1)) {
#ifdef OCCT_DEBUG
- cout<<"Error: ShapeFix_FaceConnect::Build: ReShape failed on edges"<<endl;
+ std::cout<<"Error: ShapeFix_FaceConnect::Build: ReShape failed on edges"<<std::endl;
#endif
}
else {
if (theReShape->Status(ShapeExtend_FAIL1)) {
#ifdef OCCT_DEBUG
- cout<<"Error: ShapeFix_FaceConnect::Build: ReShape failed on vertices"<<endl;
+ std::cout<<"Error: ShapeFix_FaceConnect::Build: ReShape failed on vertices"<<std::endl;
#endif
}
}
//-------------------------------
//szv debug - reshape results
//-------------------------------
- cout<<endl<<"FACE CONNECT REPLACEMENT RESULTS:"<<endl;
- cout<<"---------------------------------"<<endl;
+ std::cout<<std::endl<<"FACE CONNECT REPLACEMENT RESULTS:"<<std::endl;
+ std::cout<<"---------------------------------"<<std::endl;
TopTools_MapOfShape theTmpMap;
Standard_Integer toteold = 0, totenew = 0;
for ( TopTools_DataMapIteratorOfDataMapOfShapeShape theR1Iter( theRepEdges );
totvnew++;
}
}
- cout<<"TOTAL: "<<toteold<<" edges, "<<totvold<<" vertices replaced by "
- <<totenew<<" edges, "<<totvnew<<" vertices"<<endl<<endl;
+ std::cout<<"TOTAL: "<<toteold<<" edges, "<<totvold<<" vertices replaced by "
+ <<totenew<<" edges, "<<totvnew<<" vertices"<<std::endl<<std::endl;
//-------------------------------
#endif
TopoDS_Shell Sh = TopoDS::Shell (exp_s.Current());
TopExp_Explorer ex_sh(Sh,TopAbs_FACE);
if (!ex_sh.More()) { Context()->Remove(Sh);
-// cout << "Empty shell was removed" << endl;
+// std::cout << "Empty shell was removed" << std::endl;
}
}
myShape = Context()->Apply(myShape);
}
else {
#ifdef OCCT_DEBUG
- cout << "The face is not strip face" << endl;
+ std::cout << "The face is not strip face" << std::endl;
#endif
return theNewEdge;
}
// union vertexes V1F and V2F
B.UpdateVertex(V1F,tolv);
TopoDS_Edge NewE = sbe.CopyReplaceVertices(edge2,V1F,V2L);
-// cout<<"union vertexes V1F and V2F"<<endl;
+// std::cout<<"union vertexes V1F and V2F"<<std::endl;
// gp_Pnt Ptmp = BRep_Tool::Pnt(V1F);
// B.MakeVertex(V,Ptmp,tolv);
// myContext->Replace(V1F,V);
// union vertexes V1F and V2L
B.UpdateVertex(V1F,tolv);
TopoDS_Edge NewE = sbe.CopyReplaceVertices(edge2,V2F,V1F);
-// cout<<"union vertexes V1F and V2L"<<endl;
+// std::cout<<"union vertexes V1F and V2L"<<std::endl;
// gp_Pnt Ptmp = BRep_Tool::Pnt(V1F);
// B.MakeVertex(V,Ptmp,tolv);
// myContext->Replace(V1F,V);
// union vertexes V1L and V2F
B.UpdateVertex(V1L,tolv);
TopoDS_Edge NewE = sbe.CopyReplaceVertices(edge2,V1L,V2L);
-// cout<<"union vertexes V1L and V2F"<<endl;
+// std::cout<<"union vertexes V1L and V2F"<<std::endl;
// gp_Pnt Ptmp = BRep_Tool::Pnt(V1L);
// B.MakeVertex(V,Ptmp,tolv);
// myContext->Replace(V1L,V);
// union vertexes V1L and V2L
B.UpdateVertex(V1L,tolv);
TopoDS_Edge NewE = sbe.CopyReplaceVertices(edge2,V2F,V1L);
-// cout<<"union vertexes V1L and V2L"<<endl;
+// std::cout<<"union vertexes V1L and V2L"<<std::endl;
// gp_Pnt Ptmp = BRep_Tool::Pnt(V1L);
// B.MakeVertex(V,Ptmp,tolv);
// myContext->Replace(V1L,V);
}
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeFix_Solid::SolidFromShell: Exception: ";
- anException.Print(cout); cout << endl;
+ std::cout << "Warning: ShapeFix_Solid::SolidFromShell: Exception: ";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
continue;
}
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeFix_Solid::SolidFromShell: Exception: ";
- anException.Print(cout); cout << endl;
+ std::cout << "Warning: ShapeFix_Solid::SolidFromShell: Exception: ";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
ShellSolid.Add(aShell,aSolid);
}
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeFix_Solid::SolidFromShell: Exception: ";
- anException.Print(cout); cout << endl;
+ std::cout << "Warning: ShapeFix_Solid::SolidFromShell: Exception: ";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
return solid;
}
if ( seq.Length() >0 ) { // supposed that edge is SP
#ifdef OCCT_DEBUG
- cout << "Edge going over singularity detected; splitted" << endl;
+ std::cout << "Edge going over singularity detected; splitted" << std::endl;
#endif
Standard_Boolean isFwd = ( E.Orientation() == TopAbs_FORWARD );
E.Orientation ( TopAbs_FORWARD );
myFixEdge->FixAddPCurve ( sbwd->Edge(overdegen), face, sbwd->IsSeam(overdegen), myAnalyzer->Surface(), Precision());
}
#ifdef OCCT_DEBUG
- cout << "Edge going over singularity detected; pcurve adjusted" << endl;
+ std::cout << "Edge going over singularity detected; pcurve adjusted" << std::endl;
#endif
}
}
num = ( myClosedMode ? 1 : 2 );
nb = sbwd->NbEdges();
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeFix_Wire::FixSelfIntersection: Edge removed" << endl;
+ std::cout << "Warning: ShapeFix_Wire::FixSelfIntersection: Edge removed" << std::endl;
#endif
}
else
}
#ifdef OCCT_DEBUG
if (StatusSelfIntersection (ShapeExtend_DONE5))
- cout<<"Warning: ShapeFix_Wire::FixIntersection: Non-adjacent intersection fixed (split-"
- <<NbSplit<<", cut-"<<NbCut<<", removed-"<<NbRemoved<<")"<<endl;
+ std::cout<<"Warning: ShapeFix_Wire::FixIntersection: Non-adjacent intersection fixed (split-"
+ <<NbSplit<<", cut-"<<NbCut<<", removed-"<<NbRemoved<<")"<<std::endl;
#endif
/*
myStatusSelfIntersection |= ShapeExtend::EncodeStatus ( ShapeExtend_DONE5 );
#ifdef OCCT_DEBUG
if (StatusSelfIntersection (ShapeExtend_DONE5))
- cout << "Warning: ShapeFix_Wire::FixSelfIntersection: Non ajacent intersection fixed" << endl;
+ std::cout << "Warning: ShapeFix_Wire::FixSelfIntersection: Non ajacent intersection fixed" << std::endl;
#endif
*/
}
VRange = aBaseCrv->Period();
IsVCrvClosed = Standard_True;
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeFix_Wire::FixShifted set vclosed True for Surface of Revolution" << endl;
+ std::cout << "Warning: ShapeFix_Wire::FixShifted set vclosed True for Surface of Revolution" << std::endl;
#endif
}
}
}
myLastFixStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_DONE1 );
#ifdef OCCT_DEBUG
- cout << "Info: ShapeFix_Wire::FixShifted(): bi - meridian case fixed" << endl;
+ std::cout << "Info: ShapeFix_Wire::FixShifted(): bi - meridian case fixed" << std::endl;
#endif
continue;
}
return Standard_False;
#ifdef OCCT_DEBUG
- cout << "Cut Loop: params (" << t1 << ", " << t2;
+ std::cout << "Cut Loop: params (" << t1 << ", " << t2;
#endif
GeomAdaptor_Curve GAC ( crv, f, l );
Standard_Real dt = tolfact * GAC.Resolution(prec);
t1 -= dt; //1e-3;//::Precision::PConfusion();
t2 += dt; //1e-3;//::Precision::PConfusion();
#ifdef OCCT_DEBUG
- cout << ") -> (" << t1 << ", " << t2 << ")" << endl;
+ std::cout << ") -> (" << t1 << ", " << t2 << ")" << std::endl;
#endif
if ( t1 <= a || t2 >= b ) { // should not be so, but to be sure ..
Standard_Real tol = BRep_Tool::Tolerance ( E );
#ifdef OCCT_DEBUG
- cout << "Cut Loop: tol orig " << tol << ", prec " << prec << ", new tol " << newtol << endl;
+ std::cout << "Cut Loop: tol orig " << tol << ", prec " << prec << ", new tol " << newtol << std::endl;
#endif
if ( newtol > Max ( prec, tol ) ) return Standard_False;
//:s2 bs = BRep_Tool::CurveOnSurface ( edge, face, a, b );
TopoDS_Edge &E2)
{
#ifdef OCCT_DEBUG
- cout<<"Info: ShapeFix_Wire::FixSelfIntersection : Try insert vertex"<<endl;
+ std::cout<<"Info: ShapeFix_Wire::FixSelfIntersection : Try insert vertex"<<std::endl;
#endif
if ( BRep_Tool::IsClosed ( E, face ) ) return Standard_False;
if ( BRep_Tool::Tolerance(E1) < te1 || BRep_Tool::Tolerance(E2) < te2 )
{
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeFix_Wire::FixIE: edges tolerance increased: (" <<
- te1 << ", " << te2 << ") / " << newtol << endl;
+ std::cout << "Warning: ShapeFix_Wire::FixIE: edges tolerance increased: (" <<
+ te1 << ", " << te2 << ") / " << newtol << std::endl;
#endif
// Make copy of edges.
}
catch ( Standard_Failure const& ) {
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeFix_Wire::FixLacking: Exception in Geom2d_BSplineCurve::Segment()" << endl;
+ std::cout << "Warning: ShapeFix_Wire::FixLacking: Exception in Geom2d_BSplineCurve::Segment()" << std::endl;
#endif
return Standard_False;
}
if ( doAddDegen ) {
myLastFixStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_DONE3 );
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeFix_Wire::FixLacking: degenerated edge added" << endl;
+ std::cout << "Warning: ShapeFix_Wire::FixLacking: degenerated edge added" << std::endl;
#endif
}
else if ( ! doAddLong ) {
FixSelfIntersectingEdge ( n2 );
FixIntersectingEdges ( n2 ); //skl 24.04.2003 for OCC58
#ifdef OCCT_DEBUG
- cout << "Info: ShapeFix_Wire::FixLacking: Bending pcurves" << endl;
+ std::cout << "Info: ShapeFix_Wire::FixLacking: Bending pcurves" << std::endl;
#endif
myLastFixStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_DONE5 );
}
if ( myIUMin->Value(i) < iumin ) myIUMin->SetValue ( i, iumin );
#ifdef OCCT_DEBUG
if ( myIUMin->Value(i) > myIUMax->Value(i) )
- cout << "Warning: ShapeFix_WireSegment::DefineIUMin: indexation error" << endl;
+ std::cout << "Warning: ShapeFix_WireSegment::DefineIUMin: indexation error" << std::endl;
#endif
}
#ifdef OCCT_DEBUG
Standard_Integer iun = myIUMin->Value(i), iux = myIUMax->Value(i);
if ( iun > iux )
- cout << "Warning: ShapeFix_WireSegment::DefineIUMax: indexation error" << endl;
+ std::cout << "Warning: ShapeFix_WireSegment::DefineIUMax: indexation error" << std::endl;
#endif
}
#ifdef OCCT_DEBUG
Standard_Integer ivn = myIVMin->Value(i), ivx = myIVMax->Value(i);
if ( ivn > ivx )
- cout << "Warning: ShapeFix_WireSegment::DefineIVMin: indexation error" << endl;
+ std::cout << "Warning: ShapeFix_WireSegment::DefineIVMin: indexation error" << std::endl;
#endif
}
#ifdef OCCT_DEBUG
Standard_Integer ivn = myIVMin->Value(i), ivx = myIVMax->Value(i);
if ( ivn > ivx )
- cout << "Warning: ShapeFix_WireSegment::DefineIVMax: indexation error" << endl;
+ std::cout << "Warning: ShapeFix_WireSegment::DefineIVMax: indexation error" << std::endl;
#endif
}
Standard_Boolean ok = ( dU ==0 || dU ==1 ) && ( dV ==0 || dV ==1 );
#ifdef OCCT_DEBUG
if ( ! ok )
- cout << "Warning: ShapeFix_WireSegment::CheckPatchIndex: incomplete indexation" << endl;
+ std::cout << "Warning: ShapeFix_WireSegment::CheckPatchIndex: incomplete indexation" << std::endl;
#endif
return ok;
}
}
catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeFix_Wire_1::FixGap3d: Exception in TrimmedCurve" <<first<<" " <<last<<endl;
- anException.Print(cout); cout << endl;
+ std::cout << "Warning: ShapeFix_Wire_1::FixGap3d: Exception in TrimmedCurve" <<first<<" " <<last<<std::endl;
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
}
}
catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeFix_Wire_1::FixGap3d: Exception in TrimmedCurve :"<<endl;
- anException.Print(cout); cout << endl;
+ std::cout << "Warning: ShapeFix_Wire_1::FixGap3d: Exception in TrimmedCurve :"<<std::endl;
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
}
}
catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeFix_Wire_1::FixGap2d: Exception in TrimmedCurve2d" <<first<<" " <<last<<endl;
- anException.Print(cout); cout << endl;
+ std::cout << "Warning: ShapeFix_Wire_1::FixGap2d: Exception in TrimmedCurve2d" <<first<<" " <<last<<std::endl;
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
}
}
catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeFix_Wire_1::FixGap2d: Exception in TrimmedCurve2d :"<<endl;
- anException.Print(cout); cout << endl;
+ std::cout << "Warning: ShapeFix_Wire_1::FixGap2d: Exception in TrimmedCurve2d :"<<std::endl;
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
}
}
catch ( Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout<<"Error: ShapeFix_Wireframe::FixSmallEdges: JoinEdges: Exception in GeomConvert_CompCurveToBSplineCurve: ";
- anException.Print(cout); cout<<endl;
+ std::cout<<"Error: ShapeFix_Wireframe::FixSmallEdges: JoinEdges: Exception in GeomConvert_CompCurveToBSplineCurve: ";
+ anException.Print(std::cout); std::cout<<std::endl;
#endif
(void)anException;
return ReplaceFirst;
{
if (aMapOfOperators.IsBound(name)) {
#ifdef OCCT_DEBUG
- cout << "Warning: operator with name " << name << " is already registered!" << endl;
+ std::cout << "Warning: operator with name " << name << " is already registered!" << std::endl;
#endif
return Standard_False;
}
{
if (!aMapOfOperators.IsBound(name)) {
#ifdef OCCT_DEBUG
- cout << "Error: no operator with name " << name << " registered!" << endl;
+ std::cout << "Error: no operator with name " << name << " registered!" << std::endl;
#endif
return Standard_False;
}
TCollection_AsciiString sequence;
if ( ! context->GetString ( "exec.op", sequence ) ) {
#ifdef OCCT_DEBUG
- cout << "Error: ShapeProcess_Performer::Perform: sequence not defined for " << seq << endl;
+ std::cout << "Error: ShapeProcess_Performer::Perform: sequence not defined for " << seq << std::endl;
#endif
if ( context->TraceLevel() >0 ) {
Message_Msg SMSG3 ("SP.Sequence.Warn.NoSeq"); // Sequence %s not found
}
if ( sRC.IsNull() ) {
#ifdef OCCT_DEBUG
- cout << "Info: ShapeProcess_Context: Reload Resource_Manager: "
- << sName.ToCString() << " -> " << name << endl;
+ std::cout << "Info: ShapeProcess_Context: Reload Resource_Manager: "
+ << sName.ToCString() << " -> " << name << std::endl;
#endif
sRC = new Resource_Manager ( name );
if (!isFileModified)
Handle(TCollection_HAsciiString) pname = MakeName ( myScope, param );
if ( ! myRC->Find ( pname->ToCString() ) ) {
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeProcess_Context::GetInteger(): Parameter " << pname->ToCString() << " is not defined" << endl;
+ std::cout << "Warning: ShapeProcess_Context::GetInteger(): Parameter " << pname->ToCString() << " is not defined" << std::endl;
#endif
return Standard_False;
}
ref.RightAdjust();
if ( ! myRC->Find ( ref.ToCString() ) ) {
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeProcess_Context::GetInteger(): Parameter " << ref.ToCString() << " is not defined" << endl;
+ std::cout << "Warning: ShapeProcess_Context::GetInteger(): Parameter " << ref.ToCString() << " is not defined" << std::endl;
#endif
return Standard_False;
}
}
}
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeProcess_Context::GetInteger(): Parameter " << param << " is neither Real nor reference to Real";
+ std::cout << "Warning: ShapeProcess_Context::GetInteger(): Parameter " << param << " is neither Real nor reference to Real";
#endif
return Standard_False;
}
ref.RightAdjust();
if ( ! myRC->Find ( ref.ToCString() ) ) {
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeProcess_Context::GetInteger(): Parameter " << ref.ToCString() << " is not defined" << endl;
+ std::cout << "Warning: ShapeProcess_Context::GetInteger(): Parameter " << ref.ToCString() << " is not defined" << std::endl;
#endif
return Standard_False;
}
}
}
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeProcess_Context::GetInteger(): Parameter " << param << " is neither Integer nor reference to Integer";
+ std::cout << "Warning: ShapeProcess_Context::GetInteger(): Parameter " << param << " is neither Integer nor reference to Integer";
#endif
return Standard_False;
}
}
catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeProcess_Context::GetInteger(): " << param << ": ";
- anException.Print(cout); cout << endl;
+ std::cout << "Warning: ShapeProcess_Context::GetInteger(): " << param << ": ";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
}
}
catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeProcess_Context::GetInteger(): " << param << ": ";
- anException.Print(cout); cout << endl;
+ std::cout << "Warning: ShapeProcess_Context::GetInteger(): " << param << ": ";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
}
if ( ! SDA.Perform() && SDA.Status (ShapeExtend_FAIL) ) {
#ifdef OCCT_DEBUG
- cout<<"ShapeDivideAngle failed"<<endl;
+ std::cout<<"ShapeDivideAngle failed"<<std::endl;
#endif
return Standard_False;
}
if ( ! SCB.Perform() && SCB.Status (ShapeExtend_FAIL) ) {
#ifdef OCCT_DEBUG
- cout<<"Shape::ShapeConvertToBezier failed"<<endl; // !!!!
+ std::cout<<"Shape::ShapeConvertToBezier failed"<<std::endl; // !!!!
#endif
return Standard_False;
}
if ( ! tool.Perform() && tool.Status (ShapeExtend_FAIL) ) {
#ifdef OCCT_DEBUG
- cout<<"SplitContinuity failed"<<endl;
+ std::cout<<"SplitContinuity failed"<<std::endl;
#endif
return Standard_False;
}
tool.SetSurfaceSegmentMode(hasSeg);
if ( ! tool.Perform() && tool.Status (ShapeExtend_FAIL) ) {
#ifdef OCCT_DEBUG
- cout<<"Splitting of closed faces failed"<<endl;
+ std::cout<<"Splitting of closed faces failed"<<std::endl;
#endif
return Standard_False;
}
if ( ! tool.Perform() && tool.Status (ShapeExtend_FAIL) ) {
#ifdef OCCT_DEBUG
- cout<<"Splitting of closed edges failed"<<endl;
+ std::cout<<"Splitting of closed edges failed"<<std::endl;
#endif
return Standard_False;
}
#ifdef OCCT_DEBUG
static void DumpMap (const TopTools_DataMapOfShapeShape &map)
{
- cout << "----" << endl;
- cout << "Map:" << endl;
+ std::cout << "----" << std::endl;
+ std::cout << "Map:" << std::endl;
for (TopTools_DataMapIteratorOfDataMapOfShapeShape It (map); It.More(); It.Next()) {
TopoDS_Shape S0 = It.Key(), S = It.Value();
- cout << S0.TShape()->DynamicType()->Name() << "\t" << *(void**)&S0.TShape() <<
- " \t-> " << S.TShape()->DynamicType()->Name() << "\t" << *(void**)&S.TShape() << endl;
+ std::cout << S0.TShape()->DynamicType()->Name() << "\t" << *(void**)&S0.TShape() <<
+ " \t-> " << S.TShape()->DynamicType()->Name() << "\t" << *(void**)&S.TShape() << std::endl;
}
- cout << "----" << endl;
+ std::cout << "----" << std::endl;
}
#endif
*/
RecModif ( myShape, repl, msg, myMap, myMsg, myUntil );
if ( myMap.IsBound(myShape) ) myResult = myMap.Find ( myShape );
#ifdef OCCT_DEBUG
-// cout << "Modifier: " << endl; DumpMap (myMap);
+// std::cout << "Modifier: " << std::endl; DumpMap (myMap);
#endif
}
myResult.Location(myShape.Location());
}
#ifdef OCCT_DEBUG
-// cout << "ReShape: " << endl; DumpMap (myMap);
+// std::cout << "ReShape: " << std::endl; DumpMap (myMap);
#endif
}
isUSplit = Standard_True;
}
#ifdef OCCT_DEBUG
- else cout << "Warning: SU_ClosedFaceDivide: Thin face, not splitted" << endl;
+ else std::cout << "Warning: SU_ClosedFaceDivide: Thin face, not splitted" << std::endl;
#endif
}
}
isUSplit = Standard_False;
}
#ifdef OCCT_DEBUG
- else cout << "Warning: SU_ClosedFaceDivide: Thin face, not splitted" << endl;
+ else std::cout << "Warning: SU_ClosedFaceDivide: Thin face, not splitted" << std::endl;
#endif
}
}
Last = bl;
if(First < bf){
#ifdef OCCT_DEBUG
- cout <<"Warning: The range of the edge exceeds the pcurve domain" <<endl;
+ std::cout <<"Warning: The range of the edge exceeds the pcurve domain" <<std::endl;
#endif
First = bf;
mySplitValues->SetValue(1,First);
}
if(Last > bl){
#ifdef OCCT_DEBUG
- cout <<"Warning: The range of the edge exceeds the pcurve domain" <<endl;
+ std::cout <<"Warning: The range of the edge exceeds the pcurve domain" <<std::endl;
#endif
Last = bl;
mySplitValues->SetValue(mySplitValues->Length(),Last);
Last = bl;
if(First < bf){
#ifdef OCCT_DEBUG
- cout <<"Warning: The range of the edge exceeds the curve domain" <<endl;
+ std::cout <<"Warning: The range of the edge exceeds the curve domain" <<std::endl;
#endif
First = bf;
mySplitValues->SetValue(1,First);
}
if(Last > bl){
#ifdef OCCT_DEBUG
- cout <<"Warning: The range of the edge exceeds the curve domain" <<endl;
+ std::cout <<"Warning: The range of the edge exceeds the curve domain" <<std::endl;
#endif
Last = bl;
mySplitValues->SetValue(mySplitValues->Length(),Last);
#ifdef OCCT_DEBUG
if(NbVFiltered || NbUFiltered)
- cout<<"Warning: ShapeUpgrade_ConvertSurfaceToBezierBasis: thin patches dropped."<<endl;
+ std::cout<<"Warning: ShapeUpgrade_ConvertSurfaceToBezierBasis: thin patches dropped."<<std::endl;
#endif
TColGeom_Array2OfBezierSurface Surfaces(1, nbUPatches, 1, nbVPatches);
}
else {
#ifdef OCCT_DEBUG
- cout <<"Warning: Resulting path is not surface of revolution basis on bezier curve"<<endl;
+ std::cout <<"Warning: Resulting path is not surface of revolution basis on bezier curve"<<std::endl;
#endif
}
if(Abs(U1-Umin) < Precision::PConfusion() &&
}
catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeUpgrade_FixSmallBezierCurve::Approx(): Exception in Segment :";
- anException.Print(cout); cout << endl;
+ std::cout << "Warning: ShapeUpgrade_FixSmallBezierCurve::Approx(): Exception in Segment :";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
return Standard_False;
}
catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeUpgrade_FixSmallBezierCurve::Approx(): Exception in Segment :";
- anException.Print(cout); cout << endl;
+ std::cout << "Warning: ShapeUpgrade_FixSmallBezierCurve::Approx(): Exception in Segment :";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
return Standard_False;
}
catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeUpgrade_FixSmallBezierCurve::Approx(): Exception in Segment :";
- anException.Print(cout); cout << endl;
+ std::cout << "Warning: ShapeUpgrade_FixSmallBezierCurve::Approx(): Exception in Segment :";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
return Standard_False;
const Standard_Real Last)
{
myStatus = ShapeExtend::EncodeStatus (ShapeExtend_OK);
-// if (ShapeUpgrade::Debug()) cout << "SplitCurve::Init"<<endl;
+// if (ShapeUpgrade::Debug()) std::cout << "SplitCurve::Init"<<std::endl;
myNbCurves = 1;
// mySplitValues.Clear();
const Standard_Real First,
const Standard_Real Last)
{
-// if (ShapeUpgrade::Debug()) cout << "SplitCurve2d::Init"<<endl;
+// if (ShapeUpgrade::Debug()) std::cout << "SplitCurve2d::Init"<<std::endl;
Handle(Geom2d_Curve) CopyOfC = Handle(Geom2d_Curve)::DownCast(C->Copy());
myCurve = CopyOfC;
lastPar = lP;
if(firstPar < fP){
#ifdef OCCT_DEBUG
- cout <<"Warning: The range of the edge exceeds the curve domain" <<endl;
+ std::cout <<"Warning: The range of the edge exceeds the curve domain" <<std::endl;
#endif
firstPar = fP;
}
if(lastPar > lP){
#ifdef OCCT_DEBUG
- cout <<"Warning: The range of the edge exceeds the curve domain" <<endl;
+ std::cout <<"Warning: The range of the edge exceeds the curve domain" <<std::endl;
#endif
lastPar = lP;
}
ShapeUpgrade_SplitCurve::Init (firstPar, lastPar);
// first, we make a copy of C to prevent modification:
-// if (ShapeUpgrade::Debug()) cout << ". copy of the curve"<<endl;
+// if (ShapeUpgrade::Debug()) std::cout << ". copy of the curve"<<std::endl;
myNbCurves = 1;
}
void ShapeUpgrade_SplitCurve2d::Build(const Standard_Boolean Segment)
{
-// if (ShapeUpgrade::Debug()) cout<<"ShapeUpgrade_SplitCurve2d::Build"<<endl;
+// if (ShapeUpgrade::Debug()) std::cout<<"ShapeUpgrade_SplitCurve2d::Build"<<std::endl;
Standard_Real First = mySplitValues->Value(1);
Standard_Real Last = mySplitValues->Value(mySplitValues->Length());
//PrepareKnots();
}
catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeUpgrade_Split2dCurve::Build(): Exception in Segment :";
- anException.Print(cout); cout << endl;
+ std::cout << "Warning: ShapeUpgrade_Split2dCurve::Build(): Exception in Segment :";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
theNewCurve = new Geom2d_TrimmedCurve(Handle(Geom2d_Curve)::DownCast(myCurve->Copy()),First,Last);
}
catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeUpgrade_Split2dCurve::Build(): Exception in Segment :";
- anException.Print(cout); cout << endl;
+ std::cout << "Warning: ShapeUpgrade_Split2dCurve::Build(): Exception in Segment :";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
theNewCurve = new Geom2d_TrimmedCurve(Handle(Geom2d_Curve)::DownCast(myCurve->Copy()),Firstt,Lastt);
default :
case GeomAbs_C1 : BasCriterion = GeomAbs_C2; break;
case GeomAbs_C2 : BasCriterion = GeomAbs_C3; break;
- case GeomAbs_C3 : //if (ShapeUpgrade::Debug()) cout<<". this criterion is not suitable for a Offset curve"<<endl;
+ case GeomAbs_C3 : //if (ShapeUpgrade::Debug()) std::cout<<". this criterion is not suitable for a Offset curve"<<std::endl;
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeUpgrade_SplitCurve2dContinuity: criterion C3 for Offset curve" << endl;
+ std::cout << "Warning: ShapeUpgrade_SplitCurve2dContinuity: criterion C3 for Offset curve" << std::endl;
#endif
case GeomAbs_CN : BasCriterion = GeomAbs_CN; break;
}
Handle(Geom2d_BSplineCurve) MyBSpline = Handle(Geom2d_BSplineCurve)::DownCast (myCurve);
if (MyBSpline.IsNull()) {
-// if (ShapeUpgrade::Debug()) cout<<". curve is not a Bspline"<<endl;
+// if (ShapeUpgrade::Debug()) std::cout<<". curve is not a Bspline"<<std::endl;
return;
}
myNbCurves=1;
Standard_Integer Deg=MyBSpline->Degree();
Standard_Integer NbKnots= MyBSpline->NbKnots();
-// if (ShapeUpgrade::Debug()) cout<<". NbKnots="<<NbKnots<<endl;
+// if (ShapeUpgrade::Debug()) std::cout<<". NbKnots="<<NbKnots<<std::endl;
if (NbKnots <= 2) {
return;
}
}
if (corrected) {
// at this knot, the continuity is now C1. Nothing else to do.
-// if (ShapeUpgrade::Debug()) cout<<". Correction at Knot "<<iknot<<endl;
+// if (ShapeUpgrade::Debug()) std::cout<<". Correction at Knot "<<iknot<<std::endl;
myStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_DONE3 );
}
else {
// this knot will be a splitting value.
mySplitValues->InsertBefore(j++,MyBSpline->Knot(iknot));
myNbCurves++;
-// if (ShapeUpgrade::Debug()) cout<<". Splitting at Knot "<<iknot<<endl;
+// if (ShapeUpgrade::Debug()) std::cout<<". Splitting at Knot "<<iknot<<std::endl;
}
}
}
const Standard_Real First,
const Standard_Real Last)
{
-// if (ShapeUpgrade::Debug()) cout << "SplitCurve3d::Init"<<endl;
+// if (ShapeUpgrade::Debug()) std::cout << "SplitCurve3d::Init"<<std::endl;
Handle(Geom_Curve) CopyOfC = Handle(Geom_Curve)::DownCast(C->Copy());
myCurve = CopyOfC;
Standard_Real precision = Precision::PConfusion();
lastPar = lP;
if(firstPar < fP){
#ifdef OCCT_DEBUG
- cout <<"Warning: The range of the edge exceeds the curve domain" <<endl;
+ std::cout <<"Warning: The range of the edge exceeds the curve domain" <<std::endl;
#endif
firstPar = fP;
}
if(lastPar > lP){
#ifdef OCCT_DEBUG
- cout <<"Warning: The range of the edge exceeds the curve domain" <<endl;
+ std::cout <<"Warning: The range of the edge exceeds the curve domain" <<std::endl;
#endif
lastPar = lP;
}
ShapeUpgrade_SplitCurve::Init (firstPar, lastPar);
// first, we make a copy of C to prevent modification:
-// if (ShapeUpgrade::Debug()) cout << ". copy of the curve"<<endl;
+// if (ShapeUpgrade::Debug()) std::cout << ". copy of the curve"<<std::endl;
myNbCurves = 1;
}
void ShapeUpgrade_SplitCurve3d::Build(const Standard_Boolean Segment)
{
-// if (ShapeUpgrade::Debug()) cout<<"ShapeUpgrade_SplitCurve3d::Build"<<endl;
+// if (ShapeUpgrade::Debug()) std::cout<<"ShapeUpgrade_SplitCurve3d::Build"<<std::endl;
Standard_Real First = mySplitValues->Value(1);
Standard_Real Last = mySplitValues->Value(mySplitValues->Length());
Last = lastPar;
if(First < firstPar){
#ifdef OCCT_DEBUG
- cout <<"Warning: The range of the edge exceeds the curve domain" <<endl;
+ std::cout <<"Warning: The range of the edge exceeds the curve domain" <<std::endl;
#endif
First = firstPar;
mySplitValues->SetValue(1,First);
}
if(Last > lastPar){
#ifdef OCCT_DEBUG
- cout <<"Warning: The range of the edge exceeds the curve domain" <<endl;
+ std::cout <<"Warning: The range of the edge exceeds the curve domain" <<std::endl;
#endif
Last = lastPar;
mySplitValues->SetValue(mySplitValues->Length(),Last);
}
catch (Standard_Failure) {
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeUpgrade_Split3dCurve::Build(): Exception in Segment :";
- Standard_Failure::Caught()->Print(cout); cout << endl;
+ std::cout << "Warning: ShapeUpgrade_Split3dCurve::Build(): Exception in Segment :";
+ Standard_Failure::Caught()->Print(std::cout); std::cout << std::endl;
#endif
theNewCurve = new Geom_TrimmedCurve(Handle(Geom_Curve)::DownCast(myCurve->Copy()),First,Last);
}
}
catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeUpgrade_Split3dCurve::Build(): Exception in Segment :";
- anException.Print(cout); cout << endl;
+ std::cout << "Warning: ShapeUpgrade_Split3dCurve::Build(): Exception in Segment :";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
theNewCurve = new Geom_TrimmedCurve(Handle(Geom_Curve)::DownCast(myCurve->Copy()),Firstt,Lastt);
default :
case GeomAbs_C1 : BasCriterion = GeomAbs_C2; break;
case GeomAbs_C2 : BasCriterion = GeomAbs_C3; break;
- case GeomAbs_C3 : // if (ShapeUpgrade::Debug()) cout<<". this criterion is not suitable for a Offset curve"<<endl;
+ case GeomAbs_C3 : // if (ShapeUpgrade::Debug()) std::cout<<". this criterion is not suitable for a Offset curve"<<std::endl;
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeUpgrade_SplitCurve3dContinuity: criterion C3 for Offset curve" << endl;
+ std::cout << "Warning: ShapeUpgrade_SplitCurve3dContinuity: criterion C3 for Offset curve" << std::endl;
#endif
case GeomAbs_CN : BasCriterion = GeomAbs_CN; break;
}
Handle(Geom_BSplineCurve) MyBSpline = Handle(Geom_BSplineCurve)::DownCast (myCurve);
if (MyBSpline.IsNull()) {
-// if (ShapeUpgrade::Debug()) cout<<". curve is not a Bspline"<<endl;
+// if (ShapeUpgrade::Debug()) std::cout<<". curve is not a Bspline"<<std::endl;
return ;
}
// it is a BSplineCurve
-// if (ShapeUpgrade::Debug()) cout<<". curve is a Bspline"<<endl;
+// if (ShapeUpgrade::Debug()) std::cout<<". curve is a Bspline"<<std::endl;
myNbCurves=1;
Standard_Integer Deg=MyBSpline->Degree();
Standard_Integer NbKnots= MyBSpline->NbKnots();
-// if (ShapeUpgrade::Debug()) cout<<". NbKnots="<<NbKnots<<endl;
+// if (ShapeUpgrade::Debug()) std::cout<<". NbKnots="<<NbKnots<<std::endl;
if (NbKnots <= 2) {
return;
}
}
if (corrected) {
// at this knot, the continuity is now C1. Nothing else to do.
-// if (ShapeUpgrade::Debug()) cout<<". Correction at Knot "<<iknot<<endl;
+// if (ShapeUpgrade::Debug()) std::cout<<". Correction at Knot "<<iknot<<std::endl;
myStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_DONE3 );
if(newMultiplicity == 0) {
//in case if knot is completelly removed
// this knot will be a splitting value.
mySplitValues->InsertBefore(j++,MyBSpline->Knot(iknot));
myNbCurves++;
-// if (ShapeUpgrade::Debug()) cout<<". Splitting at Knot "<<iknot<<endl;
+// if (ShapeUpgrade::Debug()) std::cout<<". Splitting at Knot "<<iknot<<std::endl;
}
}
}
for(Standard_Integer icol = 2; icol <= myVSplitValues->Length(); icol++) {
V2 = myVSplitValues->Value(icol);
// if (ShapeUpgrade::Debug()) {
-// cout<<".. bounds ="<<U1 <<","<<U2 <<","<<V1 <<","<<V2 <<endl;
-// cout<<".. -> pos ="<<irow <<","<<icol<<endl;
+// std::cout<<".. bounds ="<<U1 <<","<<U2 <<","<<V1 <<","<<V2 <<std::endl;
+// std::cout<<".. -> pos ="<<irow <<","<<icol<<std::endl;
// }
// creates a copy of theSurf before to segment:
Handle(Geom_Surface) theNew = Handle(Geom_Surface)::DownCast ( mySurface->Copy() );
}
catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeUpgrade_SplitSurface::Build(): Exception in Segment :";
- anException.Print(cout); cout << endl;
+ std::cout << "Warning: ShapeUpgrade_SplitSurface::Build(): Exception in Segment :";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
Handle(Geom_Surface) theNewSurf = theNew;
for(i = 1; i <= nbV; i++)
VJoints(i) = myVSplitValues->Value(i);
myResSurfaces->Init(Surfaces,UJoints,VJoints);
-// if (ShapeUpgrade::Debug()) cout<<"SplitSurface::Build - end"<<endl;
+// if (ShapeUpgrade::Debug()) std::cout<<"SplitSurface::Build - end"<<std::endl;
}
Standard_Real VFirst = myVSplitValues->Value(1);
Standard_Real VLast = myVSplitValues->Value(myVSplitValues->Length());
Standard_Real precision = Precision::Confusion();
-// if (ShapeUpgrade::Debug()) cout << "SplitSurfaceContinuity::Build" << endl;
+// if (ShapeUpgrade::Debug()) std::cout << "SplitSurfaceContinuity::Build" << std::endl;
if(mySurface->Continuity() < myCriterion)
myStatus = ShapeExtend::EncodeStatus (ShapeExtend_DONE2);
if (myUSplitValues->Length() >2 || myVSplitValues->Length() >2 )
default :
case GeomAbs_C1 : BasCriterion = GeomAbs_C2; break;
case GeomAbs_C2 : BasCriterion = GeomAbs_C3; break;
- case GeomAbs_C3 : //if (ShapeUpgrade::Debug()) cout<<". this criterion is not suitable for a Offset Surface"<<endl;;
+ case GeomAbs_C3 : //if (ShapeUpgrade::Debug()) std::cout<<". this criterion is not suitable for a Offset Surface"<<std::endl;;
#ifdef OCCT_DEBUG
- cout << "Warning: ShapeUpgrade_SplitSurfaceContinuity: criterion C3 for Offset surface" << endl;
+ std::cout << "Warning: ShapeUpgrade_SplitSurfaceContinuity: criterion C3 for Offset surface" << std::endl;
#endif
case GeomAbs_CN : BasCriterion = GeomAbs_CN; break;
if(mySurface->IsKind(STANDARD_TYPE(Geom_BSplineSurface)))
MyBSpline = Handle(Geom_BSplineSurface)::DownCast(mySurface->Copy());
if (MyBSpline.IsNull()) {
-// if (ShapeUpgrade::Debug()) cout<<". Surface is not a Bspline"<<endl;
+// if (ShapeUpgrade::Debug()) std::cout<<". Surface is not a Bspline"<<std::endl;
return;
}
if(mySurface->Continuity() >= myCriterion) {
VLastInd = MyBSpline->LastVKnotIndex()-1;
Standard_Integer NbVKnots= MyBSpline->NbVKnots();
-// if (ShapeUpgrade::Debug()) cout<<". NbUKnots="<<NbUKnots<<endl;
+// if (ShapeUpgrade::Debug()) std::cout<<". NbUKnots="<<NbUKnots<<std::endl;
if (NbUKnots>2) {
// Only the internal knots are checked.
Standard_Integer iknot= UFirstInd;
}
if (corrected) {
// at this knot, the continuity is now C1. Nothing else to do.
-// if (ShapeUpgrade::Debug()) cout<<". Correction at UKnot "<<iknot<<endl;
+// if (ShapeUpgrade::Debug()) std::cout<<". Correction at UKnot "<<iknot<<std::endl;
// PTV 15.05.2002 decrease iknot and ULastIndex values if knot removed
if (newMultiplicity ==0) { iknot--; ULastInd--; }
myStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_DONE3 );
Standard_Real u=MyBSpline->UKnot(iknot);
myUSplitValues->InsertBefore(j++,u);
myNbResultingRow++;
-// if (ShapeUpgrade::Debug()) cout<<". Splitting at Knot "<<iknot<<endl;
+// if (ShapeUpgrade::Debug()) std::cout<<". Splitting at Knot "<<iknot<<std::endl;
}
}
}
UFirst = ULast;
}
}
-// if (ShapeUpgrade::Debug()) cout<<". NbVKnots="<<NbVKnots<<endl;
+// if (ShapeUpgrade::Debug()) std::cout<<". NbVKnots="<<NbVKnots<<std::endl;
if (NbVKnots>2) {
// Only the internal knots are checked.
Standard_Integer iknot=VFirstInd;
}
if (corrected ) {
// at this knot, the continuity is now Criterion. Nothing else to do.
-// if (ShapeUpgrade::Debug()) cout<<". Correction at VKnot "<<iknot<<endl;
+// if (ShapeUpgrade::Debug()) std::cout<<". Correction at VKnot "<<iknot<<std::endl;
// PTV 15.05.2002 decrease iknot and ULastIndex values if knot removed
if (newMultiplicity ==0) { iknot--; VLastInd--; }
myStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_DONE3 );
Standard_Real v=MyBSpline->VKnot(iknot);
myVSplitValues->InsertBefore(j1++,v);
myNbResultingCol++;
-// if (ShapeUpgrade::Debug()) cout<<". Splitting at Knot "<<iknot<<endl;
+// if (ShapeUpgrade::Debug()) std::cout<<". Splitting at Knot "<<iknot<<std::endl;
}
}
}
}
if(NeedUnion) {
#ifdef OCCT_DEBUG
- cout<<"can not make analitical union => make approximation"<<endl;
+ std::cout<<"can not make analitical union => make approximation"<<std::endl;
#endif
TopoDS_Edge E = GlueEdgesWithPCurves(theChain, VF, VL);
OutEdge = E;
}
else {
#ifdef OCCT_DEBUG
- cout<<"can not make approximation for such types of curves"<<endl;
+ std::cout<<"can not make approximation for such types of curves"<<std::endl;
#endif
return Standard_False;
}
ShapeUpgrade_WireDivide::ShapeUpgrade_WireDivide():
ShapeUpgrade_Tool(), myStatus(0)
{
-// if (ShapeUpgrade::Debug()) cout <<"ShapeUpgrade_WireDivide"<<endl;
+// if (ShapeUpgrade::Debug()) std::cout <<"ShapeUpgrade_WireDivide"<<std::endl;
mySplitCurve3dTool = new ShapeUpgrade_SplitCurve3d;
mySplitCurve2dTool = new ShapeUpgrade_SplitCurve2d;
myTransferParamTool = new ShapeAnalysis_TransferParametersProj;
void ShapeUpgrade_WireDivide::Init(const TopoDS_Wire& W,
const TopoDS_Face& F)
{
-// if (ShapeUpgrade::Debug()) cout <<"ShapeUpgrade_WireDivide::Init with Wire, Face"<<endl;
+// if (ShapeUpgrade::Debug()) std::cout <<"ShapeUpgrade_WireDivide::Init with Wire, Face"<<std::endl;
myWire = W;
myFace = F;
myStatus = ShapeExtend::EncodeStatus ( ShapeExtend_OK );
void ShapeUpgrade_WireDivide::Init(const TopoDS_Wire& W,
const Handle(Geom_Surface)& S)
{
-// if (ShapeUpgrade::Debug()) cout <<"ShapeUpgrade_WireDivide::Init with Wire, Surface "<<endl;
+// if (ShapeUpgrade::Debug()) std::cout <<"ShapeUpgrade_WireDivide::Init with Wire, Surface "<<std::endl;
myWire = W;
BRepLib_MakeFace mkf(S, Precision::Confusion());
myFace = mkf.Face();
myStatus = ShapeExtend::EncodeStatus ( ShapeExtend_OK );
-// if (ShapeUpgrade::Debug()) cout << "ShapeUpgrade_WireDivide::Perform" << endl;
+// if (ShapeUpgrade::Debug()) std::cout << "ShapeUpgrade_WireDivide::Perform" << std::endl;
BRep_Builder B;
ShapeAnalysis_Edge sae;
TopoDS_Shape sh = Context()->Apply(ItW.Value(),TopAbs_SHAPE);
for(TopExp_Explorer exp(sh,TopAbs_EDGE); exp.More(); exp.Next()) {
TopoDS_Edge E = TopoDS::Edge(exp.Current());
-// if (ShapeUpgrade::Debug()) cout << ".. Edge " << (void*) &(*E.TShape()) << endl;
+// if (ShapeUpgrade::Debug()) std::cout << ".. Edge " << (void*) &(*E.TShape()) << std::endl;
// skip degenerated edges (and also INTERNAL/EXTERNAL, to avoid failures)
if ( E.Orientation() == TopAbs_INTERNAL || E.Orientation() == TopAbs_EXTERNAL ) {
if(revKnots2d->Length()!=theKnots2d->Length()) {
isSeam = Standard_False;
#ifdef OCCT_DEBUG
- cout << "Error: ShapeUpgrade_WireDivide: seam has different splitting values on pcurvesd" << endl;
+ std::cout << "Error: ShapeUpgrade_WireDivide: seam has different splitting values on pcurvesd" << std::endl;
#endif
}
else
Standard_Integer nbc2d = theSegments2d->Length();
if (nbc!=nbc2d) {
#ifdef OCCT_DEBUG
- cout<<"Error: Number of intervals are not equal for 2d 3d. Ignored."<<endl;
+ std::cout<<"Error: Number of intervals are not equal for 2d 3d. Ignored."<<std::endl;
#endif
nbc = Min( nbc,nbc2d);
}
else V = V2;
// else V2;
// }
-// if (ShapeUpgrade::Debug()) cout <<"... New intermediate Vertex ("
+// if (ShapeUpgrade::Debug()) std::cout <<"... New intermediate Vertex ("
// <<P.X()<<","<<P.Y()<<","<<P.Z()<<") :"<<(void*) &(*V.TShape())
-// <<" with Tolerance "<<TolEdge <<endl;
+// <<" with Tolerance "<<TolEdge <<std::endl;
}
//else V = V2;
n--;
}
-// if (ShapeUpgrade::Debug()) cout <<"... New Edge "
+// if (ShapeUpgrade::Debug()) std::cout <<"... New Edge "
// <<(void*) &(*newEdge.TShape())<<" on vertices "
// <<(void*) &(*V1.TShape())<<", " <<(void*) &(*V.TShape())
-// <<" with Tolerance "<<TolEdge <<endl;
+// <<" with Tolerance "<<TolEdge <<std::endl;
B.Add ( resWire, newEdge );
B.Add ( newWire, newEdge );
numE++;
//==== Check if can do the "longjmp" =======================================
if(anActive == NULL) {
- cerr << "*** Abort *** an exception was raised, but no catch was found." << endl;
+ std::cerr << "*** Abort *** an exception was raised, but no catch was found." << std::endl;
if (!theError.IsNull())
- cerr << "\t... The exception is:" << theError->GetMessageString() << endl;
+ std::cerr << "\t... The exception is:" << theError->GetMessageString() << std::endl;
exit(1);
}
my32b = (Standard_ExtCharacter) strtoul(strtmp, (char **)NULL, 16);
}
else return NULL;
-// cout << "V16 :" << hex(my32b) << endl;
+// std::cout << "V16 :" << hex(my32b) << std::endl;
return &tmpBuffer[pos+1];
}
//=======================================================================
strncpy(strtmp,tmpBuffer,2);
strtmp[2] = '\0';
my32b = (Standard_Byte) strtoul(strtmp, (char **)NULL, 16);
-// cout << "V8 :" << hex(my32b) << endl;
+// std::cout << "V8 :" << hex(my32b) << std::endl;
return &tmpBuffer[2];
}
//=======================================================================
{
if ( (Value <= -1.) || (Value >= 1.) ){
#ifdef OCCT_DEBUG
- cout << "Illegal agument in ATanh" << endl ;
+ std::cout << "Illegal agument in ATanh" << std::endl ;
#endif
throw Standard_NumericError("Illegal agument in ATanh");
}
{
if ( Value < 1. ){
#ifdef OCCT_DEBUG
- cout << "Illegal agument in ACosh" << endl ;
+ std::cout << "Illegal agument in ACosh" << std::endl ;
#endif
throw Standard_NumericError("Illegal agument in ACosh");
}
{
if ( Abs(Value) > 0.71047586007394394e+03 ){
#ifdef OCCT_DEBUG
- cout << "Result of Cosh exceeds the maximum value Standard_Real" << endl ;
+ std::cout << "Result of Cosh exceeds the maximum value Standard_Real" << std::endl ;
#endif
throw Standard_NumericError("Result of Cosh exceeds the maximum value Standard_Real");
}
{
if ( Abs(Value) > 0.71047586007394394e+03 ){
#ifdef OCCT_DEBUG
- cout << "Result of Sinh exceeds the maximum value Standard_Real" << endl ;
+ std::cout << "Result of Sinh exceeds the maximum value Standard_Real" << std::endl ;
#endif
throw Standard_NumericError("Result of Sinh exceeds the maximum value Standard_Real");
}
Standard_Real Log (const Standard_Real Value)
{ if ( Value <= 0. ){
#ifdef OCCT_DEBUG
- cout << "Illegal agument in Log" << endl ;
+ std::cout << "Illegal agument in Log" << std::endl ;
#endif
throw Standard_NumericError("Illegal agument in Log");
}
{
if ( Value < 0. ){
#ifdef OCCT_DEBUG
- cout << "Illegal agument in Sqrt" << endl ;
+ std::cout << "Illegal agument in Sqrt" << std::endl ;
#endif
throw Standard_NumericError("Illegal agument in Sqrt");
}
// ------------------------------------------------------------------
void Standard_Type::Print (Standard_OStream& AStream) const
{
- AStream << hex << (Standard_Address)this << " : " << dec << myName ;
+ AStream << std::hex << (Standard_Address)this << " : " << std::dec << myName ;
}
//============================================================================
// then add it to registry and return (the reference to the handle stored in the registry)
aRegistry.Bind (aType->mySystemName, aType);
-// cout << "Registering " << theSystemName << ": " << aRegistry.Extent() << endl;
+// std::cout << "Registering " << theSystemName << ": " << aRegistry.Extent() << std::endl;
return aType;
}
registry_type& aRegistry = GetRegistry();
Standard_ASSERT(aRegistry.UnBind (mySystemName), "Standard_Type::~Standard_Type() cannot find itself in registry",);
-// cout << "Unregistering " << mySystemName << ": " << aRegistry.Extent() << endl;
+// std::cout << "Unregistering " << mySystemName << ": " << aRegistry.Extent() << std::endl;
Standard::Free (mySystemName);
Standard::Free (myName);
}
if (aGUID == StdRetrievalDriver)
{
#ifdef OCCT_DEBUG
- cout << "StdDrivers : Retrieval Plugin" << endl;
+ std::cout << "StdDrivers : Retrieval Plugin" << std::endl;
#endif
static Handle(StdDrivers_DocumentRetrievalDriver) model_rd = new StdDrivers_DocumentRetrievalDriver;
if (aGUID == StdLRetrievalDriver)
{
#ifdef OCCT_DEBUG
- cout << "StdLDrivers : Retrieval Plugin" << endl;
+ std::cout << "StdLDrivers : Retrieval Plugin" << std::endl;
#endif
static Handle(StdLDrivers_DocumentRetrievalDriver) model_rd = new StdLDrivers_DocumentRetrievalDriver;
myReaderStatus = PCDM_RS_OpenError;
Standard_SStream aMsg;
- aMsg << anException << endl;
+ aMsg << anException << std::endl;
throw Standard_Failure(aMsg.str().c_str());
}
myReaderStatus = PCDM_RS_NoDocument;
Standard_SStream aMsg;
- aMsg << "could not find any document in this file" << endl;
+ aMsg << "could not find any document in this file" << std::endl;
throw Standard_Failure(aMsg.str().c_str());
}
{
aMsg << anUnknownTypes(i);
if (i < anUnknownTypes.Length()) aMsg << ",";
- else aMsg << endl;
+ else aMsg << std::endl;
}
throw Standard_Failure(aMsg.str().c_str());
case Storage_VSNotOpen:
case Storage_VSAlreadyOpen:
myReaderStatus = PCDM_RS_OpenError;
- aMsg << "Stream Open Error" << endl;
+ aMsg << "Stream Open Error" << std::endl;
throw Standard_Failure(aMsg.str().c_str());
case Storage_VSModeError:
myReaderStatus = PCDM_RS_WrongStreamMode;
- aMsg << "Stream is opened with a wrong mode for operation" << endl;
+ aMsg << "Stream is opened with a wrong mode for operation" << std::endl;
throw Standard_Failure(aMsg.str().c_str());
case Storage_VSSectionNotFound:
myReaderStatus = PCDM_RS_FormatFailure;
- aMsg << "Section is not found" << endl;
+ aMsg << "Section is not found" << std::endl;
throw Standard_Failure(aMsg.str().c_str());
case Storage_VSFormatError:
myReaderStatus = PCDM_RS_FormatFailure;
- aMsg << "Wrong format error" << endl;
+ aMsg << "Wrong format error" << std::endl;
throw Standard_Failure(aMsg.str().c_str());
case Storage_VSUnknownType:
myReaderStatus = PCDM_RS_TypeFailure;
- aMsg << "Try to read an unknown type" << endl;
+ aMsg << "Try to read an unknown type" << std::endl;
throw Standard_Failure(aMsg.str().c_str());
case Storage_VSTypeMismatch:
myReaderStatus = PCDM_RS_TypeFailure;
- aMsg << "Try to read a wrong primitive type" << endl;
+ aMsg << "Try to read a wrong primitive type" << std::endl;
throw Standard_Failure(aMsg.str().c_str());
default:
myReaderStatus = PCDM_RS_DriverFailure;
- aMsg << "Retrieval Driver Failure" << endl;
+ aMsg << "Retrieval Driver Failure" << std::endl;
throw Standard_Failure(aMsg.str().c_str());
}
}
}
#ifdef OCCT_DEBUG
else {
- cout << "Cannot evaluate curve on surface"<<endl;
+ std::cout << "Cannot evaluate curve on surface"<<std::endl;
}
#endif
}
}
#ifdef OCCT_DEBUG
else {
- cout << "Cannot evaluate curve on surface"<<endl;
+ std::cout << "Cannot evaluate curve on surface"<<std::endl;
}
#endif
}
if (Abs (wf - wl) <= Precision::Confusion())
{
#ifdef OCCT_DEBUG
- cout<<" StdSelect_BRepSelectionTool : Curve where ufirst = ulast ...."<<endl;
+ std::cout<<" StdSelect_BRepSelectionTool : Curve where ufirst = ulast ...."<<std::endl;
#endif
continue;
}
{
if(Prod.IsNull()) {
#ifdef OCCT_DEBUG
- cout<<"Prod.IsNull()"<<endl;
+ std::cout<<"Prod.IsNull()"<<std::endl;
#endif
return Standard_False;
}
Handle(StepShape_ShapeRepresentation) AnaSR = IdealShape(Prod);
if(AnaSR.IsNull()) {
#ifdef OCCT_DEBUG
- cout<<"AnaSR.IsNull()"<<endl;
+ std::cout<<"AnaSR.IsNull()"<<std::endl;
#endif
return Standard_False;
}
// WARNING : the field is redefined.
// field set up forbidden.
#ifdef OCCT_DEBUG
- cout << "Field is redefined, SetUp Forbidden" << endl;
+ std::cout << "Field is redefined, SetUp Forbidden" << std::endl;
#endif
}
Standard_Integer nb = thenames.Length();
Standard_Integer lng = 0; Standard_Integer ln1;
S << " --- StepData_HeaderTool : List of Protocol Names --- Count : "
- << nb << endl;
+ << nb << std::endl;
Standard_Integer i; // svv Jan11 2000 : porting on DEC
for (i = 1; i <= nb; i ++) {
ln1 = thenames.Value(i).Length() + 8; lng += ln1;
- if (lng > 80) { S << endl; lng = ln1; }
+ if (lng > 80) { S << std::endl; lng = ln1; }
S << " " << i << " : " << thenames.Value(i);
}
- if (lng == 0) S << endl;
+ if (lng == 0) S << std::endl;
nb = theignored.Length();
if (!thedone) {
- S << " --- Evaluation of Protocol not Done ---" << endl;
+ S << " --- Evaluation of Protocol not Done ---" << std::endl;
} else if (nb == 0) {
- S << " --- All Names correspond to a known Protocol ---" << endl;
+ S << " --- All Names correspond to a known Protocol ---" << std::endl;
} else {
lng = ln1 = 0;
- S << " --- Among them, " << nb << " remain unrecognized ---" << endl;
+ S << " --- Among them, " << nb << " remain unrecognized ---" << std::endl;
for (i = 1; i <= nb; i ++) {
ln1 = theignored.Value(i).Length() + 3; lng += ln1;
- if (lng > 80) { S << endl; lng = ln1; }
+ if (lng > 80) { S << std::endl; lng = ln1; }
S << " : " << theignored.Value(i);
}
- if (lng == 0) S << endl;
+ if (lng == 0) S << std::endl;
}
}
TColStd_SequenceOfAsciiString listypes;
if (!module->ComplexType(CN,listypes))
S << "(Complex Type : ask level > 0) cdl = "
- << ent->DynamicType()->Name() << " (...);" << endl;
+ << ent->DynamicType()->Name() << " (...);" << Message_EndLine;
else {
Standard_Integer n = listypes.Length();
for (i = 1; i <= n; i ++) S << listypes.Value(i) << " (...)";
- S << endl;
+ S << Message_EndLine;
}
}
- else S << module->StepType(CN) << " (...);" << endl;
+ else S << module->StepType(CN) << " (...);" << Message_EndLine;
}
else S << "(Unrecognized Type for protocol) cdl = "
- << ent->DynamicType()->Name() << " (...);" << endl;
- if (nlab > 0) S << "/* Ident in file for "<<num<<" : #"<<nlab<<" */"<<endl;
+ << ent->DynamicType()->Name() << " (...);" << Message_EndLine;
+ if (nlab > 0) S << "/* Ident in file for "<<num<<" : #"<<nlab<<" */"<<Message_EndLine;
}
else if (level == 1) {
}
else {
Handle(Standard_Transient) anent;
-// S << " -- Dumping Entity n0 " << num << " --" << endl;
+// S << " -- Dumping Entity n0 " << num << " --" << std::endl;
// ... Envoi ...
TColStd_Array1OfInteger tab(0,nb); tab.Init(0);
tab.SetValue(num,1);
S<<" (no ident): ";
for (i = 1; i <= nb; i ++)
{ if (ids.Value(i) >= 0) continue; S<<" #"<<i; }
- S<<endl;
+ S<<Message_EndLine;
}
if (nbq > 0) {
S<<" (ident = num): ";
for (i = 1; i <= nb; i ++) { if (ids.Value(i) == i) S<<" #"<<i; }
- S<<endl;
+ S<<Message_EndLine;
}
if (nbi < 0) { // on n affiche plus num:#id , on envoie un petit help
Standard_Integer nbl = 0, nbr = 0, nbr0 = 0, nbc = 0;
char unid[30];
-// S<<" (proper ident): #num #ident"<<endl;
- S<<" (proper ident): num:#ident num:#ident ..."<<endl;
+// S<<" (proper ident): #num #ident"<<std::endl;
+ S<<" (proper ident): num:#ident num:#ident ..."<<Message_EndLine;
for (i = 1; i <= nb; i ++) {
if (ids.Value(i) <= 0 || ids.Value(i) == i) continue;
sprintf (unid,"%d:#%d",i,ids.Value(i));
nbc = (Standard_Integer) strlen (unid); nbr = ((80-nbc) %4) +2;
nbl += nbc;
- if (nbl+nbr0 > 79) { nbl = nbc; S<<endl; }
+ if (nbl+nbr0 > 79) { nbl = nbc; S<<Message_EndLine; }
else { nbl += nbr0; for (; nbr0 > 0; nbr0 --) S << " "; }
S<<unid;
nbr0 = nbr;
-// if (nbl+nbc > 79) { S<<endl<<unid; nbl = 0; }
+// if (nbl+nbc > 79) { S<<std::endl<<unid; nbl = 0; }
// else { S<<unid; }
// nbl += (nbc+nbr);
// nbr = ((80-nbc) % 4) +1;
// S<<" "<<i<<" ->#"<<ids.Value(i);
-// nbl ++; if (nbl > 5) { nbl = nbr = 0; S<<endl; }
+// nbl ++; if (nbl > 5) { nbl = nbr = 0; S<<std::endl; }
}
- if (nbl > 0) S<<endl;
+ if (nbl > 0) S<<Message_EndLine;
}
- if (nbi > 0) S<<"In dump, iii:#jjj means : entity rank iii has step ident #jjj"<<endl;
-// S <<" -- Dumping data, entity "<<num<<" level "<<level<<" :"<<endl;
+ if (nbi > 0) S<<"In dump, iii:#jjj means : entity rank iii has step ident #jjj"<<Message_EndLine;
+// S <<" -- Dumping data, entity "<<num<<" level "<<level<<" :"<<std::endl;
}
if (level > 0)
{
S << " " << iter.Value()->DynamicType()->Name() << "\n";
}
if (!iapro || nb == 0) return;
- S << " -- -- STEP MODEL HEADER CONTENT -- --" << endl;
+ S << " -- -- STEP MODEL HEADER CONTENT -- --" << Message_EndLine;
S << " -- Dumped with Protocol : " << stepro->DynamicType()->Name()
- << " --"<<endl;
+ << " --"<<Message_EndLine;
Standard_SStream aSStream;
Handle(StepData_StepModel) me (this);
sout << " *** Error on Record " << num << " (on " << NbRecords()
<< " -> " << num * 100 / NbRecords() << " % in File) ***";
if (prev > 0) sout << " Ident #" << theidents(prev);
- sout << "\n" << errm << endl;
+ sout << "\n" << errm << Message_EndLine;
#endif
thecheck->AddWarning(errm.ToCString(), "Complex Type incorrect : ");
}
if (letype == Interface_ParamSub) {
Standard_Integer numsub = FP.EntityNumber();
if (numsub > thelastn) {
- sout << "Bad Sub.N0, Record " << num << " Param " << na << ":$" << numsub << endl;
+ sout << "Bad Sub.N0, Record " << num << " Param " << na << ":$" << numsub << Message_EndLine;
continue;
}
FP.SetEntityNumber(subn(numsub));
// ... Et sortir message un peu plus complet
sout << "*** ERR StepReaderData *** Pour Entite #" << ident
<< "\n Type:" << RecordType(num)
- << " Param.n0 " << na << ": #" << id << " Non trouve" << endl;
+ << " Param.n0 " << na << ": #" << id << " Non trouve" << Message_EndLine;
} // FIN Mapping
} // FIN Traitement Reference
} // FIN Boucle Parametres
char ligne[80];
sprintf(ligne, "Ident defined SEVERAL TIMES : #%d", ident);
thecheck->AddFail(ligne, "Ident defined SEVERAL TIMES : #%d");
- sout << "StepReaderData:SetEntityNumbers, " << ligne << endl;
+ sout << "StepReaderData:SetEntityNumbers, " << ligne << Message_EndLine;
}
if (indm(indmap) > 0) indm(indmap) = -indm(indmap); // Pas pour Map
// Cas Normal pour la Map
sout << "*** ERR StepReaderData *** Pour Entite " << nument
<< ", a " << (nr * 100) / nbseq << "% de DATA : #" << ident
<< "\n Type:" << RecordType(num)
- << " Param.n0 " << na << ": #" << id << " Non trouve" << endl;
+ << " Param.n0 " << na << ": #" << id << " Non trouve" << Message_EndLine;
FP.SetEntityNumber(0); // -> Reference non resolue
}
}
Handle(Interface_Check) mch = model->GlobalCheck();
Standard_Integer nbmess = ach->NbWarnings();
sout<<nbmess<<" Warnings on Reading Header Entity N0."<<i<<":";
- if (!ent.IsNull()) sout << ent->DynamicType()->Name() << endl;
+ if (!ent.IsNull()) sout << ent->DynamicType()->Name() << Message_EndLine;
for (Standard_Integer nf = 1; nf <= nbmess; nf ++)
sout << ach->CWarning(nf) << "\n";
}
Handle(Interface_Check) mch = model->GlobalCheck();
Standard_Integer nbmess = ach->NbFails();
sout << " Errors on Reading Header Entity N0."<<i<<":";
- if (!ent.IsNull()) sout << ent->DynamicType()->Name() << endl;
+ if (!ent.IsNull()) sout << ent->DynamicType()->Name() << Message_EndLine;
for (Standard_Integer nf = 1; nf <= nbmess; nf ++)
sout << ach->CFail(nf) << "\n";
}
}
else if (thescopenext->Value(numin) != 0) {
#ifdef OCCT_DEBUG
- cout << "StepWriter : SetScope (scope : " << numscope << " entity : "
- << numin << "), Entity already in a Scope"<<endl;
+ std::cout << "StepWriter : SetScope (scope : " << numscope << " entity : "
+ << numin << "), Entity already in a Scope"<<std::endl;
#endif
throw Interface_InterfaceMismatch("StepWriter : SetScope, already set");
}
for (Standard_Integer i = 1; i <= nb && isGood; i ++)
S << thefile->Value(i)->ToCString() << "\n";
- S<< flush;
+ S<< std::flush;
isGood = (S && S.good());
return isGood;
OSD_Timer c ;
c.Reset () ;
c.Start();
- sout << " ... Step File Reading : " << ficnom << "" << endl;
+ sout << " ... Step File Reading : " << ficnom << "" << Message_EndLine;
#endif
try {
}
catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- sout << " ... Exception Raised while reading Step File : " << ficnom << ":\n" << endl;
+ sout << " ... Exception Raised while reading Step File : " << ficnom << ":\n" << Message_EndLine;
sout << anException.GetMessageString();
- sout << " ..." << endl;
+ sout << " ..." << Message_EndLine;
#endif
(void)anException;
lir_file_fin(3);
// Continue reading of file despite of possible fails
//if (checkread->HasFailed()) { lir_file_fin(3); stepread_endinput (newin,ficnom); return 1; }
#ifdef CHRONOMESURE
- sout << " ... STEP File Read ... " << endl;
+ sout << " ... STEP File Read ... " << Message_EndLine;
c.Show();
#endif
// on a undirec pret pour la suite
#ifdef CHRONOMESURE
- sout << " ... Step File loaded ... " << endl;
+ sout << " ... Step File loaded ... " << Message_EndLine;
c.Show();
sout << " "<< undirec->NbRecords () <<
- " records (entities,sub-lists,scopes), "<< nbpar << " parameters\n" << endl;
+ " records (entities,sub-lists,scopes), "<< nbpar << " parameters\n" << Message_EndLine;
#endif
// Analyse : par StepReaderTool
readtool.Clear();
undirec.Nullify();
#ifdef CHRONOMESURE
- sout << " ... Objets analysed ... " << endl;
+ sout << " ... Objets analysed ... " << Message_EndLine;
c.Show();
n = stepmodel->NbEntities() ;
- sout << " STEP Loading done : " << n << " Entities" << endl;
+ sout << " STEP Loading done : " << n << " Entities" << Message_EndLine;
#endif
stepread_endinput (newin,ficnom); return 0 ;
{
#ifdef OCCT_DEBUG
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- sout << " **** StepFile Error : " << mess << " ****" << endl;
+ sout << " **** StepFile Error : " << mess << " ****" << Message_EndLine;
#endif
checkread->AddFail(mess);
}
case 1 : { // **** StepSchema
if (argc < 2) {
- cout<<"Identify an entity"<<endl;
+ std::cout<<"Identify an entity"<<std::endl;
return IFSelect_RetError;
}
Standard_Integer num = pilot->Number(arg1);
if (num <= 0) {
- cout<<"Not an entity : "<<arg2<<endl;
+ std::cout<<"Not an entity : "<<arg2<<std::endl;
return IFSelect_RetError;
}
Handle(Standard_Transient) ent = pilot->Session()->StartingEntity(num);
DeclareAndCast(StepData_UndefinedEntity,und,ent);
if (!und.IsNull()) {
- cout<<"Entity "<<arg2<<" : No Binding known"<<endl;
+ std::cout<<"Entity "<<arg2<<" : No Binding known"<<std::endl;
return IFSelect_RetVoid;
}
DeclareAndCast(StepData_Simple,sim,ent);
if (!sim.IsNull()) {
- cout<<"Entity "<<arg2<<" : Late Binding"<<endl;
- cout<<"Simple Type : "<<sim->StepType()<<endl;
+ std::cout<<"Entity "<<arg2<<" : Late Binding"<<std::endl;
+ std::cout<<"Simple Type : "<<sim->StepType()<<std::endl;
return IFSelect_RetVoid;
}
DeclareAndCast(StepData_Plex,plx,ent);
if (!plx.IsNull()) {
- cout<<"Entity "<<arg2<<" : Late Binding"<<endl;
- cout<<"Complex Type"<<endl;
+ std::cout<<"Entity "<<arg2<<" : Late Binding"<<std::endl;
+ std::cout<<"Complex Type"<<std::endl;
}
// reste Early Binding
- cout<<"Entity "<<arg2<<" : Early Binding"<<endl;
- cout<<"CDL Type : "<<ent->DynamicType()->Name()<<endl;
+ std::cout<<"Entity "<<arg2<<" : Early Binding"<<std::endl;
+ std::cout<<"CDL Type : "<<ent->DynamicType()->Name()<<std::endl;
return IFSelect_RetVoid;
}
case 40 : { // **** FloatFormat
char prem = ' ';
if (argc < 2) prem = '?';
- else if (argc == 5) { cout<<"floatformat tout court donne les formes admises"<<endl; return IFSelect_RetError; }
+ else if (argc == 5) { std::cout<<"floatformat tout court donne les formes admises"<<std::endl; return IFSelect_RetError; }
else prem = arg1[0];
Standard_Boolean zerosup=Standard_False;
Standard_Integer digits = 0;
else if (prem == 'Z' || prem == 'z') zerosup = Standard_True;
else if (prem >= 48 && prem <= 57) digits = atoi(arg1);
else {
- cout<<"floatformat digits, digits=nb de chiffres signifiants, ou\n"
+ std::cout<<"floatformat digits, digits=nb de chiffres signifiants, ou\n"
<< "floatformat NZ %mainformat [%rangeformat [Rmin Rmax]]\n"
<<" NZ : N ou n pour Non-zero-suppress, Z ou z pour zero-suppress\n"
<<" %mainformat : format principal type printf, ex,: %E\n"
<<" + optionnel : format secondaire (flottants autour de 1.) :\n"
<<" %rangeformat Rmin Rmax : format type printf entre Rmin et Rmax\n"
<<" %rangeformat tout seul : format type printf entre 0.1 et 1000.\n"
- <<flush;
+ <<std::flush;
return (prem == '?' ? IFSelect_RetVoid : IFSelect_RetError);
}
Standard_Real Rmin=0., Rmax=0.;
if (argc > 4) {
Rmin = Atof(pilot->Word(4).ToCString());
Rmax = Atof(pilot->Word(5).ToCString());
- if (Rmin <= 0 || Rmax <= 0) { cout<<"intervalle : donner reels > 0"<<endl; return IFSelect_RetError; }
+ if (Rmin <= 0 || Rmax <= 0) { std::cout<<"intervalle : donner reels > 0"<<std::endl; return IFSelect_RetError; }
}
Handle(StepSelect_FloatFormat) fm = new StepSelect_FloatFormat;
if (argc == 2) fm->SetDefault(digits);
DeclareAndCast(StepData_Protocol,stepro,ctx.Protocol());
if (stepmodel.IsNull() || stepro.IsNull()) return Standard_False;
- ofstream fout;
- OSD_OpenStream(fout,ctx.FileName(),ios::out|ios::trunc);
+ std::ofstream fout;
+ OSD_OpenStream(fout,ctx.FileName(),std::ios::out|std::ios::trunc);
if (!fout || !fout.is_open()) {
ctx.CCheck(0)->AddFail("Step File could not be created");
- sout<<" Step File could not be created : " << ctx.FileName() << endl; return 0;
+ sout<<" Step File could not be created : " << ctx.FileName() << Message_EndLine; return 0;
}
sout << " Step File Name : "<<ctx.FileName();
StepData_StepWriter SW(stepmodel);
sout << " .. FileMod." << numod << filemod->Label();
if (ctx.IsForAll()) sout << " (all model)";
else sout << " (" << ctx.NbEntities() << " entities)";
-// sout << flush;
+// sout << std::flush;
}
// Envoi
ctx.CCheck(chl.Number())->GetMessages(chl.Value());
sout<<" Write ";
Standard_Boolean isGood = SW.Print(fout);
- sout<<" Done"<<endl;
+ sout<<" Done"<<Message_EndLine;
errno = 0;
fout.close();
isGood = fout.good() && isGood && !errno;
if(errno)
- sout << strerror(errno) << endl;
+ sout << strerror(errno) << Message_EndLine;
return isGood;
}
Handle(Standard_Transient) ent, con; ent = entity;
S<<" --- (STEP) Entity "; model->Print(entity,S);
if (iserr) con = model->ReportEntity(nument)->Content();
- if (entity.IsNull()) { S<<" Null"<<endl; return; }
+ if (entity.IsNull()) { S<<" Null"<<Message_EndLine; return; }
// On attaque le dump : d abord cas de l Erreur
- S << " Type cdl : " << entity->DynamicType()->Name() << endl;
+ S << " Type cdl : " << entity->DynamicType()->Name() << Message_EndLine;
if (iserr)
- S<<" *** NOT WELL LOADED : CONTENT FROM FILE ***"<<endl;
+ S<<" *** NOT WELL LOADED : CONTENT FROM FILE ***"<<Message_EndLine;
else if (model->IsUnknownEntity(nument))
- S<<" *** UNKNOWN TYPE ***"<<endl;
+ S<<" *** UNKNOWN TYPE ***"<<Message_EndLine;
StepData_StepDumper dump(GetCasted(StepData_StepModel,model),
GetCasted(StepData_Protocol,protocol),thelabmode);
{
// WARNING : the field is redefined.
// field set up forbidden.
- cout << "Field is redefined, SetUp Forbidden" << endl;
+ std::cout << "Field is redefined, SetUp Forbidden" << std::endl;
}
Handle(StepShape_HArray1OfFace) StepShape_OrientedClosedShell::CfsFaces() const
{
// WARNING : the field is redefined.
// field set up forbidden.
- cout << "Field is redefined, SetUp Forbidden" << endl;
+ std::cout << "Field is redefined, SetUp Forbidden" << std::endl;
}
Handle(StepShape_Vertex) StepShape_OrientedEdge::EdgeStart() const
{
// WARNING : the field is redefined.
// field set up forbidden.
- cout << "Field is redefined, SetUp Forbidden" << endl;
+ std::cout << "Field is redefined, SetUp Forbidden" << std::endl;
}
Handle(StepShape_Vertex) StepShape_OrientedEdge::EdgeEnd() const
{
// WARNING : the field is redefined.
// field set up forbidden.
- cout << "Field is redefined, SetUp Forbidden" << endl;
+ std::cout << "Field is redefined, SetUp Forbidden" << std::endl;
}
Handle(StepShape_HArray1OfFaceBound) StepShape_OrientedFace::Bounds() const
{
// WARNING : the field is redefined.
// field set up forbidden.
- cout << "Field is redefined, SetUp Forbidden" << endl;
+ std::cout << "Field is redefined, SetUp Forbidden" << std::endl;
}
Handle(StepShape_HArray1OfFace) StepShape_OrientedOpenShell::CfsFaces() const
{
// WARNING : the field is redefined.
// field set up forbidden.
- cout << "Field is redefined, SetUp Forbidden" << endl;
+ std::cout << "Field is redefined, SetUp Forbidden" << std::endl;
}
Handle(StepShape_HArray1OfOrientedEdge) StepShape_OrientedPath::EdgeList() const
#ifdef OCCT_DEBUG
// ShapeTool_DB ?
//:s5
- cout<<"Warning: MakeSurface: Exception:";
- anException.Print(cout); cout << endl;
+ std::cout<<"Warning: MakeSurface: Exception:";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
}
if (i == 1) aFMulDiff = aCurrentVal - Deg - 1;
if (i == NbUniqueKnots) aLMulDiff = aCurrentVal - Deg - 1;
#ifdef OCCT_DEBUG
- cout << "\nWrong multiplicity " << aCurrentVal << " on " << i
- << " knot!" << "\nChanged to " << Deg + 1 << endl;
+ std::cout << "\nWrong multiplicity " << aCurrentVal << " on " << i
+ << " knot!" << "\nChanged to " << Deg + 1 << std::endl;
#endif
aCurrentVal = Deg + 1;
}
if ( TP->TraceLevel() > 2 )
{
- sout << "Geometric Statitics : " << endl;
- sout << " Surface Continuity : - C0 : " << myTool.C0Surf() << endl;
- sout << " - C1 : " << myTool.C1Surf() << endl;
- sout << " - C2 : " << myTool.C2Surf() << endl;
- sout << " Curve Continuity : - C0 : " << myTool.C0Cur3() << endl;
- sout << " - C1 : " << myTool.C1Cur3() << endl;
- sout << " - C2 : " << myTool.C2Cur3() << endl;
- sout << " PCurve Continuity : - C0 : " << myTool.C0Cur2() << endl;
- sout << " - C1 : " << myTool.C1Cur2() << endl;
- sout << " - C2 : " << myTool.C2Cur2() << endl;
+ sout << "Geometric Statitics : " << Message_EndLine;
+ sout << " Surface Continuity : - C0 : " << myTool.C0Surf() << Message_EndLine;
+ sout << " - C1 : " << myTool.C1Surf() << Message_EndLine;
+ sout << " - C2 : " << myTool.C2Surf() << Message_EndLine;
+ sout << " Curve Continuity : - C0 : " << myTool.C0Cur3() << Message_EndLine;
+ sout << " - C1 : " << myTool.C1Cur3() << Message_EndLine;
+ sout << " - C2 : " << myTool.C2Cur3() << Message_EndLine;
+ sout << " PCurve Continuity : - C0 : " << myTool.C0Cur2() << Message_EndLine;
+ sout << " - C1 : " << myTool.C1Cur2() << Message_EndLine;
+ sout << " - C2 : " << myTool.C2Cur2() << Message_EndLine;
}
//:S4136 ShapeFix::SameParameter (S,Standard_False);
if ( TP->TraceLevel() > 2 )
{
- sout << "Geometric Statitics : " << endl;
- sout << " Surface Continuity : - C0 : " << myTool.C0Surf() << endl;
- sout << " - C1 : " << myTool.C1Surf() << endl;
- sout << " - C2 : " << myTool.C2Surf() << endl;
- sout << " Curve Continuity : - C0 : " << myTool.C0Cur3() << endl;
- sout << " - C1 : " << myTool.C1Cur3() << endl;
- sout << " - C2 : " << myTool.C2Cur3() << endl;
- sout << " PCurve Continuity : - C0 : " << myTool.C0Cur2() << endl;
- sout << " - C1 : " << myTool.C1Cur2() << endl;
- sout << " - C2 : " << myTool.C2Cur2() << endl;
+ sout << "Geometric Statitics : " << Message_EndLine;
+ sout << " Surface Continuity : - C0 : " << myTool.C0Surf() << Message_EndLine;
+ sout << " - C1 : " << myTool.C1Surf() << Message_EndLine;
+ sout << " - C2 : " << myTool.C2Surf() << Message_EndLine;
+ sout << " Curve Continuity : - C0 : " << myTool.C0Cur3() << Message_EndLine;
+ sout << " - C1 : " << myTool.C1Cur3() << Message_EndLine;
+ sout << " - C2 : " << myTool.C2Cur3() << Message_EndLine;
+ sout << " PCurve Continuity : - C0 : " << myTool.C0Cur2() << Message_EndLine;
+ sout << " - C1 : " << myTool.C1Cur2() << Message_EndLine;
+ sout << " - C2 : " << myTool.C2Cur2() << Message_EndLine;
}
//:S4136 ShapeFix::SameParameter (S,Standard_False);
if ( TP->TraceLevel() > 2 )
{
- sout << "Geometric Statitics : " << endl;
- sout << " Surface Continuity : - C0 : " << myTool.C0Surf() << endl;
- sout << " - C1 : " << myTool.C1Surf() << endl;
- sout << " - C2 : " << myTool.C2Surf() << endl;
- sout << " Curve Continuity : - C0 : " << myTool.C0Cur3() << endl;
- sout << " - C1 : " << myTool.C1Cur3() << endl;
- sout << " - C2 : " << myTool.C2Cur3() << endl;
- sout << " PCurve Continuity : - C0 : " << myTool.C0Cur2() << endl;
- sout << " - C1 : " << myTool.C1Cur2() << endl;
- sout << " - C2 : " << myTool.C2Cur2() << endl;
+ sout << "Geometric Statitics : " << Message_EndLine;
+ sout << " Surface Continuity : - C0 : " << myTool.C0Surf() << Message_EndLine;
+ sout << " - C1 : " << myTool.C1Surf() << Message_EndLine;
+ sout << " - C2 : " << myTool.C2Surf() << Message_EndLine;
+ sout << " Curve Continuity : - C0 : " << myTool.C0Cur3() << Message_EndLine;
+ sout << " - C1 : " << myTool.C1Cur3() << Message_EndLine;
+ sout << " - C2 : " << myTool.C2Cur3() << Message_EndLine;
+ sout << " PCurve Continuity : - C0 : " << myTool.C0Cur2() << Message_EndLine;
+ sout << " - C1 : " << myTool.C1Cur2() << Message_EndLine;
+ sout << " - C2 : " << myTool.C2Cur2() << Message_EndLine;
}
//:S4136 ShapeFix::SameParameter (S,Standard_False);
catch (Standard_Failure const& anException) {
Handle(Message_Messenger) sout = TP->Messenger();
sout << "StepToTopoDS, GeometricSet, elem " << i << " of " << nbElem << ": exception ";
- sout << anException.GetMessageString() << endl;
+ sout << anException.GetMessageString() << Message_EndLine;
}
if (!aGeomCrv.IsNull()) {
BRepBuilderAPI_MakeEdge anEdge(aGeomCrv, aGeomCrv->FirstParameter(), aGeomCrv->LastParameter());
if (w1 < cf)
{
#ifdef OCCT_DEBUG
- cout << "Update Edge First Parameter to Curve First Parameter" << endl;
+ std::cout << "Update Edge First Parameter to Curve First Parameter" << std::endl;
#endif
w1 = cf;
}
else if (w1 > cl)
{
#ifdef OCCT_DEBUG
- cout << "Update Edge First Parameter to Curve Last Parameter" << endl;
+ std::cout << "Update Edge First Parameter to Curve Last Parameter" << std::endl;
#endif
w1 = cl;
}
if (w2 < cf) {
#ifdef OCCT_DEBUG
- cout << "Update Edge Last Parameter to Curve First Parameter" << endl;
+ std::cout << "Update Edge Last Parameter to Curve First Parameter" << std::endl;
#endif
w2 = cf;
}
else if (w2 > cl) {
#ifdef OCCT_DEBUG
- cout << "Update Edge Last Parameter to Curve Last Parameter" << endl;
+ std::cout << "Update Edge Last Parameter to Curve Last Parameter" << std::endl;
#endif
w2 = cl;
}
else if (w1 > w2)
{
#ifdef OCCT_DEBUG
- cout << "Warning : parameter range of edge crossing non periodic curve origin" << endl;
+ std::cout << "Warning : parameter range of edge crossing non periodic curve origin" << std::endl;
#endif
Standard_Real tmp = w1;
w1 = w2;
else
{
#ifdef OCCT_DEBUG
- cout << "Warning : parameter range of edge crossing non periodic curve origin" << endl;
+ std::cout << "Warning : parameter range of edge crossing non periodic curve origin" << std::endl;
#endif
Standard_Real tmp = w1;
w1 = w2;
else if (w1 > w2)
{
#ifdef OCCT_DEBUG
- cout << "Warning: parameter range is bad; curve reversed" << endl;
+ std::cout << "Warning: parameter range is bad; curve reversed" << std::endl;
#endif
w1 = theCurve->ReversedParameter(w1);
w2 = theCurve->ReversedParameter(w2);
else
{
#ifdef OCCT_DEBUG
- cout << "UpdateParam3d Failed" << endl;
- cout << " - Curve Type : " << theCurve->DynamicType() << endl;
- cout << " - Param 1 : " << w1 << endl;
- cout << " - Param 2 : " << w2 << endl;
+ std::cout << "UpdateParam3d Failed" << std::endl;
+ std::cout << " - Curve Type : " << theCurve->DynamicType() << std::endl;
+ std::cout << " - Param 1 : " << w1 << std::endl;
+ std::cout << " - Param 2 : " << w2 << std::endl;
#endif
//abv 15.03.00 #72 bm1_pe_t4 protection of exceptions in draw
if (w1 > w2)
{
#ifdef OCCT_DEBUG
- cout << "Warning: parameter range is bad; curve reversed" << endl;
+ std::cout << "Warning: parameter range is bad; curve reversed" << std::endl;
#endif
w1 = theCurve->ReversedParameter(w1);
w2 = theCurve->ReversedParameter(w2);
}
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Warning: StepToTopoDS_TranslateCompositeCurve: Exception: ";
- anException.Print(cout); cout << endl;
+ std::cout << "Warning: StepToTopoDS_TranslateCompositeCurve: Exception: ";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
}
}
catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Warning: StepToTopoDS_TranslateCompositeCurve: Exception: ";
- anException.Print(cout); cout << endl;
+ std::cout << "Warning: StepToTopoDS_TranslateCompositeCurve: Exception: ";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
}
Handle(Transfer_TransientProcess) TP = aTool.TransientProcess();
#ifdef OCCT_DEBUG
- cout << "------------------------------------" << endl;
- cout << "MakeEdge Error : " << ME.Error()<<" - ";
+ std::cout << "------------------------------------" << std::endl;
+ std::cout << "MakeEdge Error : " << ME.Error()<<" - ";
#endif
switch(ME.Error())
{
break;
}
#ifdef OCCT_DEBUG
- cout << "Original Type : " << orig->DynamicType() << endl;
- cout << "3D Curve Type : " << myCurve->DynamicType() << endl;
- cout << "First Parameter : " << U1 << endl;
+ std::cout << "Original Type : " << orig->DynamicType() << std::endl;
+ std::cout << "3D Curve Type : " << myCurve->DynamicType() << std::endl;
+ std::cout << "First Parameter : " << U1 << std::endl;
gp_Pnt p1 = BRep_Tool::Pnt(V1);
-// cout << "First Point : ";
- cout << "First Vertex : "<<p1.X()<<" "<<p1.Y()<<" "<<p1.Z()<<" ";
- cout << "Distance Point - Vertex : ";
+// std::cout << "First Point : ";
+ std::cout << "First Vertex : "<<p1.X()<<" "<<p1.Y()<<" "<<p1.Z()<<" ";
+ std::cout << "Distance Point - Vertex : ";
Standard_Real d1 = p1.Distance(myCurve->Value(U1));
- cout << d1 << endl;
- cout << "Last Parameter : " << U2 << endl;
+ std::cout << d1 << std::endl;
+ std::cout << "Last Parameter : " << U2 << std::endl;
gp_Pnt p2 = BRep_Tool::Pnt(V2);
-// cout << "Last Point : ";
- cout << "Last Vertex : "<<p2.X()<<" "<<p2.Y()<<" "<<p2.Z()<<" ";
- cout << "Distance Point - Vertex : ";
+// std::cout << "Last Point : ";
+ std::cout << "Last Vertex : "<<p2.X()<<" "<<p2.Y()<<" "<<p2.Z()<<" ";
+ std::cout << "Distance Point - Vertex : ";
Standard_Real d2 = BRep_Tool::Pnt(V2).Distance(myCurve->Value(U2));
- cout << d2 << endl;
+ std::cout << d2 << std::endl;
#endif
}
if (w1 == w2) {
RemoveSinglePCurve(myEdge,aFace);
#ifdef OCCT_DEBUG
- cout<<"Removing pcuve w1=w2"<<endl;
+ std::cout<<"Removing pcuve w1=w2"<<std::endl;
#endif
continue;
}
}
catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Warning: StepToTopoDS_TranslateEdgeLoop: Exception: ";
- anException.Print(cout); cout << endl;
+ std::cout << "Warning: StepToTopoDS_TranslateEdgeLoop: Exception: ";
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
TP->AddFail(C,"Exeption was raised. Curve geometry definition is incorrect");
Standard_Boolean ThereIsLikeSeam = Standard_False;
#ifdef OCCT_DEBUG
- cout << " Processing Edge :" << j << endl;
+ std::cout << " Processing Edge :" << j << std::endl;
#endif
OrEdge1 = EL->EdgeListValue(j);
else {
RemoveSinglePCurve(edge, Face);
#ifdef OCCT_DEBUG
- cout <<"Removing after prj"<<endl;
+ std::cout <<"Removing after prj"<<std::endl;
#endif
}
}
for (Standard_Integer i = 1; i <= NbBnd; i ++) {
#ifdef OCCT_DEBUG
- cout << " Processing Wire : " << i << endl;
+ std::cout << " Processing Wire : " << i << std::endl;
#endif
FaceBound = FS->BoundsValue(i);
Loop = FaceBound->Bound();
// Type not yet implemented or non sens
TP->AddFail(Loop," Type of loop not yet implemented");
#ifdef OCCT_DEBUG
- cout << Loop->DynamicType() << endl;
+ std::cout << Loop->DynamicType() << std::endl;
#endif
continue;
}
Message_ProgressSentry PS ( TP->GetProgress(), "Face", 0, NbFc, 1 );
for (Standard_Integer i = 1; i <= NbFc && PS.More(); i++, PS.Next()) {
#ifdef OCCT_DEBUG
- cout << "Processing Face : " << i << endl;
+ std::cout << "Processing Face : " << i << std::endl;
#endif
StepFace = CFS->CfsFacesValue(i);
Handle(StepShape_FaceSurface) theFS =
break;
}
#ifdef OCCT_DEBUG
- cout << "Storage_Sheme:: Line: = " << aLine <<endl;
+ std::cout << "Storage_Sheme:: Line: = " << aLine <<std::endl;
#endif
TCollection_AsciiString aKey, aValue;
aKey = aLine.Token();
aDMap.Bind("TPrsStd_AISPresentation", "TDataXtd_Presentation");
}
#ifdef OCCT_DEBUG
- cout << "Storage_Sheme:: aDataMap.Size = " << aDMap.Extent() << endl;
+ std::cout << "Storage_Sheme:: aDataMap.Size = " << aDMap.Extent() << std::endl;
#endif
}
}
newName = aDMap.Find(oldName);
aMigration = Standard_True;
#ifdef OCCT_DEBUG
- cout << " newName = " << newName << endl;
+ std::cout << " newName = " << newName << std::endl;
#endif
}
}
if (time(&nowbin) == (time_t)-1)
{
#ifdef OCCT_DEBUG
- cerr << "Storage ERROR : Could not get time of day from time()" << endl;
+ std::cerr << "Storage ERROR : Could not get time of day from time()" << std::endl;
#endif
}
if (strftime(nowstr, SLENGTH, "%m/%d/%Y", nowstruct) == (size_t) 0)
{
#ifdef OCCT_DEBUG
- cerr << "Storage ERROR : Could not get string from strftime()" << endl;
+ std::cerr << "Storage ERROR : Could not get string from strftime()" << std::endl;
#endif
}
Standard_Integer BeginIndex=0 ;
Standard_Integer EndIndex=0 ;
-// cout << "'" << mystring << "'" << endl ;
+// std::cout << "'" << mystring << "'" << std::endl ;
for ( theOne = 0 ; theOne < whichone ; theOne++ ) {
BeginIndex = 0 ;
EndIndex = 0 ;
-// cout << "theOne " << theOne << endl ;
+// std::cout << "theOne " << theOne << std::endl ;
if ( StringIndex == mylength )
break ;
for (; StringIndex < mylength && EndIndex == 0 ; StringIndex++ ) {
SeparatorIndex = 0 ;
-// cout << "StringIndex " << StringIndex << endl ;
+// std::cout << "StringIndex " << StringIndex << std::endl ;
while ( separators [ SeparatorIndex ] ) {
if ( mystring [ StringIndex ] == separators [ SeparatorIndex ] ) {
break ;
if ( separators [ SeparatorIndex ] != '\0' ) { // We have a Separator
if ( BeginIndex && EndIndex == 0 ) {
EndIndex = StringIndex ;
-// cout << "EndIndex " << EndIndex << " '" << SubString( BeginIndex , EndIndex ).ToCString() << "'" << endl ;
+// std::cout << "EndIndex " << EndIndex << " '" << SubString( BeginIndex , EndIndex ).ToCString() << "'" << std::endl ;
break ;
}
}
else if ( BeginIndex == 0 ) { // We have not a Separator
BeginIndex = StringIndex + 1 ;
-// cout << "BeginIndex " << BeginIndex << endl ;
+// std::cout << "BeginIndex " << BeginIndex << std::endl ;
}
}
-// cout << "BeginIndex " << BeginIndex << " EndIndex " << EndIndex << endl ;
+// std::cout << "BeginIndex " << BeginIndex << " EndIndex " << EndIndex << std::endl ;
}
if ( BeginIndex == 0 )
return TCollection_AsciiString("",0) ;
if ( EndIndex == 0 )
EndIndex = mylength ;
-// cout << "'" << SubString( BeginIndex , EndIndex ).ToCString() << "'" << endl ;
+// std::cout << "'" << SubString( BeginIndex , EndIndex ).ToCString() << "'" << std::endl ;
return TCollection_AsciiString( &mystring [ BeginIndex - 1 ] ,
EndIndex - BeginIndex + 1 ) ;
}
for (i = 0; i<= mySize; i++) {
if (sizes[i] > 0) {
l += sizes[i] * i;
- S << setw(5) << sizes[i] <<" buckets of size "<<i<<"\n";
+ S << std::setw(5) << sizes[i] <<" buckets of size "<<i<<"\n";
}
}
//---------------------------------------------------------------------
void TCollection_HExtendedString::Print(Standard_OStream& S) const
{
- S << "begin class HExtendedString "<<endl;
+ S << "begin class HExtendedString "<<std::endl;
myString.Print(S);
}
//
pStr=toto;
ID().ToCString(pStr);
- anOS<<";\tID = "<<toto<<endl;
+ anOS<<";\tID = "<<toto<<std::endl;
return anOS;
}
//! (it.Initialize(aLabel,Standard_True);
//! it.More(); it.Next()){
//! TDF_Tool::Entry(it.Value(),es);
- //! cout << as.ToCString() << endl;
+ //! std::cout << as.ToCString() << std::endl;
//! }
//! }
Standard_EXPORT void Initialize (const TDF_Label& aLabel, const Standard_Boolean allLevels = Standard_False);
itr.Value()->References(ds);
const TDF_AttributeMap& attMap = ds->Attributes(); //attMap
// TDF_Tool::Entry(itr.Value()->Label(), entr1); //d
-// cout<<"\tSource Attribute dynamic type = "<<itr.Value()->DynamicType()<<" Label = "<<entr1 <<endl;
+// std::cout<<"\tSource Attribute dynamic type = "<<itr.Value()->DynamicType()<<" Label = "<<entr1 <<std::endl;
for (TDF_MapIteratorOfAttributeMap attMItr(attMap);attMItr.More(); attMItr.Next()) {
Handle(TDF_Attribute) att = attMItr.Key();
// TDF_Tool::Entry(att->Label(), entr1);
-// cout<<"\t\tReferences attribute dynamic type = "<<att->DynamicType()<<" Label = "<<entr1 <<endl;
+// std::cout<<"\t\tReferences attribute dynamic type = "<<att->DynamicType()<<" Label = "<<entr1 <<std::endl;
if (!att.IsNull() && !att->Label().IsNull())
{
if (aFilter.IsKept(att) && att->Label().IsDifferent(aRefLabel) &&
// const TDF_LabelMap& labMap = ds->Labels();
// for (TDF_MapIteratorOfLabelMap labMItr(labMap);labMItr.More(); labMItr.Next()) {
// TDF_Tool::Entry(labMItr.Key(), entr1);
-// cout<<"\t\tLABELS from DS of Attr:: Lab = "<<entr1<<endl;
+// std::cout<<"\t\tLABELS from DS of Attr:: Lab = "<<entr1<<std::endl;
// if (!labMItr.Key().IsDescendant(aRefLabel) && labMItr.Key().IsDifferent(aRefLabel)) {
// // aExternals.Add(itr.Value()); // ??? LabelMap of Attribute has label which don't
// // belongs to source hierarchy. So, what we should do ?
// TCollection_AsciiString entr1, entr2;
// TDF_Tool::Entry(labMItr.Key(), entr1);
// TDF_Tool::Entry(aRefLabel, entr2);
-// cout<<"\t\t\tNot descendant label:: Lab1 = "<<entr1<<" and RefLab = "<<entr2<<endl;
+// std::cout<<"\t\t\tNot descendant label:: Lab1 = "<<entr1<<" and RefLab = "<<entr2<<std::endl;
// }
// }
{
TCollection_AsciiString entry;
TDF_Tool::Entry(label, entry);
- cout << "\tShareable attribute on the label = "<< entry << endl;
+ std::cout << "\tShareable attribute on the label = "<< entry << std::endl;
TDF_ChildIterator it (label, allLevels);
for (; it.More(); it.Next())
{
TDF_Tool::Entry(it.Value(), entry);
- cout << "\tChildLabelEntry = "<< entry << endl;
+ std::cout << "\tChildLabelEntry = "<< entry << std::endl;
}
}
#endif
#ifdef OCCT_DEBUG_DELTA
#define TDF_Data_DebugModified(ACTION) \
- cout<<"After "<<ACTION<<" #"<<myTransaction+1<<", DF "<<this<<" had "<<myNbTouchedAtt<<" attribute(s) touched. Time = "<<myTime<<endl; \
+ std::cout<<"After "<<ACTION<<" #"<<myTransaction+1<<", DF "<<this<<" had "<<myNbTouchedAtt<<" attribute(s) touched. Time = "<<myTime<<std::endl; \
if (!myTransaction) { \
TCollection_AsciiString entry; \
for (TDF_ChildIterator itr(Root(),Standard_True); itr.More(); itr.Next()) { \
const TDF_LabelNode* lnp = itr.Value().myLabelNode; \
if (lnp->AttributesModified() || lnp->MayBeModified()) { \
TDF_Tool::Entry(itr.Value(),entry); \
- cout<<ACTION<<" on "<<entry<<" : flag(s) "; \
- if (lnp->AttributesModified()) cout<<"AttributesModified "; \
- if (lnp->MayBeModified()) cout<<"MayBeModified already set in transaction 0! Please contact TDF developer."; \
- cout<<endl; \
- cout<<itr.Value()<<endl; \
+ std::cout<<ACTION<<" on "<<entry<<" : flag(s) "; \
+ if (lnp->AttributesModified()) std::cout<<"AttributesModified "; \
+ if (lnp->MayBeModified()) std::cout<<"MayBeModified already set in transaction 0! Please contact TDF developer."; \
+ std::cout<<std::endl; \
+ std::cout<<itr.Value()<<std::endl; \
entry.Clear(); \
}}}
#else
{ \
TCollection_AsciiString entry; \
TDF_Tool::Entry(currentAtt->Label(),entry); \
-cout<<"Creation of a DeltaOn"<<DELTATYPE<<" \tat "<<entry<<" \ton "<<currentAtt->DynamicType()<<endl; \
+std::cout<<"Creation of a DeltaOn"<<DELTATYPE<<" \tat "<<entry<<" \ton "<<currentAtt->DynamicType()<<std::endl; \
}
#else
#define TDF_DataDebugDeltaCreation(DELTATYPE)
if (myTransaction>0) {
if (withDelta) delta = new TDF_Delta();
#ifdef OCCT_DEBUG_DELTA
- cout<<"TDF_Data::Begin Commit #"<<myTransaction<<endl;
+ std::cout<<"TDF_Data::Begin Commit #"<<myTransaction<<std::endl;
#endif
#ifdef TDF_DATA_COMMIT_OPTIMIZED
myNbTouchedAtt = 0;
delta->Validity(myTimes.First(),myTime);
#ifdef OCCT_DEBUG_DELTA
if (myTransaction == 0) {
- cout<<"TDF_Data::Commit generated this delta in t=0:"<<endl;
- delta->Dump(cout);
+ std::cout<<"TDF_Data::Commit generated this delta in t=0:"<<std::endl;
+ delta->Dump(std::cout);
}
#endif
}
#ifdef OCCT_DEBUG_DELTA
else {
if (myTransaction == 0)
- cout<<"TDF_Data::Commit generated NO delta."<<endl;
+ std::cout<<"TDF_Data::Commit generated NO delta."<<std::endl;
}
#endif
}
if (aDelta->IsApplicable(myTime)) {
if (withDelta) OpenTransaction();
#ifdef OCCT_DEBUG_DELTA
- cout<<"TDF_Data::Undo applies this delta:"<<endl;
- aDelta->Dump(cout);
+ std::cout<<"TDF_Data::Undo applies this delta:"<<std::endl;
+ aDelta->Dump(std::cout);
#endif
aDelta->BeforeOrAfterApply(Standard_True);
myNotUndoMode = Standard_False;
newDelta = CommitTransaction(Standard_True);
newDelta->Validity(aDelta->EndTime(),aDelta->BeginTime());
#ifdef OCCT_DEBUG_DELTA
- cout<<"TDF_Data::Undo, after validity correction, Delta is now available from time \t#"<<newDelta->BeginTime()<<" to time \t#"<<newDelta->EndTime()<<endl;
+ std::cout<<"TDF_Data::Undo, after validity correction, Delta is now available from time \t#"<<newDelta->BeginTime()<<" to time \t#"<<newDelta->EndTime()<<std::endl;
#endif
}
myTime = aDelta->BeginTime();
Standard_OStream& TDF_Data::Dump(Standard_OStream& anOS) const
{
- anOS<<"Dump of a TDF_Data."<<endl;
+ anOS<<"Dump of a TDF_Data."<<std::endl;
anOS<<"Current transaction: "<<myTransaction;
- anOS<<"; Current tick: "<<myTime<<";"<<endl;
+ anOS<<"; Current tick: "<<myTime<<";"<<std::endl;
return anOS;
}
Standard_OStream& TDF_DataSet::Dump(Standard_OStream& anOS) const
{
- anOS<<"\t\t=====< TDF_DataSet dump >====="<<endl;
- anOS<<"Root Labels :"<<endl<<"============="<<endl;
+ anOS<<"\t\t=====< TDF_DataSet dump >====="<<std::endl;
+ anOS<<"Root Labels :"<<std::endl<<"============="<<std::endl;
for (TDF_ListIteratorOfLabelList itr1(myRootLabels);
itr1.More(); itr1.Next()) {
itr1.Value().EntryDump(anOS);
anOS<<" | ";
}
- anOS<<endl<<"Labels :"<<endl<<"========"<<endl;
+ anOS<<std::endl<<"Labels :"<<std::endl<<"========"<<std::endl;
for (TDF_MapIteratorOfLabelMap itr2(myLabelMap);
itr2.More(); itr2.Next()) {
itr2.Key().EntryDump(anOS);
anOS<<" | ";
}
- anOS<<endl<<"Attributes :"<<endl<<"============"<<endl<<endl;
+ anOS<<std::endl<<"Attributes :"<<std::endl<<"============"<<std::endl<<std::endl;
for (TDF_MapIteratorOfAttributeMap itr3(myAttributeMap);
itr3.More(); itr3.Next()) {
itr3.Key()->Label().EntryDump(anOS);
anOS<<" \t";
itr3.Key()->Dump(anOS);
- anOS<<endl;
+ anOS<<std::endl;
}
- anOS<<endl;
+ anOS<<std::endl;
return anOS;
}
if (!noDeadLock) {
#ifdef OCCT_DEBUG
- if (before) cout<<"Before"; else cout<<"After";
- cout<<"Undo(): dead lock between these attributes:"<<endl;
+ if (before) std::cout<<"Before"; else std::cout<<"After";
+ std::cout<<"Undo(): dead lock between these attributes:"<<std::endl;
for (itr.Initialize(ADlist); itr.More(); itr.Next()) {
- cout<<"AttributeDelta type = "<<itr.Value()->DynamicType()->Name();
- cout<<" Attribute type = "<<itr.Value()->Attribute()->DynamicType()->Name()<<endl;;
+ std::cout<<"AttributeDelta type = "<<itr.Value()->DynamicType()->Name();
+ std::cout<<" Attribute type = "<<itr.Value()->Attribute()->DynamicType()->Name()<<std::endl;;
if (before)
- cout<<"BeforeUndo(): dead lock."<<endl;
+ std::cout<<"BeforeUndo(): dead lock."<<std::endl;
else
- cout<<"AfterUndo(): dead lock."<<endl;
+ std::cout<<"AfterUndo(): dead lock."<<std::endl;
}
#endif
for (itr.Initialize(ADlist); itr.More(); itr.Next()) {
// If <aLabelList> is not empty...
#ifdef OCCT_DEBUG_DELTA
Standard_Boolean inList;
- if (aLabelList.Extent() > 0) cout<<"Previously added as modified label(s) ";
+ if (aLabelList.Extent() > 0) std::cout<<"Previously added as modified label(s) ";
#endif
for (TDF_ListIteratorOfLabelList it1(aLabelList);
it1.More(); it1.Next()) {
const TDF_Label& lab1 = it1.Value();
inList = labMap.Add(lab1);
if (!inList) {
- lab1.EntryDump(cout);cout<<" | ";
+ lab1.EntryDump(std::cout);std::cout<<" | ";
}
#endif
}
#ifdef OCCT_DEBUG_DELTA
- cout<<endl;
+ std::cout<<std::endl;
#endif
// New labels to add.
#ifdef OCCT_DEBUG_DELTA
- if (myAttDeltaList.Extent() > 0) cout<<"New added as modified label(s) ";
+ if (myAttDeltaList.Extent() > 0) std::cout<<"New added as modified label(s) ";
#endif
for (TDF_ListIteratorOfAttributeDeltaList it2(myAttDeltaList);
it2.More();
const TDF_Label& lab1 = it2.Value()->Label();
inList = labMap.Add(lab1);
if (!inList) {
- lab1.EntryDump(cout);cout<<" | ";
+ lab1.EntryDump(std::cout);std::cout<<" | ";
}
#endif
}
#ifdef OCCT_DEBUG_DELTA
- cout<<endl;
+ std::cout<<std::endl;
#endif
// Now put labels into <aLabelList>.
void TDF_Delta::Dump(Standard_OStream& OS) const
{
- OS<<"DELTA available from time \t#"<<myBeginTime<<" to time \t#"<<myEndTime<<endl;
+ OS<<"DELTA available from time \t#"<<myBeginTime<<" to time \t#"<<myEndTime<<std::endl;
Standard_Integer n = 0;
// for (TDF_ListIteratorOfAttributeDeltaList itr(myAttDeltaList);
TDF_ListIteratorOfAttributeDeltaList itr(myAttDeltaList) ;
for ( ; itr.More(); itr.Next()) ++n;
- OS<<"Nb Attribute Delta(s): "<<n<<endl;
+ OS<<"Nb Attribute Delta(s): "<<n<<std::endl;
for (itr.Initialize(myAttDeltaList); itr.More(); itr.Next()) {
const Handle(TDF_AttributeDelta)& attDelta = itr.Value();
- OS<<"| "; attDelta->Dump(OS); OS<<endl;
+ OS<<"| "; attDelta->Dump(OS); OS<<std::endl;
}
}
Label().ResumeAttribute(Attribute());
Attribute()->mySavedTransaction = 0;
#ifdef OCCT_DEBUG
- cout<<"Resume attribute"<<endl;
+ std::cout<<"Resume attribute"<<std::endl;
#endif
}
// Undo = Forget.
Label().ForgetAttribute (Attribute());
#ifdef OCCT_DEBUG
- cout<<"Forget attribute"<<endl;
+ std::cout<<"Forget attribute"<<std::endl;
#endif
}
if (myIgnore) anOS<<"ignores"; else anOS<<"keeps "; anOS<<" all IDs";
TDF_MapIteratorOfIDMap itr(myIDMap);
if (itr.More()) {
- anOS<<" BUT:"<<endl;
+ anOS<<" BUT:"<<std::endl;
for (; itr.More(); itr.Next()) {
const Standard_GUID& guid = itr.Key();
guid.ShallowDump(anOS);
- anOS<<endl;
+ anOS<<std::endl;
}
}
}
if (AttributesModified()) anOS<<"HAS attributes"; else anOS<<"NO attribute"; anOS<<" modified; ";
if (HasAttribute()) {
Standard_Integer nba = NbAttributes();
- anOS<<"has "<<nba<<" attribute"; if (nba > 1) anOS<<"s"; anOS<<"."<<endl;
+ anOS<<"has "<<nba<<" attribute"; if (nba > 1) anOS<<"s"; anOS<<"."<<std::endl;
for (TDF_AttributeIterator itr(myLabelNode); itr.More(); itr.Next()) {
// CLE
// const Handle(TDF_Attribute)& att = itr.Value();
}
}
else {
- anOS<<" has no attribute"<<endl;
+ anOS<<" has no attribute"<<std::endl;
}
}
}
if (mySelfRelocate) anOS<<"IS"; else anOS<<"NOT";
anOS<<" self relocate ";
if (myAfterRelocate) anOS<<"WITH"; else anOS<<"WITHOUT";
- anOS<<" after relocate"<<endl;
+ anOS<<" after relocate"<<std::endl;
anOS<<"Nb labels="<<myLabelTable.Extent();
anOS<<" Nb attributes="<<myAttributeTable.Extent();
- anOS<<" Nb transients="<<myTransientTable.Extent()<<endl;
+ anOS<<" Nb transients="<<myTransientTable.Extent()<<std::endl;
Standard_Integer nb = 0;
if (dumpLabels) {
- anOS<<"Label Table:"<<endl;
+ anOS<<"Label Table:"<<std::endl;
for (TDF_DataMapIteratorOfLabelDataMap itr(myLabelTable);
itr.More(); itr.Next()) {
++nb;
itr.Value().EntryDump(anOS);
anOS<<"| ";
}
- cout<<endl;
+ std::cout<<std::endl;
}
nb = 0;
if (dumpAttributes) {
- anOS<<"Attribute Table:"<<endl;
+ anOS<<"Attribute Table:"<<std::endl;
for (TDF_DataMapIteratorOfAttributeDataMap itr(myAttributeTable);
itr.More(); itr.Next()) {
++nb;
anOS<<"<=>";
itr.Value()->Dump(anOS);
anOS<<"| ";
- anOS<<endl;
+ anOS<<std::endl;
}
}
if (dumpTransients) {
- anOS<<"Transient Table:"<<myTransientTable.Extent()<<" transient(s) in table."<<endl;
+ anOS<<"Transient Table:"<<myTransientTable.Extent()<<" transient(s) in table."<<std::endl;
}
return anOS;
TDF_Tool_ExtendedDeepDump(anOS,aLabel,aFilter,map);
anOS<<map.Extent()<<" attribute"; if (map.Extent()>1) anOS<<"s";
- anOS<<" referenced by the label structure."<<endl;
+ anOS<<" referenced by the label structure."<<std::endl;
- anOS<<endl<<"Extended dump of filtered attribute(s):"<<endl;
+ anOS<<std::endl<<"Extended dump of filtered attribute(s):"<<std::endl;
Standard_Integer nba = 0;
TCollection_AsciiString entry;
Standard_Integer i ;
++nba;
anOS<<"# "<<i;
if (att->Label().IsNull()) {
- anOS<<" (no label)"<<endl;
+ anOS<<" (no label)"<<std::endl;
}
else {
TDF_Tool::Entry(att->Label(),entry);
- anOS<<" (label: "<<entry<<")"<<endl;
+ anOS<<" (label: "<<entry<<")"<<std::endl;
}
- att->ExtendedDump(anOS,aFilter,map); anOS<<endl;
+ att->ExtendedDump(anOS,aFilter,map); anOS<<std::endl;
}
}
- anOS<<endl<<nba<<" attribute";
+ anOS<<std::endl<<nba<<" attribute";
if (nba>1) anOS<<"s";
- anOS<<" dumped between "<<--i<<endl;
+ anOS<<" dumped between "<<--i<<std::endl;
}
Standard_Integer TDF_Transaction::Open()
{
#ifdef OCCT_DEBUG_TRANSACTION
- cout<<"Transaction "<<myName<<" opens #"<<myDF->Transaction()+1<<endl;
+ std::cout<<"Transaction "<<myName<<" opens #"<<myDF->Transaction()+1<<std::endl;
#endif
if (IsOpen())
throw Standard_DomainError("This transaction is already open.");
Handle(TDF_Delta) TDF_Transaction::Commit(const Standard_Boolean withDelta)
{
#ifdef OCCT_DEBUG_TRANSACTION
- cout<<"Transaction "<<myName<<" commits ";
+ std::cout<<"Transaction "<<myName<<" commits ";
#endif
Handle(TDF_Delta) delta;
if (IsOpen()) {
#ifdef OCCT_DEBUG_TRANSACTION
- cout<<"from #"<<myDF->Transaction()<<" until #"<<myUntilTransaction<<" while current is #"<<myDF->Transaction()<<endl;
+ std::cout<<"from #"<<myDF->Transaction()<<" until #"<<myUntilTransaction<<" while current is #"<<myDF->Transaction()<<std::endl;
#endif
#ifdef OCCT_DEBUG_TRANSACTION_DUMP
- cout<<"DF before commit"<<endl;
- TDF_Tool::DeepDump(cout,myDF);
+ std::cout<<"DF before commit"<<std::endl;
+ TDF_Tool::DeepDump(std::cout,myDF);
#endif
Standard_Integer until = myUntilTransaction;
myUntilTransaction = 0;
delta = myDF->CommitUntilTransaction(until, withDelta);
#ifdef OCCT_DEBUG_TRANSACTION_DUMP
- cout<<"DF after commit"<<endl;
- TDF_Tool::DeepDump(cout,myDF);
+ std::cout<<"DF after commit"<<std::endl;
+ TDF_Tool::DeepDump(std::cout,myDF);
#endif
}
#ifdef OCCT_DEBUG_TRANSACTION
- else cout<<"but this transaction is not open!"<<endl;
+ else std::cout<<"but this transaction is not open!"<<std::endl;
#endif
return delta;
}
{
if (IsOpen()) {
#ifdef OCCT_DEBUG_TRANSACTION
- cout<<"Transaction "<<myName<<" aborts from #"<<myDF->Transaction()<<" until #"<<myUntilTransaction<<" while current is #"<<myDF->Transaction()<<endl;
+ std::cout<<"Transaction "<<myName<<" aborts from #"<<myDF->Transaction()<<" until #"<<myUntilTransaction<<" while current is #"<<myDF->Transaction()<<std::endl;
#endif
#ifdef OCCT_DEBUG_TRANSACTION_DUMP
- cout<<"DF before abort"<<endl;
- TDF_Tool::DeepDump(cout,myDF);
+ std::cout<<"DF before abort"<<std::endl;
+ TDF_Tool::DeepDump(std::cout,myDF);
#endif
myDF->AbortUntilTransaction(myUntilTransaction);
myUntilTransaction = 0;
#ifdef OCCT_DEBUG_TRANSACTION_DUMP
- cout<<"DF after abort"<<endl;
- TDF_Tool::DeepDump(cout,myDF);
+ std::cout<<"DF after abort"<<std::endl;
+ TDF_Tool::DeepDump(std::cout,myDF);
#endif
}
}
anOS << " Name=|"<<myString<<"|";
Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
myID.ToCString(sguid);
- anOS << sguid << "|" <<endl;
+ anOS << sguid << "|" <<std::endl;
return anOS;
}
Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
myID.ToCString(sguid);
anOS << sguid;
- anOS <<endl;
+ anOS <<std::endl;
return anOS;
}
Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
myID.ToCString(sguid);
anOS << sguid;
- anOS << endl;
+ anOS << std::endl;
return anOS;
}
anOS << "\nByteArray: ";
Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
myID.ToCString(sguid);
- anOS << sguid << endl;
+ anOS << sguid << std::endl;
return anOS;
}
Arr2 = CurrAtt->InternalArray();
#ifdef OCCT_DEBUG_DELTA
if(Arr1.IsNull())
- cout <<"DeltaOnModificationOfByteArray:: Old ByteArray is Null" <<endl;
+ std::cout <<"DeltaOnModificationOfByteArray:: Old ByteArray is Null" <<std::endl;
if(Arr2.IsNull())
- cout <<"DeltaOnModificationOfByteArray:: Current ByteArray is Null" <<endl;
+ std::cout <<"DeltaOnModificationOfByteArray:: Current ByteArray is Null" <<std::endl;
#endif
if(Arr1.IsNull() || Arr2.IsNull()) return;
OldAtt->RemoveArray();
#ifdef OCCT_DEBUG
if(OldAtt->InternalArray().IsNull())
- cout << "BackUp Arr is Nullified" << endl;
+ std::cout << "BackUp Arr is Nullified" << std::endl;
#endif
}
}
Handle(TDataStd_ByteArray) BackAtt = Handle(TDataStd_ByteArray)::DownCast (TDFAttribute);
if(BackAtt.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "DeltaOnModificationOfByteArray::Apply: OldAtt is Null" <<endl;
+ std::cout << "DeltaOnModificationOfByteArray::Apply: OldAtt is Null" <<std::endl;
#endif
return;
}
if(aCurAtt.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "DeltaOnModificationOfByteArray::Apply: CurAtt is Null" <<endl;
+ std::cout << "DeltaOnModificationOfByteArray::Apply: CurAtt is Null" <<std::endl;
#endif
return;
}
if(!myIndxes.IsNull() && !myValues.IsNull())
for(i = 1; i <= myIndxes->Upper();i++) {
#ifdef OCCT_DEBUG
- cout << "i = " << i << " myIndxes->Upper = " << myIndxes->Upper() << endl;
- cout << "myIndxes->Value(i) = " << myIndxes->Value(i) << endl;
- cout << "myValues->Value(i) = " << myValues->Value(i) << endl;
+ std::cout << "i = " << i << " myIndxes->Upper = " << myIndxes->Upper() << std::endl;
+ std::cout << "myIndxes->Value(i) = " << myIndxes->Value(i) << std::endl;
+ std::cout << "myValues->Value(i) = " << myValues->Value(i) << std::endl;
#endif
byteArr->ChangeArray1().SetValue(myIndxes->Value(i), myValues->Value(i));
}
}
#ifdef OCCT_DEBUG
- cout << " << Array Dump after Delta Apply >>" <<endl;
+ std::cout << " << Array Dump after Delta Apply >>" <<std::endl;
Handle(TColStd_HArray1OfByte) BArr2 = aCurAtt->InternalArray();
for(i=BArr2->Lower(); i<=BArr2->Upper() && i<= MAXUP;i++)
- cout << BArr2->Value(i) << " ";
- cout <<endl;
+ std::cout << BArr2->Value(i) << " ";
+ std::cout <<std::endl;
#endif
}
Arr2 = CurrAtt->Array();
#ifdef OCCT_DEBUG
if(Arr1.IsNull())
- cout <<"DeltaOnModificationOfExtStringArray:: Old IntArray is Null" <<endl;
+ std::cout <<"DeltaOnModificationOfExtStringArray:: Old IntArray is Null" <<std::endl;
if(Arr2.IsNull())
- cout <<"DeltaOnModificationOfExtStringArray:: Current IntArray is Null" <<endl;
+ std::cout <<"DeltaOnModificationOfExtStringArray:: Current IntArray is Null" <<std::endl;
#endif
if(Arr1.IsNull() || Arr2.IsNull()) return;
OldAtt->RemoveArray();
#ifdef OCCT_DEBUG
if(OldAtt->Array().IsNull())
- cout << "BackUp Arr is Nullified" << endl;
+ std::cout << "BackUp Arr is Nullified" << std::endl;
#endif
}
}
Handle(TDataStd_ExtStringArray) BackAtt = Handle(TDataStd_ExtStringArray)::DownCast (TDFAttribute);
if(BackAtt.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "DeltaOnModificationOfExtStringArray::Apply: OldAtt is Null" <<endl;
+ std::cout << "DeltaOnModificationOfExtStringArray::Apply: OldAtt is Null" <<std::endl;
#endif
return;
}
if(aCurAtt.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "DeltaOnModificationOfExtStringArray::Apply: CurAtt is Null" <<endl;
+ std::cout << "DeltaOnModificationOfExtStringArray::Apply: CurAtt is Null" <<std::endl;
#endif
return;
}
if(!myIndxes.IsNull() && !myValues.IsNull())
for(i = 1; i <= myIndxes->Upper();i++) {
#ifdef OCCT_DEBUG
- cout << "i = " << i << " myIndxes->Upper = " << myIndxes->Upper() << endl;
- cout << "myIndxes->Value(i) = " << myIndxes->Value(i) << endl;
- cout << "myValues->Value(i) = " << myValues->Value(i) << endl;
+ std::cout << "i = " << i << " myIndxes->Upper = " << myIndxes->Upper() << std::endl;
+ std::cout << "myIndxes->Value(i) = " << myIndxes->Value(i) << std::endl;
+ std::cout << "myValues->Value(i) = " << myValues->Value(i) << std::endl;
#endif
strArr->ChangeArray1().SetValue(myIndxes->Value(i), myValues->Value(i));
}
#ifdef OCCT_DEBUG
- cout << " << Array Dump after Delta Apply >>" <<endl;
+ std::cout << " << Array Dump after Delta Apply >>" <<std::endl;
Handle(TColStd_HArray1OfExtendedString) aStrArr2 = aCurAtt->Array();
for(i=aStrArr2->Lower(); i<= aStrArr2->Upper() && i<= MAXUP;i++)
- cout << aStrArr2->Value(i) << " ";
- cout <<endl;
+ std::cout << aStrArr2->Value(i) << " ";
+ std::cout <<std::endl;
#endif
}
Arr2 = CurrAtt->Array();
#ifdef OCCT_DEBUG
if(Arr1.IsNull())
- cout <<"DeltaOnModificationOfIntArray:: Old IntArray is Null" <<endl;
+ std::cout <<"DeltaOnModificationOfIntArray:: Old IntArray is Null" <<std::endl;
if(Arr2.IsNull())
- cout <<"DeltaOnModificationOfIntArray:: Current IntArray is Null" <<endl;
+ std::cout <<"DeltaOnModificationOfIntArray:: Current IntArray is Null" <<std::endl;
#endif
if(Arr1.IsNull() || Arr2.IsNull()) return;
OldAtt->RemoveArray();
#ifdef OCCT_DEBUG
if(OldAtt->Array().IsNull())
- cout << "BackUp Arr is Nullified" << endl;
+ std::cout << "BackUp Arr is Nullified" << std::endl;
#endif
}
}
Handle(TDataStd_IntegerArray) BackAtt = Handle(TDataStd_IntegerArray)::DownCast (TDFAttribute);
if(BackAtt.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "DeltaOnModificationOfIntArray::Apply: OldAtt is Null" <<endl;
+ std::cout << "DeltaOnModificationOfIntArray::Apply: OldAtt is Null" <<std::endl;
#endif
return;
}
if(aCurAtt.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "DeltaOnModificationOfIntArray::Apply: CurAtt is Null" <<endl;
+ std::cout << "DeltaOnModificationOfIntArray::Apply: CurAtt is Null" <<std::endl;
#endif
return;
}
if(!myIndxes.IsNull() && !myValues.IsNull())
for(i = 1; i <= myIndxes->Upper();i++) {
#ifdef OCCT_DEBUG
- cout << "i = " << i << " myIndxes->Upper = " << myIndxes->Upper() << endl;
- cout << "myIndxes->Value(i) = " << myIndxes->Value(i) << endl;
- cout << "myValues->Value(i) = " << myValues->Value(i) << endl;
+ std::cout << "i = " << i << " myIndxes->Upper = " << myIndxes->Upper() << std::endl;
+ std::cout << "myIndxes->Value(i) = " << myIndxes->Value(i) << std::endl;
+ std::cout << "myValues->Value(i) = " << myValues->Value(i) << std::endl;
#endif
intArr->ChangeArray1().SetValue(myIndxes->Value(i), myValues->Value(i));
}
}
#ifdef OCCT_DEBUG
- cout << " << Array Dump after Delta Apply >>" <<endl;
+ std::cout << " << Array Dump after Delta Apply >>" <<std::endl;
Handle(TColStd_HArray1OfInteger) IntArr2 = aCurAtt->Array();
for(i=IntArr2->Lower(); i<=IntArr2->Upper() && i <= MAXUP;i++)
- cout << IntArr2->Value(i) << " ";
- cout <<endl;
+ std::cout << IntArr2->Value(i) << " ";
+ std::cout <<std::endl;
#endif
}
aMap2 = CurrAtt->GetHMap();
#ifdef OCCT_DEBUG_disable
if (aMap1.IsNull())
- cout <<"DeltaOnModificationOfIntPackedMap:: Old Map is Null" <<endl;
+ std::cout <<"DeltaOnModificationOfIntPackedMap:: Old Map is Null" <<std::endl;
if (aMap2.IsNull())
- cout <<"DeltaOnModificationOfIntPackedMap:: Current Map is Null" <<endl;
+ std::cout <<"DeltaOnModificationOfIntPackedMap:: Current Map is Null" <<std::endl;
#endif
if (aMap1.IsNull() || aMap2.IsNull()) return;
Handle(TDataStd_IntPackedMap) aBackAtt = Handle(TDataStd_IntPackedMap)::DownCast (aTDFAttribute);
if(aBackAtt.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "DeltaOnModificationOfIntPAckedMap::Apply: OldAtt is Null" <<endl;
+ std::cout << "DeltaOnModificationOfIntPAckedMap::Apply: OldAtt is Null" <<std::endl;
#endif
return;
}
if(aCurAtt.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "DeltaOnModificationOfIntAPckedMAp::Apply: CurAtt is Null" <<endl;
+ std::cout << "DeltaOnModificationOfIntAPckedMAp::Apply: CurAtt is Null" <<std::endl;
#endif
return;
}
}
#ifdef OCCT_DEBUG_disable
- cout << " << Map Dump after Delta Apply >>" <<endl;
+ std::cout << " << Map Dump after Delta Apply >>" <<std::endl;
Handle(TColStd_HPackedMapOfInteger) aIntMap = aCurAtt->GetHMap();
TColStd_MapIteratorOfPackedMapOfInteger it(aIntMap->Map());
for (Standard_Integer i=1;it.More() && i <= MAXUP; it.Next(), i++)
- cout << it.Key() << " ";
- cout <<endl;
+ std::cout << it.Key() << " ";
+ std::cout <<std::endl;
#endif
}
Arr2 = CurrAtt->Array();
#ifdef OCCT_DEBUG
if(Arr1.IsNull())
- cout <<"DeltaOnModificationOfRealArray:: Old Array is Null" <<endl;
+ std::cout <<"DeltaOnModificationOfRealArray:: Old Array is Null" <<std::endl;
if(Arr2.IsNull())
- cout <<"DeltaOnModificationOfRealArray:: Current Array is Null" <<endl;
+ std::cout <<"DeltaOnModificationOfRealArray:: Current Array is Null" <<std::endl;
#endif
if(Arr1.IsNull() || Arr2.IsNull()) return;
OldAtt->RemoveArray();
#ifdef OCCT_DEBUG
if(OldAtt->Array().IsNull())
- cout << "BackUp Arr is Nullified" << endl;
+ std::cout << "BackUp Arr is Nullified" << std::endl;
#endif
}
}
Handle(TDataStd_RealArray) BackAtt = Handle(TDataStd_RealArray)::DownCast (TDFAttribute);
if(BackAtt.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "DeltaOnModificationOfRealArray::Apply: OldAtt is Null" <<endl;
+ std::cout << "DeltaOnModificationOfRealArray::Apply: OldAtt is Null" <<std::endl;
#endif
return;
}
if(aCurAtt.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "DeltaOnModificationOfRealArray::Apply: CurAtt is Null" <<endl;
+ std::cout << "DeltaOnModificationOfRealArray::Apply: CurAtt is Null" <<std::endl;
#endif
return;
}
if(!myIndxes.IsNull() && !myValues.IsNull())
for(i = 1; i <= myIndxes->Upper();i++) {
#ifdef OCCT_DEBUG
- cout << "i = " << i << " myIndxes->Upper = " << myIndxes->Upper() << endl;
- cout << "myIndxes->Value(i) = " << myIndxes->Value(i) << endl;
- cout << "myValues->Value(i) = " << myValues->Value(i) << endl;
+ std::cout << "i = " << i << " myIndxes->Upper = " << myIndxes->Upper() << std::endl;
+ std::cout << "myIndxes->Value(i) = " << myIndxes->Value(i) << std::endl;
+ std::cout << "myValues->Value(i) = " << myValues->Value(i) << std::endl;
#endif
realArr->ChangeArray1().SetValue(myIndxes->Value(i), myValues->Value(i));
}
#ifdef OCCT_DEBUG
- cout << " << RealArray Dump after Delta Apply >>" <<endl;
+ std::cout << " << RealArray Dump after Delta Apply >>" <<std::endl;
Handle(TColStd_HArray1OfReal) aRArr = aCurAtt->Array();
for(i=aRArr->Lower(); i<=aRArr->Upper() && i <= MAXUP;i++)
- cout << aRArr->Value(i) << " ";
- cout <<endl;
+ std::cout << aRArr->Value(i) << " ";
+ std::cout <<std::endl;
#endif
}
lower = myValue->Lower();
upper = myValue->Upper();
for(i = lower; i<=upper; i++)
- anOS << "\t" <<myValue->Value(i)<<endl;
+ anOS << "\t" <<myValue->Value(i)<<std::endl;
}
anOS << " Delta is " << (myIsDelta ? "ON":"OFF");
Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
myID.ToCString(sguid);
anOS << sguid;
- anOS << endl;
+ anOS << std::endl;
return anOS;
}
Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
myID.ToCString(sguid);
anOS << sguid;
- anOS << endl;
+ anOS << std::endl;
return anOS;
}
Standard_OStream& anOS = TDF_Attribute::Dump( theOS );
anOS << "IntPackedMap size = " << Extent();
anOS << " Delta is " << (myIsDelta ? "ON":"OFF");
- anOS << endl;
+ anOS << std::endl;
return anOS;
}
Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
myID.ToCString(sguid);
anOS << sguid;
- anOS << endl;
+ anOS << std::endl;
// anOS <<"\nAttribute fields: ";
// anOS << TDF_Attribute::Dump(anOS);
Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
myID.ToCString(sguid);
anOS << sguid;
- anOS << endl;
+ anOS << std::endl;
return anOS;
}
anOS << " Name=|"<<myString<<"|";
Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
myID.ToCString(sguid);
- anOS << sguid << endl;
+ anOS << sguid << std::endl;
return anOS;
}
Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
myID.ToCString(sguid);
anOS << sguid;
- anOS << endl;
+ anOS << std::endl;
return anOS;
}
Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
myID.ToCString(sguid);
anOS << sguid;
- anOS << endl;
+ anOS << std::endl;
return anOS;
}
anOS << "\nReferenceArray: ";
Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
myID.ToCString(sguid);
- anOS << sguid << endl;
+ anOS << sguid << std::endl;
return anOS;
}
Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
myID.ToCString(sguid);
anOS << sguid;
- anOS << endl;
+ anOS << std::endl;
return anOS;
}
anOS<<" Last=";
if (!myLast->Label().IsNull()) myLast->Label().EntryDump(anOS);
}
- anOS<<endl;
+ anOS<<std::endl;
return anOS;
}
// status = GetRetrieveStatus();
if (!MessageDriver().IsNull()) {
// Standard_SStream aMsg;
-// aMsg << Standard_Failure::Caught() << endl;
-// cout << "TDocStd_Application::Open(): " << aMsg.rdbuf()->str() << endl;
+// aMsg << Standard_Failure::Caught() << std::endl;
+// std::cout << "TDocStd_Application::Open(): " << aMsg.rdbuf()->str() << std::endl;
TCollection_ExtendedString aString (anException.GetMessageString());
MessageDriver()->Send(aString.ToExtString(), Message_Fail);
}
}
status = GetRetrieveStatus();
#ifdef OCCT_DEBUG
- cout<<"TDocStd_Application::Open(): The status = "<<status<<endl;
+ std::cout<<"TDocStd_Application::Open(): The status = "<<status<<std::endl;
#endif
return status;
}
if(storer.StoreStatus() == PCDM_SS_OK)
D->SetSaved();
#ifdef OCCT_DEBUG
- cout<<"TDocStd_Application::SaveAs(): The status = "<<storer.StoreStatus()<<endl;
+ std::cout<<"TDocStd_Application::SaveAs(): The status = "<<storer.StoreStatus()<<std::endl;
#endif
return storer.StoreStatus();
}
status = PCDM_SS_Failure;
}
#ifdef OCCT_DEBUG
- cout<<"TDocStd_Application::Save(): The status = "<<status<<endl;
+ std::cout<<"TDocStd_Application::Save(): The status = "<<status<<std::endl;
#endif
return status;
}
//! by the application constructor
Standard_EXPORT Standard_Boolean IsDriverLoaded() const;
- //! Redefines message driver, by default outputs to cout.
+ //! Redefines message driver, by default outputs to std::cout.
Standard_EXPORT virtual Handle(Message_Messenger) MessageDriver() Standard_OVERRIDE;
//! Returns resource manager defining supported persistent formats.
//! Example:
//! Standard_Integer insession = A->IsInSession(aDoc);
//! if (insession > 0) {
- //! cout << "document " << insession << " is already in session" << endl;
+ //! std::cout << "document " << insession << " is already in session" << std::endl;
//! return 0;
//! }
Standard_EXPORT Standard_Integer IsInSession (const TCollection_ExtendedString& path) const;
OpenTransaction();
#ifdef OCCT_DEBUG_TRANS
- cout<<"End NewCommand"<<endl;
+ std::cout<<"End NewCommand"<<std::endl;
#endif
}
// Apply the Undo
// should test the applicability before.
#ifdef OCCT_DEBUG_DELTA
- cout<<"DF before Undo =================================="<<endl; TDF_Tool::DeepDump(cout,myData);
+ std::cout<<"DF before Undo =================================="<<std::endl; TDF_Tool::DeepDump(std::cout,myData);
#endif
Handle(TDF_Delta) D = myData->Undo(myUndos.Last(),Standard_True);
D->SetName(myUndos.Last()->Name());
#ifdef OCCT_DEBUG_DELTA
- cout<<"DF after Undo =================================="<<endl; TDF_Tool::DeepDump(cout,myData);
+ std::cout<<"DF after Undo =================================="<<std::endl; TDF_Tool::DeepDump(std::cout,myData);
#endif
// Push the redo
myRedos.Prepend(D);
// Apply the Redo
#ifdef OCCT_DEBUG_DELTA
- cout<<"DF before Redo =================================="<<endl; TDF_Tool::DeepDump(cout,myData);
+ std::cout<<"DF before Redo =================================="<<std::endl; TDF_Tool::DeepDump(std::cout,myData);
#endif
Handle(TDF_Delta) D = myData->Undo(myRedos.First(),Standard_True);
D->SetName(myRedos.First()->Name());
#ifdef OCCT_DEBUG_DELTA
- cout<<"DF after Redo =================================="<<endl; TDF_Tool::DeepDump(cout,myData);
+ std::cout<<"DF after Redo =================================="<<std::endl; TDF_Tool::DeepDump(std::cout,myData);
#endif
// Push the redo of the redo as an undo (got it !)
myUndos.Append(D);
void TDocStd_MultiTransactionManager::OpenCommand() {
if (myOpenTransaction) {
#ifdef OCCT_DEBUG
- cout << "TDocStd_MultiTransactionManager::OpenCommand(): "
+ std::cout << "TDocStd_MultiTransactionManager::OpenCommand(): "
"Can't start new application transaction while a "
- "previous one is not commited or aborted" << endl;
+ "previous one is not commited or aborted" << std::endl;
#endif
throw Standard_Failure("Can't start new application transaction"
"while a previous one is not commited or aborted");
{
Standard_Integer i;
if(myDocuments.Length() == 0)
- anOS << "Manager is empty" << endl;
+ anOS << "Manager is empty" << std::endl;
else {
if(myDocuments.Length() == 1)
anOS << "There is one document ( ";
anOS << "\"" << aDoc.get();
anOS << "\" ";
}
- anOS << ") in the manager " << endl;
+ anOS << ") in the manager " << std::endl;
if(myIsNestedTransactionMode)
- anOS << "Nested transaction mode is on" << endl;
+ anOS << "Nested transaction mode is on" << std::endl;
else
- anOS << "Nested transaction mode is off" << endl;
+ anOS << "Nested transaction mode is off" << std::endl;
- anOS << " " << endl;
+ anOS << " " << std::endl;
}
for (i = myUndos.Length(); i > 0; i--) {
anOS<<" Undo: ";
delta->Dump(anOS);
if (i == 1) {
- anOS<<" < Last action"<<endl;
+ anOS<<" < Last action"<<std::endl;
} else {
- anOS<<endl;
+ anOS<<std::endl;
}
}
for (i = 1; i <= myRedos.Length(); i++) {
Handle(TDocStd_ApplicationDelta) delta = myRedos.Value(i);
anOS<<" Redo: ";
delta->Dump(anOS);
- anOS<<endl;
+ anOS<<std::endl;
}
}
//=======================================================================
Standard_OStream& TFunction_Iterator::Dump (Standard_OStream& anOS) const
{
- anOS << "Functions:" << endl ;
+ anOS << "Functions:" << std::endl ;
if (myCurrent.IsEmpty())
return anOS;
fIterator.Next();
- anOS << endl;
+ anOS << std::endl;
}
// Recover the status of functions
TDF_MapIteratorOfLabelMap itr;
TCollection_AsciiString as;
- stream<<"Done = "<<isDone<<endl;
- stream<<"Touched labels: "<<endl;
+ stream<<"Done = "<<isDone<<std::endl;
+ stream<<"Touched labels: "<<std::endl;
for (itr.Initialize(myTouched); itr.More(); itr.Next())
{
TDF_Tool::Entry(itr.Key(), as);
- stream<<as<<endl;
+ stream<<as<<std::endl;
}
- stream<<"Impacted labels: "<<endl;
+ stream<<"Impacted labels: "<<std::endl;
for (itr.Initialize(myImpacted); itr.More(); itr.Next())
{
TDF_Tool::Entry(itr.Key(), as);
- stream<<as<<endl;
+ stream<<as<<std::endl;
}
- stream<<"Valid labels: "<<endl;
+ stream<<"Valid labels: "<<std::endl;
for (itr.Initialize(myValid); itr.More(); itr.Next())
{
TDF_Tool::Entry(itr.Key(), as);
- stream<<as<<endl;
+ stream<<as<<std::endl;
}
return stream;
TNaming_DataMapOfShapePtrRefShape& amap)
{
if (oldShape.IsSame(newShape)) {
- cout <<"import_tool::Substitute : oldShape IsSame newShape"<<endl;
+ std::cout <<"import_tool::Substitute : oldShape IsSame newShape"<<std::endl;
}
if (!amap.IsBound(oldShape)) {
Handle(TNaming_UsedShapes) US;
if (!ACCESS.Root().FindAttribute(TNaming_UsedShapes::GetID(), US)) {
#ifdef OCCT_DEBUG
- cout<<"TNaming::Print(US): Bad access"<<endl;
+ std::cout<<"TNaming::Print(US): Bad access"<<std::endl;
#endif
return s;
}
for (TopExp_Explorer exp(Context,aType); exp.More(); exp.Next()) {
#ifdef OCCT_DEBUG
if(!Map.Bind(exp.Current(), Context))
- cout << "Not bind = " <<exp.Current().ShapeType() <<endl;
+ std::cout << "Not bind = " <<exp.Current().ShapeType() <<std::endl;
else
- cout <<"Bind = " <<exp.Current().ShapeType() << " to Context = " <<Context.ShapeType()<<endl;
+ std::cout <<"Bind = " <<exp.Current().ShapeType() << " to Context = " <<Context.ShapeType()<<std::endl;
#else
Map.Bind(exp.Current(), Context);
#endif
for(;it.More();it.Next()) {
if(it.Value().Orientation() != TopAbs_FORWARD && it.Value().Orientation() != TopAbs_REVERSED) {
Map.Bind(it.Value(), Context);
- //cout << "INTERNAL || EXTERNAL Orientation found" <<endl;
+ //std::cout << "INTERNAL || EXTERNAL Orientation found" <<std::endl;
}
}
}
const TopoDS_Shape& aKey = anIt.Value();
#ifdef OCCT_DEBUG
if(!Map.Bind(aKey, C0))
- cout << "Not bind = " <<aKey.ShapeType() <<endl;
+ std::cout << "Not bind = " <<aKey.ShapeType() <<std::endl;
#else
Map.Bind(aKey, C0);
#endif
const TopoDS_Shape& aKey = anIt.Value();
#ifdef OCCT_DEBUG
if(!Map.Bind(aKey, Context))
- cout << "Not bind = " <<aKey.ShapeType() <<endl;
+ std::cout << "Not bind = " <<aKey.ShapeType() <<std::endl;
#else
Map.Bind(aKey, Context);
#endif
#ifdef OCCT_DEBUG
TopTools_DataMapIteratorOfDataMapOfOrientedShapeShape it (aMap);
for (;it.More();it.Next()) {
- cout <<"FindUniqueContext: Key - " <<it.Key().ShapeType()<< " " << it.Key().TShape().get() <<" OR = " <<it.Key().Orientation() <<
- " Context - " << it.Value().ShapeType() << " " << it.Value().TShape().get() << " OR = " <<it.Value().Orientation() <<endl;
+ std::cout <<"FindUniqueContext: Key - " <<it.Key().ShapeType()<< " " << it.Key().TShape().get() <<" OR = " <<it.Key().Orientation() <<
+ " Context - " << it.Value().ShapeType() << " " << it.Value().TShape().get() << " OR = " <<it.Value().Orientation() <<std::endl;
}
#endif
if(aMap.IsBound(Selection))
}
if(n == 1) {
#ifdef OCCT_DEBUG_FSET
- cout << "FindUniqueContextSet: n = " << n <<endl;
+ std::cout << "FindUniqueContextSet: n = " << n <<std::endl;
#endif
return aCmp;
}
TrTool->UpdateShape(aShape,aResult);
// #ifdef OCCT_DEBUG
// if(fShar) {
-// cout << "=== Shareable shape ===" << endl;
-// cout << "aShape Type = " <<(aShape.TShape())->DynamicType() << endl;
+// std::cout << "=== Shareable shape ===" << std::endl;
+// std::cout << "aShape Type = " <<(aShape.TShape())->DynamicType() << std::endl;
// if(aShape.Orientation() == aResult.Orientation())
-// cout<<"\tSource and result shapes have the same Orientation"<< endl;
+// std::cout<<"\tSource and result shapes have the same Orientation"<< std::endl;
// if((aShape.Location().IsEqual(aResult.Location())))
-// cout <<"\tSource and result shapes have the same Locations" << endl;
+// std::cout <<"\tSource and result shapes have the same Locations" << std::endl;
// if((aShape.IsSame(aResult)))
-// cout <<"\tShapes arew the same (i.e. the same TShape and the same Locations)" << endl;
+// std::cout <<"\tShapes arew the same (i.e. the same TShape and the same Locations)" << std::endl;
// }
// #endif
}
/*static void ModDbgTools_Write(const TopoDS_Shape& shape,
const Standard_CString filename)
{
- ofstream save;
+ std::ofstream save;
save.open(filename);
- save << "DBRep_DrawableShape" << endl << endl;
+ save << "DBRep_DrawableShape" << std::endl << std::endl;
if(!shape.IsNull()) BRepTools::Write(shape, save);
save.close();
}
ModDbgTools_Write(Sh, Entry.ToCString());
}
else
- cout << "ModDbgTools::Write>>> TopoDS_Shape IS NULL on Entry = "<< entry << endl;
+ std::cout << "ModDbgTools::Write>>> TopoDS_Shape IS NULL on Entry = "<< entry << std::endl;
}
else
- cout << "ModDbgTools::Write>>> CurrentShape of TNaming_NamedShape IS NULL on Entry = "<< entry << endl;
+ std::cout << "ModDbgTools::Write>>> CurrentShape of TNaming_NamedShape IS NULL on Entry = "<< entry << std::endl;
}*/
#endif
#ifdef OCCT_DEBUG_IDF
TCollection_AsciiString entry;
TDF_Tool::Entry(NS->Label(), entry);
- cout << "Identifier:: (S) Label = " << entry <<endl;
+ std::cout << "Identifier:: (S) Label = " << entry <<std::endl;
#endif
//-------------------------------------
// S est New dans un NamedShape
it.Next(); if (!it.More()) return 0;
//plus d un shape.
#ifdef OCCT_DEBUG
- cout <<"WARNING IMPORTED"<<endl;
+ std::cout <<"WARNING IMPORTED"<<std::endl;
#endif
return 1;
}
{
TCollection_AsciiString entry;
TDF_Tool::Entry(label, entry);
- cout << "LabelEntry = "<< entry << endl;
+ std::cout << "LabelEntry = "<< entry << std::endl;
}
static void LWrite(const TopoDS_Shape& shape,
const Standard_CString filename)
*p = '-';
p++;
}
- ofstream save (buf);
+ std::ofstream save (buf);
if(!save)
- cout << "File " << buf << " was not created: rdstate = " << save.rdstate() << endl;
- save << "DBRep_DrawableShape" << endl << endl;
+ std::cout << "File " << buf << " was not created: rdstate = " << save.rdstate() << std::endl;
+ save << "DBRep_DrawableShape" << std::endl << std::endl;
if(!shape.IsNull()) BRepTools::Write(shape, save);
save.close();
}
if (Anc.Contains(S)) {
#ifdef OCCT_DEBUG_SC
- cout <<"Localizer: S in ancestor" <<endl;
+ std::cout <<"Localizer: S in ancestor" <<std::endl;
#endif
const TopTools_ListOfShape& L = Anc.FindFromKey(S);
TopTools_ListIteratorOfListOfShape itL(L);
}
else {
#ifdef OCCT_DEBUG
- cout <<" TNaming_Localization : Failure in the research of ancetres in TDF"<<endl;
+ std::cout <<" TNaming_Localization : Failure in the research of ancetres in TDF"<<std::endl;
#endif
}
}
}
else {
#ifdef OCCT_DEBUG
- cout <<" TNaming_Localization : S n est pas dans le solide"<<endl;//S is not in the solid
+ std::cout <<" TNaming_Localization : S n est pas dans le solide"<<std::endl;//S is not in the solid
#endif
}
}
TopExp_Explorer exp(In,TS);
#ifdef OCCT_DEBUG
- if (!exp.More()) cout <<" TNaming_Localization : Construction ancetres impossible"<<endl;
+ if (!exp.More()) std::cout <<" TNaming_Localization : Construction ancetres impossible"<<std::endl;
#endif
const TopoDS_Shape& SS = exp.Current();
}
else {
#ifdef OCCT_DEBUG
- cout <<" TNaming_Localization : Construction ancetres impossible"<<endl;
+ std::cout <<" TNaming_Localization : Construction ancetres impossible"<<std::endl;
#endif
}
}
}
else {
#ifdef OCCT_DEBUG
- cout <<" TNaming_Localization : Construction ancetres impossible"<<endl;
+ std::cout <<" TNaming_Localization : Construction ancetres impossible"<<std::endl;
#endif
}
return myAncestors.First();
}
}
#ifdef OCCT_DEBUG
- cout <<"TNaming_Localizer:IsNewInLab : Shape n est pas dans le Label."<<endl;
+ std::cout <<"TNaming_Localizer:IsNewInLab : Shape n est pas dans le Label."<<std::endl;
#endif
return Standard_False;
}
}
else {
#ifdef OCCT_DEBUG
- cout <<"TNaming_Localizer: Shape modifie sans avoir ete cree"<<endl;
+ std::cout <<"TNaming_Localizer: Shape modifie sans avoir ete cree"<<std::endl;
#endif
}
}
// szy 30.03.10 to process case when Candidate is of type Vertex
// if (TA == TopAbs_VERTEX) {
//#ifdef OCCT_DEBUG
-// cout <<"construction voisins des vertex impossible"<<endl;
+// std::cout <<"construction voisins des vertex impossible"<<std::endl;
//#endif
// return;
// }
if (exp.Current().IsSame(S)) {
found = 1;
#ifdef OCCT_DEBUG_SC
- cout << "Find Context shape = " << SC.TShape() << "ShapeType = " << SC.ShapeType() <<endl;
+ std::cout << "Find Context shape = " << SC.TShape() << "ShapeType = " << SC.ShapeType() <<std::endl;
#endif
break;
}
Handle(TNaming_NamedShape) aNS = TNaming_Tool::NamedShape(SC,Father);
if (!aNS.IsNull()) {
#ifdef OCCT_DEBUG_SC
- cout << "FindShapeContext: ";LPrintEntry(aNS->Label());
+ std::cout << "FindShapeContext: ";LPrintEntry(aNS->Label());
#endif
if (aNS->Label().Father().FindAttribute(TNaming_NamedShape::GetID(),aNS)) {
TopoDS_Shape aShape;
{
TCollection_AsciiString entry;
TDF_Tool::Entry(label, entry);
- cout << "LabelEntry = "<< entry << endl;
+ std::cout << "LabelEntry = "<< entry << std::endl;
}
//=======================================================================
void PrintEntries(const TDF_LabelMap& map)
{
- cout << "=== Labels Map ===" <<endl;
+ std::cout << "=== Labels Map ===" <<std::endl;
TCollection_AsciiString entry;
TDF_MapIteratorOfLabelMap it(map);
for(;it.More();it.Next()) {
TDF_Tool::Entry(it.Key(), entry);
- cout << "LabelEntry = "<< entry << endl;
+ std::cout << "LabelEntry = "<< entry << std::endl;
}
}
#ifdef OCCT_DEBUG_DBGTOOLS_WRITE
*p = '-';
p++;
}
- ofstream save (buf);
+ std::ofstream save (buf);
if(!save)
- cout << "File " << buf << " was not created: rdstate = " << save.rdstate() << endl;
- save << "DBRep_DrawableShape" << endl << endl;
+ std::cout << "File " << buf << " was not created: rdstate = " << save.rdstate() << std::endl;
+ save << "DBRep_DrawableShape" << std::endl << std::endl;
if(!shape.IsNull()) BRepTools::Write(shape, save);
save.close();
}
const Handle(TNaming_NamedShape)& aNS = it.Value();
if(aNS.IsNull()) {
#ifdef OCCT_DEBUG_ARG
- cout << "ValidArgs:: NS (Naming argument) is NULL" <<endl;
+ std::cout << "ValidArgs:: NS (Naming argument) is NULL" <<std::endl;
#endif
return Standard_False;
}
#ifdef OCCT_DEBUG_ARG
TCollection_AsciiString entry;
TDF_Tool::Entry(aNS->Label(), entry);
- cout << "ValidArgs:: Empty NS, Label = " << entry <<endl;
+ std::cout << "ValidArgs:: Empty NS, Label = " << entry <<std::endl;
#endif
return Standard_False;
}
#ifdef OCCT_DEBUG_ARG
TCollection_AsciiString entry;
TDF_Tool::Entry(aNS->Label(), entry);
- cout << "ValidArgs::Not valid NS Label = " << entry <<endl;
+ std::cout << "ValidArgs::Not valid NS Label = " << entry <<std::endl;
#endif
return Standard_False;
}
theMS.Add(S);
found = Standard_True;
#ifdef OCCT_DEBUG_MODUN
- cout << aNam2 << " is Same with " << aNam1 <<endl;
+ std::cout << aNam2 << " is Same with " << aNam1 <<std::endl;
#endif
break;
}
TNaming_NamingTool::BuildDescendants (Stop, Forbiden); // fills Forbidden from Stop
#ifdef OCCT_DEBUG_GEN
- cout <<"Regenerating ModifUntil => ";
+ std::cout <<"Regenerating ModifUntil => ";
PrintEntry(L);
DbgTools_WriteNSOnLabel(Args.Last(), "ModifUntil-");
#ifdef OCCT_DEBUG_GEN
TCollection_AsciiString aName = aNam + ++i + ext;
DbgTools_Write(S, aName.ToCString()) ;
- cout << aName.ToCString() << " TS = " << S.TShape()->This() <<endl;
+ std::cout << aName.ToCString() << " TS = " << S.TShape()->This() <<std::endl;
#endif
}
return Standard_True;
DbgTools_Write(Stop->Get(), "Ints_Stop.brep");
PrintEntry(Stop->Label());
}
- cout <<"Ints: ShapeType = " << ShapeType << endl;
- cout <<"Argument 1 at ";
+ std::cout <<"Ints: ShapeType = " << ShapeType << std::endl;
+ std::cout <<"Argument 1 at ";
PrintEntry(it.Value()->Label());
#endif
TNaming_NamingTool::BuildDescendants (Stop, Forbiden); // <==<1>
#ifdef OCCT_DEBUG_INT
- cout << "Intersection:: Valid Map: "<<endl;
+ std::cout << "Intersection:: Valid Map: "<<std::endl;
PrintEntries(Valid);
- cout << "Intersection:: Forbidden Map: "<<endl;
+ std::cout << "Intersection:: Forbidden Map: "<<std::endl;
PrintEntries(Forbiden);
#endif
TopTools_ListOfShape aListOfAnc;
#ifdef OCCT_DEBUG_INT
TCollection_AsciiString aName = aNam + i++ + ext;
DbgTools_Write(CS, aName.ToCString()) ;
- cout <<"Argument " << i << " at ";
+ std::cout <<"Argument " << i << " at ";
PrintEntry(it.Value()->Label());
#endif
}
}
#ifdef OCCT_DEBUG_INT
- cout <<"Kept: indxE = " << indxE <<" maxENum = " << nbE << " indxW = " <<indxW << " nbW = " <<nbW<<endl;
+ std::cout <<"Kept: indxE = " << indxE <<" maxENum = " << nbE << " indxW = " <<indxW << " nbW = " <<nbW<<std::endl;
#endif
Standard_Integer aCaseW(0);
Standard_Integer aNbW = aS.NbChildren();
ii++;
TCollection_AsciiString aNm = Nam + entry + "_" + ii + ".brep";
DbgTools_Write(CS, aNm.ToCString());
- cout <<"Arg: Entry = " <<entry <<" TShape = " << CS.TShape() <<endl;
+ std::cout <<"Arg: Entry = " <<entry <<" TShape = " << CS.TShape() <<std::endl;
#endif
}
#ifdef OCCT_DEBUG_UNN
TCollection_AsciiString anEntry;
TDF_Tool::Entry(ContextLabel, anEntry);
- cout << "UNION: Context Label = " << anEntry << endl;
+ std::cout << "UNION: Context Label = " << anEntry << std::endl;
DbgTools_Write(aContext, "Union_Context.brep");
TCollection_AsciiString aN ("aMap_");
TopTools_MapIteratorOfMapOfShape it(S.Map());
for(;anExpl.More(); anExpl.Next())
aList.Append(anExpl.Current());
#ifdef OCCT_DEBUG_UNN
- cout <<"UNION: ShapeType = " << ShapeType << " List ext = " << aList.Extent()<<endl;
+ std::cout <<"UNION: ShapeType = " << ShapeType << " List ext = " << aList.Extent()<<std::endl;
TopAbs_ShapeEnum aTyp = TopAbs_SHAPE;
TopTools_MapIteratorOfMapOfShape it1 (S.Map());
for (int i=1;it1.More();it1.Next(),i++) {
- cout << "Map("<<i<<"): TShape = " << it1.Key().TShape() << " Orient = " << it1.Key().Orientation() <<endl;
+ std::cout << "Map("<<i<<"): TShape = " << it1.Key().TShape() << " Orient = " << it1.Key().Orientation() <<std::endl;
aTyp = it1.Key().ShapeType();
}
TopExp_Explorer exp(aContext, aTyp);
for(int i =1;exp.More();exp.Next(), i++) {
- cout << "Context("<<i<<"): TShape = " << exp.Current().TShape() << " Orient = " << exp.Current().Orientation() <<endl;
+ std::cout << "Context("<<i<<"): TShape = " << exp.Current().TShape() << " Orient = " << exp.Current().Orientation() <<std::endl;
}
#endif
TNaming_Builder B(L);
#ifdef OCCT_DEBUG_UNN
if(!ContextLabel.IsNull()) {
- if(found) cout << "UNION: Shape is found in Context" <<endl;
- else cout << "UNION: Shape is NOT found in Context" <<endl;
+ if(found) std::cout << "UNION: Shape is found in Context" <<std::endl;
+ else std::cout << "UNION: Shape is NOT found in Context" <<std::endl;
}
#endif
if(found)
aSelection = aNaming->GetName().Shape();
#ifdef OCCT_DEBUG_GEN
DbgTools_Write(aSelection, "G_Selection.brep") ;
- cout << "Generated::SearchModifUntil aMS.Extent() = " << aMS.Extent() <<endl;
+ std::cout << "Generated::SearchModifUntil aMS.Extent() = " << aMS.Extent() <<std::endl;
DbgTools_Write(aMS, "SearchModifUntil_Result");
#endif
Handle(TNaming_NamedShape) anOldNS;
#endif
if(!aShape.IsNull()) found = Standard_True;
#ifdef OCCT_DEBUG_GEN
- cout << "Generated ==>aGenerators.Extent() = " <<aGenerators.Extent() <<" aMS.Extent()= " <<aMS.Extent()<<endl;
+ std::cout << "Generated ==>aGenerators.Extent() = " <<aGenerators.Extent() <<" aMS.Extent()= " <<aMS.Extent()<<std::endl;
#endif
if(found) {
#ifdef OCCT_DEBUG_GEN
- cout << "Generated ==> Shape is found!" <<endl;
+ std::cout << "Generated ==> Shape is found!" <<std::endl;
#endif
TopTools_ListOfShape aLM;
Standard_Boolean aHas = Standard_False;
if(aGenerators.Extent() != aMS.Extent()) { //missed generators
aHas = Standard_True;//has lost generatos
#ifdef OCCT_DEBUG_GEN
- cout << "Generated ==> has lost generatos!" <<endl;
+ std::cout << "Generated ==> has lost generatos!" <<std::endl;
#endif
for (TNaming_ListIteratorOfListOfNamedShape itg(aGenerators); itg.More(); itg.Next()) {
if(!aMS.Contains(itg.Value()->Get()))
// if(it.Value().ShapeType() == TopAbs_EDGE) {
// const TopoDS_Shape& aV1 = TopExp::FirstVertex(TopoDS::Edge(it.Value()));
// const TopoDS_Shape& aV2 = TopExp::LastVertex(TopoDS::Edge(it.Value()));
-// if(aShape.IsSame(aV1)) {aShape2 = aV2; cout << "##### => V2 " <<endl;break;}
+// if(aShape.IsSame(aV1)) {aShape2 = aV2; std::cout << "##### => V2 " <<std::endl;break;}
// else
-// if(aShape.IsSame(aV2)) {aShape2 = aV1; cout << "##### => V1 " <<endl;break;}
+// if(aShape.IsSame(aV2)) {aShape2 = aV1; std::cout << "##### => V1 " <<std::endl;break;}
// }
// }
// }
} else
{ //not found
#ifdef OCCT_DEBUG_GEN
- cout << "Generated ==> Shape is NOT found! Probably Compound will be built" <<endl;
+ std::cout << "Generated ==> Shape is NOT found! Probably Compound will be built" <<std::endl;
#endif
TopTools_ListIteratorOfListOfShape it2(aList2);
TCollection_AsciiString aNam("Cand_");
TCollection_AsciiString ext(".brep");
DbgTools_WriteNSOnLabel(Cand, aNam.ToCString());
- cout << "Cand (Args.First()) Label = ";
+ std::cout << "Cand (Args.First()) Label = ";
PrintEntry(Cand->Label());
- cout << "Valid Label map:" <<endl;
+ std::cout << "Valid Label map:" <<std::endl;
PrintEntries(Valid);
#endif
#ifdef OCCT_DEBUG_FNB
TCollection_AsciiString aNam2("SCand");
DbgTools_Write(SCand, aNam2.ToCString());
- cout <<"SCand Extent = " << SCand.Extent() << " Expected ShapeType = " << ShapeType << endl;
+ std::cout <<"SCand Extent = " << SCand.Extent() << " Expected ShapeType = " << ShapeType << std::endl;
#endif
//------------------------------------------------------------
it.Next();
Standard_Boolean Keep = 1;
#ifdef OCCT_DEBUG_FNB
- cout <<"Args number = " << Args.Extent() <<endl;
+ std::cout <<"Args number = " << Args.Extent() <<std::endl;
i=1;
aNam = "Boundaries";
#endif
for(;expl1.More(); expl1.Next()) {
if(expl1.Current().IsSame(Selection)) {
i++;
- cout <<"FindSubShape: = " <<expl1.Current().ShapeType() << " TS = " <<expl1.Current().TShape() << endl;
+ std::cout <<"FindSubShape: = " <<expl1.Current().ShapeType() << " TS = " <<expl1.Current().TShape() << std::endl;
TCollection_AsciiString nam = SS + i + ".brep";
DbgTools_Write(expl1.Current(), nam.ToCString());
}
TopExp_Explorer anExpl(Context, Selection.ShapeType());
for(;anExpl.More(); anExpl.Next()) {
#ifdef OCCT_DEBUG_OR_AG
- cout <<"FindSubShape: = " <<anExpl.Current().ShapeType() << " TS = " <<anExpl.Current().TShape()->This() << endl;
+ std::cout <<"FindSubShape: = " <<anExpl.Current().ShapeType() << " TS = " <<anExpl.Current().TShape()->This() << std::endl;
DbgTools_Write(anExpl.Current(), "Orientation_Current.brep");
#endif
if(anExpl.Current().IsSame(Selection))
if(aSList.Extent() == 0) {
const Handle(TNaming_NamedShape)& Anc = Args.Last();
#ifdef OCCT_DEBUG_OR
- cout << "### ORIENTATION: Ancestor ";
+ std::cout << "### ORIENTATION: Ancestor ";
PrintEntry(Anc->Label());
#endif
MSC.Clear();
CS = it.Value();
found = Standard_True;
#ifdef OCCT_DEBUG_OR
- cout << "ORIENTATION => ORDER = " << i <<endl;
+ std::cout << "ORIENTATION => ORDER = " << i <<std::endl;
#endif
break;
}
CS = FindSubShapeInAncestor(aShape, AS);
// <=== end 21.10.2009
#ifdef OCCT_DEBUG_OR
- cout << "ORIENTATION: Selection TShape = " <<CS.TShape() <<" Orientation = " << CS.Orientation() <<endl;
- cout << "ORIENTATION: Context ShapeType = "<<AS.ShapeType() << " TShape = " <<AS.TShape() <<endl;
+ std::cout << "ORIENTATION: Selection TShape = " <<CS.TShape() <<" Orientation = " << CS.Orientation() <<std::endl;
+ std::cout << "ORIENTATION: Context ShapeType = "<<AS.ShapeType() << " TShape = " <<AS.TShape() <<std::endl;
DbgTools_Write(AS, "Orientation_Cnt.brep");
#endif
if(!CS.IsNull()) {
if (aMapOfSh.Extent() != 1) return aResult;
const TopoDS_Shape& aCF = aMapOfSh(1);
#ifdef OCCT_DEBUG_WIN
- cout <<"MS Extent = " <<MS.Extent() <<endl;
+ std::cout <<"MS Extent = " <<MS.Extent() <<std::endl;
DbgTools_Write(aCF, "Context_Face.brep");
#endif
TNaming_Builder B(L);
ii++;
TCollection_AsciiString aNm = Nam + entry + "_" + ii + ".brep";
DbgTools_Write(CS, aNm.ToCString());
- cout <<"Arg: Entry = " <<entry <<" TShape = " << CS.TShape() <<endl;
+ std::cout <<"Arg: Entry = " <<entry <<" TShape = " << CS.TShape() <<std::endl;
#endif
}
#ifdef OCCT_DEBUG_WIN
- cout <<"WIREIN: Internal Map ext = " << aSet.Map().Extent()<<endl;
+ std::cout <<"WIREIN: Internal Map ext = " << aSet.Map().Extent()<<std::endl;
TopTools_MapIteratorOfMapOfShape it1 (aSet.Map());
for (int i=1;it1.More();it1.Next(),i++) {
- cout << "Map("<<i<<"): TShape = " << it1.Key().TShape() << " Orient = " << it1.Key().Orientation() <<" Type = " <<
- it1.Key().ShapeType()<<endl;
+ std::cout << "Map("<<i<<"): TShape = " << it1.Key().TShape() << " Orient = " << it1.Key().Orientation() <<" Type = " <<
+ it1.Key().ShapeType()<<std::endl;
}
TopExp_Explorer exp(aCF, TopAbs_EDGE);
for(int i =1;exp.More();exp.Next(), i++) {
- cout << "Context_Face("<<i<<"): TShape = " << exp.Current().TShape() << " Orient = " << exp.Current().Orientation() <<endl;
+ std::cout << "Context_Face("<<i<<"): TShape = " << exp.Current().TShape() << " Orient = " << exp.Current().Orientation() <<std::endl;
}
#endif
//end for edges
if(!S.IsNull()) {
#ifdef OCCT_DEBUG_WIN
DbgTools_Write(S, "WireIN_S.brep");
- cout <<"WIREIN: ShapeType = " << S.ShapeType() << " TS = " << S.TShape()->This() <<endl;
+ std::cout <<"WIREIN: ShapeType = " << S.ShapeType() << " TS = " << S.TShape()->This() <<std::endl;
#endif
if(S.ShapeType() == TopAbs_WIRE) {
TopTools_MapOfShape aView;
if (aMapOfSh.Extent() != 1) return aResult;
const TopoDS_Shape& aCSO = aMapOfSh(1);
#ifdef OCCT_DEBUG_SHELL
- cout <<"MS Extent = " <<MS.Extent() <<endl;
+ std::cout <<"MS Extent = " <<MS.Extent() <<std::endl;
DbgTools_Write(aCSO, "Context_Solid.brep");
#endif
TNaming_Builder B(L);
B.Select(anOuterShell, anOuterShell);
aResult = Standard_True;
#ifdef OCCT_DEBUG_SHELL
- cout << "Outer Shell case" <<endl;
+ std::cout << "Outer Shell case" <<std::endl;
PrintEntry(L);
DbgTools_Write(anOuterShell, "ShellOut_S.brep");
TopoDS_Iterator it (aCSO);
ii++;
TCollection_AsciiString aNm = Nam + entry + "_" + ii + ".brep";
DbgTools_Write(CS, aNm.ToCString());
- cout <<"Arg: Entry = " <<entry <<" TShape = " << CS.TShape() <<endl;
+ std::cout <<"Arg: Entry = " <<entry <<" TShape = " << CS.TShape() <<std::endl;
#endif
}
#ifdef OCCT_DEBUG_SHELL
- cout <<"SHELLIN: Internal Map ext = " << aSet.Map().Extent()<<endl;
+ std::cout <<"SHELLIN: Internal Map ext = " << aSet.Map().Extent()<<std::endl;
TopTools_MapIteratorOfMapOfShape it1 (aSet.Map());
for (int i=1;it1.More();it1.Next(),i++) {
- cout << "Map("<<i<<"): TShape = " << it1.Key().TShape() << " Orient = " << it1.Key().Orientation() <<" Type = " <<
- it1.Key().ShapeType()<<endl;
+ std::cout << "Map("<<i<<"): TShape = " << it1.Key().TShape() << " Orient = " << it1.Key().Orientation() <<" Type = " <<
+ it1.Key().ShapeType()<<std::endl;
}
TopExp_Explorer exp(aCSO, TopAbs_FACE);
for(int i = 1;exp.More();exp.Next(), i++) {
- cout << "Context_Solid("<<i<<"): TShape = " << exp.Current().TShape() << " Orient = " << exp.Current().Orientation() <<endl;
+ std::cout << "Context_Solid("<<i<<"): TShape = " << exp.Current().TShape() << " Orient = " << exp.Current().Orientation() <<std::endl;
}
#endif
//end for faces
if(!S.IsNull()) {
#ifdef OCCT_DEBUG_SHELL
DbgTools_Write(S, "ShellIN_S.brep");
- cout <<"SHELLIN: ShapeType = " << S.ShapeType() << " TS = " << S.TShape()->This() <<endl;
+ std::cout <<"SHELLIN: ShapeType = " << S.ShapeType() << " TS = " << S.TShape()->This() <<std::endl;
#endif
if(S.ShapeType() == TopAbs_SHELL) {
TopTools_MapOfShape aView;
case TNaming_WIREIN:
{
#ifdef OCCT_DEBUG_WIN
- cout << "Name::Solve: NameType = " << myType << " ";
+ std::cout << "Name::Solve: NameType = " << myType << " ";
PrintEntry(aLab);
#endif
Done = WireIN (aLab,Valid,myArgs,myStop,myIndex);
case TNaming_SHELLIN:
{
#ifdef OCCT_DEBUG_SHELL
- cout << "Name::Solve: NameType = " << myType << " ";
+ std::cout << "Name::Solve: NameType = " << myType << " ";
PrintEntry(aLab);
#endif
Done = ShellIN (aLab,Valid,myArgs,myStop,myIndex);
}
} catch (Standard_Failure const&) {
#ifdef OCCT_DEBUG
- cout << "Name::Solve: EXCEPTION==> NameType = " << NameTypeToString(myType) << " ";
+ std::cout << "Name::Solve: EXCEPTION==> NameType = " << NameTypeToString(myType) << " ";
PrintEntry(aLab);
#endif
}
{
if (Label().IsNull()) {
#ifdef OCCT_DEBUG_BUILDER
- cout << "attention etat fantomatique" << endl;
+ std::cout << "attention etat fantomatique" << std::endl;
#endif
return;
}
if (myShapes->myMap.IsBound(newShape)) {
#ifdef OCCT_DEBUG_BUILDER
- cout <<"TNaming_Builder::Generate : the shape is already in the attribute"<<endl;
+ std::cout <<"TNaming_Builder::Generate : the shape is already in the attribute"<<std::endl;
#endif
pns = myShapes->myMap.ChangeFind(newShape);
if (pns->FirstUse()->myAtt == myAtt.operator->()) {
pos = myShapes->myMap.ChangeFind(oldShape);
else {
#ifdef OCCT_DEBUG_BUILDER
- cout <<"TNaming_Builder::Delete : the shape is not in the data"<<endl;
+ std::cout <<"TNaming_Builder::Delete : the shape is not in the data"<<std::endl;
#endif
pos = new TNaming_RefShape(oldShape);
myShapes->myMap.Bind(oldShape, pos);
if (oldShape.IsSame(newShape)) {
#ifdef OCCT_DEBUG_BUILDER
- cout <<"TNaming_Builder::Generate : oldShape IsSame newShape"<<endl;
+ std::cout <<"TNaming_Builder::Generate : oldShape IsSame newShape"<<std::endl;
#endif
return;
}
if (oldShape.IsSame(newShape)) {
#ifdef OCCT_DEBUG_BUILDER
- cout <<"TNaming_Builder::Modify : oldShape IsSame newShape"<<endl;
+ std::cout <<"TNaming_Builder::Modify : oldShape IsSame newShape"<<std::endl;
#endif
return;
}
else {
myNode = 0L;
#ifdef OCCT_DEBUG
- cout <<"TNaming_Iterator : No Shape for this label"<<endl;
+ std::cout <<"TNaming_Iterator : No Shape for this label"<<std::endl;
#endif
}
}
return (US->Map().IsBound(S));
}
#ifdef OCCT_DEBUG_HASL
- cout << "##==> Sub-Shape has no Label!" <<endl;
+ std::cout << "##==> Sub-Shape has no Label!" <<std::endl;
#endif
return Standard_False;
}
{
TCollection_AsciiString entry;
TDF_Tool::Entry(label, entry);
- cout << "LabelEntry = "<< entry << endl;
+ std::cout << "LabelEntry = "<< entry << std::endl;
}
static void Write(const TopoDS_Shape& shape,
const Standard_CString filename)
*p = '-';
p++;
}
- ofstream save (buf);
+ std::ofstream save (buf);
if(!save)
- cout << "File " << buf << " was not created: rdstate = " << save.rdstate() << endl;
- save << "DBRep_DrawableShape" << endl << endl;
+ std::cout << "File " << buf << " was not created: rdstate = " << save.rdstate() << std::endl;
+ save << "DBRep_DrawableShape" << std::endl << std::endl;
if(!shape.IsNull()) BRepTools::Write(shape, save);
save.close();
}
Write(Sh, Entry.ToCString());
}
else
- cout << "WriteNSOnLabel>>> TopoDS_Shape IS NULL on Entry = "<< entry << endl;
+ std::cout << "WriteNSOnLabel>>> TopoDS_Shape IS NULL on Entry = "<< entry << std::endl;
}
else
- cout << "WriteNSOnLabel >>> NamedShape IS NULL" << endl;
+ std::cout << "WriteNSOnLabel >>> NamedShape IS NULL" << std::endl;
}
#endif
#ifdef OCCT_DEBUG_NBS
TCollection_AsciiString anEntry;
TDF_Tool::Entry(it.Value(), anEntry);
- cout << "TNaming_Naming::Solve: Label to be solved = " << anEntry << endl;
+ std::cout << "TNaming_Naming::Solve: Label to be solved = " << anEntry << std::endl;
#endif
if (it.Value().FindAttribute(TNaming_Naming::GetID(),subname)) {
if (!subname->Solve (Valid)) {
}
#ifdef OCCT_DEBUG_CC
TDF_MapIteratorOfLabelMap anItr(Valid);
- cout << "TNaming_Naming::Solve:: Valid label Map" << endl;
+ std::cout << "TNaming_Naming::Solve:: Valid label Map" << std::endl;
for (; anItr.More(); anItr.Next()) {
const TDF_Label& aLabel = anItr.Key();
TCollection_AsciiString anEntry;
TDF_Tool::Entry(aLabel, anEntry);
- cout << "Label = " << anEntry << endl;
+ std::cout << "Label = " << anEntry << std::endl;
}
#endif
if (Regenerate(Valid)) {
Handle(TNaming_NamedShape) aTarget = TNaming_Tool::NamedShape(theTarget,theSource->Label());
if (!aTarget.IsNull()) {
#ifdef OCCT_DEBUG_71
- cout <<"GetShapeEvolutions: target NS = ";
+ std::cout <<"GetShapeEvolutions: target NS = ";
Print_Entry(aTarget->Label());
- cout <<"GetShapeEvolutions: Source NS = ";
+ std::cout <<"GetShapeEvolutions: Source NS = ";
Print_Entry(theSource->Label());
TCollection_AsciiString aNam("GetShapeEvolutions");
WriteNSOnLabel(aTarget,aNam);
#ifdef OCCT_DEBUG_71
if(!anIter.OldShape().IsNull()) {
Write(anIter.OldShape(), "Target_OldS.brep");
- cout <<"Target OldS TS =" <<anIter.OldShape().TShape()->This() <<endl;
+ std::cout <<"Target OldS TS =" <<anIter.OldShape().TShape()->This() <<std::endl;
}
if(!anIter.NewShape().IsNull()) {
Write(anIter.NewShape(), "Target_NewS.brep");
- cout <<"Target NewS TS =" <<anIter.NewShape().TShape()->This() <<endl;
+ std::cout <<"Target NewS TS =" <<anIter.NewShape().TShape()->This() <<std::endl;
}
#endif
if (anIter.OldShape().IsNull() || anIter.NewShape().IsNull()) continue;
Handle(TNaming_NamedShape) aResult;
if (S.IsNull() || NS.IsNull()) return aResult;
#ifdef OCCT_DEBUG_71
- cout <<"CompareInModification: parent NS = ";
+ std::cout <<"CompareInModification: parent NS = ";
Print_Entry(NS->Label());
Write(S, "CompareInM_S.brep");
TCollection_AsciiString aNam("CompareInM");
for (; it.More(); it.Next()) {
const TopAbs_ShapeEnum aType = it.Value().ShapeType();
#ifdef OCCT_DEBUG_CC
- cout <<"TestSolution_FillMap: S_Type = :" << it.Value().ShapeType() <<" TShape = " << it.Value().TShape()->This() <<endl;
+ std::cout <<"TestSolution_FillMap: S_Type = :" << it.Value().ShapeType() <<" TShape = " << it.Value().TShape()->This() <<std::endl;
#endif
if(aType > TopAbs_COMPSOLID) {
MS.Add(it.Value());
TNaming_NamingTool::CurrentShape(MDF.GetValid(),Forbiden,NS,MS);
#ifdef OCCT_DEBUG_NBS
Write(S, "Compare_S.brep");
- cout << "S: TShape = " <<S.TShape()->This() <<endl;
+ std::cout << "S: TShape = " <<S.TShape()->This() <<std::endl;
TCollection_AsciiString aNam("Compare_MS_");
TCollection_AsciiString ext(".brep");
for (Standard_Integer anItMS = 1; anItMS <= MS.Extent(); ++anItMS) {
TCollection_AsciiString aName = aNam + anItMS + ext;
Write (MS (anItMS), aName.ToCString());
- cout << aName.ToCString()<< ": TShape = " << MS (anItMS).TShape()->This() << endl;
+ std::cout << aName.ToCString()<< ": TShape = " << MS (anItMS).TShape()->This() << std::endl;
}
#endif
return (MS.Contains(S) && MS.Extent() == 1);
aDMM.Bind(it.Key(), aMS);
} else {
#ifdef OCCT_DEBUG
- cout << "Key is not BOUND!" <<endl;
+ std::cout << "Key is not BOUND!" <<std::endl;
#endif
return Standard_False;
}
if (Neighbourg.IsEmpty()) {
#ifdef OCCT_DEBUG
- cout <<"FindNeighbourg: impossible"<<endl;
+ std::cout <<"FindNeighbourg: impossible"<<std::endl;
#endif
return 0;
} else {
Write(Neighbourg, "Neighbourgs");
#endif
aLev++;
- //cout <<"Filter: Lev = " << aLev << endl;
+ //std::cout <<"Filter: Lev = " << aLev << std::endl;
}
if(aLev > 3) return 0;
#ifdef ALLOW_CHILD_NBS
//check the applicability
if(!NS.IsNull() && !NS->Get().IsNull() && NS->Get().ShapeType() == TopAbs_COMPOUND)
if(IsMultipleCase(S, Context, Neighbourg)) {
- //cout << "Filter: ==> MultipleCase!" << endl;
+ //std::cout << "Filter: ==> MultipleCase!" << std::endl;
NS->Label().FindAttribute(TNaming_Naming::GetID(), aFNaming);
if(!aFNaming.IsNull()) {
TNaming_Name& aName = aFNaming->ChangeName();
const TopoDS_Shape& aFace = TNaming_Tool::CurrentShape(itA.Value());
#ifdef OCCT_DEBUG_MOD
Write(aFace, "First_Face.brep");
- cout <<"Selection TS = " << S.TShape()->This() <<endl;
+ std::cout <<"Selection TS = " << S.TShape()->This() <<std::endl;
#endif
Standard_Integer i(1), indxW(0),indxE(0),nbW(0),nbE(0), indxF(0);
Standard_Boolean isFound(Standard_False);
nbE++;
#ifdef OCCT_DEBUG_MOD
Write(it2.Value(), "First_Wire.brep");
- cout <<"Edge TS = " << it2.Value().TShape()->This() <<endl;
+ std::cout <<"Edge TS = " << it2.Value().TShape()->This() <<std::endl;
#endif
if(S.IsEqual(it2.Value())) {
indxE = j;
theName.Append(NS);
theName.StopNamedShape (Until);
#ifdef OCCT_DEBUG_NBS
- cout << "FilterByNBS: ";
+ std::cout << "FilterByNBS: ";
Print_Entry(NF->Label());
- cout <<"AppendNS = " ;
+ std::cout <<"AppendNS = " ;
Print_Entry(NS->Label());
#endif
//---------------------
#ifdef OCCT_DEBUG_NBS
const TopoDS_Shape& aS2 = aNS->Get();
if(!aS.IsNull())
- cout << "Shape arg type = " << aS.ShapeType() <<" TSH = " << aS.TShape()->This()<<endl;
+ std::cout << "Shape arg type = " << aS.ShapeType() <<" TSH = " << aS.TShape()->This()<<std::endl;
if(!aS2.IsNull()) {
- cout << "Build shape type = " << aS2.ShapeType() <<" TSH = " << aS2.TShape()->This()<<endl;
+ std::cout << "Build shape type = " << aS2.ShapeType() <<" TSH = " << aS2.TShape()->This()<<std::endl;
Write (aS2, "NBS_BuildShape.brep");
}
if(aNS.IsNull()) {
- cout <<"AppendNS = " ;
+ std::cout <<"AppendNS = " ;
Print_Entry(aNS->Label());
}
#endif
aSNS.ShapeType() == TopAbs_COMPOUND)
{ // aLev < 3
#ifdef OCCT_DEBUG_NBS
- cout <<"Father label = ";
+ std::cout <<"Father label = ";
Print_Entry(aNS->Label().Father());
Write(aS,"SelectionS.brep");
Write(aSNS,"SelectionSNS.brep");
//-----------------
if (Compare (NS,MDF,Stop,S)) return 1;
#ifdef OCCT_DEBUG
- cout <<"TNaming_Naming::Name Filter insufficient"<<endl;
+ std::cout <<"TNaming_Naming::Name Filter insufficient"<<std::endl;
#endif
return 0;
}
Father.FindAttribute(TNaming_NamedShape::GetID(),NewStop);
#ifdef OCCT_DEBUG_INNS
if(!Stop.IsNull())
- {cout <<" Stop NS : "; Print_Entry( Stop->Label());}
+ {std::cout <<" Stop NS : "; Print_Entry( Stop->Label());}
if(!NewStop.IsNull())
- {cout <<" NewStop : "; Print_Entry( NewStop->Label());}
- cout <<"ContextLabel: "; Print_Entry( Context->Label());
- cout <<"Father : "; Print_Entry( Father);
+ {std::cout <<" NewStop : "; Print_Entry( NewStop->Label());}
+ std::cout <<"ContextLabel: "; Print_Entry( Context->Label());
+ std::cout <<"Father : "; Print_Entry( Father);
#endif
}
#ifdef OCCT_DEBUG_INNS
if(NewStop.IsNull())
- cout <<"BuildNameInNS:: NewStop shape is NULL" << endl;
+ std::cout <<"BuildNameInNS:: NewStop shape is NULL" << std::endl;
#endif
return BuildName (F,MDF,S,SC,NewStop,Geometry);
}
Standard_Boolean OnlyOne = !Geom;
Standard_Boolean IsGeneration = Standard_False;
#ifdef OCCT_DEBUG_MOD
- cout <<"BuildName: F => ";
+ std::cout <<"BuildName: F => ";
Print_Entry(F);
- cout <<" Selection type = " << Selection.ShapeType() << " TS = " << Selection.TShape()->This() << endl;
+ std::cout <<" Selection type = " << Selection.ShapeType() << " TS = " << Selection.TShape()->This() << std::endl;
Write(Selection, "BName_Selection.brep");
Write(Context, "BName_Context.brep");
#endif
theName.Orientation(Selection.Orientation());
theName.Type(Ident.Type());
#ifdef OCCT_DEBUG_MOD
- cout <<"BuildName: Inserted Naming Att at ";
+ std::cout <<"BuildName: Inserted Naming Att at ";
Print_Entry(Naming->Label());
- cout <<" NameType = " << theName.Type() <<endl;
+ std::cout <<" NameType = " << theName.Type() <<std::endl;
#endif
if (Ident.IsFeature()) {
theName.Append(Ident.FeatureArg());
if(!Stop.IsNull()) {
TCollection_AsciiString Es;
TDF_Tool::Entry(Stop->Label(), Es);
- cout <<"StopNS at Label = "<< Es << endl;
+ std::cout <<"StopNS at Label = "<< Es << std::endl;
}
#endif
//---------------------------------
if(!Ident.FeatureArg().IsNull()) {
TCollection_AsciiString E;
TDF_Tool::Entry(Ident.FeatureArg()->Label(), E);
- cout <<"Added argument NS from Label = "<< E << endl;
+ std::cout <<"Added argument NS from Label = "<< E << std::endl;
}
#endif
}
else {
#ifdef OCCT_DEBUG_MOD
- cout <<"BuildName: NameType = " <<theName.Type() << " NS ";
+ std::cout <<"BuildName: NameType = " <<theName.Type() << " NS ";
Print_Entry(Naming->Label());
- cout <<"Ident.ShapeArg() type = " << Ident.ShapeArg().ShapeType() << " TS = " << Ident.ShapeArg().TShape()->This() << endl;
+ std::cout <<"Ident.ShapeArg() type = " << Ident.ShapeArg().ShapeType() << " TS = " << Ident.ShapeArg().TShape()->This() << std::endl;
Write(Ident.ShapeArg(), "BName_ShapeArg.brep");
#endif
if (theName.Type() == TNaming_GENERATION)
#ifdef OCCT_DEBUG_MOD
TCollection_AsciiString E2;
TDF_Tool::Entry(Naming->Label(), E2);
- cout <<"Regenerated Naming Att at Label = "<< E2 << endl;
+ std::cout <<"Regenerated Naming Att at Label = "<< E2 << std::endl;
#endif
Naming->Label().FindAttribute(TNaming_NamedShape::GetID(),NS);
if(NS.IsNull()) return NS;
if(!NS.IsNull()) {
TCollection_AsciiString E;
TDF_Tool::Entry(NS->Label(), E);
- cout <<"Regenerated NS at Label = "<< E << endl;
+ std::cout <<"Regenerated NS at Label = "<< E << std::endl;
}
#endif
}
} else if (Ident.Type() == TNaming_MODIFUNTIL ||
(Ident.Type() == TNaming_INTERSECTION && Naming->ChangeName().Arguments().Extent() == 1)) {
#ifdef OCCT_DEBUG_MOD
- cout <<"BuildName(CompareInModification): NameType = " <<Ident.Type() << " NS ";
+ std::cout <<"BuildName(CompareInModification): NameType = " <<Ident.Type() << " NS ";
Print_Entry(Ident.Type() == TNaming_MODIFUNTIL ? NS->Label() : Naming->ChangeName().Arguments().First()->Label());
- cout <<"Selection type = " << Selection.ShapeType() << " TS = " << Selection.TShape()->This() << endl;
+ std::cout <<"Selection type = " << Selection.ShapeType() << " TS = " << Selection.TShape()->This() << std::endl;
#endif
Handle(TNaming_NamedShape) NewNS =
CompareInModification(Ident.Type() == TNaming_MODIFUNTIL ? NS : Naming->ChangeName().Arguments().First(), Selection);
if(!NS.IsNull()) {
TCollection_AsciiString E;
TDF_Tool::Entry(NS->Label(), E);
- cout <<"Returned NS from Label = "<< E << endl;
+ std::cout <<"Returned NS from Label = "<< E << std::endl;
}
#endif
return NS;
Face = exp.Current();
if(!Face.IsNull()) {
hasFace = Standard_True;
- // cout << "HasAncFace: TS = " <<theFace.TShape()->This() <<endl;
+ // std::cout << "HasAncFace: TS = " <<theFace.TShape()->This() <<std::endl;
const TopoDS_Face aFace(TopoDS::Face(Face));
TopoDS_Wire anOuterW;
if(TNaming::OuterWire(aFace, anOuterW)) {
Standard_Integer num1(0), num2(0);
for(TopoDS_Iterator it(S);it.More();it.Next(),num1++) {
#ifdef OCCT_DEBUG_CC
- cout <<"S sub-shape type = " << it.Value().ShapeType() <<endl;
+ std::cout <<"S sub-shape type = " << it.Value().ShapeType() <<std::endl;
Write (it.Value(), "Sel_ItValue.brep");
#endif
if(it.Value().ShapeType() != TopAbs_COMPOUND)
for (TopExp_Explorer exp(Context,it.Value().ShapeType()); exp.More(); exp.Next()) {
#ifdef OCCT_DEBUG_CC
- cout <<"Context sub-shape type = " << exp.Current().ShapeType() <<endl;
+ std::cout <<"Context sub-shape type = " << exp.Current().ShapeType() <<std::endl;
Write(exp.Current(), "Contex_Curnt.brep");
#endif
if (exp.Current().IsEqual(it.Value())) {
found = Standard_True;
#ifdef OCCT_DEBUG_CC
else
- cout <<"Compound case : selected num1 = " << num1 << " context contains num2 = " << num2 << endl;
+ std::cout <<"Compound case : selected num1 = " << num1 << " context contains num2 = " << num2 << std::endl;
#endif
return found;
}
}
}
#ifdef OCCT_DEBUG_OR
- cout <<"RepeatabilityInContext: = " <<aNum <<endl;
+ std::cout <<"RepeatabilityInContext: = " <<aNum <<std::endl;
#endif
return aNum;
}
theName.Orientation(S.Orientation());
}
#ifdef OCCT_DEBUG_CC
- cout <<"BuildAggregationName ==> ";
+ std::cout <<"BuildAggregationName ==> ";
Print_Entry(Naming->Label());
#endif
TNaming_Name& theName = Naming->ChangeName();
}
} else {
#ifdef OCCT_DEBUG_CC
- cout << "atomic type is NOT defined ... ==> Aggregation" <<endl;
+ std::cout << "atomic type is NOT defined ... ==> Aggregation" <<std::endl;
#endif
BuildAggregationName(aNaming->Label(),MDF, aS, Context,Stop,Geom);
}
Handle(TNaming_NamedShape) aNamedShape;
if (KeepOrientation) {
#ifdef OCCT_DEBUG_INNS
- cout <<"KeepOR = 1: "; Print_Entry(F);
+ std::cout <<"KeepOR = 1: "; Print_Entry(F);
#endif
Standard_Integer aNum = RepeatabilityInContext(S, Context);
aNamedShape = TNaming_Naming::Name(Naming->Label(),S,Context,Geom,0);
theName.Append (aNamedShape);
#ifdef MDTV_OR
- cout << " Sel Label ==> "; Print_Entry(NS->Label());
+ std::cout << " Sel Label ==> "; Print_Entry(NS->Label());
#endif
//szy 21.10.2009
if(S.ShapeType() == TopAbs_EDGE && UC.ShapeType() == TopAbs_FACE) {
theName.Index(i);//We use this field to save a Seam Shape Index; Before this field was used for GENERATED only
found = Standard_True;
#ifdef MDTV_OR
- cout << "ORDER = " << i <<endl;
+ std::cout << "ORDER = " << i <<std::endl;
#endif
break;
}
aNamedShape = TNaming_Naming::Name(Naming->Label(),UC,Context, Geom, 1, aBNproblem);
theName.Append (aNamedShape);
#ifdef MDTV_OR
- cout << " Cont Label ==> "; Print_Entry(NS->Label());
+ std::cout << " Cont Label ==> "; Print_Entry(NS->Label());
#endif
}
//Naming->Update();
theName.ContextLabel(aNamedShape->Label());
if (Geom) return aNamedShape;
if(aNamedShape.IsNull()) {
- cout <<" %%% WARNING: TNaming_Naming::Name: FAILED"<<endl;
+ std::cout <<" %%% WARNING: TNaming_Naming::Name: FAILED"<<std::endl;
return BuildNS (F,S, TNaming_UNKNOWN);
}
if (!Geom && TestSolution(MDF, aNamedShape,S)) return aNamedShape;
- cout <<" %%% WARNING: TNaming_Naming::Name: FAILED"<<endl;
+ std::cout <<" %%% WARNING: TNaming_Naming::Name: FAILED"<<std::endl;
// Naming n is unsatisfactory
return BuildNS (F,S, TNaming_UNKNOWN);
if (!Geom && TestSolution(MDF,NS,S)) return NS;
}
- cout <<" %%% WARNING: TNaming_Naming::Name: FAILED"<<endl;
+ std::cout <<" %%% WARNING: TNaming_Naming::Name: FAILED"<<std::endl;
// Naming n is not satisfactory
return BuildNS (F,S, TNaming_UNKNOWN);
TDF_AttributeIndexedMap& /*aMap*/) const
{
anOS << "TNaming_Naming ExtendedDump ";
- //anOS<<"myContext: #" <<aMap.Add(myContext)<<endl;
+ //anOS<<"myContext: #" <<aMap.Add(myContext)<<std::endl;
}
*p = '-';
p++;
}
- ofstream save (buf);
+ std::ofstream save (buf);
if(!save)
- cout << "File " << buf << " was not created: rdstate = " << save.rdstate() << endl;
- save << "DBRep_DrawableShape" << endl << endl;
+ std::cout << "File " << buf << " was not created: rdstate = " << save.rdstate() << std::endl;
+ save << "DBRep_DrawableShape" << std::endl << std::endl;
if(!shape.IsNull()) BRepTools::Write(shape, save);
save.close();
}
#ifdef OCCT_DEBUG_DESC
TCollection_AsciiString entry;
TDF_Tool::Entry(Lab, entry);
- cout << "NamingTool:: LastModif LabelEntry = "<< entry << endl;
+ std::cout << "NamingTool:: LastModif LabelEntry = "<< entry << std::endl;
#endif
if (!Updated.IsEmpty() && !Updated.Contains(Lab)) continue;
if (IsForbiden(Forbiden, Lab)) continue;
{
#ifdef OCCT_DEBUG_APPLY
if (!MS.IsEmpty ()) {
- cout <<"OrientationToApply = " <<OrientationToApply <<endl;
+ std::cout <<"OrientationToApply = " <<OrientationToApply <<std::endl;
for (Standard_Integer anItMS1 = 1; anItMS1 <= MS.Extent(); ++anItMS1) {
- cout << "ApplyOrientation: TShape = " << MS (anItMS1).TShape()->This() << " OR = " << MS (anItMS1).Orientation() <<endl;
+ std::cout << "ApplyOrientation: TShape = " << MS (anItMS1).TShape()->This() << " OR = " << MS (anItMS1).Orientation() <<std::endl;
}
}
#endif
#ifdef OCCT_DEBUG_DESC
TCollection_AsciiString entry;
TDF_Tool::Entry(Lab, entry);
- cout << "NamingTool:: LabelEntry = "<< entry << endl;
+ std::cout << "NamingTool:: LabelEntry = "<< entry << std::endl;
#endif
if (!Valid.IsEmpty() && !Valid.Contains(Lab)) {
#ifdef OCCT_DEBUG_DESC
TCollection_AsciiString entry;
TDF_Tool::Entry(Lab, entry);
- cout << "NamingTool:: LabelEntry = "<< entry << " is out of Valid map" << endl;
+ std::cout << "NamingTool:: LabelEntry = "<< entry << " is out of Valid map" << std::endl;
#endif
return;
}
#ifdef OCCT_DEBUG_DESC
WriteS(S, "CS_NewShape.brep");
if(itL.OldShape().IsNull())
- cout <<"OldShape is Null" <<endl;
+ std::cout <<"OldShape is Null" <<std::endl;
else
WriteS(itL.OldShape(), "CS_OldShape.brep");
#endif
#ifdef OCCT_DEBUG_DESC
TCollection_AsciiString entry;
TDF_Tool::Entry(it.Label(), entry);
- cout<< "MakeDescendants: Label = " <<entry <<endl;
+ std::cout<< "MakeDescendants: Label = " <<entry <<std::endl;
#endif
if (!it.Shape().IsNull()) {
TNaming_NewShapeIterator it2(it);
#ifdef OCCT_DEBUG_DESC
TCollection_AsciiString entry;
TDF_Tool::Entry(it.Label(), entry);
- cout<< "MakeDescendants2: Label = " <<entry <<endl;
+ std::cout<< "MakeDescendants2: Label = " <<entry <<std::endl;
#endif
if(ForbLab == it.Label()) continue;
Descendants.Add(it.Label());
#ifdef OCCT_DEBUG_DESC
TCollection_AsciiString entry;
TDF_Tool::Entry(NS->Label(), entry);
- cout<< "MakeDescendants: Label = " <<entry <<endl;
+ std::cout<< "MakeDescendants: Label = " <<entry <<std::endl;
#endif
MakeDescendants (it,Descendants);
TNaming_OldShapeIterator it2(NS);
#ifdef OCCT_DEBUG_DESC
TCollection_AsciiString entry;
TDF_Tool::Entry(ONS->Label(), entry);
- cout<< "MakeDescendants_Old: Label = " <<entry <<endl;
+ std::cout<< "MakeDescendants_Old: Label = " <<entry <<std::endl;
#endif
BuildDescendants2(ONS, NS->Label(), Descendants);
}
{
TCollection_AsciiString entry;
TDF_Tool::Entry(label, entry);
- cout << "LabelEntry = "<< entry << endl;
+ std::cout << "LabelEntry = "<< entry << std::endl;
if(allLevels) {
TDF_ChildIterator it (label, allLevels);
for (; it.More(); it.Next()) {
TDF_Tool::Entry(it.Value(), entry);
- cout << "ChildLabelEntry = "<< entry << endl;
+ std::cout << "ChildLabelEntry = "<< entry << std::endl;
}
}
}
*p = '-';
p++;
}
- ofstream save (buf);
+ std::ofstream save (buf);
if(!save)
- cout << "File " << buf << " was not created: rdstate = " << save.rdstate() << endl;
- save << "DBRep_DrawableShape" << endl << endl;
+ std::cout << "File " << buf << " was not created: rdstate = " << save.rdstate() << std::endl;
+ save << "DBRep_DrawableShape" << std::endl << std::endl;
if(!shape.IsNull()) BRepTools::Write(shape, save);
save.close();
}
if(aS.IsNull()) continue;
#ifdef OCCT_DEBUG_BNP
PrintEntry(NS->Label(), 0);
- cout <<"ShapeType =" << aS.ShapeType() <<endl;
+ std::cout <<"ShapeType =" << aS.ShapeType() <<std::endl;
Write (aS, "BNProblem.brep");
#endif
if(aS.ShapeType() != TopAbs_COMPOUND) {//single shape at the child label
for(;it.More();it.Next()) {
if(!shapesOfContext.Contains(it.Key())) {
#ifdef OCCT_DEBUG_BNP
- cout <<"BNProblem: ShapeType in AtomicMap = " << it.Key().ShapeType() << " TShape = " <<it.Key().TShape() <<" OR = " <<it.Key().Orientation() <<endl;
+ std::cout <<"BNProblem: ShapeType in AtomicMap = " << it.Key().ShapeType() << " TShape = " <<it.Key().TShape() <<" OR = " <<it.Key().Orientation() <<std::endl;
Write (it.Key(), "BNProblem_AtomicMap_Item.brep");
TopTools_MapIteratorOfMapOfOrientedShape itC(shapesOfContext);
for(;itC.More(); itC.Next())
- cout <<" ShapeType = " << itC.Key().ShapeType() << " TShape = " << itC.Key().TShape() << " OR = " << itC.Key().Orientation() << endl;
+ std::cout <<" ShapeType = " << itC.Key().ShapeType() << " TShape = " << itC.Key().TShape() << " OR = " << itC.Key().Orientation() << std::endl;
#endif
isFound = Standard_True;
if(E.IsSame(Selection) && E.Orientation() != Selection.Orientation()) {
selection = E;
found = Standard_True;
- cout <<" FOUND: Entity orientation = " << selection.Orientation() <<endl;
+ std::cout <<" FOUND: Entity orientation = " << selection.Orientation() <<std::endl;
}
}
if (!found)
*/
#ifdef OCCT_DEBUG_SEL
- cout << "SELECTION ORIENTATION = " << Selection.Orientation() <<", TShape = " << Selection.TShape() <<endl;
- //cout << "SELECTION ORIENTATION = " << selection.Orientation() <<", TShape = " << selection.TShape() <<endl;
+ std::cout << "SELECTION ORIENTATION = " << Selection.Orientation() <<", TShape = " << Selection.TShape() <<std::endl;
+ //std::cout << "SELECTION ORIENTATION = " << selection.Orientation() <<", TShape = " << selection.TShape() <<std::endl;
PrintEntry(myLabel, 0);
- TNaming::Print(myLabel, cout);
+ TNaming::Print(myLabel, std::cout);
#endif
if(aKeepOrientation) {
if(!Selection.IsSame(aSelection) && Selection.ShapeType() != TopAbs_COMPOUND) {
TCollection_AsciiString entry;
TDF_Tool::Entry(NS->Label(), entry);
- cout << "Selection is Not Same (NSLabel = " <<entry<<"): TShape1 = " <<
- Selection.TShape()->This() << " TShape2 = " <<aSelection.TShape()->This() <<endl;
+ std::cout << "Selection is Not Same (NSLabel = " <<entry<<"): TShape1 = " <<
+ Selection.TShape()->This() << " TShape2 = " <<aSelection.TShape()->This() <<std::endl;
}
#endif
if(aSelection.ShapeType() == TopAbs_COMPOUND && aSelection.ShapeType() != Selection.ShapeType())
{
Handle(TNaming_Naming) name;
#ifdef OCCT_DEBUG_SEL
- cout <<"TNaming_Selector::Solve==> ";
+ std::cout <<"TNaming_Selector::Solve==> ";
PrintEntry(myLabel,0);
#endif
if (myLabel.FindAttribute(TNaming_Naming::GetID(),name)) {
{
if (CS.IsNull()) return;
#ifdef OCCT_DEBUG_INT
- cout << "ShapeSet: CS TShape = " <<CS.TShape() << " Type = " << Type <<endl;
+ std::cout << "ShapeSet: CS TShape = " <<CS.TShape() << " Type = " << Type <<std::endl;
#endif
if (Type == TopAbs_SHAPE) {
if (CS.ShapeType() == TopAbs_SOLID ||
for (TopExp_Explorer exp(CS,Type) ; exp.More(); exp.Next()) {
Add(exp.Current());
#ifdef OCCT_DEBUG_INT
- cout << "ShapeSet: sub-shape TShape = " <<exp.Current().TShape() <<endl;
+ std::cout << "ShapeSet: sub-shape TShape = " <<exp.Current().TShape() <<std::endl;
#endif
}
} else {
const TDF_Label& Acces)
{
Handle(TNaming_NamedShape) NS = TNaming_Tool::NamedShape(S,Acces);
- NS->Label().EntryDump(cout);
- cout<<endl;
+ NS->Label().EntryDump(std::cout);
+ std::cout<<std::endl;
}
#include <BRepTools.hxx>
Handle(TNaming_Naming) aNaming;
if (!Arg->FindAttribute(TNaming_Naming::GetID(), aNaming)) {
#ifdef OCCT_DEBUG
-// cout<<"TNaming_Tool::FindShape(): Naming attribute hasn't been found attached at the Argument label"<<endl;
+// std::cout<<"TNaming_Tool::FindShape(): Naming attribute hasn't been found attached at the Argument label"<<std::endl;
#endif
return;
}
TopExp_Explorer anExpl(Arg->Get(), (TopAbs_ShapeEnum)((int)(aNaming->GetName().ShapeType()) + 1));
for (; anExpl.More(); anExpl.Next()) subShapes.Add(anExpl.Current());
#ifdef OCCT_DEBUG
-// cout<<"TNaming_Tool::FindShape(): Nb of sub shapes = "<<subShapes.Extent()<<endl;
+// std::cout<<"TNaming_Tool::FindShape(): Nb of sub shapes = "<<subShapes.Extent()<<std::endl;
#endif
// Looking for external arguments:
TDF_Tool::OutReferences(Arg->Label(), outRefs);
if (outRefs.IsEmpty()) {
#ifdef OCCT_DEBUG
-// cout<<"TNaming_Tool::FindShape(): No out references have been found"<<endl;
+// std::cout<<"TNaming_Tool::FindShape(): No out references have been found"<<std::endl;
#endif
return;
}
extArgs.Append(aCurrentExtArg);
#ifdef OCCT_DEBUG
// if (extArgs.Extent() - 1 == nbExtArgs) {
-// cout<<"TNaming_Tool::FindShape(): An external reference has been found at ";
-// itr.Key()->Label().EntryDump(cout); cout<<endl;
+// std::cout<<"TNaming_Tool::FindShape(): An external reference has been found at ";
+// itr.Key()->Label().EntryDump(std::cout); std::cout<<std::endl;
// }
#endif
}
!anExtArg->Label().Father().FindAttribute(TNaming_NamedShape::GetID(), aContextNS)) {
aContextNS = anExtArg;
// #ifdef OCCT_DEBUG
-// cout<<"TNaming_Tool::FindShape(): A context shape hasn't been found at the father label of the external argument"<<endl;
+// std::cout<<"TNaming_Tool::FindShape(): A context shape hasn't been found at the father label of the external argument"<<std::endl;
// #endif
// continue;
}
#ifdef OCCT_DEBUG
-// cout<<"TNaming_Tool::FindShape(): Searching in the external reference ";
-// aContextNS->Label().EntryDump(cout); cout<<" ";
+// std::cout<<"TNaming_Tool::FindShape(): Searching in the external reference ";
+// aContextNS->Label().EntryDump(std::cout); std::cout<<" ";
#endif
// Lets find the sub shape of the context which coincides with our sub shapes (subShapes map):
for (TopTools_MapIteratorOfMapOfShape itrR(subShapesOfResult); itrR.More(); itrR.Next()) {
for (TopTools_MapIteratorOfMapOfShape itr1(subShapes); itr1.More(); itr1.Next()) {
if (itrR.Key().IsSame(itr1.Key())) {
- DoesCoincide++; //cout<<".";
+ DoesCoincide++; //std::cout<<".";
break;
}
}
}
if (DoesCoincide == subShapes.Extent()) {
#ifdef OCCT_DEBUG
-// cout<<"TNaming_Tool::FindShape(): Found! ";
+// std::cout<<"TNaming_Tool::FindShape(): Found! ";
#endif
S = possibleResult;
break;
if (!S.IsNull()) break;
#ifdef OCCT_DEBUG
-// cout<<endl;
+// std::cout<<std::endl;
#endif
}
#ifdef OCCT_DEBUG
if (S.IsNull()) {
- cout<<"TNaming_Tool::FindShape(): There hasn't been found a sub shape of the context shape coinciding with the sub shapes of naming"<<endl;
+ std::cout<<"TNaming_Tool::FindShape(): There hasn't been found a sub shape of the context shape coinciding with the sub shapes of naming"<<std::endl;
}
#endif
// Representations
BRep_ListIteratorOfListOfPointRepresentation itpr(TTV1->Points());
-// cout << "Vertex List Extent = "<< TTV1->Points().Extent()<< endl;// == 0 ???
+// std::cout << "Vertex List Extent = "<< TTV1->Points().Extent()<< std::endl;// == 0 ???
BRep_ListOfPointRepresentation& lpr = TTV2->ChangePoints();
lpr.Clear();
if (!myMap.Extent()) return;
else
- cout <<"TNaming_Translator:: IndexedDataMap Extent = "<< myMap.Extent() << endl;
+ std::cout <<"TNaming_Translator:: IndexedDataMap Extent = "<< myMap.Extent() << std::endl;
for (Standard_Integer i=1; i <= myMap.Extent(); i++)
{
- cout <<"TNaming_Translator::DumpMap: Index = "<< i << " Type = "<< (myMap.FindKey(i))->DynamicType() << endl;
+ std::cout <<"TNaming_Translator::DumpMap: Index = "<< i << " Type = "<< (myMap.FindKey(i))->DynamicType() << std::endl;
Handle(Standard_Type) T = (myMap.FindKey(i))->DynamicType();
if((T == STANDARD_TYPE (BRep_TVertex)) ||(T == STANDARD_TYPE (BRep_TEdge)) ||
T == STANDARD_TYPE (BRep_TFace)|| T == STANDARD_TYPE (TopoDS_TWire)||
if(isWrite) {
const Handle(TopLoc_Datum3D) key = Handle(TopLoc_Datum3D)::DownCast(myMap.FindKey(i));
const Handle(TopLoc_Datum3D) Item = Handle(TopLoc_Datum3D)::DownCast(myMap.FindFromIndex(i));
- cout << "TNaming_Translator::DumpMap: Location_Key_name = "<< keyname.Cat(i).ToCString()<< endl;
- key->ShallowDump(cout);
- cout << "TNaming_Translator::DumpMap: Location_Item_name = "<< itemname.Cat(i).ToCString()<< endl;
- Item->ShallowDump(cout);
+ std::cout << "TNaming_Translator::DumpMap: Location_Key_name = "<< keyname.Cat(i).ToCString()<< std::endl;
+ key->ShallowDump(std::cout);
+ std::cout << "TNaming_Translator::DumpMap: Location_Item_name = "<< itemname.Cat(i).ToCString()<< std::endl;
+ Item->ShallowDump(std::cout);
}
}
else {
- cout <<"TNaming_Translator::DumpMap: Unexpected Type >> Idex = "<< i << " Type = "<<(myMap.FindKey(i))->DynamicType()<< endl;
+ std::cout <<"TNaming_Translator::DumpMap: Unexpected Type >> Idex = "<< i << " Type = "<<(myMap.FindKey(i))->DynamicType()<< std::endl;
continue;
}
}
Standard_OStream& TNaming_UsedShapes::Dump(Standard_OStream& anOS) const
{
- anOS<<"The content of UsedShapes attribute:"<<endl;
+ anOS<<"The content of UsedShapes attribute:"<<std::endl;
TNaming_DataMapIteratorOfDataMapOfShapePtrRefShape itr(myMap);
for (; itr.More(); itr.Next()) {
if (itr.Key().IsNull())
{
anOS << "Empty Shape at label =";
itr.Value()->Label().EntryDump(anOS);
- anOS << endl;
+ anOS << std::endl;
continue;
}
anOS << " ";
itr.Value()->Label().EntryDump(anOS);
anOS << " Key_TShape = " <<itr.Key().TShape()->This();
anOS << " Value_TShape = " <<itr.Value()->Shape().TShape()->This();
- anOS<<endl;
+ anOS<<std::endl;
}
return anOS;
}
TObj_DataMapOfStringPointer::Iterator it ( getMapOfTypes() );
for ( ; it.More(); it.Next() )
{
- theOs << it.Key() << endl;
+ theOs << it.Key() << std::endl;
}
}
if (aGeomNum < 1 || aGeomNum > 2)
{
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeDistance: 1 or 2 geometries are needed" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeDistance: 1 or 2 geometries are needed" << std::endl;
#endif
NullifyAIS(theAIS);
return;
if (aShape1.IsNull())
{
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeDistance : null shape" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeDistance : null shape" << std::endl;
#endif
NullifyAIS (theAIS);
return;
if (aShape1.IsNull() || aShape2.IsNull())
{
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeDistance : null shape" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeDistance : null shape" << std::endl;
#endif
NullifyAIS (theAIS);
return;
if (aShape1.ShapeType () != TopAbs_EDGE)
{
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeDistance : shape should be edge" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeDistance : shape should be edge" << std::endl;
#endif
NullifyAIS (theAIS);
return;
if (isCheckPlane && aPlane.IsNull())
{
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeDistance : null plane" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeDistance : null plane" << std::endl;
#endif
NullifyAIS (theAIS);
return;
Standard_Integer nbgeom = aConst->NbGeometries();
if (nbgeom < 2) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputePerpendicular: at leat two constraintes are needed" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputePerpendicular: at leat two constraintes are needed" << std::endl;
#endif
NullifyAIS(anAIS);
return;
else GetTwoShapes(aConst,shape1,shape2);
if (shape1.IsNull() || shape2.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputePerpendicular : null shape" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputePerpendicular : null shape" << std::endl;
#endif
NullifyAIS(anAIS);
return;
Handle(Geom_Plane) aplane = Handle(Geom_Plane)::DownCast(ageom3);
if (aplane.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputePerpendicular: nul plane" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputePerpendicular: nul plane" << std::endl;
#endif
NullifyAIS(anAIS);
return;
Standard_Integer nbgeom = aConst->NbGeometries();
if (nbgeom < 2) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeParallel: at least 2 constraintes are needed" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeParallel: at least 2 constraintes are needed" << std::endl;
#endif
NullifyAIS(anAIS);
return;
if (!aConst->IsPlanar()) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeParallel: must be a planar constraint" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeParallel: must be a planar constraint" << std::endl;
#endif
NullifyAIS(anAIS);
return;
GetShapesAndGeom(aConst,shape1,shape2,ageom3);
if (shape1.IsNull() || shape2.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeParallel : null shape" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeParallel : null shape" << std::endl;
#endif
NullifyAIS(anAIS);
return;
Handle(Geom_Plane) aplane = Handle(Geom_Plane)::DownCast(ageom3);
if (aplane.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeParallel: nul plane" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeParallel: nul plane" << std::endl;
#endif
NullifyAIS(anAIS);
return;
Standard_Integer nbgeom = aConst->NbGeometries();
if (nbgeom < 3) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeSymmetry: at least 3 constraintes are needed" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeSymmetry: at least 3 constraintes are needed" << std::endl;
#endif
NullifyAIS(anAIS);
return;
Standard_Boolean is_planar(aConst->IsPlanar());
if (!is_planar) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeSymmetry: must be a planar constraint" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeSymmetry: must be a planar constraint" << std::endl;
#endif
NullifyAIS(anAIS);
return;
if (shape1.IsNull() || shape2.IsNull() || shape3.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeSymmetry : null shape" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeSymmetry : null shape" << std::endl;
#endif
NullifyAIS(anAIS);
return;
Handle(Geom_Plane) aplane = Handle(Geom_Plane)::DownCast(ageom3);
if (aplane.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeSymmetry: null plane" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeSymmetry: null plane" << std::endl;
#endif
NullifyAIS(anAIS);
return;
if (nbgeom < 3)
{
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeSymmetry: at least 3 constraints are needed" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeSymmetry: at least 3 constraints are needed" << std::endl;
#endif
NullifyAIS(anAIS);
return;
if ( !is_planar )
{
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeSymmetry: must be a planar constraint" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeSymmetry: must be a planar constraint" << std::endl;
#endif
NullifyAIS(anAIS);
return;
if (shape1.IsNull() || shape2.IsNull() || shape3.IsNull())
{
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeSymmetry : null shape" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeSymmetry : null shape" << std::endl;
#endif
NullifyAIS(anAIS);
return;
if (aplane.IsNull())
{
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeSymmetry: null plane" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeSymmetry: null plane" << std::endl;
#endif
NullifyAIS(anAIS);
return;
Standard_Integer nbgeom = aConst->NbGeometries();
if (nbgeom < 2) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeTangent: at leat two constraintes are needed" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeTangent: at leat two constraintes are needed" << std::endl;
#endif
NullifyAIS(anAIS);
return;
}
if (!aConst->IsPlanar()) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeTangent: must be a planar constraint" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeTangent: must be a planar constraint" << std::endl;
#endif
NullifyAIS(anAIS);
return;
GetShapesAndGeom(aConst,shape1,shape2,ageom3);
if (shape1.IsNull() || shape2.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeTangent : null shape" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeTangent : null shape" << std::endl;
#endif
NullifyAIS(anAIS);
return;
Handle(Geom_Plane) aplane = Handle(Geom_Plane)::DownCast(ageom3);
if (aplane.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeTangent: nul plane" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeTangent: nul plane" << std::endl;
#endif
NullifyAIS(anAIS);
return;
GetOneShape( aConst, shape );
if (shape.IsNull() ) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeAngleForOneFace : null shape" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeAngleForOneFace : null shape" << std::endl;
#endif
NullifyAIS(anAIS);
return;
}
}
#ifdef OCCT_DEBUG
- cout << "TPrsStd::Compute angle : Shape is not Compound or is Null" <<endl;
+ std::cout << "TPrsStd::Compute angle : Shape is not Compound or is Null" <<std::endl;
#endif
return (Standard_False);
}
if (nbgeom < 2) {
if( nbgeom == 1 ) { ComputeAngleForOneFace( aConst, anAIS ); return; }
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeAngle: at least 2 constraints are needed" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeAngle: at least 2 constraints are needed" << std::endl;
#endif
NullifyAIS(anAIS);
return;
GetShapesAndGeom (aConst,shape1,shape2,ageom3);
if (shape1.IsNull() || shape2.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeAngle : null shape" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeAngle : null shape" << std::endl;
#endif
NullifyAIS(anAIS);
return;
else
if(!CheckIsShapeCompound(shape1, aFace)) {
#ifdef OCCT_DEBUG
- cout << "Compute angle : Geom type = " << shape1.ShapeType()
- << " non traite"<<endl;
+ std::cout << "Compute angle : Geom type = " << shape1.ShapeType()
+ << " non traite"<<std::endl;
#endif
NullifyAIS(anAIS);
return;
anax1aFace1 = aTore.Axis();
} else {
#ifdef OCCT_DEBUG
- cout<<"Compute angle"<<aTypeaFace<<" non traite"<<endl;
+ std::cout<<"Compute angle"<<aTypeaFace<<" non traite"<<std::endl;
#endif
NullifyAIS(anAIS);
return;
else
if(!CheckIsShapeCompound(shape2, aFace)) {
#ifdef OCCT_DEBUG
- cout << "Compute angle : Geom type = " << shape2.ShapeType()
- << " non traite"<<endl;
+ std::cout << "Compute angle : Geom type = " << shape2.ShapeType()
+ << " non traite"<<std::endl;
#endif
NullifyAIS(anAIS);
return;
anax1aFace2 = aTore.Axis();
} else {
#ifdef OCCT_DEBUG
- cout << "Compute angle " << aTypeaFace << " non traite"<<endl;
+ std::cout << "Compute angle " << aTypeaFace << " non traite"<<std::endl;
#endif
NullifyAIS(anAIS);
return;
ageom3 = computedgeom3;
} else {
#ifdef OCCT_DEBUG
- cout<<"Compute angle insertection of planes failed"<<endl;
+ std::cout<<"Compute angle insertection of planes failed"<<std::endl;
#endif
NullifyAIS(anAIS);
return;
} else {
#ifdef OCCT_DEBUG
- cout<<"Compute angle faces are //"<<endl;
+ std::cout<<"Compute angle faces are //"<<std::endl;
#endif
NullifyAIS(anAIS);
return;
else if (ageom3->IsKind(STANDARD_TYPE(Geom_Line))) isplan = Standard_False;
else {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeAngle: unknown 3rd arg " << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeAngle: unknown 3rd arg " << std::endl;
#endif
NullifyAIS(anAIS);
return;
}
if (!aConst->IsPlanar()) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeConcentric: must be a planar constraint" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeConcentric: must be a planar constraint" << std::endl;
#endif
NullifyAIS(anAIS);
return;
GetShapesAndGeom(aConst,shape1,shape2,ageom3);
if (shape1.IsNull() || shape2.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeConcentric : null shape" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeConcentric : null shape" << std::endl;
#endif
NullifyAIS(anAIS);
return;
//ota : to allow concentric constraint display between vertex and edge
if (shape1.ShapeType() != TopAbs_EDGE && shape2.ShapeType() != TopAbs_EDGE) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeConcentric: concentric between two vertexes : NOT DISPLAYED" << endl;;
+ std::cout << "TPrsStd_ConstraintTools::ComputeConcentric: concentric between two vertexes : NOT DISPLAYED" << std::endl;;
#endif
NullifyAIS(anAIS);
return;
Handle(Geom_Plane) aplane = Handle(Geom_Plane)::DownCast(ageom3);
if (aplane.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeConcentric: nul plane" << endl;;
+ std::cout << "TPrsStd_ConstraintTools::ComputeConcentric: nul plane" << std::endl;;
#endif
NullifyAIS(anAIS);
return;
Standard_Integer nbgeom = aConst->NbGeometries();
if (nbgeom < 1) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeRadius: at least one constrainte is needed" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeRadius: at least one constrainte is needed" << std::endl;
#endif
NullifyAIS(anAIS);
return;
GetOneShape (aConst,shape1);
if (shape1.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeRadius: null shape" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeRadius: null shape" << std::endl;
#endif
NullifyAIS(anAIS);
return;
shape1.ShapeType()==TopAbs_SOLID ||
shape1.ShapeType()==TopAbs_SHELL ) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeRadius: not good shape" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeRadius: not good shape" << std::endl;
#endif
NullifyAIS(anAIS);
return;
Handle(Geom_Plane) aplane = Handle(Geom_Plane)::DownCast(ageom2);
if (aplane.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeRadius: nul plane" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeRadius: nul plane" << std::endl;
#endif
NullifyAIS(anAIS);
return;
Standard_Integer nbgeom = aConst->NbGeometries();
if (nbgeom < 1) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeMinRadius: at least one constrainte is needed" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeMinRadius: at least one constrainte is needed" << std::endl;
#endif
NullifyAIS(anAIS);
return;
GetOneShape (aConst,shape1);
if (shape1.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeMinradius: null shape" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeMinradius: null shape" << std::endl;
#endif
NullifyAIS(anAIS);
return;
shape1.ShapeType()==TopAbs_SOLID ||
shape1.ShapeType()==TopAbs_SHELL ) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeMinRadius: not good shape" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeMinRadius: not good shape" << std::endl;
#endif
NullifyAIS(anAIS);
return;
Handle(Geom_Plane) aplane = Handle(Geom_Plane)::DownCast(ageom2);
if (aplane.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeMinRadius: nul plane" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeMinRadius: nul plane" << std::endl;
#endif
NullifyAIS(anAIS);
return;
Standard_Integer nbgeom = aConst->NbGeometries();
if (nbgeom < 1) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeMaxRadius: at least one constrainte is needed" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeMaxRadius: at least one constrainte is needed" << std::endl;
#endif
NullifyAIS(anAIS);
return;
GetOneShape (aConst,shape1);
if (shape1.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeMaxradius: null shape" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeMaxradius: null shape" << std::endl;
#endif
NullifyAIS(anAIS);
return;
shape1.ShapeType()==TopAbs_SOLID ||
shape1.ShapeType()==TopAbs_SHELL ) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeMaxRadius: not good shape" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeMaxRadius: not good shape" << std::endl;
#endif
NullifyAIS(anAIS);
return;
Handle(Geom_Plane) aplane = Handle(Geom_Plane)::DownCast(ageom2);
if (aplane.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeMaxRadius: nul plane" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeMaxRadius: nul plane" << std::endl;
#endif
NullifyAIS(anAIS);
return;
Standard_Integer nbgeom = aConst->NbGeometries();
if (nbgeom < 4) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeEqual: at least four geometries are needed" << endl;;
+ std::cout << "TPrsStd_ConstraintTools::ComputeEqual: at least four geometries are needed" << std::endl;;
#endif
NullifyAIS(anAIS);
return;
if (aShape1.IsNull()||aShape2.IsNull()||
aShape3.IsNull()||aShape4.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeEqualDistance : null shape" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeEqualDistance : null shape" << std::endl;
#endif
NullifyAIS(anAIS);
return;
if (!CheckShapesPair(aShape1, aShape2) ||
!CheckShapesPair(aShape3, aShape4)){
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeEqualDistance : at least one pair of shapes is incorrect"<<endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeEqualDistance : at least one pair of shapes is incorrect"<<std::endl;
#endif
NullifyAIS(anAIS);
return;
if (!IsPlanar || aPlane.IsNull()) {
//create the plane
#ifdef OCCT_DEBUG
- cout<< "The constraint plane is not assigned "<< endl;
+ std::cout<< "The constraint plane is not assigned "<< std::endl;
#endif
NullifyAIS(anAIS);
return;
gp_Dir aDir2 = aCurve2.Line().Direction();
if (!(aDir1.IsParallel(aDir2, Precision::Confusion()))) {
#ifdef OCCT_DEBUG
- cout << " Lines are not parallel"<<endl;
+ std::cout << " Lines are not parallel"<<std::endl;
#endif
return Standard_False;
}
gp_Pnt aCntr2 = aCurve2.Circle().Location(); //get the circle center
if (!aCntr1.IsEqual(aCntr2,Precision::Confusion())){
#ifdef OCCT_DEBUG
- cout << " Circles are not concentric"<<endl;
+ std::cout << " Circles are not concentric"<<std::endl;
#endif
return Standard_False;
}
}
else {
#ifdef OCCT_DEBUG
- cout << "Incorrect pair of curves "<<endl;
+ std::cout << "Incorrect pair of curves "<<std::endl;
#endif
return Standard_False;
}
gp_Pnt aCntr = aCurve.Circle().Location();
if (!aCntr.IsEqual(aPnt, Precision::Confusion())){
#ifdef OCCT_DEBUG
- cout << " The point doesn't coincide with the circle center"<<endl;
+ std::cout << " The point doesn't coincide with the circle center"<<std::endl;
#endif
return Standard_False;
}
Standard_Integer nbgeom = aConst->NbGeometries();
if (nbgeom < 2) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeEqualRadius: at least two geometries are needed" << endl;;
+ std::cout << "TPrsStd_ConstraintTools::ComputeEqualRadius: at least two geometries are needed" << std::endl;;
#endif
NullifyAIS(anAIS);
return;
GetShapesAndGeom(aConst, shape1, shape2, ageom3);
if (shape1.IsNull()||shape2.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeEqualRadius : null shape" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeEqualRadius : null shape" << std::endl;
#endif
NullifyAIS(anAIS);
return;
aplane = aPlane2;
else {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeRadiusRelation: nul plane" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeRadiusRelation: nul plane" << std::endl;
#endif
NullifyAIS(anAIS);
return;
Standard_Integer nbgeom = aConst->NbGeometries();
if (nbgeom < 1) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeDiameter: at least one constrainte is needed" << endl;;
+ std::cout << "TPrsStd_ConstraintTools::ComputeDiameter: at least one constrainte is needed" << std::endl;;
#endif
NullifyAIS(anAIS);
return;
GetOneShape(aConst,shape1);
if (shape1.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeDiameter : null shape" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeDiameter : null shape" << std::endl;
#endif
NullifyAIS(anAIS);
return;
Handle(Geom_Plane) aplane = Handle(Geom_Plane)::DownCast(ageom2);
if (aplane.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeDiameter: nul plane" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeDiameter: nul plane" << std::endl;
#endif
NullifyAIS(anAIS);
return;
Standard_Integer nbgeom = aConst->NbGeometries();
if (nbgeom < 1) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeFix: at least one constrainte is needed" << endl;;
+ std::cout << "TPrsStd_ConstraintTools::ComputeFix: at least one constrainte is needed" << std::endl;;
#endif
NullifyAIS(anAIS);
return;
}
if (!aConst->IsPlanar()) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeFix: must be a planar constraint" << endl;;
+ std::cout << "TPrsStd_ConstraintTools::ComputeFix: must be a planar constraint" << std::endl;;
#endif
NullifyAIS(anAIS);
return;
GetOneShape(aConst,shape1);
if (shape1.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeFix : null shape" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeFix : null shape" << std::endl;
#endif
NullifyAIS(anAIS);
return;
Handle(Geom_Plane) aplane = Handle(Geom_Plane)::DownCast(ageom2);
if (aplane.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeFix: nul plane" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeFix: nul plane" << std::endl;
#endif
NullifyAIS(anAIS);
return;
aplane = Handle(Geom_Plane)::DownCast (ageom);
if (aplane.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeOffset: null plane" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeOffset: null plane" << std::endl;
#endif
NullifyAIS(anAIS);
return;
if (S1.IsNull() || S2.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeOffset: null shape" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeOffset: null shape" << std::endl;
#endif
NullifyAIS(anAIS);
return;
}
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeOffset: Case not implemented" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeOffset: Case not implemented" << std::endl;
#endif
NullifyAIS(anAIS);
}
GetTwoShapes(aConst,shape1,shape2);
if (shape1.IsNull() || shape2.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputePlacement: nul shape" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputePlacement: nul shape" << std::endl;
#endif
NullifyAIS(anAIS);
return;
Standard_Integer nbgeom = aConst->NbGeometries();
if (nbgeom < 2) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeCoincident: at leat two constraintes are needed" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeCoincident: at leat two constraintes are needed" << std::endl;
#endif
NullifyAIS(anAIS);
return;
if (!aConst->IsPlanar()) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeCoincident: must be a planar constraint" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeCoincident: must be a planar constraint" << std::endl;
#endif
anAIS.Nullify() ;
return;
Handle(Geom_Plane) aplane = Handle(Geom_Plane)::DownCast (ageom);
if (shape1.IsNull() || shape2.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeCoincident: nul shape" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeCoincident: nul shape" << std::endl;
#endif
NullifyAIS(anAIS);
return;
GetGoodShape(shape2);
if (aplane.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeCoincident: nul plane" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeCoincident: nul plane" << std::endl;
#endif
NullifyAIS(anAIS);
return;
Standard_Integer nbgeom = aConst->NbGeometries();
if (nbgeom < 1) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputeRound: at leat one geometry is needed" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputeRound: at leat one geometry is needed" << std::endl;
#endif
NullifyAIS(anAIS);
return;
GetOneShape (aConst,shape1);
if (shape1.IsNull()) {
#ifdef OCCT_DEBUG
- cout << "TPrsStd_ConstraintTools::ComputePlacement: nul shape" << endl;
+ std::cout << "TPrsStd_ConstraintTools::ComputePlacement: nul shape" << std::endl;
#endif
NullifyAIS(anAIS);
return;
Handle(TNaming_NamedShape) atgeom = aConst->GetPlane();
if (atgeom.IsNull()) {
#ifdef OCCT_DEBUG
- cout<<"TPrsStd_ConstraintTools::GetGeom : aConst->GetPlane().IsNull()"<<endl;
+ std::cout<<"TPrsStd_ConstraintTools::GetGeom : aConst->GetPlane().IsNull()"<<std::endl;
#endif
return;
}
else if (TDataXtd_Geometry::Point(label,apoint)) aGeom = new Geom_CartesianPoint(apoint);
#ifdef OCCT_DEBUG
else {
- cout << "TPrsStd_ConstraintTools::GetGeom no geom on label " << endl;
+ std::cout << "TPrsStd_ConstraintTools::GetGeom no geom on label " << std::endl;
}
#endif
}
{
drivertable = new TPrsStd_DriverTable;
#ifdef OCCT_DEBUG
- cout << "The new TPrsStd_DriverTable was created" << endl;
+ std::cout << "The new TPrsStd_DriverTable was created" << std::endl;
#endif
}
return drivertable;
const TopAbs_Orientation) {
if(!isSet) {
#ifdef OCCT_DEBUG
- cout<<" Call to TopClass_Classifier3d::Compare without a Reset ! ";
+ std::cout<<" Call to TopClass_Classifier3d::Compare without a Reset ! ";
#endif
return;
}
if(Abs(myParam)<=myTolerance) {
//-- #########################################
#ifdef OCCT_DEBUG
- cout<<" myParam = "<<myParam<<" ds TopClass_Classifier3d.gxx "<<endl;
+ std::cout<<" myParam = "<<myParam<<" ds TopClass_Classifier3d.gxx "<<std::endl;
#endif
//-- #########################################
myState = TopAbs_ON;
}
#ifdef OCCT_DEBUG
else {
- cout<<" -------- Probleme ds TopClass_Classifier3d.gxx "<<endl;
+ std::cout<<" -------- Probleme ds TopClass_Classifier3d.gxx "<<std::endl;
}
#endif
}
#ifdef OCCT_DEBUG
if (trace) {
//-- #########################################
- cout<<" parmin = "<<parmin<< " avec Par = "<<Par;
- cout<<" ds TopClass_SolidClassifier.gxx "<<endl;
+ std::cout<<" parmin = "<<parmin<< " avec Par = "<<Par;
+ std::cout<<" ds TopClass_SolidClassifier.gxx "<<std::endl;
//-- #########################################
}
#endif
}
else {
#ifdef OCCT_DEBUG
- cout<<"*Probleme ds TopClass_SolidClassifier.gxx"<<endl;
+ std::cout<<"*Probleme ds TopClass_SolidClassifier.gxx"<<std::endl;
#endif
}
myFace = Intersector.Face();
}
else {
#ifdef OCCT_DEBUG
- cout<<"*Probleme ds TopClass_SolidClassifier.gxx "<<endl;
+ std::cout<<"*Probleme ds TopClass_SolidClassifier.gxx "<<std::endl;
#endif
}
#ifdef OCCT_DEBUG
return TopAbs_REVERSED;
#ifdef OCCT_DEBUG
else
- cout << "\n*** Complex Transition : unprocessed state"<<endl;
+ std::cout << "\n*** Complex Transition : unprocessed state"<<std::endl;
#endif
}
else if (Bef == TopAbs_OUT) {
return TopAbs_EXTERNAL;
#ifdef OCCT_DEBUG
else
- cout << "\n*** Complex Transition : unprocessed state"<<endl;
+ std::cout << "\n*** Complex Transition : unprocessed state"<<std::endl;
#endif
}
#ifdef OCCT_DEBUG
else
- cout << "\n*** Complex Transition : unprocessed state"<<endl;
+ std::cout << "\n*** Complex Transition : unprocessed state"<<std::endl;
#endif
return TopAbs_INTERNAL;
}
void TopLoc_Datum3D::ShallowDump(Standard_OStream& S) const
{
- S << " TopLoc_Datum3D " << (void*)this << endl;
+ S << " TopLoc_Datum3D " << (void*)this << std::endl;
Standard_Integer i;
gp_Trsf T = myTrsf;
for (i = 1; i<=3; i++) {
- S<<" ( "<<setw(10)<<T.Value(i,1);
- S<<","<<setw(10)<<T.Value(i,2);
- S<<","<<setw(10)<<T.Value(i,3);
- S<<","<<setw(10)<<T.Value(i,4);
+ S<<" ( "<<std::setw(10)<<T.Value(i,1);
+ S<<","<<std::setw(10)<<T.Value(i,2);
+ S<<","<<std::setw(10)<<T.Value(i,3);
+ S<<","<<std::setw(10)<<T.Value(i,4);
S<<")\n";
}
- S << endl;
+ S << std::endl;
}
{
S << "TopLoc_Location : ";
TopLoc_SListOfItemLocation items = myItems;
- if (items.IsEmpty()) S << "Identity"<<endl;
+ if (items.IsEmpty()) S << "Identity"<<std::endl;
while (items.More()) {
S<<"\n";
- S << " Exponent : " << items.Value().myPower <<endl;
+ S << " Exponent : " << items.Value().myPower <<std::endl;
items.Value().myDatum->ShallowDump(S);
items.Next();
}
static int Vdebfilleref=0;void debfilleref(void){Vdebfilleref++;}
static int Vdebfillerfe=0;void debfillerfe(void){Vdebfillerfe++;}
void debfillerreset(void){Vdebfillerds=Vdebfillerff=Vdebfilleree=Vdebfilleref=Vdebfillerfe=0;}
-void debfillerss(const Standard_Integer i1,const Standard_Integer i2){cout<<"+ + + + debfillerss "<<i1<<" "<<i2<<endl;}
+void debfillerss(const Standard_Integer i1,const Standard_Integer i2){std::cout<<"+ + + + debfillerss "<<i1<<" "<<i2<<std::endl;}
#include <TopOpeBRepTool_KRO.hxx>
Standard_EXPORT TOPKRO KRO_DSFILLER_TOTAL("dsfiller");
Standard_Real par2; Standard_Boolean ok = FUN_tool_parE(e1,par1,e2,par2);
if (!ok) {
#ifdef OCCT_DEBUG
- cout<<"**********TopOpeBRep FUN_shareNOG**********"<<endl;
+ std::cout<<"**********TopOpeBRep FUN_shareNOG**********"<<std::endl;
#endif
return Standard_False;
}
InsertIntersection(aS1,aS2,HDS,orientFORWARD);
Complete(HDS);
#ifdef OCCT_DEBUG
- if (TopOpeBRepTool_GettraceEND()) cout<<"DSFiller::Insert"<<endl;
+ if (TopOpeBRepTool_GettraceEND()) std::cout<<"DSFiller::Insert"<<std::endl;
#endif
} // Insert
#ifdef OCCT_DEBUG
Standard_Boolean tsiff = TopOpeBRep_GettraceSIFF();
Standard_Boolean tkro = TopOpeBRepTool_GettraceKRO();
- if (tsiff) SIFF.Start("DSFiller debut tsif ",cout);
+ if (tsiff) SIFF.Start("DSFiller debut tsif ",std::cout);
if (tkro) { FUN_RESET_KRO_DSFILLER(); KRO_DSFILLER_TOTAL.Start(); }
#endif
FDSSDM_prepare(HDS);
#ifdef OCCT_DEBUG
- if (tkro) KRO_DSFILLER_TOTAL.Stop();if (tsiff) SIFF.End("DSFiller fin tsif ",cout);
+ if (tkro) KRO_DSFILLER_TOTAL.Stop();if (tsiff) SIFF.End("DSFiller fin tsif ",std::cout);
#endif
#ifdef OCCT_DEBUG
- if (TopOpeBRepTool_GettraceEND()) cout<<"DSFiller::InsertIntersection"<<endl;
+ if (TopOpeBRepTool_GettraceEND()) std::cout<<"DSFiller::InsertIntersection"<<std::endl;
#endif
} // InsertIntersection
RemoveUnsharedGeometry(HDS);
Checker(HDS);
#ifdef OCCT_DEBUG
- if (TopOpeBRepTool_GettraceEND()) cout<<"DSFiller::Complete"<<endl;
+ if (TopOpeBRepTool_GettraceEND()) std::cout<<"DSFiller::Complete"<<std::endl;
#endif
} // Complete
{
TopOpeBRepDS_GapFiller GF(HDS); GF.Perform();
#ifdef OCCT_DEBUG
- if (TopOpeBRepTool_GettraceEND()) cout<<"DSFiller::GapFiller"<<endl;
+ if (TopOpeBRepTool_GettraceEND()) std::cout<<"DSFiller::GapFiller"<<std::endl;
#endif
}
FUN_ds_completeforSE9(HDS); // xpu011098
FUN_ds_complete1dForSESDM(HDS); // MSV 25.03.2002 : OCC251
#ifdef OCCT_DEBUG
- if (TopOpeBRepTool_GettraceEND()) cout<<"DSFiller::CompleteDS"<<endl;
+ if (TopOpeBRepTool_GettraceEND()) std::cout<<"DSFiller::CompleteDS"<<std::endl;
#endif
} // CompleteDS
F.ProcessEdgeInterferences();
F.ProcessCurveInterferences();
#ifdef OCCT_DEBUG
- if (TopOpeBRepTool_GettraceEND()) cout<<"DSFiller::Filter"<<endl;
+ if (TopOpeBRepTool_GettraceEND()) std::cout<<"DSFiller::Filter"<<std::endl;
#endif
} // Filter
TopOpeBRepDS_Reducer R(HDS);
R.ProcessEdgeInterferences();
#ifdef OCCT_DEBUG
- if (TopOpeBRepTool_GettraceEND()) cout<<"DSFiller::Reducer"<<endl;
+ if (TopOpeBRepTool_GettraceEND()) std::cout<<"DSFiller::Reducer"<<std::endl;
#endif
} // Reducer
}
}
#ifdef OCCT_DEBUG
- if (TopOpeBRepTool_GettraceEND()) cout<<"DSFiller::RemoveUnsharedGeometry"<<endl;
+ if (TopOpeBRepTool_GettraceEND()) std::cout<<"DSFiller::RemoveUnsharedGeometry"<<std::endl;
#endif
} // RemoveUnsharedGeometry
{
// TopOpeBRepDS_Checker C(HDS); // NYI
//#ifdef OCCT_DEBUG
- // if (TopOpeBRepTool_GettraceEND()) cout<<"DSFiller::Checker"<<endl;
+ // if (TopOpeBRepTool_GettraceEND()) std::cout<<"DSFiller::Checker"<<std::endl;
//#endif
}
InsertIntersection2d(aS1,aS2,HDS);
CompleteDS2d(HDS);
#ifdef OCCT_DEBUG
- if (TopOpeBRepTool_GettraceEND()) cout<<"DSFiller::Insert2d"<<endl;
+ if (TopOpeBRepTool_GettraceEND()) std::cout<<"DSFiller::Insert2d"<<std::endl;
#endif
} // Insert
BREP_mergePDS(HDS);
#ifdef OCCT_DEBUG
- if (TopOpeBRepTool_GettraceEND()) cout<<"DSFiller::InsertIntersection2d"<<endl;
+ if (TopOpeBRepTool_GettraceEND()) std::cout<<"DSFiller::InsertIntersection2d"<<std::endl;
#endif
} // InsertIntersection2d
R.ProcessEdgeInterferences();
// TopOpeBRepDS_Checker C(HDS); // NYI
#ifdef OCCT_DEBUG
- if (TopOpeBRepTool_GettraceEND()) cout<<"DSFiller::CompleteDS2d"<<endl;
+ if (TopOpeBRepTool_GettraceEND()) std::cout<<"DSFiller::CompleteDS2d"<<std::endl;
#endif
} // CompleteDS2d
{
Standard_Boolean is1d = IsMadeOf1d(aS);
#ifdef OCCT_DEBUG
- if ( is1d ) cout<<"TopOpeBRep_DSFiller : 1d"<<endl;
+ if ( is1d ) std::cout<<"TopOpeBRep_DSFiller : 1d"<<std::endl;
#endif
if ( !is1d ) return Standard_False;
return Standard_True;
{
if (aS1.IsEqual(aS2)) {
#ifdef OCCT_DEBUG
- cout<<"TopOpeBRep_DSFiller : CheckInsert : S1 == S2"<<endl;
+ std::cout<<"TopOpeBRep_DSFiller : CheckInsert : S1 == S2"<<std::endl;
#endif
return Standard_False;
}
#ifdef OCCT_DEBUG
#include <TopOpeBRepDS_CurvePointInterference.hxx>
extern Standard_Boolean TopOpeBRep_GettraceEEFF();
-Standard_EXPORT void debposesd(void) {/*cout<<"+++ debposesd"<<endl;*/}
-Standard_EXPORT void debposnesd(void) {cout<<"+++ debposnesd"<<endl;}
+Standard_EXPORT void debposesd(void) {/*std::cout<<"+++ debposesd"<<std::endl;*/}
+Standard_EXPORT void debposnesd(void) {std::cout<<"+++ debposnesd"<<std::endl;}
Standard_EXPORT void debeeff() {}
#endif
Standard_Real tol2 = BRep_Tool::Tolerance(V2);
Standard_Real dpp = P3D1.Distance(P3D2);
if (dpp> tol1+tol2) {
- cout<<endl;
- cout<<"*** TopOpeBRep_EdgesFiller : isvertex1 && isvertex2 : P3D non confondus"<<endl;
- cout<<"point PV1 "<<P3D1.X()<<" "<<P3D1.Y()<<" "<<P3D1.Z()<<endl;
- cout<<"point PV2 "<<P3D2.X()<<" "<<P3D2.Y()<<" "<<P3D2.Z()<<endl;
- cout<<endl;
+ std::cout<<std::endl;
+ std::cout<<"*** TopOpeBRep_EdgesFiller : isvertex1 && isvertex2 : P3D non confondus"<<std::endl;
+ std::cout<<"point PV1 "<<P3D1.X()<<" "<<P3D1.Y()<<" "<<P3D1.Z()<<std::endl;
+ std::cout<<"point PV2 "<<P3D2.X()<<" "<<P3D2.Y()<<" "<<P3D2.Z()<<std::endl;
+ std::cout<<std::endl;
}
}
#endif
if (faulty) {
#ifdef OCCT_DEBUG
Standard_Boolean foundvertex = (found) && (K == TopOpeBRepDS_VERTEX);
- cout<<"- - - faulty EdgesFiller : G "<<G<<" K ";TopOpeBRepDS::Print(K,cout);cout.flush();
- cout<<" isvertex="<<isvertex;cout.flush();
- cout<<" isop="<<foundpoint<<" isov="<<foundvertex;cout.flush();
- cout<<" isnp="<<isnewpoint<<" isnv="<<isnewvertex<<endl;cout.flush();
+ std::cout<<"- - - faulty EdgesFiller : G "<<G<<" K ";TopOpeBRepDS::Print(K,std::cout);std::cout.flush();
+ std::cout<<" isvertex="<<isvertex;std::cout.flush();
+ std::cout<<" isop="<<foundpoint<<" isov="<<foundvertex;std::cout.flush();
+ std::cout<<" isnp="<<isnewpoint<<" isnv="<<isnewvertex<<std::endl;std::cout.flush();
#endif
}
evi->SupportType(kevi);
#ifdef OCCT_DEBUG
- TopOpeBRepDS::Print(K,G,cout,"TopOpeBRep_EdgesFiller : remplacer "," ");
- TopOpeBRepDS::Print(TopOpeBRepDS_VERTEX,gevi,cout,"par "," dans les courbes NYI\n");
+ TopOpeBRepDS::Print(K,G,std::cout,"TopOpeBRep_EdgesFiller : remplacer "," ");
+ TopOpeBRepDS::Print(TopOpeBRepDS_VERTEX,gevi,std::cout,"par "," dans les courbes NYI\n");
#endif
linew.Append(evi);
li.Remove(it);
#ifdef OCCT_DEBUG
Standard_Integer DEBi = 0;
if ( DEBi ) {
- cout<<"TopOpeBRep_EdgesIntersector::SetFaces : ";
- cout<<"f1 "; TopAbs::Print(myFace1.Orientation(),cout);
- cout<< " / f1F : ";
- if (so11) cout<<"sameoriented"; else cout<<"difforiented"; cout<<endl;
- cout <<" ";
- cout<<"f2 "; TopAbs::Print(myFace2.Orientation(),cout);
- cout<< " / f1F : ";
- if (so21) cout<<"sameoriented"; else cout<<"difforiented"; cout<<endl;
+ std::cout<<"TopOpeBRep_EdgesIntersector::SetFaces : ";
+ std::cout<<"f1 "; TopAbs::Print(myFace1.Orientation(),std::cout);
+ std::cout<< " / f1F : ";
+ if (so11) std::cout<<"sameoriented"; else std::cout<<"difforiented"; std::cout<<std::endl;
+ std::cout <<" ";
+ std::cout<<"f2 "; TopAbs::Print(myFace2.Orientation(),std::cout);
+ std::cout<< " / f1F : ";
+ if (so21) std::cout<<"sameoriented"; else std::cout<<"difforiented"; std::cout<<std::endl;
}
#endif
}
#ifdef OCCT_DEBUG
Standard_Boolean trc = Standard_False;
if (trc) {
- cout<<"ed1 on fa1 : {pfirst=("<<pfirst.X()<<" "<<pfirst.Y()<<"), first="<<first<<"\n";
- cout<<" plast =("<<plast.X()<<" "<<plast.Y()<<"),last="<<last<<"}"<<endl;}
+ std::cout<<"ed1 on fa1 : {pfirst=("<<pfirst.X()<<" "<<pfirst.Y()<<"), first="<<first<<"\n";
+ std::cout<<" plast =("<<plast.X()<<" "<<plast.Y()<<"),last="<<last<<"}"<<std::endl;}
#endif
Standard_Boolean memesfaces = myFace1.IsSame(myFace2);
#ifdef OCCT_DEBUG
if (trc) {
- cout<<"ed2 on fa1 : {pfirst=("<<pfirst.X()<<" "<<pfirst.Y()<<"), first="<<first<<"\n";
- cout<<" plast =("<<plast.X()<<" "<<plast.Y()<<"),last="<<last<<"}"<<endl;}
+ std::cout<<"ed2 on fa1 : {pfirst=("<<pfirst.X()<<" "<<pfirst.Y()<<"), first="<<first<<"\n";
+ std::cout<<" plast =("<<plast.X()<<" "<<plast.Y()<<"),last="<<last<<"}"<<std::endl;}
#endif
}
myDomain2.SetValues(pfirst,first,tole,plast,last,tole);
#ifdef OCCT_DEBUG
if ( TopOpeBRep_GettracePROEDG() ) {
- cout<<"------------ projection de curve"<<endl;
- cout<<"--- Curve : "<<endl;
- GeomTools_CurveSet::PrintCurve(NC,cout);
- cout<<"--- nouvelle PCurve : "<<endl;
- GeomTools_Curve2dSet::PrintCurve2d(PC2on1,cout);
+ std::cout<<"------------ projection de curve"<<std::endl;
+ std::cout<<"--- Curve : "<<std::endl;
+ GeomTools_CurveSet::PrintCurve(NC,std::cout);
+ std::cout<<"--- nouvelle PCurve : "<<std::endl;
+ GeomTools_Curve2dSet::PrintCurve2d(PC2on1,std::cout);
Handle(Geom_Surface) aS1 = BRep_Tool::Surface(myFace1);
- cout<<"--- sur surface : "<<endl;
- GeomTools_SurfaceSet::PrintSurface(aS1,cout);
- cout<<endl;
+ std::cout<<"--- sur surface : "<<std::endl;
+ GeomTools_SurfaceSet::PrintSurface(aS1,std::cout);
+ std::cout<<std::endl;
}
#endif
}
#ifdef OCCT_DEBUG
if (TopOpeBRep_GettraceFITOL()) {
- cout<<"EdgesIntersector : Perform";
+ std::cout<<"EdgesIntersector : Perform";
#ifdef DRAW
GeomAbs_CurveType t1 = myCurve1.GetType();
GeomAbs_CurveType t2 = myCurve2.GetType();
- TCollection_AsciiString s1;CurveToString(t1,s1);cout<<" "<<s1;
- TCollection_AsciiString s2;CurveToString(t2,s2);cout<<" "<<s2;
+ TCollection_AsciiString s1;CurveToString(t1,s1);std::cout<<" "<<s1;
+ TCollection_AsciiString s2;CurveToString(t2,s2);std::cout<<" "<<s2;
#endif
- cout<<endl;
- cout<<" tol1 = "<<tol1<<endl;
- cout<<" tol2 = "<<tol2<<endl;
+ std::cout<<std::endl;
+ std::cout<<" tol1 = "<<tol1<<std::endl;
+ std::cout<<" tol2 = "<<tol2<<std::endl;
}
#endif
|| TransitionEqualAndExtremity(P1.TransitionOfSecond(),P2.TransitionOfSecond()) ) {
#ifdef OCCT_DEBUG
Standard_Boolean TRC = Standard_True;
- if (TRC) cout<<"\n Egalite de transitions \n"<<endl;
+ if (TRC) std::cout<<"\n Egalite de transitions \n"<<std::endl;
#endif
fin = Standard_False;
mylpnt.Remove(p);
if (t1 != GeomAbs_Circle) {
#ifdef OCCT_DEBUG
if (TopOpeBRepTool_GettraceNYI())
- cout<<"TopOpeBRep_EdgesIntersector : EdgesSameDomain on NYI curve type"<<endl;
+ std::cout<<"TopOpeBRep_EdgesIntersector : EdgesSameDomain on NYI curve type"<<std::endl;
#endif
return SetSameDomain(Standard_False);
}
void TopOpeBRep_EdgesIntersector::Dump(const TCollection_AsciiString& str,const Standard_Integer E1index,const Standard_Integer E2index)
{
InitPoint();if (!MorePoint()) return;
- cout<<endl<<"---- "<<str<<" ---- E/E : "<<NbPoints()<<" p , ";
- cout<<NbSegments()<<" s : "<<myTrueNbPoints<<" true points"<<endl;
- cout<<"E1 = "<<E1index<<" ";TopAbs::Print(Edge(1).Orientation(),cout)<<", ";
- cout<<"E2 = "<<E2index<<" ";TopAbs::Print(Edge(2).Orientation(),cout)<<" ";
- cout<<"hs="<<HasSegment()<<" hsd="<<SameDomain()<<endl;
+ std::cout<<std::endl<<"---- "<<str<<" ---- E/E : "<<NbPoints()<<" p , ";
+ std::cout<<NbSegments()<<" s : "<<myTrueNbPoints<<" true points"<<std::endl;
+ std::cout<<"E1 = "<<E1index<<" ";TopAbs::Print(Edge(1).Orientation(),std::cout)<<", ";
+ std::cout<<"E2 = "<<E2index<<" ";TopAbs::Print(Edge(2).Orientation(),std::cout)<<" ";
+ std::cout<<"hs="<<HasSegment()<<" hsd="<<SameDomain()<<std::endl;
for (InitPoint(); MorePoint(); NextPoint()) {
const TopOpeBRep_Point2d P2d = Point();
Standard_Integer ip1,ip2; P2d.SegmentAncestors(ip1,ip2);
Standard_Real d1 = Point(ip1).Value().Distance(Point(ip2).Value());
Standard_Real d2 = d1 + Point(ip1).Tolerance()/2. + Point(ip2).Tolerance()/2.;
- cout<<"ancestor segment : d P"<<ip1<<",P"<<ip2<<" = "<<d1<<endl;
- cout<<" t1/2 + d + t2/2 P"<<ip1<<",P"<<ip2<<" = "<<d2<<endl;
+ std::cout<<"ancestor segment : d P"<<ip1<<",P"<<ip2<<" = "<<d1<<std::endl;
+ std::cout<<" t1/2 + d + t2/2 P"<<ip1<<",P"<<ip2<<" = "<<d2<<std::endl;
}
}
- cout<<endl;
+ std::cout<<std::endl;
#endif
}
Standard_Boolean IsPeriodic = LI.IsPeriodic();
Standard_Boolean isrest = (LI.TypeLineCurve() == TopOpeBRep_RESTRICTION);
- cout<<endl<<"--------------------------------------------------"<<endl;
- cout<<"line "<<il<<"/"<<nl<<" is a "; LI.DumpType();
+ std::cout<<std::endl<<"--------------------------------------------------"<<std::endl;
+ std::cout<<"line "<<il<<"/"<<nl<<" is a "; LI.DumpType();
if ( isrest) {
Standard_Boolean isedge1 = LI.ArcIsEdge(1);
Standard_Boolean isedge2 = LI.ArcIsEdge(2);
- if ( isedge1 ) cout<<" of 1";
- else if ( isedge2 ) cout<<" of 2";
- else cout<<"of 0(BUG)";
+ if ( isedge1 ) std::cout<<" of 1";
+ else if ( isedge2 ) std::cout<<" of 2";
+ else std::cout<<"of 0(BUG)";
}
- cout<<endl;
+ std::cout<<std::endl;
if ( isrest) {
const TopoDS_Shape& Erest = LI.Arc();
Standard_Boolean FIisrest = myPFF->ChangeFacesIntersector().IsRestriction(Erest);
- cout<<"++++ line restriction";
+ std::cout<<"++++ line restriction";
if (FIisrest) {
- cout<<" edge restriction";
+ std::cout<<" edge restriction";
Standard_Integer iErest = 0;
if (myPFF->ChangeDataStructure().HasShape(Erest))
iErest = myPFF->ChangeDataStructure().Shape(Erest);
- cout<<" "<<iErest;
+ std::cout<<" "<<iErest;
}
- cout<<endl;
+ std::cout<<std::endl;
}
- if (HasVPonR) cout<<"has vertex on restriction"<<endl;
- else cout<<"has no vertex on restriction"<<endl;
- if (IsVClosed) cout<<"is closed by vertices"<<endl;
- else cout<<"is not closed by vertices"<<endl;
- if (IsPeriodic) cout<<"is periodic"<<endl;
- else cout<<"is not periodic"<<endl;
+ if (HasVPonR) std::cout<<"has vertex on restriction"<<std::endl;
+ else std::cout<<"has no vertex on restriction"<<std::endl;
+ if (IsVClosed) std::cout<<"is closed by vertices"<<std::endl;
+ else std::cout<<"is not closed by vertices"<<std::endl;
+ if (IsPeriodic) std::cout<<"is periodic"<<std::endl;
+ else std::cout<<"is not periodic"<<std::endl;
TopOpeBRep_VPointInterIterator VPI;
- VPI.Init(LI); if (VPI.More()) cout<<endl;
+ VPI.Init(LI); if (VPI.More()) std::cout<<std::endl;
for (;VPI.More();VPI.Next()) {
TCollection_AsciiString stol("; #draw ");
stol = stol + VPI.CurrentVP().Tolerance() + "\n";
}
VPI.Init(LI);
- if (VPI.More()) cout<<endl;
+ if (VPI.More()) std::cout<<std::endl;
for (;VPI.More();VPI.Next()) {
const TopOpeBRep_VPointInter& VP = VPI.CurrentVP();
Standard_Boolean dump = VP.Keep();
- if (dump) { DumpVP(VP); cout<<endl; }
+ if (dump) { DumpVP(VP); std::cout<<std::endl; }
}
if (LI.TypeLineCurve() == TopOpeBRep_LINE) {
gp_Dir D = LI.LineG()->Line().Direction();
- TopOpeBRep::Print(LI.TypeLineCurve(),cout); Standard_Real x,y,z; D.Coord(x,y,z);
- cout<<" dir : "<<x<<" "<<y<<" "<<z<<endl;
+ TopOpeBRep::Print(LI.TypeLineCurve(),std::cout); Standard_Real x,y,z; D.Coord(x,y,z);
+ std::cout<<" dir : "<<x<<" "<<y<<" "<<z<<std::endl;
}
- LI.DumpLineTransitions(cout);
+ LI.DumpLineTransitions(std::cout);
- cout<<endl<<"--------------------------------------------------"<<endl;
+ std::cout<<std::endl<<"--------------------------------------------------"<<std::endl;
#endif
}
void TopOpeBRep_FFDumper::DumpVP(const TopOpeBRep_VPointInter& VP)
{
Standard_Integer il = myLineIndex;
- cout<<"VP "<<VP.Index()<<" on "<<VP.ShapeIndex()<<" :";
- Standard_Real Cpar = VP.ParameterOnLine(); cout<<" on curve : "<<Cpar;
- if (!VP.Keep()) cout<<" NOT kept";
- cout<<endl;
+ std::cout<<"VP "<<VP.Index()<<" on "<<VP.ShapeIndex()<<" :";
+ Standard_Real Cpar = VP.ParameterOnLine(); std::cout<<" on curve : "<<Cpar;
+ if (!VP.Keep()) std::cout<<" NOT kept";
+ std::cout<<std::endl;
Standard_Boolean k = VP.Keep();
const gp_Pnt& P = VP.Value();
- cout<<PRODINP<<"L"<<il<<"P"<<VP.Index();if (k) cout<<"K";cout<<" "<<P.X()<<" "<<P.Y()<<" "<<P.Z();
- cout<<"; #draw"<<endl;
+ std::cout<<PRODINP<<"L"<<il<<"P"<<VP.Index();if (k) std::cout<<"K";std::cout<<" "<<P.X()<<" "<<P.Y()<<" "<<P.Z();
+ std::cout<<"; #draw"<<std::endl;
if (VP.ShapeIndex() == 1)
DumpVP(VP,1);
Standard_Integer exi = ExploreIndex(E,ISI);
Standard_Integer dsi = (HDS->HasShape(E)) ? HDS->Shape(E) : 0;
Standard_Boolean isv = VP.IsVertex(ISI);
- if (isv) cout<<"is vertex of "<<ISI<<endl;
- if (Closed) cout<<"on closing edge "; else cout<<"on edge ";
- if (Degen) cout<<" on degenerated edge ";
- TopAbs::Print(O,cout); cout<<" (ds"<<dsi<<") (ex"<<exi<<") of face of "<<ISI;
- cout<<" : par : "<<Epar<<endl;
- if (Closed) cout<<"on closing edge "; else cout<<"on edge ";
- if (Degen) cout<<" on degenerated edge ";
- TopAbs::Print(O,cout); cout<<" (ds"<<dsi<<") (ex"<<exi<<") of face of "<<ISI;
+ if (isv) std::cout<<"is vertex of "<<ISI<<std::endl;
+ if (Closed) std::cout<<"on closing edge "; else std::cout<<"on edge ";
+ if (Degen) std::cout<<" on degenerated edge ";
+ TopAbs::Print(O,std::cout); std::cout<<" (ds"<<dsi<<") (ex"<<exi<<") of face of "<<ISI;
+ std::cout<<" : par : "<<Epar<<std::endl;
+ if (Closed) std::cout<<"on closing edge "; else std::cout<<"on edge ";
+ if (Degen) std::cout<<" on degenerated edge ";
+ TopAbs::Print(O,std::cout); std::cout<<" (ds"<<dsi<<") (ex"<<exi<<") of face of "<<ISI;
#endif
}
void TopOpeBRep_FFDumper::DumpDSP(const TopOpeBRep_VPointInter& VP,const TopOpeBRepDS_Kind GK,const Standard_Integer G,
const Standard_Boolean newinDS) const
{
- cout<<"VP "<<VP.Index()<<" on "<<VP.ShapeIndex();
+ std::cout<<"VP "<<VP.Index()<<" on "<<VP.ShapeIndex();
if (newinDS) {
- if (GK == TopOpeBRepDS_VERTEX) cout<<" gives new DSV";
- else if (GK == TopOpeBRepDS_POINT) cout<<" gives new DSP";
- else cout<<" gives new DS???";
+ if (GK == TopOpeBRepDS_VERTEX) std::cout<<" gives new DSV";
+ else if (GK == TopOpeBRepDS_POINT) std::cout<<" gives new DSP";
+ else std::cout<<" gives new DS???";
}
else {
- if (GK == TopOpeBRepDS_VERTEX) cout<<" equals new DSV";
- else if (GK == TopOpeBRepDS_POINT) cout<<" equals new DSP";
- else cout<<" equals new DS???";
+ if (GK == TopOpeBRepDS_VERTEX) std::cout<<" equals new DSV";
+ else if (GK == TopOpeBRepDS_POINT) std::cout<<" equals new DSP";
+ else std::cout<<" equals new DS???";
}
- cout<<" "<<G;
+ std::cout<<" "<<G;
const Handle(TopOpeBRepDS_HDataStructure)& HDS = myPFF->HDataStructure();
Standard_Real tol = Precision::Confusion();
if (GK == TopOpeBRepDS_VERTEX) tol = BRep_Tool::Tolerance(TopoDS::Vertex(HDS->Shape(G)));
else if (GK == TopOpeBRepDS_POINT) tol = HDS->Point(G).Tolerance();
- cout<<" tol = "<<tol;
- cout<<endl;
+ std::cout<<" tol = "<<tol;
+ std::cout<<std::endl;
#endif
}
FEINT.InitPoint();
if ( ! FEINT.MorePoint() ) return;
- cout<<endl;
- cout<<"---------- F/E : "<<FEINT.NbPoints()<<" p ";
- cout<<endl;
+ std::cout<<std::endl;
+ std::cout<<"---------- F/E : "<<FEINT.NbPoints()<<" p ";
+ std::cout<<std::endl;
const TopoDS_Shape& FF = FEINT.Shape(1);
const TopoDS_Shape& EE = FEINT.Shape(2);
TopAbs_Orientation FFori = FF.Orientation();
TopAbs_Orientation EEori = EE.Orientation();
- cout<<"FF = "<<FFindex<<" ";TopAbs::Print(FFori,cout);
- cout<<", ";
- cout<<"EE = "<<EEindex<<" ";TopAbs::Print(EEori,cout);
- cout<<endl;
+ std::cout<<"FF = "<<FFindex<<" ";TopAbs::Print(FFori,std::cout);
+ std::cout<<", ";
+ std::cout<<"EE = "<<EEindex<<" ";TopAbs::Print(EEori,std::cout);
+ std::cout<<std::endl;
Standard_Integer ip = 1;
for (; FEINT.MorePoint(); FEINT.NextPoint(), ip++ ) {
TopoDS_Vertex V2;
Standard_Boolean isvertexE = FEINT.IsVertex(2,V2);
- cout<<endl;
- cout<<"P"<<ip<<" : ";
+ std::cout<<std::endl;
+ std::cout<<"P"<<ip<<" : ";
gp_Pnt P3D = FEINT.Value();
- cout<<"\t"<<P3D.X()<<" "<<P3D.Y()<<" "<<P3D.Z()<<endl;
+ std::cout<<"\t"<<P3D.X()<<" "<<P3D.Y()<<" "<<P3D.Z()<<std::endl;
- cout<<"\t"; if (isvertexF) cout<<"IS VERTEX, ";
- cout<<" pUV = "<<pUV.X()<<" "<<pUV.Y()<<endl;
- cout<<" sta = "; TopAbs::Print(sta,cout);cout<<endl;
+ std::cout<<"\t"; if (isvertexF) std::cout<<"IS VERTEX, ";
+ std::cout<<" pUV = "<<pUV.X()<<" "<<pUV.Y()<<std::endl;
+ std::cout<<" sta = "; TopAbs::Print(sta,std::cout);std::cout<<std::endl;
- cout<<"\t"; if (isvertexE) cout<<"IS VERTEX, ";
- cout<<" parE = "<<parE<<endl;
+ std::cout<<"\t"; if (isvertexE) std::cout<<"IS VERTEX, ";
+ std::cout<<" parE = "<<parE<<std::endl;
}
}
{
TCollection_AsciiString aname_1("FE_face"), aname_2("FE_edge");
Standard_CString name_1 = aname_1.ToCString(), name_2 = aname_2.ToCString();
- cout<<"FaceEdgeIntersector : "<<name_1<<","<<name_2<<endl;
+ std::cout<<"FaceEdgeIntersector : "<<name_1<<","<<name_2<<std::endl;
BRepTools::Write(F1,name_1); BRepTools::Write(E,name_2);
}
extern Standard_Boolean TopOpeBRepTool_GettraceKRO();
if (!myForceTolerance) ShapeTolerances(SF,SE);
myTol = BRep_Tool::Tolerance(TopoDS::Edge(SE));
#ifdef OCCT_DEBUG
- if (TopOpeBRep_GettraceFITOL()) cout<<"Perform : myTol = "<<myTol<<endl;
+ if (TopOpeBRep_GettraceFITOL()) std::cout<<"Perform : myTol = "<<myTol<<std::endl;
#endif
myFace = TopoDS::Face(SF); myFace.Orientation(TopAbs_FORWARD);
#ifdef OCCT_DEBUG
if (TopOpeBRep_GettraceFITOL())
- cout<<"ForceTolerance : myTol = "<<myTol<<endl;
+ std::cout<<"ForceTolerance : myTol = "<<myTol<<std::endl;
#endif
}
#ifdef OCCT_DEBUG
if (TopOpeBRep_GettraceFITOL()) {
- cout<<"ShapeTolerances on S1 = ";TopAbs::Print(S1.ShapeType(),cout);
- cout<<" S2 = ";TopAbs::Print(S2.ShapeType(),cout);
- cout<<" : myTol = "<<myTol<<endl;
+ std::cout<<"ShapeTolerances on S1 = ";TopAbs::Print(S1.ShapeType(),std::cout);
+ std::cout<<" S2 = ";TopAbs::Print(S2.ShapeType(),std::cout);
+ std::cout<<" : myTol = "<<myTol<<std::endl;
}
#endif
}
if ( t == TopOpeBRep_WALKING ) {
if ( nbvp < 2 ) {
#ifdef OCCT_DEBUG
- cout<<"\n=== Nb de IntPatch_Point sur WL incorrect : "<<nbvp<<" ===\n";
+ std::cout<<"\n=== Nb de IntPatch_Point sur WL incorrect : "<<nbvp<<" ===\n";
#endif
check = Standard_False;
}
}
#ifdef OCCT_DEBUG
- if (!check) { cout<<"# DEB CheckLine : rejet de ";TopOpeBRep::Print(t,cout);cout<<" a "<<nbvp<<" points"<<endl; }
+ if (!check) { std::cout<<"# DEB CheckLine : rejet de ";TopOpeBRep::Print(t,std::cout);std::cout<<" a "<<nbvp<<" points"<<std::endl; }
#endif
return check;
#endif
#ifdef OCCT_DEBUG
-Standard_EXPORT void debrest(const Standard_Integer i) {cout<<"+ debrest "<<i<<endl;}
-Standard_EXPORT void debrline() {cout<<"+ debrline"<<endl;}
+Standard_EXPORT void debrest(const Standard_Integer i) {std::cout<<"+ debrest "<<i<<std::endl;}
+Standard_EXPORT void debrline() {std::cout<<"+ debrline"<<std::endl;}
extern Standard_Boolean TopOpeBRep_GettraceNVP(Standard_Integer a,Standard_Integer b,Standard_Integer c,Standard_Integer d,Standard_Integer e);
extern Standard_Boolean GLOBAL_bvpr;
Standard_EXPORT Standard_Boolean GLOBAL_btcx = Standard_False;
Standard_EXPORT void debtcxmess(Standard_Integer f1,Standard_Integer f2,Standard_Integer il)
-{cout<<"f1,f2,il : "<<f1<<","<<f2<<","<<il<<endl;cout.flush();}
+{std::cout<<"f1,f2,il : "<<f1<<","<<f2<<","<<il<<std::endl;std::cout.flush();}
//=======================================================================
//function : ProcessLine
if ( !CPIfound ) {
if (iVP != iINON1 && iVP != iINONn) {
#ifdef OCCT_DEBUG
- cout<<"VP "<<iVP<<" on "<<0<<" : point d'intersection anormal : rejet"<<endl;
+ std::cout<<"VP "<<iVP<<" on "<<0<<" : point d'intersection anormal : rejet"<<std::endl;
#endif
return;
}
if ((obRest == EXTERNAL)||(obOO == EXTERNAL)){
#ifdef OCCT_DEBUG
- if(obRest==EXTERNAL) cout<<"***********ProcessRLine : faulty parameter on Erest"<<endl;
- if(obOO==EXTERNAL) cout<<"***********ProcessRLine : faulty parameter on OOE"<<endl;
+ if(obRest==EXTERNAL) std::cout<<"***********ProcessRLine : faulty parameter on Erest"<<std::endl;
+ if(obOO==EXTERNAL) std::cout<<"***********ProcessRLine : faulty parameter on OOE"<<std::endl;
#endif
}
TCollection_AsciiString an2("SAVB");if (SAVFFi2) an2=an2+SAVFFi2;
Standard_CString n1=an1.ToCString();Standard_CString n2=an2.ToCString();
#ifdef DRAW
- cout<<"FaceIntersector : set "<<n1<<","<<n2<<endl;DBRep::Set(n1,F1);DBRep::Set(n2,F2);
+ std::cout<<"FaceIntersector : set "<<n1<<","<<n2<<std::endl;DBRep::Set(n1,F1);DBRep::Set(n2,F2);
#endif
- cout<<"FaceIntersector : write "<<n1<<","<<n2<<endl;BRepTools::Write(F1,n1);BRepTools::Write(F2,n2);
+ std::cout<<"FaceIntersector : write "<<n1<<","<<n2<<std::endl;BRepTools::Write(F1,n1);BRepTools::Write(F2,n2);
}
extern Standard_Boolean TopOpeBRepTool_GettraceKRO();
#ifdef OCCT_DEBUG
if (TopOpeBRep_GettraceFITOL()) {
- cout<<"FacesIntersector : Perform tol1 = "<<tol1<<endl;
- cout<<" tol2 = "<<tol2<<endl;
- cout<<" defl = "<<Deflection<<" MaxUV = "<<MaxUV<<endl;
+ std::cout<<"FacesIntersector : Perform tol1 = "<<tol1<<std::endl;
+ std::cout<<" tol2 = "<<tol2<<std::endl;
+ std::cout<<" defl = "<<Deflection<<" MaxUV = "<<MaxUV<<std::endl;
}
#endif
}
#ifdef OCCT_DEBUG
- if (TopOpeBRep_GettraceFI()) cout<<"Perform : isempty "<<IsEmpty()<<endl;
+ if (TopOpeBRep_GettraceFI()) std::cout<<"Perform : isempty "<<IsEmpty()<<std::endl;
#endif
}
myForceTolerances = Standard_True;
#ifdef OCCT_DEBUG
if (TopOpeBRep_GettraceFITOL())
- cout<<"ForceTolerances : myTol1,myTol2 = "<<myTol1<<","<<myTol2<<endl;
+ std::cout<<"ForceTolerances : myTol1,myTol2 = "<<myTol1<<","<<myTol2<<std::endl;
#endif
}
myForceTolerances = Standard_False;
#ifdef OCCT_DEBUG
if (TopOpeBRep_GettraceFITOL()) {
- cout<<"ShapeTolerances on S1 = ";TopAbs::Print(S1.ShapeType(),cout);
- cout<<" S2 = ";TopAbs::Print(S2.ShapeType(),cout);
- cout<<" : myTol1,myTol2 = "<<myTol1<<","<<myTol2<<endl;
+ std::cout<<"ShapeTolerances on S1 = ";TopAbs::Print(S1.ShapeType(),std::cout);
+ std::cout<<" S2 = ";TopAbs::Print(S2.ShapeType(),std::cout);
+ std::cout<<" : myTol1,myTol2 = "<<myTol1<<","<<myTol2<<std::endl;
}
#endif
}
theSlin.Clear();
theSlin.Append(anWLine);
#ifdef OCCT_DEBUG
- cout << "*** TopOpeBRep_FaceIntersector: Merge WLines on Restriction "
- << ((WLineRank == 1) ? "S1" : "S2") << " to WLine***" << endl;
+ std::cout << "*** TopOpeBRep_FaceIntersector: Merge WLines on Restriction "
+ << ((WLineRank == 1) ? "S1" : "S2") << " to WLine***" << std::endl;
#endif
}
}
#ifdef OCCT_DEBUG
Standard_Boolean trc = Standard_False;
if (trc) {
- cout<<"ed1 on fa1 : {pfirst=("<<pfirst.X()<<" "<<pfirst.Y()<<"),first="<<first<<"\n";
- cout<<" plast =("<<plast.X()<<" "<<plast.Y()<<"),last="<<last<<"}"<<endl;}
+ std::cout<<"ed1 on fa1 : {pfirst=("<<pfirst.X()<<" "<<pfirst.Y()<<"),first="<<first<<"\n";
+ std::cout<<" plast =("<<plast.X()<<" "<<plast.Y()<<"),last="<<last<<"}"<<std::endl;}
#endif
Standard_Boolean memesfaces = F1.IsSame(F2);
#ifdef OCCT_DEBUG
if (trc) {
- cout<<"ed2 on fa1 : {pfirst=("<<pfirst.X()<<" "<<pfirst.Y()<<"),first="<<first<<"\n";
- cout<<" plast =("<<plast.X()<<" "<<plast.Y()<<"),last="<<last<<"}"<<endl;
+ std::cout<<"ed2 on fa1 : {pfirst=("<<pfirst.X()<<" "<<pfirst.Y()<<"),first="<<first<<"\n";
+ std::cout<<" plast =("<<plast.X()<<" "<<plast.Y()<<"),last="<<last<<"}"<<std::endl;
}
#endif
}
myDomain2.SetValues(pfirst,first,tole,plast,last,tole);
#ifdef OCCT_DEBUG
if ( TopOpeBRep_GettracePROEDG() ) {
- cout<<"------------ projection de curve"<<endl;
- cout<<"--- Curve : "<<endl;GeomTools_CurveSet::PrintCurve(NC,cout);
- cout<<"--- nouvelle PCurve : "<<endl;GeomTools_Curve2dSet::PrintCurve2d(PC2on1,cout);
+ std::cout<<"------------ projection de curve"<<std::endl;
+ std::cout<<"--- Curve : "<<std::endl;GeomTools_CurveSet::PrintCurve(NC,std::cout);
+ std::cout<<"--- nouvelle PCurve : "<<std::endl;GeomTools_Curve2dSet::PrintCurve2d(PC2on1,std::cout);
Handle(Geom_Surface) aS1 = BRep_Tool::Surface(F1);
- cout<<"--- sur surface : "<<endl;GeomTools_SurfaceSet::PrintSurface(aS1,cout);
- cout<<endl;
+ std::cout<<"--- sur surface : "<<std::endl;GeomTools_SurfaceSet::PrintSurface(aS1,std::cout);
+ std::cout<<std::endl;
}
#endif
}
#ifdef OCCT_DEBUG
Standard_Integer DEBi = 0;
if ( DEBi ) {
- cout<<"TopOpeBRep_Hctxff2d::SetSurfacesPrivate : ";
- cout<<"f1 "; TopAbs::Print(myFace1.Orientation(),cout);
- cout<< " / f1F : ";
- if (so11) cout<<"sameoriented"; else cout<<"difforiented"; cout<<endl;
- cout <<" ";
- cout<<"f2 "; TopAbs::Print(myFace2.Orientation(),cout);
- cout<< " / f1F : ";
- if (so21) cout<<"sameoriented"; else cout<<"difforiented"; cout<<endl;
+ std::cout<<"TopOpeBRep_Hctxff2d::SetSurfacesPrivate : ";
+ std::cout<<"f1 "; TopAbs::Print(myFace1.Orientation(),std::cout);
+ std::cout<< " / f1F : ";
+ if (so11) std::cout<<"sameoriented"; else std::cout<<"difforiented"; std::cout<<std::endl;
+ std::cout <<" ";
+ std::cout<<"f2 "; TopAbs::Print(myFace2.Orientation(),std::cout);
+ std::cout<< " / f1F : ";
+ if (so21) std::cout<<"sameoriented"; else std::cout<<"difforiented"; std::cout<<std::endl;
}
#endif
} // SetHSurfacesPrivate
Handle(Geom_TrimmedCurve) TC3D = new Geom_TrimmedCurve(C3D,parmin,parmax);
#ifdef OCCT_DEBUG
if ( TopOpeBRep_GettraceCONIC() ) {
- cout<<"TopOpeBRep_LineInter::Curve on a ";
- TopOpeBRep::Print(myTypeLineCurve,cout);cout<<endl;
- cout<<" ... Trimmed from "<<parmin<<" to "<<parmax<<endl;
+ std::cout<<"TopOpeBRep_LineInter::Curve on a ";
+ TopOpeBRep::Print(myTypeLineCurve,std::cout);std::cout<<std::endl;
+ std::cout<<" ... Trimmed from "<<parmin<<" to "<<parmax<<std::endl;
}
#endif
return TC3D;
void TopOpeBRep_LineInter::DumpType()const
{
#ifdef OCCT_DEBUG
- TopOpeBRep::Print(myTypeLineCurve,cout);
+ TopOpeBRep::Print(myTypeLineCurve,std::cout);
#endif
}
{
const TopOpeBRep_VPointInter& VP = VPoint(I);
const gp_Pnt& P = VP.Value();
- cout<<s1;
- cout<<"L"<<Index()<<"P"<<VP.Index();
- if (VP.Keep()) cout<<"K";
- cout<<" "<<P.X()<<" "<<P.Y()<<" "<<P.Z();
- cout<<s2;
+ std::cout<<s1;
+ std::cout<<"L"<<Index()<<"P"<<VP.Index();
+ if (VP.Keep()) std::cout<<"K";
+ std::cout<<" "<<P.X()<<" "<<P.Y()<<" "<<P.Z();
+ std::cout<<s2;
#endif
}
{
Standard_Integer i1 = bip.I1();
Standard_Integer i2 = bip.I2();
- cout<<s1;
- cout<<"("<<i1<<","<<i2<<")";
- cout<<s2;
+ std::cout<<s1;
+ std::cout<<"("<<i1<<","<<i2<<")";
+ std::cout<<s2;
#endif
}
Standard_Boolean isvertex2 = IsVertex(2); TopoDS_Vertex V2; if (isvertex2) V2 = Vertex(2);
Standard_Integer ia1,ia2; SegmentAncestors(ia1,ia2);
- cout<<endl<<"p2d "<<index<<" k="<<keep<<" pos="<<pos;
+ std::cout<<std::endl<<"p2d "<<index<<" k="<<keep<<" pos="<<pos;
switch (sts) {
- case TopOpeBRep_P2DUNK : cout<<" sts=u";break;
- case TopOpeBRep_P2DSGF : cout<<" sts=f";break;
- case TopOpeBRep_P2DSGL : cout<<" sts=l";break;
+ case TopOpeBRep_P2DUNK : std::cout<<" sts=u";break;
+ case TopOpeBRep_P2DSGF : std::cout<<" sts=f";break;
+ case TopOpeBRep_P2DSGL : std::cout<<" sts=l";break;
case TopOpeBRep_P2DNEW :
- cout<<" sts=n";
- cout<<" anc="<<ia1<<","<<ia2;
+ std::cout<<" sts=n";
+ std::cout<<" anc="<<ia1<<","<<ia2;
break;
- case TopOpeBRep_P2DINT : cout<<" sts=i";break;
+ case TopOpeBRep_P2DINT : std::cout<<" sts=i";break;
} // switch
- cout<<" cfg=";TopOpeBRepDS::Print(myedgesconfig,cout);
- cout<<endl;
+ std::cout<<" cfg=";TopOpeBRepDS::Print(myedgesconfig,std::cout);
+ std::cout<<std::endl;
gp_Pnt P3D = Value();
#ifdef DRAW
- cout<<FUN_tool_PRODINP()<<"P"<<Index()<<" "<<P3D.X()<<" "<<P3D.Y()<<" "<<P3D.Z()<<"; # tol = "<<tol<<endl;
+ std::cout<<FUN_tool_PRODINP()<<"P"<<Index()<<" "<<P3D.X()<<" "<<P3D.Y()<<" "<<P3D.Z()<<"; # tol = "<<tol<<std::endl;
#endif
- cout<<" on (1) :";
- cout<<" vertex(1) : ";
- cout<<(isvertex1?1:0);
- cout<<" T "<<E1index<<"(1)";
- cout<<" par(1) = "<<par1;
+ std::cout<<" on (1) :";
+ std::cout<<" vertex(1) : ";
+ std::cout<<(isvertex1?1:0);
+ std::cout<<" T "<<E1index<<"(1)";
+ std::cout<<" par(1) = "<<par1;
if (isvertex1) {
P3D = BRep_Tool::Pnt(V1);
- cout<<" PV(1) : "<<P3D.X()<<" "<<P3D.Y()<<" "<<P3D.Z();
+ std::cout<<" PV(1) : "<<P3D.X()<<" "<<P3D.Y()<<" "<<P3D.Z();
}
- cout<<endl;
+ std::cout<<std::endl;
- cout<<" on (2) :";
- cout<<" vertex(2) : ";
- cout<<(isvertex2?1:0);
- cout<<" T "<<E2index<<"(2)";
- cout<<" par(2) = "<<par2;
+ std::cout<<" on (2) :";
+ std::cout<<" vertex(2) : ";
+ std::cout<<(isvertex2?1:0);
+ std::cout<<" T "<<E2index<<"(2)";
+ std::cout<<" par(2) = "<<par2;
if (isvertex2) {
P3D = BRep_Tool::Pnt(V2);
- cout<<" PV(2) : "<<P3D.X()<<" "<<P3D.Y()<<" "<<P3D.Z();
+ std::cout<<" PV(2) : "<<P3D.X()<<" "<<P3D.Y()<<" "<<P3D.Z();
}
- cout<<endl;
+ std::cout<<std::endl;
}
#else
void TopOpeBRep_Point2d::Dump(const Standard_Integer,const Standard_Integer) const {}
#include <Geom_Line.hxx>
extern Standard_Boolean TopOpeBRep_GettraceBIPS();
extern Standard_Boolean TopOpeBRep_GettraceDEGEN();
-extern Standard_Boolean FUN_debnull(const TopoDS_Shape& s){Standard_Boolean isnull = s.IsNull(); if (isnull) cout <<"***"; return isnull;}
+extern Standard_Boolean FUN_debnull(const TopoDS_Shape& s){Standard_Boolean isnull = s.IsNull(); if (isnull) std::cout <<"***"; return isnull;}
#endif
//Standard_EXPORT extern Standard_Real GLOBAL_tolFF;
if (isperiodic) {
#ifdef OCCT_DEBUG
// TopOpeBRep_FFDumper FFD(*this);
-// cout <<"vpf :"; FFD.DumpVP(vpf,cout);
-// cout <<"vpl :"; FFD.DumpVP(vpl,cout);
+// std::cout <<"vpf :"; FFD.DumpVP(vpf,std::cout);
+// std::cout <<"vpl :"; FFD.DumpVP(vpl,std::cout);
#endif
Standard_Integer IArc = 0;
#ifdef OCCT_DEBUG
if (trRL) {
TopOpeBRep_VPointInterIterator VPI;VPI.Init(L);
- cout<<endl<<"------------ Dump Rline --------------------"<<endl;
+ std::cout<<std::endl<<"------------ Dump Rline --------------------"<<std::endl;
for (; VPI.More(); VPI.Next()) myHFFD->DumpVP(VPI.CurrentVP());
}
#endif
keeprline = keeprline||(stVPbip==TopAbs_ON); // REST1
#ifdef OCCT_DEBUG
// if (trc) {
-// cout<<" bip("<<vpf.Index()<<","<<vpl.Index()<<") of line restriction ";
-// cout<<L.Index()<<" is ";TopAbs::Print(stVPbip,cout);
-// if (keeprline) cout<<" : edge restriction kept"<<endl;
-// else cout<<" : edge restriction kept not kept"<<endl;
+// std::cout<<" bip("<<vpf.Index()<<","<<vpl.Index()<<") of line restriction ";
+// std::cout<<L.Index()<<" is ";TopAbs::Print(stVPbip,std::cout);
+// if (keeprline) std::cout<<" : edge restriction kept"<<std::endl;
+// else std::cout<<" : edge restriction kept not kept"<<std::endl;
// }
#endif
extern void TopOpeBRep_SettraceEEFF(const Standard_Boolean b);
extern Standard_Boolean TopOpeBRep_GettraceEEFF(const Standard_Integer e1,const Standard_Integer e2,const Standard_Integer f1,const Standard_Integer f2);
void seteeff(const Standard_Boolean b,const Standard_Integer e1,const Standard_Integer e2, const Standard_Integer f1,const Standard_Integer f2)
-{cout<<"b,e1,e2,f1,f2 : "<<b<<" "<<e1<<","<<e2<<","<<f1<<","<<f2<<endl;TopOpeBRep_SettraceEEFF(b);}
+{std::cout<<"b,e1,e2,f1,f2 : "<<b<<" "<<e1<<","<<e2<<","<<f1<<","<<f2<<std::endl;TopOpeBRep_SettraceEEFF(b);}
void seteefft(const Standard_Integer e1,const Standard_Integer e2, const Standard_Integer f1,const Standard_Integer f2) {seteeff(Standard_True,e1,e2,f1,f2);}
void seteefff(const Standard_Integer e1,const Standard_Integer e2, const Standard_Integer f1,const Standard_Integer f2) {seteeff(Standard_False,e1,e2,f1,f2);}
#endif
#ifdef OCCT_DEBUG
if (TopOpeBRep_GettraceSI() && res) {
- if ( myFFDone ) cout<<"FF : ";
- else if ( myEEFFDone ) cout<<" EE : ";
+ if ( myFFDone ) std::cout<<"FF : ";
+ else if ( myEEFFDone ) std::cout<<" EE : ";
DumpCurrent(1);
DumpCurrent(2);
- if ( myFFDone && myFFSameDomain ) cout<<"(FF SameDomain)";
- else if ( myEEFFDone ) cout<<"(EE of FF SameDomain)";
- else if ( myEEDone ) cout<<"EE : ";
- cout<<endl;
+ if ( myFFDone && myFFSameDomain ) std::cout<<"(FF SameDomain)";
+ else if ( myEEFFDone ) std::cout<<"(EE of FF SameDomain)";
+ else if ( myEEDone ) std::cout<<"EE : ";
+ std::cout<<std::endl;
if (myEEFFDone) {
Standard_Integer ie1 = myEdgeScanner.Index();
Standard_Integer ie2 = myEdgeExplorer.Index();
Standard_Integer if1 = myFaceScanner.Index();
Standard_Integer if2 = myFaceExplorer.Index();
- cout<<" trc teeff 1 "<<ie1<<" "<<ie2<<" "<<if1<<" "<<if2<<"; # ie1 ie2 if1 if2"<<endl;
+ std::cout<<" trc teeff 1 "<<ie1<<" "<<ie2<<" "<<if1<<" "<<if2<<"; # ie1 ie2 if1 if2"<<std::endl;
Standard_Boolean b = TopOpeBRep_GettraceEEFF(ie1,ie2,if1,if2);
if (b) seteefft(ie1,ie2,if1,if2);
else seteefff(ie1,ie2,if1,if2);
void TopOpeBRep_ShapeIntersector::DumpCurrent(const Standard_Integer K) const
{
if ( myFFDone ) {
- if ( K == 1 ) myFaceScanner.DumpCurrent(cout);
- else if ( K == 2 ) myFaceExplorer.DumpCurrent(cout);
+ if ( K == 1 ) myFaceScanner.DumpCurrent(std::cout);
+ else if ( K == 2 ) myFaceExplorer.DumpCurrent(std::cout);
}
else if ( myEEFFDone ) {
- if ( K == 1 ) myEdgeScanner.DumpCurrent(cout);
- else if ( K == 2 ) myEdgeExplorer.DumpCurrent(cout);
+ if ( K == 1 ) myEdgeScanner.DumpCurrent(std::cout);
+ else if ( K == 2 ) myEdgeExplorer.DumpCurrent(std::cout);
}
else if ( myFEDone ) {
- if ( K == 1 ) myFaceScanner.DumpCurrent(cout);
- else if ( K == 2 ) myEdgeExplorer.DumpCurrent(cout);
+ if ( K == 1 ) myFaceScanner.DumpCurrent(std::cout);
+ else if ( K == 2 ) myEdgeExplorer.DumpCurrent(std::cout);
}
else if ( myEFDone ) {
- if ( K == 1 ) myEdgeScanner.DumpCurrent(cout);
- else if ( K == 2 ) myFaceExplorer.DumpCurrent(cout);
+ if ( K == 1 ) myEdgeScanner.DumpCurrent(std::cout);
+ else if ( K == 2 ) myFaceExplorer.DumpCurrent(std::cout);
}
else if ( myEEDone ) {
- if ( K == 1 ) myEdgeScanner.DumpCurrent(cout);
- else if ( K == 2 ) myEdgeExplorer.DumpCurrent(cout);
+ if ( K == 1 ) myEdgeScanner.DumpCurrent(std::cout);
+ else if ( K == 2 ) myEdgeExplorer.DumpCurrent(std::cout);
}
}
#else
#ifdef OCCT_DEBUG
SAVFFi1 = myFaceScanner.Index(); SAVFFi2 = myFaceExplorer.Index();
if (TopOpeBRep_GettraceSI()) {
- cout<<"?? FF : ";
- myFaceScanner.DumpCurrent(cout); myFaceExplorer.DumpCurrent(cout);
- cout<<endl;
+ std::cout<<"?? FF : ";
+ myFaceScanner.DumpCurrent(std::cout); myFaceExplorer.DumpCurrent(std::cout);
+ std::cout<<std::endl;
}
#endif
if (TopOpeBRep_GetcontextFFOR()) {
face1.Orientation(TopAbs_FORWARD); //-05/07
face2.Orientation(TopAbs_FORWARD); //-05/07
- cout<<"ctx : InitEEFFIntersection : faces FORWARD"<<endl;
+ std::cout<<"ctx : InitEEFFIntersection : faces FORWARD"<<std::endl;
}
#endif
#ifdef OCCT_DEBUG
if (TopOpeBRep_GettraceSI() && myEEIntersector.IsEmpty()) {
- cout<<" EE : ";
- myEdgeScanner.DumpCurrent(cout);
- myEdgeExplorer.DumpCurrent(cout);
- cout<<"(EE of FF SameDomain)";
- cout<<" : EMPTY INTERSECTION";
- cout<<endl;
+ std::cout<<" EE : ";
+ myEdgeScanner.DumpCurrent(std::cout);
+ myEdgeExplorer.DumpCurrent(std::cout);
+ std::cout<<"(EE of FF SameDomain)";
+ std::cout<<" : EMPTY INTERSECTION";
+ std::cout<<std::endl;
}
#endif
}
#ifdef OCCT_DEBUG
if( result != 0 )
- cout << "# one of the SOLIDs probably is a HALF SPACE" << endl;
+ std::cout << "# one of the SOLIDs probably is a HALF SPACE" << std::endl;
#endif
}
#ifdef OCCT_DEBUG
if (TopOpeBRep_GettraceSI() && res) {
- if ( myFFDone ) cout<<"FF : ";
- else if ( myEEFFDone ) cout<<" EE : ";
+ if ( myFFDone ) std::cout<<"FF : ";
+ else if ( myEEFFDone ) std::cout<<" EE : ";
DumpCurrent(1);
DumpCurrent(2);
}
void TopOpeBRep_ShapeIntersector2d::DumpCurrent(const Standard_Integer K) const
{
if ( myFFDone ) {
- if ( K == 1 ) myFaceScanner.DumpCurrent(cout);
- else if ( K == 2 ) myFaceExplorer.DumpCurrent(cout);
+ if ( K == 1 ) myFaceScanner.DumpCurrent(std::cout);
+ else if ( K == 2 ) myFaceExplorer.DumpCurrent(std::cout);
}
else if ( myEEFFDone ) {
- if ( K == 1 ) myEdgeScanner.DumpCurrent(cout);
- else if ( K == 2 ) myEdgeExplorer.DumpCurrent(cout);
+ if ( K == 1 ) myEdgeScanner.DumpCurrent(std::cout);
+ else if ( K == 2 ) myEdgeExplorer.DumpCurrent(std::cout);
}
#else
void TopOpeBRep_ShapeIntersector2d::DumpCurrent(const Standard_Integer) const
#ifdef OCCT_DEBUG
if (TopOpeBRep_GettraceSI()) {
- cout<<"?? FF : ";
- myFaceScanner.DumpCurrent(cout);
- myFaceExplorer.DumpCurrent(cout);
- cout<<endl;
+ std::cout<<"?? FF : ";
+ myFaceScanner.DumpCurrent(std::cout);
+ myFaceExplorer.DumpCurrent(std::cout);
+ std::cout<<std::endl;
}
#endif
if (TopOpeBRep_GetcontextFFOR()) {
face1.Orientation(TopAbs_FORWARD); //-05/07
face2.Orientation(TopAbs_FORWARD); //-05/07
- cout<<"ctx : InitEEFFIntersection : faces FORWARD"<<endl;
+ std::cout<<"ctx : InitEEFFIntersection : faces FORWARD"<<std::endl;
}
#endif
#ifdef OCCT_DEBUG
if (TopOpeBRep_GettraceSI() && myEEIntersector.IsEmpty()) {
- cout<<" EE : ";
- myEdgeScanner.DumpCurrent(cout);
- myEdgeExplorer.DumpCurrent(cout);
- cout<<"(EE of FF SameDomain)";
- cout<<" : EMPTY INTERSECTION";
- cout<<endl;
+ std::cout<<" EE : ";
+ myEdgeScanner.DumpCurrent(std::cout);
+ myEdgeExplorer.DumpCurrent(std::cout);
+ std::cout<<"(EE of FF SameDomain)";
+ std::cout<<" : EMPTY INTERSECTION";
+ std::cout<<std::endl;
}
#endif
TopAbs_ShapeEnum T = S.ShapeType();
TopAbs_Orientation O = S.Orientation();
Standard_Integer I = Index();
- TopAbs::Print(T,cout);
- cout<<"("<<I<<","; TopAbs::Print(O,cout); cout<<") ";
+ TopAbs::Print(T,std::cout);
+ std::cout<<"("<<I<<","; TopAbs::Print(O,std::cout); std::cout<<") ";
}
#endif
return OS;
TopOpeBRepTool_ShapeTool::Closed(E,F);
#ifdef OCCT_DEBUG
- if (closingedge) OS<<"on closing edge "; else OS<<"on edge "; TopAbs::Print(O,cout);
- cout<<" of "<<I<<" : par : "<<Epar<<endl;
+ if (closingedge) OS<<"on closing edge "; else OS<<"on edge "; TopAbs::Print(O,std::cout);
+ std::cout<<" of "<<I<<" : par : "<<Epar<<std::endl;
TopOpeBRep_FFTransitionTool::ProcessLineTransition(*this,I,O);
OS<<"line transition ";
- if (closingedge) OS<<"on closing edge "; else OS<<"on edge "; TopAbs::Print(O,cout);
- OS<<" of "<<I<<endl;
+ if (closingedge) OS<<"on closing edge "; else OS<<"on edge "; TopAbs::Print(O,std::cout);
+ OS<<" of "<<I<<std::endl;
#endif
return OS;
OS<<"VP "<<myIndex<<" on "<<myShapeIndex<<" :";
Standard_Real Cpar = ParameterOnLine(); OS<<" on curve : "<<Cpar;
if (!myKeep) OS<<" NOT kept";
- OS<<endl;
+ OS<<std::endl;
const gp_Pnt& P = Value();
OS<<PRODINP<<"P"<<myIndex<<" "; OS<<P.X()<<" "<<P.Y()<<" "<<P.Z();
- OS<<"; #draw"<<endl;
+ OS<<"; #draw"<<std::endl;
- if (IsVertexOnS1()) { OS<<"is vertex of 1"<<endl; }
- if (IsVertexOnS2()) { OS<<"is vertex of 2"<<endl; }
- if (IsMultiple()) { OS<<"is multiple"<<endl; }
- if (IsInternal()) { OS<<"is internal"<<endl; }
+ if (IsVertexOnS1()) { OS<<"is vertex of 1"<<std::endl; }
+ if (IsVertexOnS2()) { OS<<"is vertex of 2"<<std::endl; }
+ if (IsMultiple()) { OS<<"is multiple"<<std::endl; }
+ if (IsInternal()) { OS<<"is internal"<<std::endl; }
if (myShapeIndex == 1) {
Dump(1,F1,OS);
#ifdef OCCT_DEBUG
if (editITF) {
if (ivp1 != 0) {
- cout<<TopOpeBRepDS::SPrint(TopOpeBRepDS_CURVE,ic,"# BREP_mergePDS "," : ");
- cout<<TopOpeBRepDS::SPrint(GK,GI,""," = ");
+ std::cout<<TopOpeBRepDS::SPrint(TopOpeBRepDS_CURVE,ic,"# BREP_mergePDS "," : ");
+ std::cout<<TopOpeBRepDS::SPrint(GK,GI,""," = ");
TCollection_AsciiString str (BDS.HasShape(v1) ? "old" : "new ");
- cout<<TopOpeBRepDS::SPrint(k1,iv1,str);
- cout<<TopOpeBRepDS::SPrint(TopOpeBRepDS::ShapeToKind(f1.ShapeType()),if1," de ")<<endl;
+ std::cout<<TopOpeBRepDS::SPrint(k1,iv1,str);
+ std::cout<<TopOpeBRepDS::SPrint(TopOpeBRepDS::ShapeToKind(f1.ShapeType()),if1," de ")<<std::endl;
}
if (ivp2 != 0) {
- cout<<TopOpeBRepDS::SPrint(TopOpeBRepDS_CURVE,ic,"# BREP_mergePDS "," : ");
- cout<<TopOpeBRepDS::SPrint(GK,GI,""," = ");
+ std::cout<<TopOpeBRepDS::SPrint(TopOpeBRepDS_CURVE,ic,"# BREP_mergePDS "," : ");
+ std::cout<<TopOpeBRepDS::SPrint(GK,GI,""," = ");
TCollection_AsciiString str (BDS.HasShape(v2) ? "old" : "new ");
- cout<<TopOpeBRepDS::SPrint(k2,iv2,str);
- cout<<TopOpeBRepDS::SPrint(TopOpeBRepDS::ShapeToKind(f2.ShapeType()),if2," de ")<<endl;
+ std::cout<<TopOpeBRepDS::SPrint(k2,iv2,str);
+ std::cout<<TopOpeBRepDS::SPrint(TopOpeBRepDS::ShapeToKind(f2.ShapeType()),if2," de ")<<std::endl;
}
}
#endif
Standard_EXPORT void TopOpeBRep_SetcontextREST1(const Standard_Boolean b) { TopOpeBRep_contextREST1 = b; }
Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextREST1(char* str) {
if (TopOpeBRep_contextREST1) {
- cout<<"context REST1 actif"; if (str!=NULL) cout<<str; cout<<endl;
+ std::cout<<"context REST1 actif"; if (str!=NULL) std::cout<<str; std::cout<<std::endl;
}
return TopOpeBRep_contextREST1;
}
Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextREST1() {
- if (TopOpeBRep_contextREST1) cout<<"context REST1 actif"<<endl;
+ if (TopOpeBRep_contextREST1) std::cout<<"context REST1 actif"<<std::endl;
return TopOpeBRep_contextREST1;
}
Standard_EXPORT void TopOpeBRep_SetcontextREST2(const Standard_Boolean b) { TopOpeBRep_contextREST2 = b; }
Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextREST2(char* str) {
if (TopOpeBRep_contextREST2) {
- cout<<"context REST2 actif"; if (str!=NULL) cout<<str; cout<<endl;
+ std::cout<<"context REST2 actif"; if (str!=NULL) std::cout<<str; std::cout<<std::endl;
}
return TopOpeBRep_contextREST2;
}
Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextREST2() {
- if (TopOpeBRep_contextREST2) cout<<"context REST2 actif"<<endl;
+ if (TopOpeBRep_contextREST2) std::cout<<"context REST2 actif"<<std::endl;
return TopOpeBRep_contextREST2;
}
Standard_EXPORT void TopOpeBRep_SetcontextINL(const Standard_Boolean b) { TopOpeBRep_contextINL = b; }
Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextINL(char* str) {
if (TopOpeBRep_contextINL) {
- cout<<"context INL actif"; if (str!=NULL) cout<<str; cout<<endl;
+ std::cout<<"context INL actif"; if (str!=NULL) std::cout<<str; std::cout<<std::endl;
}
return TopOpeBRep_contextINL;
}
Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextINL() {
- if (TopOpeBRep_contextINL) cout<<"context INL actif"<<endl;
+ if (TopOpeBRep_contextINL) std::cout<<"context INL actif"<<std::endl;
return TopOpeBRep_contextINL;
}
Standard_EXPORT void TopOpeBRep_SetcontextNEWKP(const Standard_Boolean b) { TopOpeBRep_contextNEWKP = b; }
Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextNEWKP(char* str) {
if (TopOpeBRep_contextNEWKP) {
- cout<<"context NEWKP actif"; if (str!=NULL) cout<<str; cout<<endl;
+ std::cout<<"context NEWKP actif"; if (str!=NULL) std::cout<<str; std::cout<<std::endl;
}
return TopOpeBRep_contextNEWKP;
}
Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextNEWKP() {
- if (TopOpeBRep_contextNEWKP) cout<<"context NEWKP actif"<<endl;
+ if (TopOpeBRep_contextNEWKP) std::cout<<"context NEWKP actif"<<std::endl;
return TopOpeBRep_contextNEWKP;
}
return TopOpeBRep_contextTOL0;
}
Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextTOL0() {
- if (TopOpeBRep_contextTOL0) cout<<"context TOL0 actif"<<endl;
+ if (TopOpeBRep_contextTOL0) std::cout<<"context TOL0 actif"<<std::endl;
return TopOpeBRep_contextTOL0;
}
Standard_EXPORT void TopOpeBRep_SetcontextNONOG(const Standard_Boolean b) { TopOpeBRep_contextNONOG = b; }
Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextNONOG(char* str) {
if (TopOpeBRep_contextNONOG) {
- cout<<"context NONOG actif"; if (str!=NULL) cout<<str; cout<<endl;
+ std::cout<<"context NONOG actif"; if (str!=NULL) std::cout<<str; std::cout<<std::endl;
}
return TopOpeBRep_contextNONOG;
}
Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextNONOG() {
- if (TopOpeBRep_contextNONOG) cout<<"context NONOG actif"<<endl;
+ if (TopOpeBRep_contextNONOG) std::cout<<"context NONOG actif"<<std::endl;
return TopOpeBRep_contextNONOG;
}
void TopOpeBRep_ALWL::Print()
{
- cout<<myname<<" defined :";
+ std::cout<<myname<<" defined :";
Standard_Integer n = 0;
- if (mydefdef) { cout<<" Def = "<<mydeflectionmax; n++; }
- if (mypasdef) { cout<<" Pas = "<<mypasUVmax; n++; }
- if (mynbpdef) { cout<<" Nbp = "<<mynbpointsmax; n++; }
- if (!n) cout<<" none";
- cout<<endl;
+ if (mydefdef) { std::cout<<" Def = "<<mydeflectionmax; n++; }
+ if (mypasdef) { std::cout<<" Pas = "<<mypasUVmax; n++; }
+ if (mynbpdef) { std::cout<<" Nbp = "<<mynbpointsmax; n++; }
+ if (!n) std::cout<<" none";
+ std::cout<<std::endl;
}
static TopOpeBRep_ALWL TopOpeBRep_contextALWL
{
Standard_CString cs = myfilename.ToCString();
myopen = Standard_True;
- if (!myfilebuf.open(cs,ios::out)) {
+ if (!myfilebuf.open(cs,std::ios::out)) {
myopen = Standard_False;
}
if (!myopen) {
return myopen;
}
- ostream osfic(&myfilebuf); osfic.precision(15);
+ std::ostream osfic(&myfilebuf); osfic.precision(15);
if (s.Length()) {
- OS<<s<<myfilename<<endl;
+ OS<<s<<myfilename<<std::endl;
}
return myopen;
}
}
TCollection_AsciiString n1 = Name1(I1);
TCollection_AsciiString n2 = Name2(I2);
- ostream osfic(&myfilebuf);
+ std::ostream osfic(&myfilebuf);
osfic<<n1<<" "<<n2<<"\n";
}
return;
}
if (s.Length()) {
- OS<<s<<myfilename<<endl;
+ OS<<s<<myfilename<<std::endl;
}
myopen = Standard_False;
}
Standard_OStream& OS);
private:
TCollection_AsciiString mybrep1,mybrep2,myfilename;
- filebuf myfilebuf;
+ std::filebuf myfilebuf;
Standard_Boolean myopen;
};
void debvpr(){};
void debvprmess(Standard_Integer f1,Standard_Integer f2,Standard_Integer il,Standard_Integer vp,Standard_Integer si)
-{cout<<"f1,f2,il,vp,si : "<<f1<<","<<f2<<","<<il<<","<<vp<<","<<si<<endl;cout.flush();debvpr();}
-void debpoint(Standard_Integer i) {cout<<"+ debpoint"<<i<<endl;}
-void debvertex(Standard_Integer i){cout<<"+ debvertex"<<i<<endl;}
+{std::cout<<"f1,f2,il,vp,si : "<<f1<<","<<f2<<","<<il<<","<<vp<<","<<si<<std::endl;std::cout.flush();debvpr();}
+void debpoint(Standard_Integer i) {std::cout<<"+ debpoint"<<i<<std::endl;}
+void debvertex(Standard_Integer i){std::cout<<"+ debvertex"<<i<<std::endl;}
-Standard_EXPORT void debarc(const Standard_Integer i) {cout<<"+ debarc "<<i<<endl;}
-Standard_EXPORT void debooarc(const Standard_Integer i) {cout<<"+ debooarc "<<i<<endl;}
+Standard_EXPORT void debarc(const Standard_Integer i) {std::cout<<"+ debarc "<<i<<std::endl;}
+Standard_EXPORT void debooarc(const Standard_Integer i) {std::cout<<"+ debooarc "<<i<<std::endl;}
#endif
Standard_EXPORT Standard_Boolean FDS_LOIinfsup(const TopOpeBRepDS_DataStructure& BDS,const TopoDS_Edge& E,const Standard_Real pE,const Standard_Integer GIP,
}
#ifdef OCCT_DEBUG
-Standard_EXPORT void funraise() {cout<<"!!!!!!!!!! PVIndex = 0 !!!!!!!!!!"<<endl;}
+Standard_EXPORT void funraise() {std::cout<<"!!!!!!!!!! PVIndex = 0 !!!!!!!!!!"<<std::endl;}
#endif
//=======================================================================
Standard_Integer iLOL;
TopOpeBRepBuild_ListIteratorOfListOfLoop itLOL;
for (iLOL = 0, itLOL.Initialize(LOL); itLOL.More(); iLOL++, itLOL.Next()) {
- if (iLOL) cout<<" ";
- else cout<<"DUMP_AREA : ";
+ if (iLOL) std::cout<<" ";
+ else std::cout<<"DUMP_AREA : ";
const Handle(TopOpeBRepBuild_Loop)& L = itLOL.Value();
- L->Dump();cout<<endl;
+ L->Dump();std::cout<<std::endl;
}
#else
void TopOpeBRepBuild_Area1dBuilder::DumpList(const TopOpeBRepBuild_ListOfLoop&)
#ifdef OCCT_DEBUG
if (TopOpeBRepBuild_GettraceAREA()) {
- cout<<"++++ new loop : "; L->Dump();
- if (boundaryL) cout<<" is bound"; else cout<<" is not bound";
- cout<<endl;
+ std::cout<<"++++ new loop : "; L->Dump();
+ if (boundaryL) std::cout<<" is bound"; else std::cout<<" is not bound";
+ std::cout<<std::endl;
}
#endif
#ifdef OCCT_DEBUG
if (TopOpeBRepBuild_GettraceAREA()) {
if ( ! myArea.IsEmpty() ) {
- cout<<"------- Areas -------"<<endl;
+ std::cout<<"------- Areas -------"<<std::endl;
for (AreaIter.Initialize(myArea);AreaIter.More();AreaIter.Next())
DumpList(AreaIter.Value());
- cout<<"---------------------"<<endl;
+ std::cout<<"---------------------"<<std::endl;
}
}
#endif
#ifdef OCCT_DEBUG
if (TopOpeBRepBuild_GettraceAREA()) {
- cout<<"--------------------- add area loop to area : ";
- L->Dump(); cout<<endl;
- if (ss != NULL) cout<<(char*)ss<<endl;
+ std::cout<<"--------------------- add area loop to area : ";
+ L->Dump(); std::cout<<std::endl;
+ if (ss != NULL) std::cout<<(char*)ss<<std::endl;
DumpList(LOL);
- cout<<"---------------------"<<endl;
+ std::cout<<"---------------------"<<std::endl;
}
#endif
}
#ifdef OCCT_DEBUG
if (TopOpeBRepBuild_GettraceAREA()) {
if (ITA.More()) {
- cout<<"--------------------- remove area loop from area : ";
- ITA.Value()->Dump(); cout<<endl;
- if (s != NULL) cout<<s<<endl;
+ std::cout<<"--------------------- remove area loop from area : ";
+ ITA.Value()->Dump(); std::cout<<std::endl;
+ if (s != NULL) std::cout<<s<<std::endl;
}
}
#endif
#ifdef OCCT_DEBUG
if (TopOpeBRepBuild_GettraceAREA()) {
DumpList(A);
- cout<<"---------------------"<<endl;
+ std::cout<<"---------------------"<<std::endl;
}
#endif
}
char* s2 = (char*)ss2;
if (TopOpeBRepBuild_GettraceAREA()) {
- cout<<"--------------------- add area 1 to area 2 : ";
- if (s != NULL) cout<<s; cout<<endl;
- cout<<"1 : "; if (s1 != NULL) cout<<s1; cout<<endl;
+ std::cout<<"--------------------- add area 1 to area 2 : ";
+ if (s != NULL) std::cout<<s; std::cout<<std::endl;
+ std::cout<<"1 : "; if (s1 != NULL) std::cout<<s1; std::cout<<std::endl;
DumpList(A1);
}
#endif
#ifdef OCCT_DEBUG
if (TopOpeBRepBuild_GettraceAREA()) {
- cout<<"2 : "; if (s2 != NULL) cout<<s2; cout<<endl;
+ std::cout<<"2 : "; if (s2 != NULL) std::cout<<s2; std::cout<<std::endl;
DumpList(A2);
- cout<<"---------------------"<<endl;
+ std::cout<<"---------------------"<<std::endl;
}
#endif
}
if ( myArea.IsEmpty() ) {
#ifdef OCCT_DEBUG
if (TopOpeBRepBuild_GettraceAREA())
- cout<<"---"<<endl<<"--- purge"<<endl<<"---"<<endl;
+ std::cout<<"---"<<std::endl<<"--- purge"<<std::endl<<"---"<<std::endl;
#endif
TopOpeBRepBuild_ListOfLoop newArea3;
newArea3.Append(boundaryloops);
void TopOpeBRepBuild_Builder::BuildEdges(const Standard_Integer iC,const Handle(TopOpeBRepDS_HDataStructure)& HDS)
{
#ifdef OCCT_DEBUG
- if (TopOpeBRepBuild_GettraceCU()) cout<<"\nBuildEdges on C "<<iC<<endl;
+ if (TopOpeBRepBuild_GettraceCU()) std::cout<<"\nBuildEdges on C "<<iC<<std::endl;
#endif
const TopOpeBRepDS_Curve& C = HDS->Curve(iC);
const Handle(Geom_Curve)& C3D = C.Curve();
Standard_Integer iC = SCurves.Current();
const TopOpeBRepDS_Curve& CDS = HDS->Curve(iC);
#ifdef OCCT_DEBUG
- if (tSE) cout<<endl<<"BuildFaces : C "<<iC<<" on S "<<iS<<endl;
+ if (tSE) std::cout<<std::endl<<"BuildFaces : C "<<iC<<" on S "<<iS<<std::endl;
#endif
TopoDS_Shape anEdge;
TopTools_ListIteratorOfListOfShape Iti(NewEdges(iC));
extern Standard_Boolean TopOpeBRepBuild_GettraceSPF();
extern Standard_Boolean TopOpeBRepBuild_GettraceSPS();
extern Standard_Boolean TopOpeBRepBuild_GetcontextSF2();
-Standard_EXPORT void debmarksplit(const Standard_Integer i) {cout<<"++ debmarksplit "<<i<<endl;}
-Standard_EXPORT void debchangesplit(const Standard_Integer i) {cout<<"++ debchangesplit "<<i<<endl;}
-Standard_EXPORT void debspf(const Standard_Integer i) {cout<<"++ debspf"<<i<<endl;}
+Standard_EXPORT void debmarksplit(const Standard_Integer i) {std::cout<<"++ debmarksplit "<<i<<std::endl;}
+Standard_EXPORT void debchangesplit(const Standard_Integer i) {std::cout<<"++ debchangesplit "<<i<<std::endl;}
+Standard_EXPORT void debspf(const Standard_Integer i) {std::cout<<"++ debspf"<<i<<std::endl;}
#endif
static Standard_Integer STATIC_SOLIDINDEX = 0;
#ifdef OCCT_DEBUG
Standard_Integer iS; Standard_Boolean tSPS = GtraceSPS(S,iS);
if (tSPS) {
- cout<<"tosplit "<<tosplit<<" : !issplit "<<(!issplit);
- cout<<" && (hasgeom || hassame) ("<<hasgeom<<" || "<<hassame<<")"<<endl;
+ std::cout<<"tosplit "<<tosplit<<" : !issplit "<<(!issplit);
+ std::cout<<" && (hasgeom || hassame) ("<<hasgeom<<" || "<<hassame<<")"<<std::endl;
}
#endif
Standard_Integer iS; Standard_Boolean tSPS = GtraceSPS(S,iS);
if(tSPS){
GdumpSHA(S, (char *) "MarkSplit ");
- cout<<" ";TopAbs::Print(ToBuild,cout);cout<<" "<<Bval<<endl;
+ std::cout<<" ";TopAbs::Print(ToBuild,std::cout);std::cout<<" "<<Bval<<std::endl;
debmarksplit(iS);
}
#endif
Standard_Integer iS; Standard_Boolean tSPS = GtraceSPS(S,iS);
if(tSPS){
GdumpSHA(S, (char *) "ChangeSplit ");
- cout<<" ";TopAbs::Print(ToBuild,cout);cout<<endl;
+ std::cout<<" ";TopAbs::Print(ToBuild,std::cout);std::cout<<std::endl;
debchangesplit(iS);
}
#endif
#ifdef OCCT_DEBUG
Standard_Integer iEdge; Standard_Boolean tSPS = GtraceSPS(Eoriented,iEdge);
if(tSPS){
- cout<<endl;
+ std::cout<<std::endl;
GdumpSHASTA(Eoriented,ToBuild1,"--- SplitEdge ");
- cout<<endl;
+ std::cout<<std::endl;
}
#endif
#ifdef OCCT_DEBUG
if(tSPS){GdumpSAMDOM(LE1, (char *) "1 : ");}
if(tSPS){GdumpSAMDOM(LE2, (char *) "2 : ");}
- if(tSPS){cout<<endl;}
- if(tSPS){cout<<"V of edge ";TopAbs::Print(Eforward.Orientation(),cout);}
- if(tSPS){cout<<endl;}
+ if(tSPS){std::cout<<std::endl;}
+ if(tSPS){std::cout<<"V of edge ";TopAbs::Print(Eforward.Orientation(),std::cout);}
+ if(tSPS){std::cout<<std::endl;}
if(tSPS){GdumpEDG(Eforward);}
#endif
if ( !PVS.MoreLoop() ) {
#ifdef OCCT_DEBUG
if(tSPS) {
- cout<<"NO VERTEX split "; TopAbs::Print(ToBuild1,cout);cout<<endl;
+ std::cout<<"NO VERTEX split "; TopAbs::Print(ToBuild1,std::cout);std::cout<<std::endl;
}
#endif
return;
#ifdef OCCT_DEBUG
Standard_Integer iEdge; Standard_Boolean tSPS = GtraceSPS(Eoriented,iEdge);
- if(tSPS){cout<<endl;}
+ if(tSPS){std::cout<<std::endl;}
if(tSPS){GdumpSHASTA(Eoriented,ToBuild1,"--- SplitEdge2 ");}
#endif
PVS.InitLoop();
if ( !PVS.MoreLoop() ) {
#ifdef OCCT_DEBUG
- if(tSPS) {cout<<"NO VERTEX split ";TopAbs::Print(ToBuild1,cout);cout<<endl;}
+ if(tSPS) {std::cout<<"NO VERTEX split ";TopAbs::Print(ToBuild1,std::cout);std::cout<<std::endl;}
#endif
return;
}
#ifdef OCCT_DEBUG
Standard_Boolean tSPF=TopOpeBRepBuild_GettraceSPF();
Standard_Integer iFace=myDataStructure->Shape(Foriented);
- if(tSPF){cout<<endl;GdumpSHASTA(Foriented,ToBuild1,"=== SplitFace ");}
+ if(tSPF){std::cout<<std::endl;GdumpSHASTA(Foriented,ToBuild1,"=== SplitFace ");}
if(tSPF){GdumpSAMDOM(LF1, (char *) "1 : ");GdumpSAMDOM(LF2, (char *) "2 : ");}
if(tSPF) debspf(iFace);
#endif
Standard_Boolean tSPF = TopOpeBRepBuild_GettraceSPF();
// Standard_Integer iFace = myDataStructure->Shape(Foriented);
if (tSPF) {
- cout<<endl;
+ std::cout<<std::endl;
GdumpSHASTA(Foriented,ToBuild1,"=== SplitFace ");
GdumpSAMDOM(LF1, (char *) "samedomain 1 : ");
GdumpSAMDOM(LF2, (char *) "samedomain 2 : ");
Standard_Boolean tSPS = TopOpeBRepBuild_GettraceSPS();
// Standard_Integer iSolid = myDataStructure->Shape(S1oriented);
if (tSPS) {
- cout<<endl;
+ std::cout<<std::endl;
GdumpSHASTA(S1oriented,ToBuild1,"___ SplitSolid ");
GdumpSAMDOM(LS1, (char *) "1 : ");
GdumpSAMDOM(LS2, (char *) "2 : ");
TCollection_AsciiString ss("--- SplitSolid ");
ss = ss + SFS.DEBNumber() + " AddElement SFS+ face ";
GdumpSHA(aFace,(Standard_Address)ss.ToCString());
- cout<<" ";TopAbs::Print(ToBuild1,cout)<<" : 1 face ";
- TopAbs::Print(ori,cout); cout<<endl;
+ std::cout<<" ";TopAbs::Print(ToBuild1,std::cout)<<" : 1 face ";
+ TopAbs::Print(ori,std::cout); std::cout<<std::endl;
}
#endif
SFS.AddElement(aFace);
RevOri = ! RevOri;
#ifdef OCCT_DEBUG
// Standard_Integer iFace = myDataStructure->Shape(S1);
-// cout<<endl<<"********** ";
-// cout<<"retournement d'orientation de ";TopAbs::Print(t,cout);
-// cout<<" "<<iFace<<endl;
+// std::cout<<std::endl<<"********** ";
+// std::cout<<"retournement d'orientation de ";TopAbs::Print(t,std::cout);
+// std::cout<<" "<<iFace<<std::endl;
#endif
}
}
#ifdef OCCT_DEBUG
Standard_Boolean tSPF = TopOpeBRepBuild_GettraceSPF();
// Standard_Integer iFace = myDataStructure->Shape(F1);
- if(tSPF){cout<<endl;}
+ if(tSPF){std::cout<<std::endl;}
if(tSPF){GdumpSHASTA(F1,ToBuild1,"=-= FillFace ");}
#endif
myListOfFace = LF2;
const TopoDS_Edge& EDEB = PVS.Edge();
Standard_Integer iE; Standard_Boolean tSPS = GtraceSPS(EDEB,iE);
if (tSPS) {
- if (keep) cout<<"+"; else cout<<"-";
- if (ispoint) cout<<" PDS "; else cout<<" VDS ";
- cout<<ind<<" : "; GdumpORIPARPNT(ori,par,BRep_Tool::Pnt(TopoDS::Vertex(V)));
- cout<<endl;
+ if (keep) std::cout<<"+"; else std::cout<<"-";
+ if (ispoint) std::cout<<" PDS "; else std::cout<<" VDS ";
+ std::cout<<ind<<" : "; GdumpORIPARPNT(ori,par,BRep_Tool::Pnt(TopoDS::Vertex(V)));
+ std::cout<<std::endl;
}
#endif
}
Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextEEXTERNAL();
Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextNOSG();
Standard_EXPORT void debON(const Standard_Integer iF)
-{cout<<"++ debON "<<iF<<" "<<endl;}
+{std::cout<<"++ debON "<<iF<<" "<<std::endl;}
Standard_EXPORT void debON(const Standard_Integer iF, const TopAbs_State TB1,const TopAbs_State TB2)
-{cout<<"++ debON "<<iF<<" :TB1=";TopAbs::Print(TB1,cout);cout<<",TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
+{std::cout<<"++ debON "<<iF<<" :TB1=";TopAbs::Print(TB1,std::cout);std::cout<<",TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
Standard_EXPORT void debfillonf(const Standard_Integer iF)
-{cout<<"++ debfillonf "<<iF<<" "<<endl;}
+{std::cout<<"++ debfillonf "<<iF<<" "<<std::endl;}
Standard_EXPORT void debfillone(const Standard_Integer iE)
-{cout<<"++ debfillone "<<iE<<" "<<endl;}
+{std::cout<<"++ debfillone "<<iE<<" "<<std::endl;}
Standard_EXPORT void debfillonfe(){}
Standard_EXPORT void debfillonfemess(const Standard_Integer f,const Standard_Integer e)
-{cout<<"++ debfillonfe f"<<f<<" e"<<e<<endl;debfillonfe();}
+{std::cout<<"++ debfillonfe f"<<f<<" e"<<e<<std::endl;debfillonfe();}
Standard_EXPORT void debfillonfe3d(){}
Standard_EXPORT void debfillonfemess3d(const Standard_Integer f,const Standard_Integer e)
-{cout<<"++ debfillonfe3d f"<<f<<" e"<<e<<endl;debfillonfe3d();}
+{std::cout<<"++ debfillonfe3d f"<<f<<" e"<<e<<std::endl;debfillonfe3d();}
Standard_EXPORT void debfillonfemess(const Standard_Integer iFOR,const Standard_Integer iEG,const TopOpeBRepBuild_PBuilder& PB,const TopOpeBRepBuild_PWireEdgeSet& PWES,const TCollection_AsciiString& str)
{PB->GdumpSHASTA(iEG,TopAbs_ON,*PWES,str); debfillonfemess(iFOR,iEG); }
Standard_EXPORT void debaddpwes(const Standard_Integer iFOR,const TopAbs_State TB1,const Standard_Integer iEG,const TopAbs_Orientation neworiE,const TopOpeBRepBuild_PBuilder& PB,const TopOpeBRepBuild_PWireEdgeSet& PWES,const TCollection_AsciiString& str1,const TCollection_AsciiString& str2)
-{PB->GdumpSHASTA(iFOR,TB1,*PWES,str1,str2);cout<<iEG<<" : 1 edge ";TopAbs::Print(neworiE,cout);cout<<endl; }
+{PB->GdumpSHASTA(iFOR,TB1,*PWES,str1,str2);std::cout<<iEG<<" : 1 edge ";TopAbs::Print(neworiE,std::cout);std::cout<<std::endl; }
Standard_EXPORT Standard_Boolean DEBTEFOR(const TopOpeBRepBuild_Builder& B,const Standard_Integer iFOR,const Standard_Integer GI)
{return B.GtraceSPS(iFOR,GI); }
#endif
static void FUN_cout(const TopoDS_Shape& eON)
{
TopAbs_Orientation oE = eON.Orientation();
- if (oE == TopAbs_FORWARD) cout<<"-> + eONF"<<endl;
- if (oE == TopAbs_REVERSED) cout<<"-> + eONR"<<endl;
- if (oE == TopAbs_INTERNAL) cout<<"-> + eONI"<<endl;
- if (oE == TopAbs_EXTERNAL) cout<<"-> + eONE"<<endl;
+ if (oE == TopAbs_FORWARD) std::cout<<"-> + eONF"<<std::endl;
+ if (oE == TopAbs_REVERSED) std::cout<<"-> + eONR"<<std::endl;
+ if (oE == TopAbs_INTERNAL) std::cout<<"-> + eONI"<<std::endl;
+ if (oE == TopAbs_EXTERNAL) std::cout<<"-> + eONE"<<std::endl;
}
#endif
#ifdef OCCT_DEBUG
Standard_EXPORT void FUN_coutmess(const TCollection_AsciiString& m)
{
- cout<<m;
+ std::cout<<m;
}
#else
Standard_EXPORT void FUN_coutmess(const TCollection_AsciiString&)
#ifdef OCCT_DEBUG
if (tFFEG || tFSEG) {
if ( keep1 != keep2 || keep1 != keep3 || keep2 != keep3 ) {
- cout<<"\nkeepEON : EGB "<<EGBoundFOR<<" EG "<<iEG<<" FOR "<<iFF<<" FS "<<iFS;
- cout<<" keep1 "<<keep1<<" keep2 "<<keep2<<" keep3 "<<keep3;
- cout<<" !=!=!=!=!=!=!=!=!=!=!=!=!=!=!=";
- cout<<endl;
+ std::cout<<"\nkeepEON : EGB "<<EGBoundFOR<<" EG "<<iEG<<" FOR "<<iFF<<" FS "<<iFS;
+ std::cout<<" keep1 "<<keep1<<" keep2 "<<keep2<<" keep3 "<<keep3;
+ std::cout<<" !=!=!=!=!=!=!=!=!=!=!=!=!=!=!=";
+ std::cout<<std::endl;
}
}
#endif
if ( yap00 ) {
#ifdef OCCT_DEBUG
if (tEFOR) debfillonfemess(iFOR,iEG,myPB,myPWES,"yap0 GFillON");
- if (tE) {cout<<"yap00(FOR"<<iFOR<<" FS"<<iFS<<" EG"<<GI<<") ";
- cout<<"TB1=";TopAbs::Print(TB1,cout);cout<<" TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
+ if (tE) {std::cout<<"yap00(FOR"<<iFOR<<" FS"<<iFS<<" EG"<<GI<<") ";
+ std::cout<<"TB1=";TopAbs::Print(TB1,std::cout);std::cout<<" TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
#endif
TopAbs_Orientation oeff;
if ( yap0 ) {
#ifdef OCCT_DEBUG
if (tEFOR) debfillonfemess(iFOR,iEG,myPB,myPWES,"yap0 GFillON");
- if (tE) {cout<<"yap0(FOR"<<iFOR<<" FS"<<iFS<<" EG"<<GI<<") ";
- cout<<"TB1=";TopAbs::Print(TB1,cout);cout<<" TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
+ if (tE) {std::cout<<"yap0(FOR"<<iFOR<<" FS"<<iFS<<" EG"<<GI<<") ";
+ std::cout<<"TB1=";TopAbs::Print(TB1,std::cout);std::cout<<" TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
#endif
TopAbs_Orientation oeff;
if ( yapc1 ) {
#ifdef OCCT_DEBUG
if (tEFOR) debfillonfemess(iFOR,iEG,myPB,myPWES,"yapc1 GFillON");
- if (tE) {cout<<"yapc1(FOR"<<iFOR<<" FS"<<iFS<<" EG"<<GI<<") ";
- cout<<"TB1=";TopAbs::Print(TB1,cout);cout<<" TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
+ if (tE) {std::cout<<"yapc1(FOR"<<iFOR<<" FS"<<iFS<<" EG"<<GI<<") ";
+ std::cout<<"TB1=";TopAbs::Print(TB1,std::cout);std::cout<<" TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
#endif
const TopoDS_Edge& e3d = TopoDS::Edge(BDS.Shape(ie3d));
else if (oe3dk == TopAbs_EXTERNAL) keep3d = Standard_False;
#ifdef OCCT_DEBUG
-// if(tEFOR) {cout<<endl<<"yapc1 keep3d : "<<keep3d<<endl;debfillonfemess3d(iFOR,iEG);}
+// if(tEFOR) {std::cout<<std::endl<<"yapc1 keep3d : "<<keep3d<<std::endl;debfillonfemess3d(iFOR,iEG);}
#endif
if (keep3d) {
if ( yapc2 ) {
#ifdef OCCT_DEBUG
if (tEFOR) debfillonfemess(iFOR,iEG,myPB,myPWES,"yapc2 GFillON");
- if (tE) {cout<<"yapc2(FOR"<<iFOR<<" FS"<<iFS<<" EG"<<GI<<") ";
- cout<<"TB1=";TopAbs::Print(TB1,cout);cout<<" TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
+ if (tE) {std::cout<<"yapc2(FOR"<<iFOR<<" FS"<<iFS<<" EG"<<GI<<") ";
+ std::cout<<"TB1=";TopAbs::Print(TB1,std::cout);std::cout<<" TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
#endif
Standard_Boolean keep = Standard_False;
if ( yapc3 ) {
#ifdef OCCT_DEBUG
if (tEFOR) debfillonfemess(iFOR,iEG,myPB,myPWES,"yapc3 GFillON");
- if (tE) {cout<<"yapc3(FOR"<<iFOR<<" FS"<<iFS<<" EG"<<GI<<") ";
- cout<<"TB1=";TopAbs::Print(TB1,cout);cout<<" TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
+ if (tE) {std::cout<<"yapc3(FOR"<<iFOR<<" FS"<<iFS<<" EG"<<GI<<") ";
+ std::cout<<"TB1=";TopAbs::Print(TB1,std::cout);std::cout<<" TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
#endif
Standard_Boolean keep = Standard_False;
TopAbs_State staFS = (rankFS == rankFOR) ? TB1 : TB2;
#ifdef OCCT_DEBUG
-// if(tEFOR) cout<<endl<<"yap1 yap2 yap3 yap4 = ";
-// if(tEFOR) cout<<yap1<<" "<<yap2<<" "<<yap3<<" "<<yap4<<endl<<endl;
+// if(tEFOR) std::cout<<std::endl<<"yap1 yap2 yap3 yap4 = ";
+// if(tEFOR) std::cout<<yap1<<" "<<yap2<<" "<<yap3<<" "<<yap4<<std::endl<<std::endl;
// if(tEFOR) debfillonfemess(iFOR,iEG);
#endif
if ( yap1 ) {
#ifdef OCCT_DEBUG
if (tEFOR) debfillonfemess(iFOR,iEG,myPB,myPWES,"yap1 GFillON");
- if (tE) {cout<<"yap1(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
- cout<<"TB1=";TopAbs::Print(TB1,cout);cout<<" TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
+ if (tE) {std::cout<<"yap1(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
+ std::cout<<"TB1=";TopAbs::Print(TB1,std::cout);std::cout<<" TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
#endif
if ( yap2 ) {
#ifdef OCCT_DEBUG
if (tEFOR) debfillonfemess(iFOR,iEG,myPB,myPWES,"yap2 GFillON");
- if (tE) {cout<<"yap2(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
- cout<<"TB1=";TopAbs::Print(TB1,cout);cout<<" TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
+ if (tE) {std::cout<<"yap2(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
+ std::cout<<"TB1=";TopAbs::Print(TB1,std::cout);std::cout<<" TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
#endif
// FF est samedomain avec FCX
else FUN_coutmess("DEBUG GFillONPartsWES2_4 orientation != F,R\n");
}
//#ifdef OCCT_DEBUG
-// if(tEFOR) {cout<<endl<<"yap2 : b3d,b2d "<<b3d<<","<<b2d<<endl;debfillonfemess(iFOR,iEG);}
+// if(tEFOR) {std::cout<<std::endl<<"yap2 : b3d,b2d "<<b3d<<","<<b2d<<std::endl;debfillonfemess(iFOR,iEG);}
//#endif
// bcl1;bcl2; c12;tsp(f9),tspON(e7)
}
}
//#ifdef OCCT_DEBUG
-// if(tEFOR) {cout<<endl<<"yap2 : keep "<<keep<<endl;debfillonfemess(iFOR,iEG);}
+// if(tEFOR) {std::cout<<std::endl<<"yap2 : keep "<<keep<<std::endl;debfillonfemess(iFOR,iEG);}
//#endif
if (!keep) return;
} // !isfafa
if ( yap6 ) {
#ifdef OCCT_DEBUG
if (tEFOR) debfillonfemess(iFOR,iEG,myPB,myPWES,"yap6 GFillON");
- if (tE) {cout<<"yap6(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
- cout<<"TB1=";TopAbs::Print(TB1,cout);cout<<" TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
+ if (tE) {std::cout<<"yap6(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
+ std::cout<<"TB1=";TopAbs::Print(TB1,std::cout);std::cout<<" TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
#endif
TopAbs_Orientation neworiE;
// FF est samedomain avec FCX
if ( yap3 ) {
#ifdef OCCT_DEBUG
if (tEFOR) debfillonfemess(iFOR,iEG,myPB,myPWES,"yap3 GFillON");
- if (tE) {cout<<"yap3(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
- cout<<"TB1=";TopAbs::Print(TB1,cout);cout<<" TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
+ if (tE) {std::cout<<"yap3(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
+ std::cout<<"TB1=";TopAbs::Print(TB1,std::cout);std::cout<<" TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
#endif
ie3d = ::FUN_findeSD(BDS,eON,EG,FOR,oe3d,3);
else if (oe3dk == TopAbs_EXTERNAL) keep3d = Standard_False;
#ifdef OCCT_DEBUG
- if(tEFOR) {cout<<endl<<"yap3 keep3d : "<<keep3d<<endl;debfillonfemess3d(iFOR,iEG);}
+ if(tEFOR) {std::cout<<std::endl<<"yap3 keep3d : "<<keep3d<<std::endl;debfillonfemess3d(iFOR,iEG);}
#endif
if (keep3d) {
if ( yap5 ) {
#ifdef OCCT_DEBUG
if (tEFOR) debfillonfemess(iFOR,iEG,myPB,myPWES,"yap5 GFillON");
- if (tE) {cout<<"yap5(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
- cout<<"TB1=";TopAbs::Print(TB1,cout);cout<<" TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
+ if (tE) {std::cout<<"yap5(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
+ std::cout<<"TB1=";TopAbs::Print(TB1,std::cout);std::cout<<" TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
#endif
ie2d = ::FUN_findeSD(BDS,eON,EG,FOR,oe2d,2);
if (ie2d == 0) return;
if ( yap4 ) {
#ifdef OCCT_DEBUG
if (tEFOR) debfillonfemess(iFOR,iEG,myPB,myPWES,"yap4 GFillON");
- if (tE) {cout<<"yap4(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
- cout<<"TB1=";TopAbs::Print(TB1,cout);cout<<" TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
+ if (tE) {std::cout<<"yap4(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
+ std::cout<<"TB1=";TopAbs::Print(TB1,std::cout);std::cout<<" TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
#endif
TopAbs_Orientation oTFE = TFE.Orientation(TB1);
// xpu290598 : CTS20212
#ifdef OCCT_DEBUG
if (tEFOR) debfillonfemess(iFOR,iEG,myPB,myPWES,"yap7 GFillON");
- if (tE) {cout<<"yap7(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
- cout<<"TB1=";TopAbs::Print(TB1,cout);cout<<" TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
+ if (tE) {std::cout<<"yap7(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
+ std::cout<<"TB1=";TopAbs::Print(TB1,std::cout);std::cout<<" TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
#endif
Standard_Boolean isbound = Standard_False;
for (TopTools_ListIteratorOfListOfShape it(BDS.ShapeSameDomain(iFOR)); it.More(); it.Next()){
Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextEEXTERNAL();
Standard_EXPORT void debfillonf(const Standard_Integer iF);
Standard_EXPORT void debON2d(const Standard_Integer iF)
-{cout<<"++ debON2d "<<iF<<" "<<endl;}
+{std::cout<<"++ debON2d "<<iF<<" "<<std::endl;}
#endif
Standard_EXPORT TopAbs_State FUN_build_TB(const TopOpeBRepBuild_PBuilder& PB,const Standard_Integer rank); // xpu290698
#ifdef OCCT_DEBUG
Standard_Integer iFOR;Standard_Boolean tFOR=myPB->GtraceSPS(FOR,iFOR);
if (tFOR) debfillonf(iFOR);
- if (tFOR) cout<<endl<<"LI on F"<<iFOR<<endl;
+ if (tFOR) std::cout<<std::endl<<"LI on F"<<iFOR<<std::endl;
#endif
for (TopOpeBRepDS_ListIteratorOfListOfInterference itI(lFEI); itI.More(); itI.Next()){
//=========================================
if ( yap6) {
#ifdef OCCT_DEBUG
- if (tFOR) cout<<"* yap6 = 1"<<endl;
+ if (tFOR) std::cout<<"* yap6 = 1"<<std::endl;
#endif
TopAbs_Orientation neworiE = TopAbs_FORWARD;
// FF est samedomain avec FCX
ok = FUN_ds_shareG(myPB->DataStructure(),iFCX,iFOR,GI,TopoDS::Edge(EspON),shareG);
if (!ok) return; // nyiFUNRAISE
#ifdef OCCT_DEBUG
- if (tFOR) cout<<" shareG="<<shareG<<endl;
+ if (tFOR) std::cout<<" shareG="<<shareG<<std::endl;
#endif
if (SO) {
newE.Orientation(neworiE);
myPWES->AddStartElement(newE);
#ifdef OCCT_DEBUG
- if (tFOR) cout<<" add spON e"<<GI<<endl;
+ if (tFOR) std::cout<<" add spON e"<<GI<<std::endl;
#endif
return;
} // yap6
//{
// TCollection_AsciiString aname_1("cc_1"), aname_2("cc_2");
// Standard_CString name_1 = aname_1.ToCString(), name_2 = aname_2.ToCString();
-// cout<<"compositeclassifier : "<<name_1<<","<<name_2<<endl;
+// std::cout<<"compositeclassifier : "<<name_1<<","<<name_2<<std::endl;
// BRepTools::Write(S1,name_1); BRepTools::Write(S2,name_2);
//}
#endif
Standard_Real d = P1.Distance(P2);
if (d > newtol) {
#ifdef OCCT_DEBUG
- cout<<"\npoint P"<<iv<<" "<<Pv.X()<<" "<<Pv.Y()<<" "<<Pv.Z()<<endl;
- cout<<"TopOpeBRepBuild_Builder::End BOX newtol "<<newtol<<" -> "<<d<<endl;
+ std::cout<<"\npoint P"<<iv<<" "<<Pv.X()<<" "<<Pv.Y()<<" "<<Pv.Z()<<std::endl;
+ std::cout<<"TopOpeBRepBuild_Builder::End BOX newtol "<<newtol<<" -> "<<d<<std::endl;
#endif
newtol = d;
B.UpdateVertex(V,newtol);
}
#ifdef OCCT_DEBUG
- if (tSPSFF) { cout<<"RegularizeFace "<<iF<<endl; debregufa(iF); }
+ if (tSPSFF) { std::cout<<"RegularizeFace "<<iF<<std::endl; debregufa(iF); }
#endif
// LOF = nouvelles faces regularisees de newFace
if (tSPSFF && savfregu) {
TCollection_AsciiString str("fregu"); str = str + iF;
DBRep::Set(str.ToCString(),newFace);
- cout<<"newFace "<<str<<" built on face "<<iF<<" saved"<<endl;
+ std::cout<<"newFace "<<str<<" built on face "<<iF<<" saved"<<std::endl;
}
#endif
{
#ifdef DRAW
Standard_Boolean trc = TopOpeBRepBuild_GettracePURGE();
- if (trc) cout<<endl<<"* DetectUnclosedWire :"<<endl;
+ if (trc) std::cout<<std::endl<<"* DetectUnclosedWire :"<<std::endl;
#endif
Standard_Integer res = ISUNKNOWN;
{
Standard_Boolean trc = TopOpeBRepBuild_GettracePURGE();
if (!trc) return;
- cout<<"wire "<<iiwi;
+ std::cout<<"wire "<<iiwi;
if (res == ISVERTEX) {
- cout<<" is vertex"<<endl;
+ std::cout<<" is vertex"<<std::endl;
}
else if (res == CLOSEDW) {
- cout<<" is closed"<<endl;
+ std::cout<<" is closed"<<std::endl;
}
else if (res == GCLOSEDW) {
- cout<<" is Gclosed :"<<endl;
+ std::cout<<" is Gclosed :"<<std::endl;
TCollection_AsciiString aa("w_");FUN_tool_draw(aa,W,iiwi);
Standard_Integer i ;
for ( i = 1;i <= mapVV.Extent();i++) {
Standard_Integer iV = mapVVsameGDRAW.Add(mapVV.FindKey(i),mapVV.FindFromIndex(i));
- cout<<" on vve_"<<iV; aa = "vve_";
+ std::cout<<" on vve_"<<iV; aa = "vve_";
FUN_tool_draw(aa,mapVVsameGDRAW.FindKey(iV),iV);
}
for (i = 1;i <= mapVon1E.Extent();i++) {
Standard_Integer iE = mapVon1EdgeDRAW.Add(mapVon1E.FindKey(i),mapVon1E.FindFromIndex(i));
- cout<<" on eed_"<<iE; aa = "eed_";
+ std::cout<<" on eed_"<<iE; aa = "eed_";
FUN_tool_draw(aa,mapVon1EdgeDRAW.FindFromIndex(iE),iE);
}
- cout<<endl;
+ std::cout<<std::endl;
}
else if (res == UNCLOSEDW) {
- cout<<" is unclosed "<<endl;
+ std::cout<<" is unclosed "<<std::endl;
TCollection_AsciiString aa("w_");FUN_tool_draw(aa,W,iiwi);
}
- cout<<endl;
+ std::cout<<std::endl;
} // FUN_AnalyzemapVon1EDRAW
#endif
#ifdef DRAW
TopTools_IndexedDataMapOfShapeShape mapVon1EdgeDRAW,mapVVsameGDRAW;
Standard_Boolean trc = TopOpeBRepBuild_GettracePURGE();
- if (trc) cout<<endl<<"* DetectUnclosedWire :"<<endl<<endl;
+ if (trc) std::cout<<std::endl<<"* DetectUnclosedWire :"<<std::endl<<std::endl;
#endif
Standard_Integer iiwi = 0; // DEB
iiwi++;
Standard_Boolean isold = IsOldWire();
#ifdef DRAW
- if ( trc && isold ) cout<<"wire "<<iiwi<<" is old wire => closed"<<endl;
+ if ( trc && isold ) std::cout<<"wire "<<iiwi<<" is old wire => closed"<<std::endl;
#endif
if (isold) continue;
// prequesitory : edges described by <mapVon1Edge> are not closed,not degenerated
#ifdef OCCT_DEBUG
if (TopOpeBRepBuild_GettracePURGE()) {
- cout<<endl<<"* CorrectGclosedWire :"<<endl<<endl;
+ std::cout<<std::endl<<"* CorrectGclosedWire :"<<std::endl<<std::endl;
}
#endif
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = TopOpeBRepBuild_GettraceFUFA();
- if (trc) cout << "TopOpeBRepBuild_FuseFace::Init" << endl;
+ if (trc) std::cout << "TopOpeBRepBuild_FuseFace::Init" << std::endl;
#endif
myLIF = LIF;
myLRF = LRF;
#ifdef OCCT_DEBUG
if (trc) {
if (myInternal) {
- cout << " TopOpeBRepBuild_FuseFace::Init : Keep internal connections" << endl;
+ std::cout << " TopOpeBRepBuild_FuseFace::Init : Keep internal connections" << std::endl;
} else {
- cout << " TopOpeBRepBuild_FuseFace::Init : Suppress internal connections" << endl;
+ std::cout << " TopOpeBRepBuild_FuseFace::Init : Suppress internal connections" << std::endl;
}
}
#endif
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = TopOpeBRepBuild_GettraceFUFA();
- if (trc) cout << "TopOpeBRepBuild_FuseFace::PerformFace()" << endl;
+ if (trc) std::cout << "TopOpeBRepBuild_FuseFace::PerformFace()" << std::endl;
#endif
myModified = Standard_False;
myLFF.Clear();
if (myLRF.IsEmpty()) {
#ifdef OCCT_DEBUG
- if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Empty list of reconstructed faces"<<endl;
+ if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Empty list of reconstructed faces"<<std::endl;
#endif
myModified = Standard_False;
myDone = Standard_True;
Standard_Integer number = myLRF.Extent();
if (number == 1) {
#ifdef OCCT_DEBUG
- if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : only 1 reconstructed face"<<endl;
+ if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : only 1 reconstructed face"<<std::endl;
#endif
myModified = Standard_False;
myDone = Standard_True;
if (!ana.IsValid(fac)) {
// if (!BRepCheck_Analyzer::IsValid(fac)) {
#ifdef OCCT_DEBUG
- if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Invalid reconstructed face"<<endl;
+ if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Invalid reconstructed face"<<std::endl;
#endif
myModified = Standard_False;
myDone = Standard_True;
// Orientation 3d de l'espace limite par la face
if (Ori3dForward && Ori3dReversed) {
#ifdef OCCT_DEBUG
- if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Bad faces 3d orientation"<<endl;
+ if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Bad faces 3d orientation"<<std::endl;
#endif
myModified = Standard_False;
myDone = Standard_True;
GroupShape(mylist,Keep_Edge,mapFacLFac);
if (mapFacLFac.IsEmpty()) {
#ifdef OCCT_DEBUG
- if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Empty list of faces"<<endl;
+ if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Empty list of faces"<<std::endl;
#endif
myModified = Standard_False;
myDone = Standard_True;
Standard_Integer n2 = mapFacLFac.Extent();
if (n1 == n2) {
#ifdef OCCT_DEBUG
- if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : No connection"<<endl;
+ if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : No connection"<<std::endl;
#endif
myModified = Standard_False;
myDone = Standard_True;
GroupShape(LWir,Keep_Edge,mapWirLWir);
if (mapWirLWir.IsEmpty()) {
#ifdef OCCT_DEBUG
- if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Empty list of wires"<<endl;
+ if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Empty list of wires"<<std::endl;
#endif
myModified = Standard_False;
myDone = Standard_True;
GroupShape(LEdg,Keep_Edge,mapEdgLEdg);
if (mapEdgLEdg.IsEmpty()) {
#ifdef OCCT_DEBUG
- if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Empty list of edges"<<endl;
+ if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Empty list of edges"<<std::endl;
#endif
myModified = Standard_False;
myDone = Standard_True;
if (ori1 == TopAbs_REVERSED) {
if (OriReversed) {
#ifdef OCCT_DEBUG
- if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Bad faces orientation"<<endl;
+ if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Bad faces orientation"<<std::endl;
#endif
myModified = Standard_False;
myDone = Standard_True;
else if (ori1 == TopAbs_FORWARD) {
if (OriForward) {
#ifdef OCCT_DEBUG
- if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Bad faces orientation"<<endl;
+ if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Bad faces orientation"<<std::endl;
#endif
myModified = Standard_False;
myDone = Standard_True;
MW.Add(myWireLE);
if (!MW.IsDone()) {
#ifdef OCCT_DEBUG
- if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Failure in making wire"<<endl;
+ if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Failure in making wire"<<std::endl;
#endif
myModified = Standard_False;
myDone = Standard_True;
if (!MF.IsDone()) {
#ifdef OCCT_DEBUG
- if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Failure in making face"<<endl;
+ if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Failure in making face"<<std::endl;
#endif
myModified = Standard_False;
myDone = Standard_True;
if (myLFF.IsEmpty()) {
#ifdef OCCT_DEBUG
- if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Empty list of fusionned faces"<<endl;
+ if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Empty list of fusionned faces"<<std::endl;
#endif
myModified = Standard_False;
myDone = Standard_True;
myDone = Standard_True;
#ifdef OCCT_DEBUG
- if (trc) cout << " TopOpeBRepBuild_FuseFace::PerformFace() : Done" << endl;
+ if (trc) std::cout << " TopOpeBRepBuild_FuseFace::PerformFace() : Done" << std::endl;
#endif
}
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = TopOpeBRepBuild_GettraceFUFA();
- if (trc) cout << "TopOpeBRepBuild_FuseFace::PerformEdge()" << endl;
+ if (trc) std::cout << "TopOpeBRepBuild_FuseFace::PerformEdge()" << std::endl;
#endif
TopTools_DataMapOfShapeListOfShape mapVerLEdg,mapTampon;
myDone = Standard_True;
#ifdef OCCT_DEBUG
- if (trc) cout << " TopOpeBRepBuild_FuseFace::PerformEdge() : Done" << endl;
+ if (trc) std::cout << " TopOpeBRepBuild_FuseFace::PerformEdge() : Done" << std::endl;
#endif
}
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = TopOpeBRepBuild_GettraceFUFA();
- if (trc) cout << "TopOpeBRepBuild_FuseFace::ClearEdge()" << endl;
+ if (trc) std::cout << "TopOpeBRepBuild_FuseFace::ClearEdge()" << std::endl;
#endif
TopTools_ListIteratorOfListOfShape it1,it2;
MW.Add(myWireLE);
if (!MW.IsDone()) {
#ifdef OCCT_DEBUG
- if (trc) cout<<" TopOpeBRepBuild_FuseFace::ClearEdge : Failure in making wire"<<endl;
+ if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::ClearEdge : Failure in making wire"<<std::endl;
#endif
myModified = Standard_False;
myDone = Standard_True;
// Reconstrution de 1 face de LRF
if (myFaceLW.IsEmpty()) {
#ifdef OCCT_DEBUG
- if (trc) cout<<" TopOpeBRepBuild_FuseFace::ClearEdge : Empty list of wires"<<endl;
+ if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::ClearEdge : Empty list of wires"<<std::endl;
#endif
myModified = Standard_False;
myDone = Standard_True;
}
if (!MF.IsDone()) {
#ifdef OCCT_DEBUG
- if (trc) cout<<" TopOpeBRepBuild_FuseFace::ClearEdge : Failure in making face"<<endl;
+ if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::ClearEdge : Failure in making face"<<std::endl;
#endif
myModified = Standard_False;
myDone = Standard_True;
//Fin Niveau 1
if (myLFFnew.IsEmpty()) {
#ifdef OCCT_DEBUG
- if (trc) cout<<" TopOpeBRepBuild_FuseFace::ClearEdge : Empty list of fusionned faces"<<endl;
+ if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::ClearEdge : Empty list of fusionned faces"<<std::endl;
#endif
myModified = Standard_False;
myDone = Standard_True;
myDone = Standard_True;
#ifdef OCCT_DEBUG
- if (trc) cout << " TopOpeBRepBuild_FuseFace::ClearEdge() : Done" << endl;
+ if (trc) std::cout << " TopOpeBRepBuild_FuseFace::ClearEdge() : Done" << std::endl;
#endif
}
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = TopOpeBRepBuild_GettraceFUFA();
- if (trc) cout << "TopOpeBRepBuild_FuseFace::ClearVertex()" << endl;
+ if (trc) std::cout << "TopOpeBRepBuild_FuseFace::ClearVertex()" << std::endl;
#endif
#ifdef OCCT_DEBUG
- if (trc) cout << " TopOpeBRepBuild_FuseFace::ClearVertex() : Done" << endl;
+ if (trc) std::cout << " TopOpeBRepBuild_FuseFace::ClearVertex() : Done" << std::endl;
#endif
}
Standard_Integer number = myEdgeLV.Extent();
if (!(number == 2)){
#ifdef OCCT_DEBUG
- if (trc) cout<<" TopOpeBRepBuild_FuseFace::MakeEdge : Failure in reconstructing new edge"<<endl;
+ if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::MakeEdge : Failure in reconstructing new edge"<<std::endl;
#endif
return;
}
typC1 != STANDARD_TYPE(Geom_BSplineCurve) &&
typC1 != STANDARD_TYPE(Geom_BezierCurve)) {
#ifdef OCCT_DEBUG
- if (trc) cout << " TopOpeBRepBuild_FuseFace : Type de Support non traite" << endl;
+ if (trc) std::cout << " TopOpeBRepBuild_FuseFace : Type de Support non traite" << std::endl;
#endif
return Standard_False;
}
if ( !More()) return;
TopAbs_State s1,s2; Current(s1,s2);
Standard_Boolean b = MYGTOPO.Value(s1,s2);
- TopOpeBRepBuild_GTopo::DumpSSB(OS,s1,s2,b); OS<<endl;
+ TopOpeBRepBuild_GTopo::DumpSSB(OS,s1,s2,b); OS<<std::endl;
}
TopOpeBRepBuild_GTopo g;
g = TopOpeBRepBuild_GTool::GFusUnsh(TopAbs_FACE,TopAbs_FACE);
- g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<endl;
+ g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<std::endl;
g = TopOpeBRepBuild_GTool::GFusSame(TopAbs_FACE,TopAbs_FACE);
- g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<endl;
+ g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<std::endl;
g = TopOpeBRepBuild_GTool::GFusDiff(TopAbs_FACE,TopAbs_FACE);
- g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<endl;
+ g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<std::endl;
g = TopOpeBRepBuild_GTool::GCutDiff(TopAbs_FACE,TopAbs_EDGE);
- g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<endl;
+ g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<std::endl;
g = g.CopyPermuted();
- g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<endl;
+ g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<std::endl;
}
DumpType(OS);
OS<<" "; TopOpeBRepDS::Print(myConfig1,OS);
OS<<" "; TopOpeBRepDS::Print(myConfig2,OS);
- OS<<endl;
+ OS<<std::endl;
- if (myReverseForce) OS<<"reverse value : "<<myReverseValue<<endl;
+ if (myReverseForce) OS<<"reverse value : "<<myReverseValue<<std::endl;
if(s) OS<<s;
OS<<"\\ I N O";
- OS<<endl;
+ OS<<std::endl;
if(s) OS<<s;
OS<<"I ";
DumpVal(OS,TopAbs_IN,TopAbs_IN); OS<<" ";
DumpVal(OS,TopAbs_IN,TopAbs_ON); OS<<" ";
- DumpVal(OS,TopAbs_IN,TopAbs_OUT); OS<<endl;
+ DumpVal(OS,TopAbs_IN,TopAbs_OUT); OS<<std::endl;
if(s) OS<<s;
OS<<"N ";
DumpVal(OS,TopAbs_ON,TopAbs_IN); OS<<" ";
DumpVal(OS,TopAbs_ON,TopAbs_ON); OS<<" ";
- DumpVal(OS,TopAbs_ON,TopAbs_OUT); OS<<endl;
+ DumpVal(OS,TopAbs_ON,TopAbs_OUT); OS<<std::endl;
if(s) OS<<s;
OS<<"O ";
DumpVal(OS,TopAbs_OUT,TopAbs_IN); OS<<" ";
DumpVal(OS,TopAbs_OUT,TopAbs_ON); OS<<" ";
- DumpVal(OS,TopAbs_OUT,TopAbs_OUT); OS<<endl;
+ DumpVal(OS,TopAbs_OUT,TopAbs_OUT); OS<<std::endl;
}
//=======================================================================
#ifdef OCCT_DEBUG
Standard_Integer iS; Standard_Boolean tSPS = GtraceSPS(S,iS);
if (tSPS) {
- cout<<"GToSplit ";GdumpSHA(S);cout<<" ";TopAbs::Print(TB,cout);
- cout<<" "<<tosplit<<" : !issplit "<<(!issplit);
- cout<<" && (facshap || hasgeom || hassame) ";
- cout<<"("<<facshap<<" || "<<hasgeom<<" || "<<hassame<<")"<<endl;
- cout.flush();
+ std::cout<<"GToSplit ";GdumpSHA(S);std::cout<<" ";TopAbs::Print(TB,std::cout);
+ std::cout<<" "<<tosplit<<" : !issplit "<<(!issplit);
+ std::cout<<" && (facshap || hasgeom || hassame) ";
+ std::cout<<"("<<facshap<<" || "<<hasgeom<<" || "<<hassame<<")"<<std::endl;
+ std::cout.flush();
}
#endif
} //CONTEXT
} //CONTEXT
Standard_Boolean tosplitH = tosplit || hasON; //CONTEXT
- if(tSPS){cout<<"GToSplit context SPEON";} //CONTEXT
- if(tSPS){cout<<" "<<tosplitH<<" : tosplit "<<tosplit;} //CONTEXT
- if(tSPS){cout<<" || hasON "<<hasON<<endl;} //CONTEXT
+ if(tSPS){std::cout<<"GToSplit context SPEON";} //CONTEXT
+ if(tSPS){std::cout<<" "<<tosplitH<<" : tosplit "<<tosplit;} //CONTEXT
+ if(tSPS){std::cout<<" || hasON "<<hasON<<std::endl;} //CONTEXT
} //CONTEXT
#endif
#ifdef OCCT_DEBUG
Standard_Integer iS; Standard_Boolean tSPS = GtraceSPS(S,iS);
- if(tSPS){cout<<"GToMerge ";GdumpSHA(S);cout<<" ";TopAbs::Print(TB,cout);}
- if(tSPS){cout<<" "<<tomerge<<" : !ismerged "<<(!ismerged)<<" && hassame "<<hassame<<endl;}
+ if(tSPS){std::cout<<"GToMerge ";GdumpSHA(S);std::cout<<" ";TopAbs::Print(TB,std::cout);}
+ if(tSPS){std::cout<<" "<<tomerge<<" : !ismerged "<<(!ismerged)<<" && hassame "<<hassame<<std::endl;}
#endif
return tomerge;
Standard_Integer iS; Standard_Boolean tSPS = GtraceSPS(sref,iS);
if(tSPS) {
TCollection_AsciiString ss("GFindSamDom result on ");
- GdumpSHA(sref,(Standard_Address)ss.ToCString());cout<<endl;
+ GdumpSHA(sref,(Standard_Address)ss.ToCString());std::cout<<std::endl;
GdumpSAMDOM(LSO, (char *) "L1 : ");
GdumpSAMDOM(LDO, (char *) "L2 : ");
}
#ifdef OCCT_DEBUG
Standard_Integer iE; Standard_Boolean tSPS1 = GtraceSPS(E1,iE);
if(tSPS1){
- cout<<endl;cout<<"--- GMergeEdges "<<endl;
+ std::cout<<std::endl;std::cout<<"--- GMergeEdges "<<std::endl;
GdumpEDG(E1);
GdumpSAMDOM(LE1, (char *) "1 : ");
GdumpSAMDOM(LE2, (char *) "2 : ");
#ifdef OCCT_DEBUG
Standard_Integer i1; Standard_Boolean tSPS1 = GtraceSPS(E11,i1);
if(tSPS1){
- cout<<endl;cout<<"--- GFillEdgesPVS ";GdumpSHA(E11);
- cout<<" ismerged : "<<ismerged<<" ";TopAbs::Print(TB1,cout);cout<<endl;
+ std::cout<<std::endl;std::cout<<"--- GFillEdgesPVS ";GdumpSHA(E11);
+ std::cout<<" ismerged : "<<ismerged<<" ";TopAbs::Print(TB1,std::cout);std::cout<<std::endl;
}
#endif
#ifdef OCCT_DEBUG
Standard_Integer i2; Standard_Boolean tSPS2 = GtraceSPS(E2,i2);
if(tSPS2){
- cout<<endl;
- cout<<"--- GFillEdgesPVS ";GdumpSHA(E2);
- cout<<" ismerged : "<<ismerged<<" ";TopAbs::Print(TB2,cout);cout<<endl;
+ std::cout<<std::endl;
+ std::cout<<"--- GFillEdgesPVS ";GdumpSHA(E2);
+ std::cout<<" ismerged : "<<ismerged<<" ";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;
}
#endif
#endif*/
#ifdef OCCT_DEBUG
-void debfillp(const Standard_Integer i) {cout <<"+ + debfillp "<<i<<endl;}
-void debfillpon(const Standard_Integer i) {cout <<"+ + debfillpon "<<i<<endl;}
-void debfillpin(const Standard_Integer i) {cout <<"+ + debfillpin "<<i<<endl;}
-void debfillpou(const Standard_Integer i) {cout <<"+ + debfillpou "<<i<<endl;}
-void debfillp2(const Standard_Integer i) {cout <<"+ + debfillp2 "<<i<<endl;}
+void debfillp(const Standard_Integer i) {std::cout <<"+ + debfillp "<<i<<std::endl;}
+void debfillpon(const Standard_Integer i) {std::cout <<"+ + debfillpon "<<i<<std::endl;}
+void debfillpin(const Standard_Integer i) {std::cout <<"+ + debfillpin "<<i<<std::endl;}
+void debfillpou(const Standard_Integer i) {std::cout <<"+ + debfillpou "<<i<<std::endl;}
+void debfillp2(const Standard_Integer i) {std::cout <<"+ + debfillp2 "<<i<<std::endl;}
#endif
//Standard_IMPORT extern Standard_Boolean GLOBAL_faces2d;
const TopoDS_Shape& EPVS=PVS.Edge();Standard_Integer iEPVS;Standard_Boolean tSPSEPVS=GtraceSPS(EPVS,iEPVS);
Standard_Boolean tSPS = tSPSE || tSPSEPVS;
if(tSPS){
- cout<<endl;
- cout<<"--- GFillPointTopologyPVS : ShapeInterf ";TopAbs::Print(ShapeInterf,cout);
- cout<<",efil ";GdumpSHA(E);cout<<",eref ";GdumpSHA(myEdgeReference);
- cout<<",ffil ";GdumpSHA(myFaceToFill);cout<<",fref ";GdumpSHA(myFaceReference);
- cout<<endl;
+ std::cout<<std::endl;
+ std::cout<<"--- GFillPointTopologyPVS : ShapeInterf ";TopAbs::Print(ShapeInterf,std::cout);
+ std::cout<<",efil ";GdumpSHA(E);std::cout<<",eref ";GdumpSHA(myEdgeReference);
+ std::cout<<",ffil ";GdumpSHA(myFaceToFill);std::cout<<",fref ";GdumpSHA(myFaceReference);
+ std::cout<<std::endl;
debfillp(iEDS);
}
#endif
#ifdef OCCT_DEBUG
Standard_Boolean id2d = (I1 == i2d);
if (tSPS) {
- cout<<"DEB : GFillPointTopologyPVS E"<<iEDS<<" has2d3d"<<endl;
- if (id3d) cout<<"--> Interference 3d ";
- if (id2d) cout<<"--> Interference 2d ";
- if (keepinterf1) cout<<" traitee"<<endl;
- else cout<<" non traitee"<<endl;
- cout<<endl;
+ std::cout<<"DEB : GFillPointTopologyPVS E"<<iEDS<<" has2d3d"<<std::endl;
+ if (id3d) std::cout<<"--> Interference 3d ";
+ if (id2d) std::cout<<"--> Interference 2d ";
+ if (keepinterf1) std::cout<<" traitee"<<std::endl;
+ else std::cout<<" non traitee"<<std::endl;
+ std::cout<<std::endl;
}
#endif
}
GParamOnReference(VPV,EE,parref);
#ifdef OCCT_DEBUG
if(tSPS){
- cout<<"par "<<par<<" / ";GdumpSHA(E);cout<<" --> parref "<<parref<<" / ";GdumpSHA(EPVS);
- cout<<endl;
+ std::cout<<"par "<<par<<" / ";GdumpSHA(E);std::cout<<" --> parref "<<parref<<" / ";GdumpSHA(EPVS);
+ std::cout<<std::endl;
}
#endif
par = parref;
#ifdef OCCT_DEBUG
gp_Pnt P = BRep_Tool::Pnt(VPV);
- if(tSPS){cout<<"+";if(ispoint)cout<<" PDS ";else cout<<" VDS ";}
- if(tSPS){cout<<iG<<" : ";GdumpORIPARPNT(ori,par,P);cout<<endl;}
+ if(tSPS){std::cout<<"+";if(ispoint)std::cout<<" PDS ";else std::cout<<" VDS ";}
+ if(tSPS){std::cout<<iG<<" : ";GdumpORIPARPNT(ori,par,P);std::cout<<std::endl;}
if(tSPS) {
// Standard_Boolean trc = Standard_False;
#ifdef DRAW
#ifdef OCCT_DEBUG
gp_Pnt PF = BRep_Tool::Pnt(VPV);
- if(tSPS){cout<<"+";if(ispoint)cout<<" PDS ";else cout<<" VDS ";}
- if(tSPS){cout<<iG<<" : ";GdumpORIPARPNT(ovpv,parf,PF);cout<<endl;}
+ if(tSPS){std::cout<<"+";if(ispoint)std::cout<<" PDS ";else std::cout<<" VDS ";}
+ if(tSPS){std::cout<<iG<<" : ";GdumpORIPARPNT(ovpv,parf,PF);std::cout<<std::endl;}
#endif
ovpv = TopAbs_REVERSED;
PVS.Append(PVR);
#ifdef OCCT_DEBUG
gp_Pnt PR = BRep_Tool::Pnt(VPV);
- if(tSPS){cout<<"+";if(ispoint)cout<<" PDS ";else cout<<" VDS ";}
- if(tSPS){cout<<iG<<" : ";GdumpORIPARPNT(ovpv,parl,PR);cout<<endl;}
+ if(tSPS){std::cout<<"+";if(ispoint)std::cout<<" PDS ";else std::cout<<" VDS ";}
+ if(tSPS){std::cout<<iG<<" : ";GdumpORIPARPNT(ovpv,parl,PR);std::cout<<std::endl;}
#endif
PVS.RemovePV(Standard_False); // jyl + 980217
Handle(Geom_Plane) suplan = Handle(Geom_Plane)::DownCast(su);
if ( suplan.IsNull() ) {
#ifdef OCCT_DEBUG
- cout<<"NYI : GParamOnReference : not planar"<<endl;
+ std::cout<<"NYI : GParamOnReference : not planar"<<std::endl;
#endif
return Standard_False;
}
P = ElCLib::Parameter(AC.Parabola(),p2); break;
default :
#ifdef OCCT_DEBUG
- cout<<"NYI : GParamOnReference : OtherCurve on planar surface"<<endl;
+ std::cout<<"NYI : GParamOnReference : OtherCurve on planar surface"<<std::endl;
#endif
return Standard_False;
}
Standard_Integer GLOBAL_iexE = 0;
Standard_EXPORT void debfillw(const Standard_Integer /*i*/) {}
Standard_EXPORT void debfille(const Standard_Integer /*i*/) {}
-Standard_EXPORT void debffwesON(const Standard_Integer i) {cout<<"++ debffwesON "<<i<<endl;}
-Standard_EXPORT void debffwesmf(const Standard_Integer i) {cout<<"++ debffwesmf "<<i<<endl;}
-Standard_EXPORT void debfillf(const Standard_Integer i) {cout<<"++ debfillf "<<i<<endl;}
-Standard_EXPORT void debsplite(const Standard_Integer i) {cout<<"++ debsplite "<<i<<endl;}
-Standard_EXPORT void debmergef(const Standard_Integer i) {cout<<"++ debmergef "<<i<<endl;}
+Standard_EXPORT void debffwesON(const Standard_Integer i) {std::cout<<"++ debffwesON "<<i<<std::endl;}
+Standard_EXPORT void debffwesmf(const Standard_Integer i) {std::cout<<"++ debffwesmf "<<i<<std::endl;}
+Standard_EXPORT void debfillf(const Standard_Integer i) {std::cout<<"++ debfillf "<<i<<std::endl;}
+Standard_EXPORT void debsplite(const Standard_Integer i) {std::cout<<"++ debsplite "<<i<<std::endl;}
+Standard_EXPORT void debmergef(const Standard_Integer i) {std::cout<<"++ debmergef "<<i<<std::endl;}
Standard_IMPORT void debfctwesmess(const Standard_Integer i,
const TCollection_AsciiString& s = "");
extern void debaddpwes(const Standard_Integer iFOR, const TopAbs_State TB1, const Standard_Integer iEG,
#ifdef OCCT_DEBUG
Standard_Integer iF; Standard_Boolean tSPS = GtraceSPS(F1,iF);
if(tSPS){
- cout<<endl<<"--- GMergeFaces "<<endl;
+ std::cout<<std::endl<<"--- GMergeFaces "<<std::endl;
GdumpSAMDOM(LF1, (char *) "1 : ");
GdumpSAMDOM(LF2, (char *) "2 : ");
debmergef(iF);
#ifdef OCCT_DEBUG
Standard_Integer iW; Standard_Boolean tSPS = GtraceSPS(W,iW);
if(tSPS){
- cout<<endl;DEBSHASET(s,"--- GFillWireWES ",WES," ");
- GdumpSHA(W,(Standard_Address)s.ToCString()); cout<<endl;
+ std::cout<<std::endl;DEBSHASET(s,"--- GFillWireWES ",WES," ");
+ GdumpSHA(W,(Standard_Address)s.ToCString()); std::cout<<std::endl;
Standard_Integer nbe = 0;
TopOpeBRepTool_ShapeExplorer exE(W,TopAbs_EDGE);for (;exE.More(); exE.Next()) nbe++;
- cout<<"--- GFillWireWES on W "<<iW<<" with "<<nbe<<" edges "<<endl;
+ std::cout<<"--- GFillWireWES on W "<<iW<<" with "<<nbe<<" edges "<<std::endl;
debfillw(iW);
}
GLOBAL_iexE = 0;
#ifdef OCCT_DEBUG
Standard_Integer iE; Standard_Boolean tSPS = GtraceSPS(EOR,iE);
- if(tSPS)cout<<endl;
+ if(tSPS)std::cout<<std::endl;
#endif
#ifdef OCCT_DEBUG
#ifdef OCCT_DEBUG
if(tSPS) GdumpSHASTA(iE,TB1,WES,"--- GFillEdgeWES ");
- if(tSPS) cout<<" tosplit "<<tosplit<<" tomerge "<<tomerge<<endl;
+ if(tSPS) std::cout<<" tosplit "<<tosplit<<" tomerge "<<tomerge<<std::endl;
if(tSPS) debfille(iE);
#endif
Standard_Integer iEOR; Standard_Boolean tSPS = GtraceSPS(EOR,iEOR);
Standard_Integer iWESF; /*Standard_Boolean tSPSW = */GtraceSPS(WES.Face(),iWESF);
if(tSPS) GdumpSHASTA(iEOR,TB1,WES,"\n--- GSplitEdgeWES","START");
- if(tSPS) cout<<" RevOri1 : "<<RevOri1<<endl;
+ if(tSPS) std::cout<<" RevOri1 : "<<RevOri1<<std::endl;
if(tSPS) debsplite(iEOR);
#endif
#ifdef OCCT_DEBUG
if(tSPS) {
GdumpSHASTA(iEOR,TB1,WES,"--- GSplitEdgeWES","WES+ Split");
- cout<<" ";TopAbs::Print(TB1,cout)<<" : "<<LSE.Extent()<<" edge(s) ";
- TopAbs::Print(neworiE,cout); cout<<endl;
+ std::cout<<" ";TopAbs::Print(TB1,std::cout)<<" : "<<LSE.Extent()<<" edge(s) ";
+ TopAbs::Print(neworiE,std::cout); std::cout<<std::endl;
}
#endif
Standard_Boolean ok = FUN_tool_curvesSO(newE,par,TopoDS::Edge(EOR),so);
if (!ok) {
#ifdef OCCT_DEBUG
- cout<<"GSplitEdgeWES: cannot orient SDM split of an edge"<<endl;
+ std::cout<<"GSplitEdgeWES: cannot orient SDM split of an edge"<<std::endl;
#endif
//return; // nyiFUNRAISE
}
}
#ifdef OCCT_DEBUG
- cout<<"o-o GridFF ffil F"<<ifil<<" se E"<<iEOR<<" / "<<iWESF<<" ";
- TopAbs::Print(TB1,cout);cout.flush();
- if (!ftg) {cout<<" : !ftg --> "; GKeepShape(EOR,LSclass,TB1);cout.flush();}
- else {cout<<" : ftg --> non gardee"<<endl;cout.flush();}
+ std::cout<<"o-o GridFF ffil F"<<ifil<<" se E"<<iEOR<<" / "<<iWESF<<" ";
+ TopAbs::Print(TB1,std::cout);std::cout.flush();
+ if (!ftg) {std::cout<<" : !ftg --> "; GKeepShape(EOR,LSclass,TB1);std::cout.flush();}
+ else {std::cout<<" : ftg --> non gardee"<<std::endl;std::cout.flush();}
#endif
}
testkeep = hs && (!hg);
if (testkeep) {
#ifdef OCCT_DEBUG
- if(tSPS){cout<<"--- GSplitEdgeWES ";}
+ if(tSPS){std::cout<<"--- GSplitEdgeWES ";}
#endif
TopAbs_State pos;
Standard_Boolean keep = GKeepShape1(EOR,LSclass,TB1,pos);
if(tSPS){
DEBSHASET(ss,"--- GSplitEdgeWES ",WES," WES+ edge ");
GdumpSHA(newE,(Standard_Address)ss.ToCString());
- cout<<" ";TopAbs::Print(TB1,cout)<<" : 1 edge ";
- TopAbs::Print(neworiE,cout); cout<<endl;
+ std::cout<<" ";TopAbs::Print(TB1,std::cout)<<" : 1 edge ";
+ TopAbs::Print(neworiE,std::cout); std::cout<<std::endl;
}
#endif
Standard_Boolean ok = FUN_tool_curvesSO(newE,par,TopoDS::Edge(EOR),so);
if (!ok) {
#ifdef OCCT_DEBUG
- cout<<"GSplitEdgeWES: cannot orient SDM split of an edge"<<endl;
+ std::cout<<"GSplitEdgeWES: cannot orient SDM split of an edge"<<std::endl;
#endif
}
if (!so) newE.Reverse();
Standard_Integer iEOR; Standard_Boolean tSPS = GtraceSPS(EOR,iEOR);
if(tSPS){ debmergee(iEOR);
DEBSHASET(s,"\n--- GMergeEdgeWES ",WES," START ");
- GdumpSHAORIGEO(EOR,(Standard_Address)s.ToCString()); cout<<endl;
+ GdumpSHAORIGEO(EOR,(Standard_Address)s.ToCString()); std::cout<<std::endl;
}
#endif
if(tSPS){
DEBSHASET(s,"GMergeEdgeWES(1) ",WES," WES+ Merged ");
GdumpSHA(EOR,(Standard_Address)s.ToCString());
- cout<<" ";TopAbs::Print(TBEOR,cout);
- cout<<" : "<<ME.Extent()<<" edge"<<endl;
+ std::cout<<" ";TopAbs::Print(TBEOR,std::cout);
+ std::cout<<" : "<<ME.Extent()<<" edge"<<std::endl;
}
#endif
for(TopTools_ListIteratorOfListOfShape it(ME);it.More();it.Next()) {
#ifdef OCCT_DEBUG
if(tSPS){
DEBSHASET(sss,"GMergeEdgeWES ",WES," END ");
- GdumpSHA(EOR,(Standard_Address)sss.ToCString());cout<<endl;
+ GdumpSHA(EOR,(Standard_Address)sss.ToCString());std::cout<<std::endl;
}
#endif
Standard_Boolean takeON = (TB1 == TopAbs_IN) && (isse) && (issplitON);
takeON = Standard_False;
#ifdef OCCT_DEBUG
- if (tSPS) cout<<"---- takeON mis a 0"<<endl;
+ if (tSPS) std::cout<<"---- takeON mis a 0"<<std::endl;
#endif
if ( takeON ) {
#ifdef OCCT_DEBUG
#define DEBSHASET(sarg,meth,shaset,str) TCollection_AsciiString sarg((meth));(sarg)=(sarg)+(shaset).DEBNumber()+(str);
-Standard_EXPORT void debsplitf(const Standard_Integer i){cout<<"++ debsplitf "<<i<<endl;}
-Standard_EXPORT void debspanc(const Standard_Integer i){cout<<"++ debspanc "<<i<<endl;}
+Standard_EXPORT void debsplitf(const Standard_Integer i){std::cout<<"++ debsplitf "<<i<<std::endl;}
+Standard_EXPORT void debspanc(const Standard_Integer i){std::cout<<"++ debspanc "<<i<<std::endl;}
Standard_Integer GLOBAL_iexF = 0;
#endif
#ifdef OCCT_DEBUG
Standard_Integer iSO; Standard_Boolean tSPS = GtraceSPS(SO1,iSO);
if(tSPS){
- cout<<endl;
- cout<<"--- GMergeSolids "<<endl;
+ std::cout<<std::endl;
+ std::cout<<"--- GMergeSolids "<<std::endl;
GdumpSAMDOM(LSO1, (char *) "1 : ");
GdumpSAMDOM(LSO2, (char *) "2 : ");
}
#ifdef OCCT_DEBUG
Standard_Integer iS; Standard_Boolean tSPS = GtraceSPS(S,iS);
if(tSPS){
- cout<<endl;
- GdumpSHASTA(S,TB,"--- GFillSolidsSFS "); cout<<" tomerge : "<<tomerge<<endl;
+ std::cout<<std::endl;
+ GdumpSHASTA(S,TB,"--- GFillSolidsSFS "); std::cout<<" tomerge : "<<tomerge<<std::endl;
}
#endif
if (tomerge) GFillSolidSFS(S,LS2,G,SFS);
#ifdef OCCT_DEBUG
Standard_Integer iS; Standard_Boolean tSPS = GtraceSPS(S,iS);
if(tSPS){
- cout<<endl;
- GdumpSHASTA(S,TB,"--- GFillSolidsSFS "); cout<<" tomerge : "<<tomerge<<endl;
+ std::cout<<std::endl;
+ GdumpSHASTA(S,TB,"--- GFillSolidsSFS "); std::cout<<" tomerge : "<<tomerge<<std::endl;
}
#endif
if (tomerge) GFillSolidSFS(S,LS1,G,SFS);
#ifdef OCCT_DEBUG
Standard_Integer iSO; Standard_Boolean tSPS = GtraceSPS(SO1,iSO);
if(tSPS){
- cout<<endl;
- GdumpSHASTA(SO1,TB1,"--- GFillSolidSFS ");cout<<endl;
+ std::cout<<std::endl;
+ GdumpSHASTA(SO1,TB1,"--- GFillSolidSFS ");std::cout<<std::endl;
}
#endif
if(tSPS){
DEBSHASET(ss,"--- GFillSolidSFS ",SFS," AddShape SFS+ shell ");
GdumpSHA(SH,(Standard_Address)ss.ToCString());
- cout<<" ";TopAbs::Print(TB1,cout)<<" : 1 shell ";
- TopAbs::Print(neworiSH,cout); cout<<endl;
+ std::cout<<" ";TopAbs::Print(TB1,std::cout)<<" : 1 shell ";
+ TopAbs::Print(neworiSH,std::cout); std::cout<<std::endl;
}
#endif
#ifdef OCCT_DEBUG
Standard_Integer iSO; Standard_Boolean tSPS = GtraceSPS(SO1,iSO);
if(tSPS){
- cout<<endl;
- cout<<"--- GFillSurfaceTopologySFS ShapeInterf ";TopAbs::Print(ShapeInterf,cout);
- cout<<endl;
+ std::cout<<std::endl;
+ std::cout<<"--- GFillSurfaceTopologySFS ShapeInterf ";TopAbs::Print(ShapeInterf,std::cout);
+ std::cout<<std::endl;
}
- cout<<"GFillSurfaceTopologySFS : NYI"<<endl;
+ std::cout<<"GFillSurfaceTopologySFS : NYI"<<std::endl;
#endif
} // GFillSurfaceTopologySFS
Standard_Integer iref = myDataStructure->Shape(mySolidReference);
Standard_Integer ifil = myDataStructure->Shape(mySolidToFill);
if(tSPS){
- cout<<"ifil : "<<ifil<<" iref : "<<iref<<endl;
- cout<<"solid "<<ifil<<" is ";TopOpeBRepDS::Print(Conf,cout);
- cout<<endl;
+ std::cout<<"ifil : "<<ifil<<" iref : "<<iref<<std::endl;
+ std::cout<<"solid "<<ifil<<" is ";TopOpeBRepDS::Print(Conf,std::cout);
+ std::cout<<std::endl;
}
#endif
if (tSPS){
DEBSHASET(ss,"--- GFillSurfaceTopologySFS ",SFS," AddElement SFS+ face ");
GdumpSHA(F,(Standard_Address)ss.ToCString());
- cout<<" ";TopAbs::Print(TB,cout)<<" : 1 face ";
- TopAbs::Print(ori,cout); cout<<endl;
+ std::cout<<" ";TopAbs::Print(TB,std::cout)<<" : 1 face ";
+ TopAbs::Print(ori,std::cout); std::cout<<std::endl;
}
#endif
#ifdef OCCT_DEBUG
Standard_Integer ish; Standard_Boolean tSPS = GtraceSPS(SH,ish);
if(tSPS){
- cout<<endl;
+ std::cout<<std::endl;
GdumpSHA(SH, (char *) "--- GFillShellSFS ");
- cout<<endl;}
+ std::cout<<std::endl;}
#endif
TopOpeBRepTool_ShapeExplorer exFace;
#ifdef OCCT_DEBUG
Standard_Integer iiFOR; Standard_Boolean tSPS = GtraceSPS(FOR,iiFOR);
if(tSPS){
- cout<<endl;
- GdumpSHASTA(FOR,TB1,"--- GSplitFaceSFS ");cout<<" RevOri1 : "<<RevOri1<<endl;debsplitf(iFOR);
+ std::cout<<std::endl;
+ GdumpSHASTA(FOR,TB1,"--- GSplitFaceSFS ");std::cout<<" RevOri1 : "<<RevOri1<<std::endl;debsplitf(iFOR);
}
#endif
if(tSPS){
DEBSHASET(ss,"--- GSplitFaceSFS ",SFS," AddStartElement SFS+ face ");
GdumpSHA(newF,(Standard_Address)ss.ToCString());
- cout<<" ";TopAbs::Print(TB1,cout)<<" : 1 face ";
- TopAbs::Print(neworiF,cout); cout<<endl;
+ std::cout<<" ";TopAbs::Print(TB1,std::cout)<<" : 1 face ";
+ TopAbs::Print(neworiF,std::cout); std::cout<<std::endl;
}
#endif
if(tSPS){
DEBSHASET(ss,"--- GSplitFaceSFS ",SFS," AddElement SFS+ face ");
GdumpSHA(F,(Standard_Address)ss.ToCString());
- cout<<" ";TopAbs::Print(TB1,cout)<<" : 1 face ";
- TopAbs::Print(neworiF,cout); cout<<endl;
+ std::cout<<" ";TopAbs::Print(TB1,std::cout)<<" : 1 face ";
+ TopAbs::Print(neworiF,std::cout); std::cout<<std::endl;
}
#endif
#ifdef OCCT_DEBUG
Standard_Integer iFOR; Standard_Boolean tSPS = GtraceSPS(FOR,iFOR);
if(tSPS){
- cout<<endl;
+ std::cout<<std::endl;
GdumpSHA(FOR, (char *) "--- GMergeFaceSFS ");
- cout<<endl;
+ std::cout<<std::endl;
}
#endif
#ifdef OCCT_DEBUG
if(tSPS){
- cout<<"--------- merge FACE "<<iFOR<<endl;
+ std::cout<<"--------- merge FACE "<<iFOR<<std::endl;
GdumpSAMDOM(LFSO1, (char *) "LFSO1 : ");
GdumpSAMDOM(LFDO1, (char *) "LFDO1 : ");
GdumpSAMDOM(LFSO2, (char *) "LFSO2 : ");
#ifdef OCCT_DEBUG
if(tSPS) {
- cout<<"performcom : "<<performcom<<" ";
- cout<<"makecomsam : "<<makecomsam<<" makcomdif : "<<makecomdif<<" ";
- cout<<"n1 : "<<n1<<" n2 : "<<n2<<endl;
- cout<<"GMergeFaceSFS RevOri1 : "<<RevOri1<<endl;
+ std::cout<<"performcom : "<<performcom<<" ";
+ std::cout<<"makecomsam : "<<makecomsam<<" makcomdif : "<<makecomdif<<" ";
+ std::cout<<"n1 : "<<n1<<" n2 : "<<n2<<std::endl;
+ std::cout<<"GMergeFaceSFS RevOri1 : "<<RevOri1<<std::endl;
}
#endif
if(tSPS){
DEBSHASET(ss,"--- GMergeFaceSFS ",SFS," AddStartElement SFS+ face ");
GdumpSHA(newF,(Standard_Address)ss.ToCString());
- cout<<" ";TopAbs::Print(TB1,cout)<<" : 1 face ";
- TopAbs::Print(neworiF,cout); cout<<endl;
+ std::cout<<" ";TopAbs::Print(TB1,std::cout)<<" : 1 face ";
+ TopAbs::Print(neworiF,std::cout); std::cout<<std::endl;
}
#endif
SFS.AddStartElement(newF);
} // performcom
#ifdef OCCT_DEBUG
- if(tSPS){cout<<"--------- end merge FACE "<<iFOR<<endl;}
+ if(tSPS){std::cout<<"--------- end merge FACE "<<iFOR<<std::endl;}
#endif
} // GMergeFaceSFS
#ifdef OCCT_DEBUG
Standard_Integer iF; Standard_Boolean tSPS = GtraceSPS(FOR,iF);
if(tSPS){
- cout<<endl;GdumpSHASTA(FOR,TB1,"--- GSplitFace ");
- cout<<endl;debsplitf(iF);
+ std::cout<<std::endl;GdumpSHASTA(FOR,TB1,"--- GSplitFace ");
+ std::cout<<std::endl;debsplitf(iF);
}
#endif
GFillONPartsWES(FOR,G1,LSclass,WES);
#ifdef OCCT_DEBUG
Standard_Integer n0 = WES.StartElements().Extent();
- if(tSPS) cout <<"--> GSplitFace , after GFillONPartsWES nstartelWES = "<<n0<<endl;
+ if(tSPS) std::cout <<"--> GSplitFace , after GFillONPartsWES nstartelWES = "<<n0<<std::endl;
#endif
// save these edges
GFillFaceWES(FF,LSclass,G1,WES);
Standard_Integer n1 = WES.StartElements().Extent();
#ifdef OCCT_DEBUG
- if(tSPS) cout <<"--> GSplitFace , after GFillFaceWES nstartelWES = "<<n1<<endl;
+ if(tSPS) std::cout <<"--> GSplitFace , after GFillFaceWES nstartelWES = "<<n1<<std::endl;
#endif
// add edges built on curves supported by FF
GFillCurveTopologyWES(FF,G1,WES);
Standard_Integer n2 = WES.StartElements().Extent();
#ifdef OCCT_DEBUG
- if(tSPS) cout <<"--> GSplitFace , after GFillCurveTopologyWES nstartelWES = "<<n2<<endl;
+ if(tSPS) std::cout <<"--> GSplitFace , after GFillCurveTopologyWES nstartelWES = "<<n2<<std::endl;
#endif
// myEdgeAvoid = StartElement edges of WES due to GFillCurveTopologyWES
BRepAdaptor_Surface STA_Surface(F);
GeomAbs_SurfaceType t = STA_Surface.GetType();
switch(t) {
- case GeomAbs_Plane : cout<<"PLANE"; break;
- case GeomAbs_Cylinder : cout<<"CYLINDER"; break;
- case GeomAbs_Cone : cout<<"CONE"; break;
- case GeomAbs_Sphere : cout<<"SPHERE"; break;
- case GeomAbs_Torus : cout<<"TORUS"; break;
- case GeomAbs_BezierSurface : cout<<"BEZIERSURFACE"; break;
- case GeomAbs_BSplineSurface : cout<<"BSPLINESURFACE"; break;
- case GeomAbs_SurfaceOfRevolution : cout<<"SURFACEOFREVOLUTION"; break;
- case GeomAbs_SurfaceOfExtrusion : cout<<"SURFACEOFEXTRUSION"; break;
- case GeomAbs_OtherSurface : default : cout<<"OTHERSURFACE"; break;
+ case GeomAbs_Plane : std::cout<<"PLANE"; break;
+ case GeomAbs_Cylinder : std::cout<<"CYLINDER"; break;
+ case GeomAbs_Cone : std::cout<<"CONE"; break;
+ case GeomAbs_Sphere : std::cout<<"SPHERE"; break;
+ case GeomAbs_Torus : std::cout<<"TORUS"; break;
+ case GeomAbs_BezierSurface : std::cout<<"BEZIERSURFACE"; break;
+ case GeomAbs_BSplineSurface : std::cout<<"BSPLINESURFACE"; break;
+ case GeomAbs_SurfaceOfRevolution : std::cout<<"SURFACEOFREVOLUTION"; break;
+ case GeomAbs_SurfaceOfExtrusion : std::cout<<"SURFACEOFEXTRUSION"; break;
+ case GeomAbs_OtherSurface : default : std::cout<<"OTHERSURFACE"; break;
}
- cout.flush();
+ std::cout.flush();
}
#else
void TopOpeBRepBuild_Builder::PrintSur(const TopoDS_Face& )
GeomAbs_CurveType t = GC.GetType();
switch(t) {
- case GeomAbs_Line : cout<<"LINE"; break;
- case GeomAbs_Circle : cout<<"CIRCLE"; break;
- case GeomAbs_Ellipse : cout<<"ELLIPSE"; break;
- case GeomAbs_Hyperbola : cout<<"HYPERBOLA"; break;
- case GeomAbs_Parabola : cout<<"PARABOLA"; break;
- case GeomAbs_BezierCurve : cout<<"BEZIERCURVE"; break;
- case GeomAbs_BSplineCurve : cout<<"BSPLINECURVE "<<GC.BSpline()->Degree(); break;
- case GeomAbs_OffsetCurve : cout<<"OFFSETCURVE"; break;
- case GeomAbs_OtherCurve : cout<<"OTHERCURVE"; break;
+ case GeomAbs_Line : std::cout<<"LINE"; break;
+ case GeomAbs_Circle : std::cout<<"CIRCLE"; break;
+ case GeomAbs_Ellipse : std::cout<<"ELLIPSE"; break;
+ case GeomAbs_Hyperbola : std::cout<<"HYPERBOLA"; break;
+ case GeomAbs_Parabola : std::cout<<"PARABOLA"; break;
+ case GeomAbs_BezierCurve : std::cout<<"BEZIERCURVE"; break;
+ case GeomAbs_BSplineCurve : std::cout<<"BSPLINECURVE "<<GC.BSpline()->Degree(); break;
+ case GeomAbs_OffsetCurve : std::cout<<"OFFSETCURVE"; break;
+ case GeomAbs_OtherCurve : std::cout<<"OTHERCURVE"; break;
}
- cout.flush();
+ std::cout.flush();
}
#else
void TopOpeBRepBuild_Builder::PrintCur(const TopoDS_Edge&)
#ifdef OCCT_DEBUG
void TopOpeBRepBuild_Builder::PrintOri(const TopoDS_Shape& S)
{
- TopAbs::Print(S.Orientation(),cout);
- cout.flush();
+ TopAbs::Print(S.Orientation(),std::cout);
+ std::cout.flush();
}
#else
void TopOpeBRepBuild_Builder::PrintOri(const TopoDS_Shape& /*S*/)
#ifdef OCCT_DEBUG
void TopOpeBRepBuild_Builder::GdumpPNT(const gp_Pnt& P)
{
- cout<<P.X()<<" "<<P.Y()<<" "<<P.Z(); cout.flush();
+ std::cout<<P.X()<<" "<<P.Y()<<" "<<P.Z(); std::cout.flush();
}
#else
void TopOpeBRepBuild_Builder::GdumpPNT(const gp_Pnt&)
const Standard_Real p,
const gp_Pnt& Pnt)
{
- TopAbs::Print(o,cout); cout<<" "<<p<<" pnt "; GdumpPNT(Pnt); cout.flush();
+ TopAbs::Print(o,std::cout); std::cout<<" "<<p<<" pnt "; GdumpPNT(Pnt); std::cout.flush();
}
#else
void TopOpeBRepBuild_Builder::GdumpORIPARPNT(const TopAbs_Orientation,
const TopoDS_Shape& V,
const Standard_Address s) const
{
- char* c = (char*)s; if (c) cout<<c;
+ char* c = (char*)s; if (c) std::cout<<c;
const TopoDS_Edge& EE = TopoDS::Edge(E);
const TopoDS_Vertex& VV = TopoDS::Vertex(V);
Standard_Real par = BRep_Tool::Parameter(VV,EE);
gp_Pnt P = BRep_Tool::Pnt(VV);
GdumpORIPARPNT(VV.Orientation(),par,P);
- cout.flush();
+ std::cout.flush();
}
#else
void TopOpeBRepBuild_Builder::GdumpEDGVER(const TopoDS_Shape&,
void TopOpeBRepBuild_Builder::GdumpEDG(const TopoDS_Shape& E,
const Standard_Address s) const
{
- char* c = (char*)s; if (c) cout<<c;
+ char* c = (char*)s; if (c) std::cout<<c;
const TopoDS_Edge& EE = TopoDS::Edge(E);
Standard_Integer n = 0;
- GdumpSHAORI(E, (char *) "vertices of ");cout<<endl;
+ GdumpSHAORI(E, (char *) "vertices of ");std::cout<<std::endl;
TopOpeBRepTool_ShapeExplorer ex(E,TopAbs_VERTEX);
char strpar[256];
Sprintf(strpar," #");
for (; ex.More(); ex.Next()) {
const TopoDS_Vertex& VV = TopoDS::Vertex(ex.Current());
TopAbs_Orientation o = VV.Orientation();
- cout<<"vertex v";
- if (o == TopAbs_FORWARD) cout<<"F";
- else if (o == TopAbs_REVERSED) cout<<"R";
- else if (o == TopAbs_INTERNAL) cout<<"I";
- else if (o == TopAbs_EXTERNAL) cout<<"E";
- cout<<++n<<" "; TopOpeBRepBuild_Builder::PrintPnt(VV); cout<<";";
+ std::cout<<"vertex v";
+ if (o == TopAbs_FORWARD) std::cout<<"F";
+ else if (o == TopAbs_REVERSED) std::cout<<"R";
+ else if (o == TopAbs_INTERNAL) std::cout<<"I";
+ else if (o == TopAbs_EXTERNAL) std::cout<<"E";
+ std::cout<<++n<<" "; TopOpeBRepBuild_Builder::PrintPnt(VV); std::cout<<";";
Standard_Real par = BRep_Tool::Parameter(VV,EE);
char spar[255];
Sprintf(spar," par%d %f",n,par);
strcat(strpar,spar);
}
- if(n) cout<<strpar<<endl;
- cout.flush();
+ if(n) std::cout<<strpar<<std::endl;
+ std::cout.flush();
}
#else
void TopOpeBRepBuild_Builder::GdumpEDG(const TopoDS_Shape&,
const Standard_Address astr) const
{
TopOpeBRepDS_Dumper Dumper(myDataStructure);
- cout<<Dumper.SPrintShapeRefOri(L,(char*)astr)<<endl;
- cout.flush();
+ std::cout<<Dumper.SPrintShapeRefOri(L,(char*)astr)<<std::endl;
+ std::cout.flush();
}
//=======================================================================
void TopOpeBRepBuild_Builder::GdumpSHA(const TopoDS_Shape& S,
const Standard_Address str) const
{
- char* c = (char*)str; if (c) cout<<c;
+ char* c = (char*)str; if (c) std::cout<<c;
if (S.IsNull()) return;
TopAbs_ShapeEnum tS = S.ShapeType(); Standard_Integer iS = 0;
if ( ! myDataStructure.IsNull() ) iS = myDataStructure->Shape(S);
- TopOpeBRepDS::Print(tS,iS,cout);
- cout.flush();
+ TopOpeBRepDS::Print(tS,iS,std::cout);
+ std::cout.flush();
}
#else
void TopOpeBRepBuild_Builder::GdumpSHA(const TopoDS_Shape&,
void TopOpeBRepBuild_Builder::GdumpSHAORI(const TopoDS_Shape& S,
const Standard_Address str) const
{
- char* c = (char*)str; if (c) cout<<c;
- GdumpSHA(S,NULL); cout<<","; PrintOri(S);
- cout.flush();
+ char* c = (char*)str; if (c) std::cout<<c;
+ GdumpSHA(S,NULL); std::cout<<","; PrintOri(S);
+ std::cout.flush();
}
#else
void TopOpeBRepBuild_Builder::GdumpSHAORI(const TopoDS_Shape& ,
void TopOpeBRepBuild_Builder::GdumpSHAORIGEO(const TopoDS_Shape& S,
const Standard_Address str) const
{
- char* c = (char*)str; if (c) cout<<c;
- GdumpSHAORI(S,NULL); cout<<","; PrintGeo(S);
- cout.flush();
+ char* c = (char*)str; if (c) std::cout<<c;
+ GdumpSHAORI(S,NULL); std::cout<<","; PrintGeo(S);
+ std::cout.flush();
}
#else
void TopOpeBRepBuild_Builder::GdumpSHAORIGEO(const TopoDS_Shape& ,
const TCollection_AsciiString& a,
const TCollection_AsciiString& b) const
{
- cout<<a;
- GdumpSHAORIGEO(S,NULL); cout<<","<<StringState(T).ToCString();
- cout<<b;
- cout.flush();
+ std::cout<<a;
+ GdumpSHAORIGEO(S,NULL); std::cout<<","<<StringState(T).ToCString();
+ std::cout<<b;
+ std::cout.flush();
}
#else
void TopOpeBRepBuild_Builder::GdumpSHASTA(const TopoDS_Shape& ,
{
const TopoDS_Shape& S = myDataStructure->Shape(iS);
GdumpSHASTA(S,T,a,b);
- cout.flush();
+ std::cout.flush();
}
#else
void TopOpeBRepBuild_Builder::GdumpSHASTA(const Standard_Integer ,
const TopoDS_Shape& S = myDataStructure->Shape(iS);
TCollection_AsciiString aib = a + " " + SS.DEBNumber() + " " + b;
GdumpSHASTA(S,T,aib,c);
- cout.flush();
+ std::cout.flush();
}
#else
void TopOpeBRepBuild_Builder::GdumpSHASTA(const Standard_Integer ,
{
if ( ! Ex.More() ) return;
TopAbs_ShapeEnum t = Ex.Current().ShapeType();
- if (t == TopAbs_SOLID) cout<<"";
- else if (t == TopAbs_FACE) cout<<" ";
- else if (t == TopAbs_EDGE) cout<<" ";
- else cout<<"??";
- Ex.DumpCurrent(cout);
+ if (t == TopAbs_SOLID) std::cout<<"";
+ else if (t == TopAbs_FACE) std::cout<<" ";
+ else if (t == TopAbs_EDGE) std::cout<<" ";
+ else std::cout<<"??";
+ Ex.DumpCurrent(std::cout);
Standard_Integer I = myDataStructure->Shape(Ex.Current());
- if ( I != 0 ) cout<<" : shape "<<I;
- cout<<endl;
- cout.flush();
+ if ( I != 0 ) std::cout<<" : shape "<<I;
+ std::cout<<std::endl;
+ std::cout.flush();
}
#else
void TopOpeBRepBuild_Builder::GdumpEXP(const TopOpeBRepTool_ShapeExplorer& ) const
Standard_Integer nf,nw,ne;
ME.InitFace();
- if ( ME.MoreFace() ) cout<<"clear;"<<endl;
+ if ( ME.MoreFace() ) std::cout<<"clear;"<<std::endl;
for (nf=0;ME.MoreFace();ME.NextFace()) {
nf++;
- cout<<"# face "<<nf<<endl;
+ std::cout<<"# face "<<nf<<std::endl;
for (nw=0,ME.InitWire();ME.MoreWire();ME.NextWire()) {
nw++;
Standard_Boolean ow = ME.IsOldWire();
- cout<<"# wire "<<nw;if(ow)cout<<" (old)";else cout<<" (new)";cout<<endl;
+ std::cout<<"# wire "<<nw;if(ow)std::cout<<" (old)";else std::cout<<" (new)";std::cout<<std::endl;
if (!ow) {
TCollection_AsciiString whatis("whatis");
for(ne=0,ME.InitEdge();ME.MoreEdge();ME.NextEdge()) {
if (PWES) Enam = Enam + PWES->DEBName() + PWES->DEBNumber();
VFnam = VFnam + ne + "NF" + nf + "F" + iF;
VRnam = VRnam + ne + "NF" + nf + "F" + iF;
-// cout<<" puts \"edge "<<ne<<" : "<<Enam<<"\"";cout<<"; ";
+// std::cout<<" puts \"edge "<<ne<<" : "<<Enam<<"\"";std::cout<<"; ";
TopoDS_Vertex VF,VR; TopExp::Vertices(EE,VF,VR);
if ( ! VF.IsNull() && !VR.IsNull() && !EE.IsNull()) {
#ifdef DRAW
DBRep::Set(VFnam.ToCString(),VF);
DBRep::Set(VRnam.ToCString(),VR);
#endif
- cout<<PRODINS<<"-O -p 0.5 "<<Enam; cout<<"; ";
-// cout<<PRODINS<<VFnam; cout<<"; ";
-// cout<<PRODINS<<VRnam; cout<<"; ";
+ std::cout<<PRODINS<<"-O -p 0.5 "<<Enam; std::cout<<"; ";
+// std::cout<<PRODINS<<VFnam; std::cout<<"; ";
+// std::cout<<PRODINS<<VRnam; std::cout<<"; ";
// gp_Pnt PF = BRep_Tool::Pnt(VF);
// gp_Pnt PR = BRep_Tool::Pnt(VR);
-// cout<<endl;
-// cout<<"# ";
-// cout<<"dinp "<<VFnam<<" ";TopOpeBRepBuild_Builder::PrintPnt(VF);cout<<"; ";
-// cout<<"dinp "<<VRnam<<" ";TopOpeBRepBuild_Builder::PrintPnt(VR);cout<<"; ";
- cout<<endl;
+// std::cout<<std::endl;
+// std::cout<<"# ";
+// std::cout<<"dinp "<<VFnam<<" ";TopOpeBRepBuild_Builder::PrintPnt(VF);std::cout<<"; ";
+// std::cout<<"dinp "<<VRnam<<" ";TopOpeBRepBuild_Builder::PrintPnt(VR);std::cout<<"; ";
+ std::cout<<std::endl;
whatis += " "; whatis += Enam;
}
}
- if (ne) cout<<" "<<whatis<<endl<<endl;
+ if (ne) std::cout<<" "<<whatis<<std::endl<<std::endl;
}
}
}
- cout.flush();
+ std::cout.flush();
} // GdumpFABU
#else
void TopOpeBRepBuild_Builder::GdumpFABU(TopOpeBRepBuild_FaceBuilder& ) const
static void FUN_Raise() {
#ifdef OCCT_DEBUG
- cout<<"******************************ERROR"<<endl;
+ std::cout<<"******************************ERROR"<<std::endl;
throw Standard_ProgramError("KPart.cxx");
#endif
}
#ifdef OCCT_DEBUG
Standard_Boolean TKPB = TopOpeBRepBuild_GettraceKPB();
- if(TKPB){cout<<endl<<"--- IsKPart ? ---"<<endl;}
+ if(TKPB){std::cout<<std::endl<<"--- IsKPart ? ---"<<std::endl;}
#endif
Standard_Integer isfafa = KPisfafa();
myDataStructure->Shape(fac2); //DEB
#ifdef OCCT_DEBUG
- if (TKPB) {cout<<""<<endl;cout<<"face "<<iF1<<" : ";cout<<iF2<<endl;}
+ if (TKPB) {std::cout<<""<<std::endl;std::cout<<"face "<<iF1<<" : ";std::cout<<iF2<<std::endl;}
#endif
TopOpeBRepDS_Config config2 = BDS.SameDomainOri(fac2);
}
else {
#ifdef OCCT_DEBUG
- cout<<"TopOpeBRepBuild_MergeKPart soldisj : ires = "<<ires<<endl;
+ std::cout<<"TopOpeBRepBuild_MergeKPart soldisj : ires = "<<ires<<std::endl;
#endif
return;
}
Standard_Boolean tSPS2 = GtraceSPS(f2,iF2);
if(tSPS1 || tSPS2)
{GdumpSHA( f1, (char *) "KPiskoletge ");
- cout<<endl;
+ std::cout<<std::endl;
GdumpSHA( f2, (char *)"KPiskoletge ");
- cout<<endl;}
+ std::cout<<std::endl;}
#endif
TopoDS_Wire outerw1 = BRepTools::OuterWire(f1);
#ifdef OCCT_DEBUG
if (TKPB) {
- cout<<"isdisj : "<<isdisj1<<" "<<isdisj2<<endl;
+ std::cout<<"isdisj : "<<isdisj1<<" "<<isdisj2<<std::endl;
}
#endif
#ifdef OCCT_DEBUG
if (TopOpeBRepBuild_GettraceKPB()) {
const gp_Pnt& P1 = myShapeClassifier.P3D();
- cout<<"point P1 "<<P1.X()<<" "<<P1.Y()<<" "<<P1.Z();
- cout<<" "; TopAbs::Print(state,cout);cout<<endl;
+ std::cout<<"point P1 "<<P1.X()<<" "<<P1.Y()<<" "<<P1.Z();
+ std::cout<<" "; TopAbs::Print(state,std::cout);std::cout<<std::endl;
}
#endif
#ifdef OCCT_DEBUG
if (TopOpeBRepBuild_GettraceKPB()) {
const gp_Pnt& P1 = myShapeClassifier.P3D();
- cout<<"point P1 "<<P1.X()<<" "<<P1.Y()<<" "<<P1.Z();
- cout<<" "; TopAbs::Print(state,cout);cout<<endl;
+ std::cout<<"point P1 "<<P1.X()<<" "<<P1.Y()<<" "<<P1.Z();
+ std::cout<<" "; TopAbs::Print(state,std::cout);std::cout<<std::endl;
}
#endif
#ifdef OCCT_DEBUG
Standard_Integer isol = myDataStructure->Shape(Sarg); Standard_Integer ifac = myDataStructure->Shape(fac);
- if(TKPB){cout<<"isol "<<isol<<endl;}
- if(TKPB){cout<<"nfhsd "<<nfhsd<<endl;}
- if(TKPB){cout<<"ifac "<<ifac<<endl;}
- if(TKPB){cout<<"isplan "<<isplan<<endl;}
- if(TKPB){cout<<"iscylinder "<<iscylinder<<endl;}
- if(TKPB){cout<<endl;}
+ if(TKPB){std::cout<<"isol "<<isol<<std::endl;}
+ if(TKPB){std::cout<<"nfhsd "<<nfhsd<<std::endl;}
+ if(TKPB){std::cout<<"ifac "<<ifac<<std::endl;}
+ if(TKPB){std::cout<<"isplan "<<isplan<<std::endl;}
+ if(TKPB){std::cout<<"iscylinder "<<iscylinder<<std::endl;}
+ if(TKPB){std::cout<<std::endl;}
#endif
}
#ifdef OCCT_DEBUG
Standard_Boolean TKPB = TopOpeBRepBuild_GettraceKPB();
- if (TKPB) cout<<"ires = "<<ires<<endl;
+ if (TKPB) std::cout<<"ires = "<<ires<<std::endl;
#endif
}
#ifdef OCCT_DEBUG
Standard_Boolean TKPB = TopOpeBRepBuild_GettraceKPB();
- if (TKPB) cout<<"ires = "<<ires<<" icla1 "<<icla1<<" icla2 "<<icla2<<endl;
+ if (TKPB) std::cout<<"ires = "<<ires<<" icla1 "<<icla1<<" icla2 "<<icla2<<std::endl;
#endif
}
#ifdef OCCT_DEBUG
if (TopOpeBRepBuild_GettraceKPB()) {
- cout<<"Stf1 ";TopAbs::Print(St1,cout); cout<<" ";
- cout<<"Stf2 ";TopAbs::Print(St2,cout); cout<<endl;
+ std::cout<<"Stf1 ";TopAbs::Print(St1,std::cout); std::cout<<" ";
+ std::cout<<"Stf2 ";TopAbs::Print(St2,std::cout); std::cout<<std::endl;
}
#endif
}
Standard_Boolean tSPS1 = GtraceSPS(F1,iF1);
Standard_Integer iF2;
Standard_Boolean tSPS2 = GtraceSPS(F2,iF2);
- if(tSPS1) { GdumpSHA(F1, (char *) "KPiskoleFF ");cout<<endl; }
- if(tSPS2) { GdumpSHA(F2, (char *) "KPiskoleFF ");cout<<endl; }
+ if(tSPS1) { GdumpSHA(F1, (char *) "KPiskoleFF ");std::cout<<std::endl; }
+ if(tSPS2) { GdumpSHA(F2, (char *) "KPiskoleFF ");std::cout<<std::endl; }
#endif
KPclassFF(F1,F2,St1,St2);
{
#ifdef OCCT_DEBUG
if (TopOpeBRepBuild_GettraceKPB()) {
- cout<<"--- IsKPart "<<b;
- if ( b == 1 ) cout<<" iskole";
- if ( b == 2 ) cout<<" isdisj";
- if ( b == 3 ) cout<<" isfafa";
- cout<<" ---"<<endl;
+ std::cout<<"--- IsKPart "<<b;
+ if ( b == 1 ) std::cout<<" iskole";
+ if ( b == 2 ) std::cout<<" isdisj";
+ if ( b == 3 ) std::cout<<" isfafa";
+ std::cout<<" ---"<<std::endl;
}
#endif
return b;
break;
}
default: {
- cout << "Warning: given operation is unknown" << endl;
+ std::cout << "Warning: given operation is unknown" << std::endl;
break;
}
} //end switch
Standard_Integer ires=RESUNDEF, icla1=SHEUNDEF, icla2=SHEUNDEF;
LocalKPisdisjanalyse(stsol1, stsol2, TopOpeBRepBuild_KPart_Operation_Fuse, ires, icla1, icla2);
if (ires == RESUNDEF || icla1 == SHEUNDEF || icla2 == SHEUNDEF || ires == RESNULL) {
- cout << "Warning: disjPerformFuse: can not determine solid's states" << endl;
+ std::cout << "Warning: disjPerformFuse: can not determine solid's states" << std::endl;
continue;
}
if(ires == RESSHAPE12)
}
} //end while(j)
if(acheckiterator > aMaxNumberOfIterations) {
- cout << "disjPerformFuse: programming error" << endl;
+ std::cout << "disjPerformFuse: programming error" << std::endl;
return Standard_False;
}
theMapOfResult.Add(acurrentsolid);
LocalKPisdisjanalyse(stsol1, stsol2, TopOpeBRepBuild_KPart_Operation_Common, ires, icla1, icla2);
if (ires == RESUNDEF || icla1 == SHEUNDEF || icla2 == SHEUNDEF) {
- cout << "Warning: disjPerformCommon: can not determine solid's states" << endl;
+ std::cout << "Warning: disjPerformCommon: can not determine solid's states" << std::endl;
continue;
}
switch (ires) {
LocalKPisdisjanalyse(stsol1, stsol2, TopOpeBRepBuild_KPart_Operation_Cut12, ires, icla1, icla2);
if (ires == RESUNDEF || icla1 == SHEUNDEF || icla2 == SHEUNDEF) {
- cout << "Warning: disjPerformCut: can not determine solid's states" << endl;
+ std::cout << "Warning: disjPerformCut: can not determine solid's states" << std::endl;
continue;
}
switch (ires) {
static void CorrectUnclosedWire(TopoDS_Shape& aWire)
{
-// cout << "-------CorrectUnclosedWire" << endl;
+// std::cout << "-------CorrectUnclosedWire" << std::endl;
BRep_Builder BB;
TopoDS_Iterator tdi(aWire, Standard_False, Standard_False);
Standard_Integer nbe = 0;
nbe++;
const TopoDS_Shape& ed = tdi.Value();
Standard_Integer nbv = ed.NbChildren();
-// cout << "Edge " << nbe << " : " << nbv << endl;
+// std::cout << "Edge " << nbe << " : " << nbv << std::endl;
if(nbv <= 1) {
-// cout << "Remove bad edge" << endl;
+// std::cout << "Remove bad edge" << std::endl;
BB.Remove(aWire, ed);
}
}
const TopTools_ListOfShape& Elist = VElists.FindFromIndex(i);
if(Elist.Extent() == 1) {
TopoDS_Shape anEdge = Elist.First();
-// cout << "Remove redundant edge" << endl;
+// std::cout << "Remove redundant edge" << std::endl;
BB.Remove(aWire, anEdge);
}
}
Standard_Boolean lesmemes = S1.IsEqual(S2);
if (lesmemes) {
#ifdef OCCT_DEBUG
- cout<<"TopOpeBRepBuild : S1 == S2"<<endl;
+ std::cout<<"TopOpeBRepBuild : S1 == S2"<<std::endl;
#endif
return;
}
} // loop on vertices of new edge newEdge
#ifdef OCCT_DEBUG
- if(tSPS){cout<<endl;}
- if(tSPS){cout<<"V of new edge "<<++ne<<endl;}
+ if(tSPS){std::cout<<std::endl;}
+ if(tSPS){std::cout<<"V of new edge "<<++ne<<std::endl;}
if(tSPS){GdumpEDG(newEdge);}
#endif
void TopOpeBRepBuild_Pave::Dump() const
{
#ifdef OCCT_DEBUG
- cout<<Parameter()<<" ";TopAbs::Print(Vertex().Orientation(),cout);
+ std::cout<<Parameter()<<" ";TopAbs::Print(Vertex().Orientation(),std::cout);
#endif
}
#ifdef OCCT_DEBUG
if (TopOpeBRepTool_GettraceVC()) {
- cout<<endl;
+ std::cout<<std::endl;
if (myEdgePeriodic) {
- cout<<"VC : periodic edge : myFirst "<<myFirst<<" myPeriod "<<myPeriod<<endl;
- if (mySameParameters)cout<<"VC same parameters "<<endl;
- else cout<<"VC no same parameters"<<endl;
+ std::cout<<"VC : periodic edge : myFirst "<<myFirst<<" myPeriod "<<myPeriod<<std::endl;
+ if (mySameParameters)std::cout<<"VC same parameters "<<std::endl;
+ else std::cout<<"VC no same parameters"<<std::endl;
}
else {
- cout<<"VC : non periodic edge : f "<<f<<" l "<<l<<endl;
+ std::cout<<"VC : non periodic edge : f "<<f<<" l "<<l<<std::endl;
}
}
#endif
#ifdef OCCT_DEBUG
if (TopOpeBRepTool_GettraceVC()) {
- cout<<"VC_NP : ";
- if (myP1 == myP2) cout<<" p1 = p2";
- else if (myP1 < myP2) cout<<" p1 < p2";
- else if (myP1 > myP2) cout<<" p1 > p2";
- cout<<" --> state "; TopAbs::Print(state,cout); cout<<endl;
+ std::cout<<"VC_NP : ";
+ if (myP1 == myP2) std::cout<<" p1 = p2";
+ else if (myP1 < myP2) std::cout<<" p1 < p2";
+ else if (myP1 > myP2) std::cout<<" p1 > p2";
+ std::cout<<" --> state "; TopAbs::Print(state,std::cout); std::cout<<std::endl;
}
#endif
#ifdef OCCT_DEBUG
if (TopOpeBRepTool_GettraceVC()) {
- cout<<"p1 "<<p1<<" ";TopAbs::Print(myO1,cout);cout<<" --> "<<myP1<<endl;
- cout<<"p2 "<<p2<<" ";TopAbs::Print(myO2,cout);cout<<" --> "<<myP2<<endl;
+ std::cout<<"p1 "<<p1<<" ";TopAbs::Print(myO1,std::cout);std::cout<<" --> "<<myP1<<std::endl;
+ std::cout<<"p2 "<<p2<<" ";TopAbs::Print(myO2,std::cout);std::cout<<" --> "<<myP2<<std::endl;
}
#endif
#ifdef OCCT_DEBUG
if (TopOpeBRepTool_GettraceVC()) {
- cout<<"VC_P : cas "<<myCas1<<"__"<<myCas2;
- cout<<" --> state "; TopAbs::Print(state,cout); cout<<endl;
+ std::cout<<"VC_P : cas "<<myCas1<<"__"<<myCas2;
+ std::cout<<" --> state "; TopAbs::Print(state,std::cout); std::cout<<std::endl;
}
#endif
#ifdef OCCT_DEBUG
if (TopOpeBRepTool_GettraceVC()) {
- cout<<endl<<"VC : "<<myP1<<" "<<myP2<<" ";
- TopAbs::Print(myO1,cout); cout<<" "; TopAbs::Print(myO2,cout);
- cout<<" (p "<<myEdgePeriodic;
- cout<<" s "<<mySameParameters<<" c "<<myClosedVertices<<")"<<endl;
+ std::cout<<std::endl<<"VC : "<<myP1<<" "<<myP2<<" ";
+ TopAbs::Print(myO1,std::cout); std::cout<<" "; TopAbs::Print(myO2,std::cout);
+ std::cout<<" (p "<<myEdgePeriodic;
+ std::cout<<" s "<<mySameParameters<<" c "<<myClosedVertices<<")"<<std::endl;
}
#endif
#ifdef OCCT_DEBUG
if (TopOpeBRepTool_GettraceVC()) {
- cout<<"VC : --> final state "; TopAbs::Print(state,cout); cout<<endl;
+ std::cout<<"VC : --> final state "; TopAbs::Print(state,std::cout); std::cout<<std::endl;
}
#endif
#ifdef OCCT_DEBUG
if (TopOpeBRepTool_GettraceVC())
- cout<<endl<<"VC : set first parameter "<<myFirst<<endl;
+ std::cout<<std::endl<<"VC : set first parameter "<<myFirst<<std::endl;
#endif
}
#ifdef OCCT_DEBUG
if (TopOpeBRepTool_GettraceCLOV()) {
myEdgePeriodic = Closed;
- cout<<"::::::::::::::::::::::::"<<endl;
- cout<<"VC : myClosedVertices"<<myClosedVertices<<endl;
- cout<<"VC : myEdgePeriodic "<<myEdgePeriodic<<endl;
- cout<<"::::::::::::::::::::::::"<<endl;
+ std::cout<<"::::::::::::::::::::::::"<<std::endl;
+ std::cout<<"VC : myClosedVertices"<<myClosedVertices<<std::endl;
+ std::cout<<"VC : myEdgePeriodic "<<myEdgePeriodic<<std::endl;
+ std::cout<<"::::::::::::::::::::::::"<<std::endl;
}
#endif
}
Standard_Integer iv=0;//,nv=myVertices.Extent();
if (trc) {
TopOpeBRepBuild_ListIteratorOfListOfPave itd(myVertices);
- cout<<endl;
+ std::cout<<std::endl;
for(;itd.More();itd.Next() ) {
const Handle(TopOpeBRepBuild_Pave)& PV = itd.Value();
TopoDS_Vertex& VI = TopoDS::Vertex(PV->ChangeVertex());
TopoDS_Vertex VSD; if (hasVSD) VSD = TopoDS::Vertex(PV->SameDomain());
TopAbs_Orientation VIori = VI.Orientation();
Standard_Real p = PV->Parameter();
- cout<<"pvs : v "<<++iv<<" par "<<p<<" ";TopAbs::Print(VIori,cout);cout<<endl;
+ std::cout<<"pvs : v "<<++iv<<" par "<<p<<" ";TopAbs::Print(VIori,std::cout);std::cout<<std::endl;
}
}
#endif
#ifdef OCCT_DEBUG
if ( TopOpeBRepTool_GettraceVC() ) {
myVerticesIt.Initialize(myVertices);
- if ( MoreLoop() ) cout<<"--- PaveSet : Prepare"<<endl;
+ if ( MoreLoop() ) std::cout<<"--- PaveSet : Prepare"<<std::endl;
for (; MoreLoop(); NextLoop() ) {
Handle(TopOpeBRepBuild_Pave) PV =
Handle(TopOpeBRepBuild_Pave)::DownCast(Loop());
Standard_Real p = PV->Parameter();
Standard_Boolean b = PV->IsShape();
TopOpeBRepBuild_Builder::GdumpORIPARPNT(v.Orientation(),p,BRep_Tool::Pnt(v));
- if (b) cout<<" is bound"; else cout<<" is not bound";
- cout<<endl;
+ if (b) std::cout<<" is bound"; else std::cout<<" is not bound";
+ std::cout<<std::endl;
}
}
#endif
Standard_Real d = Abs(p1-p2);
#ifdef OCCT_DEBUG
if (TopOpeBRepTool_GettraceVC()) {
- cout<<"VertexSet : p1,p2 d "<<p1<<","<<p2<<" "<<d<<endl;
+ std::cout<<"VertexSet : p1,p2 d "<<p1<<","<<p2<<" "<<d<<std::endl;
}
#endif
if (d < Precision::PConfusion()) {
myEqualParameters = f;
#ifdef OCCT_DEBUG
if (TopOpeBRepTool_GettraceVC()) {
- cout<<"=*=*=*=*=*=*=*=*=*=*=*=*=*=*"<<endl;
- cout<<"PaveSet : p1,f d "<<p1<<","<<f<<" "<<d<<endl;
- cout<<"=*=*=*=*=*=*=*=*=*=*=*=*=*=*"<<endl;
+ std::cout<<"=*=*=*=*=*=*=*=*=*=*=*=*=*=*"<<std::endl;
+ std::cout<<"PaveSet : p1,f d "<<p1<<","<<f<<" "<<d<<std::endl;
+ std::cout<<"=*=*=*=*=*=*=*=*=*=*=*=*=*=*"<<std::endl;
}
#endif
}
extern Standard_Boolean TopOpeBRepBuild_GetcontextNOREGUSO();
extern Standard_Boolean TopOpeBRepBuild_GetcontextREGUXPU();
extern Standard_Boolean TopOpeBRepBuild_GettraceSAVSREGU();
-Standard_EXPORT void debreguso(const Standard_Integer iS) {cout<<"++ debreguso "<<iS<<endl;}
+Standard_EXPORT void debreguso(const Standard_Integer iS) {std::cout<<"++ debreguso "<<iS<<std::endl;}
#endif
#ifdef DRAW
#ifdef OCCT_DEBUG
if (tSPS) {
- cout<<"RegularizeSolid "<<iS<<endl;
+ std::cout<<"RegularizeSolid "<<iS<<std::endl;
debreguso(iS);
}
#endif
if (tSPS && savsregu) {
TCollection_AsciiString str("sregu"); str = str + iS;
DBRep::Set(str.ToCString(),newSolid);
- cout<<"newSolid "<<str<<" built on Solid "<<iS<<" saved"<<endl;
+ std::cout<<"newSolid "<<str<<" built on Solid "<<iS<<" saved"<<std::endl;
}
#endif
extern Standard_Boolean TopOpeBRepBuild_GettraceSPS();
Standard_EXPORT void debsplitse(const Standard_Integer) {}
Standard_EXPORT void debsplitsemess(const Standard_Integer i,const TCollection_AsciiString& s = "");
-Standard_EXPORT void debsplitsemess(const Standard_Integer i,const TCollection_AsciiString& s){cout<<"+++ debsplitse "<<s<<" E"<<i<<endl;debsplitse(i);}
+Standard_EXPORT void debsplitsemess(const Standard_Integer i,const TCollection_AsciiString& s){std::cout<<"+++ debsplitse "<<s<<" E"<<i<<std::endl;debsplitse(i);}
Standard_EXPORT void debspseou(const Standard_Integer i) {debsplitsemess(i,"OUT");}
Standard_EXPORT void debspsein(const Standard_Integer i) {debsplitsemess(i,"IN ");}
Standard_EXPORT void debspseon(const Standard_Integer i) {debsplitsemess(i,"ON ");}
if (tSPS) {
TCollection_AsciiString str("# edge ");str=str+iE+" sd3d edge "+iESD;
TCollection_AsciiString stru(str.Length(),'-');
- cout<<endl;if(DEBiESD==1)cout<<stru<<endl;
- DEBiESD++;cout<<str<<endl;debsplitsemess(iE);
+ std::cout<<std::endl;if(DEBiESD==1)std::cout<<stru<<std::endl;
+ DEBiESD++;std::cout<<str<<std::endl;debsplitsemess(iE);
}
#endif
#ifdef DRAW
if (tSPS) {
- cout<<"# edges ON "<<iE<<" ";
- TopAbs::Print(TopAbs_IN,cout); cout<<" / esd";
- cout<<" "<<iESD;
- cout<<" : ("<<nLE1inE2<<")"<<endl;
+ std::cout<<"# edges ON "<<iE<<" ";
+ TopAbs::Print(TopAbs_IN,std::cout); std::cout<<" / esd";
+ std::cout<<" "<<iESD;
+ std::cout<<" : ("<<nLE1inE2<<")"<<std::endl;
TCollection_AsciiString str("ON");str=str+iE+"IN"+iESD;
FDRAW_DINLOE(" ",LE1inE2,str,"");
}
#ifdef DRAW
if (tSPS) {
- cout<<endl<<"# edges ON "<<iE<<" ";
- TopAbs::Print(TopAbs_OUT,cout);cout<<" / lesd";
+ std::cout<<std::endl<<"# edges ON "<<iE<<" ";
+ TopAbs::Print(TopAbs_OUT,std::cout);std::cout<<" / lesd";
for(TopTools_ListIteratorOfListOfShape it(LESD);it.More();it.Next())
- cout<<" "<<myDataStructure->Shape(it.Value());
- Standard_Integer n=LEoutLESD.Extent();cout<<" : ("<<n<<")"<<endl;
+ std::cout<<" "<<myDataStructure->Shape(it.Value());
+ Standard_Integer n=LEoutLESD.Extent();std::cout<<" : ("<<n<<")"<<std::endl;
TCollection_AsciiString str("ON");str=str+iE+"OUT";
FDRAW_DINLOE(" ",LEoutLESD,str,"");
}
if (hasPC) continue;
#ifdef OCCT_DEBUG
if (TopOpeBRepTool_GettraceC2D()) {
- cout<<"\n#TopOpeBRepBuild_Builder::SSE : hasPC = 0 ES"<<i<<" E"<<idebE<<" sur F"<<iF<<endl;
- cout<<"tsee s "<<iF<<" "<<idebE<<";"<<endl;
+ std::cout<<"\n#TopOpeBRepBuild_Builder::SSE : hasPC = 0 ES"<<i<<" E"<<idebE<<" sur F"<<iF<<std::endl;
+ std::cout<<"tsee s "<<iF<<" "<<idebE<<";"<<std::endl;
}
#endif
// Standard_Real tolpc; MGhc2 PC = FC2D_CurveOnSurface(eon,F,esdF,f,l,tolpc);
#ifdef OCCT_DEBUG
if(tSPS) {
GdumpSHA(EF, (char *) "SplitSectionEdges done : ");
- if (issplit) cout<<" "<<Splits(EOR,TopAbs_ON).Extent()<<" edges splitON"<<endl;
- else cout<<" !IsSplit"<<endl;
+ if (issplit) std::cout<<" "<<Splits(EOR,TopAbs_ON).Extent()<<" edges splitON"<<std::endl;
+ else std::cout<<" !IsSplit"<<std::endl;
}
#endif
return;
#ifdef OCCT_DEBUG
if(tSPS)GdumpSHASTA(EF,TopAbs_ON,"--- SplitSectionEdges ");
- if(tSPS)cout<<" (hg="<<hg<<"||hsd3d="<<hsd3d<<")="<<cond<<endl;
+ if(tSPS)std::cout<<" (hg="<<hg<<"||hsd3d="<<hsd3d<<")="<<cond<<std::endl;
#endif
// xpu161198 BUC60382(e3on) SE EOR has all its interferences "on bounds"
#ifdef OCCT_DEBUG
if(tSPS)GdumpSHASTA(EF,TopAbs_ON,"--- SplitSectionEdges ");
if(tSPS){
- cout<<" (hg="<<hg<<"||hsd3d="<<hsd3d<<")="<<cond<<endl;
+ std::cout<<" (hg="<<hg<<"||hsd3d="<<hsd3d<<")="<<cond<<std::endl;
GdumpSHA(EOR, (char *) "SplitSectionEdge");
- cout<<endl;
+ std::cout<<std::endl;
GdumpSAMDOM(LESD1, (char *) "LESD1 : ");
GdumpSAMDOM(LESD2, (char *) "LESD2 : ");
}
Standard_Integer iii; Standard_Boolean tSPS = GtraceSPS(es,iii);
if (tSPS) {
GdumpSHA(es, (char *) "--- Section ");
- cout<<" splitIN "<<issplitIN<<" "<<Splits(es,TopAbs_IN).Extent()<<endl;
- cout<<" splitON "<<issplitON<<" "<<Splits(es,TopAbs_ON).Extent()<<endl;
+ std::cout<<" splitIN "<<issplitIN<<" "<<Splits(es,TopAbs_IN).Extent()<<std::endl;
+ std::cout<<" splitON "<<issplitON<<" "<<Splits(es,TopAbs_ON).Extent()<<std::endl;
}
#endif
{
Standard_Boolean chk = CheckShape(S);
#ifdef OCCT_DEBUG
- DumpCheck(cout," AddShape",S,chk);
+ DumpCheck(std::cout," AddShape",S,chk);
#endif
if (!chk) return;
{
Standard_Boolean chk = CheckShape(S);
#ifdef OCCT_DEBUG
- DumpCheck(cout," AddStartElement",S,chk);
+ DumpCheck(std::cout," AddStartElement",S,chk);
#endif
if (!chk) return;
{
Standard_Boolean chk = CheckShape(S);
#ifdef OCCT_DEBUG
- DumpCheck(cout," AddElement",S,chk);
+ DumpCheck(std::cout," AddElement",S,chk);
#endif
if (!chk) return;
#ifdef OCCT_DEBUG
if (TopOpeBRepBuild_GettraceCHK() && !myCheckShape) {
- DumpName(cout,"no checkshape set on ");cout<<endl;
+ DumpName(std::cout,"no checkshape set on ");std::cout<<std::endl;
}
#endif
}
if (TopOpeBRepBuild_GettraceCHK() ||
TopOpeBRepBuild_GettraceCHKNOK() ) {
DumpName(OS,"*********************** ");
- OS<<str<<" ";TopAbs::Print(t,OS);OS<<" : incorrect"<<endl;
+ OS<<str<<" ";TopAbs::Print(t,OS);OS<<" : incorrect"<<std::endl;
}
}
else {
if (TopOpeBRepBuild_GettraceCHK() ||
TopOpeBRepBuild_GettraceCHKOK() ) {
DumpName(OS,"");
- OS<<str<<" ";TopAbs::Print(t,OS);OS<<" : correct"<<endl;
+ OS<<str<<" ";TopAbs::Print(t,OS);OS<<" : correct"<<std::endl;
}
}
if (!chk) debaddss();
void TopOpeBRepBuild_ShapeSet::DumpSS()
{
#ifdef DRAW
- DumpName(cout,"\nDumpSS start ");
+ DumpName(std::cout,"\nDumpSS start ");
TopTools_ListIteratorOfListOfShape it;
Standard_Integer i,j,ne;
TCollection_AsciiString s1(" ");
InitShapes();
- cout<<endl<<"#Shapes : ";if (!MoreShapes()) cout<<0;cout<<endl;
+ std::cout<<std::endl<<"#Shapes : ";if (!MoreShapes()) std::cout<<0;std::cout<<std::endl;
for (i=1;MoreShapes();NextShape(),i++) {
TCollection_AsciiString ns = SNameori(Shape());
- cout<<PRODINS<<ns<<"; # "<<i<<" draw"<<endl;
+ std::cout<<PRODINS<<ns<<"; # "<<i<<" draw"<<std::endl;
DBRep::Set(ns.ToCString(),Shape());
}
InitStartElements();
- cout<<"#StartElements : ";if (!MoreStartElements()) cout<<0;cout<<endl;
+ std::cout<<"#StartElements : ";if (!MoreStartElements()) std::cout<<0;std::cout<<std::endl;
for (i=1;MoreStartElements();NextStartElement(),i++) {
- cout<<PRODINS<<SNameori(StartElement())<<"; # "<<i<<" draw"<<endl;
+ std::cout<<PRODINS<<SNameori(StartElement())<<"; # "<<i<<" draw"<<std::endl;
}
InitStartElements();
- cout<<"#Neighbours of StartElements : ";if (!MoreStartElements()) cout<<0;cout<<endl;
+ std::cout<<"#Neighbours of StartElements : ";if (!MoreStartElements()) std::cout<<0;std::cout<<std::endl;
for (i=1;MoreStartElements();NextStartElement(),i++) {
const TopoDS_Shape& e = StartElement();
TCollection_AsciiString enam = SNameori(e);
sne=sne+" "+SNameori(N);
}
sne=sne+"; wclick; #draw";
- cout<<sne<<endl;
+ std::cout<<sne<<std::endl;
}
}
Standard_Integer ism,nsm=mySubShapeMap.Extent();
- cout<<"#Incident shapes : ";if (!nsm) cout<<0;cout<<endl;
+ std::cout<<"#Incident shapes : ";if (!nsm) std::cout<<0;std::cout<<std::endl;
for (i=1,ism=1;ism<=nsm;ism++,i++) {
const TopoDS_Shape& v = mySubShapeMap.FindKey(ism);
const TopTools_ListOfShape& lsv = mySubShapeMap.FindFromIndex(ism);
sle=sle+" "+SNameori(e);
}
sle=sle+"; wclick; #draw";
- cout<<sle<<endl;
+ std::cout<<sle<<std::endl;
}
}
- DumpName(cout,"DumpSS end ");
+ DumpName(std::cout,"DumpSS end ");
#endif
}
void TopOpeBRepBuild_ShapeSet::DumpBB()
{
#ifdef DRAW
- DumpName(cout,"\nDumpBB ");
+ DumpName(std::cout,"\nDumpBB ");
TopTools_ListIteratorOfListOfShape it;
Standard_Integer i,j,ne = 0, nb = 1, curr, currloc;
TCollection_AsciiString s1(" "),stt,enam,nnam,vnam;
InitShapes();
- cout<<endl<<"#Shapes : (block old) ";if (!MoreShapes()) cout<<0;cout<<endl;
+ std::cout<<std::endl<<"#Shapes : (block old) ";if (!MoreShapes()) std::cout<<0;std::cout<<std::endl;
for (i=1;MoreShapes();NextShape(),i++, nb++) {
- cout<<"Block number"<<nb<<" (old)."<<endl;
+ std::cout<<"Block number"<<nb<<" (old)."<<std::endl;
const TopoDS_Shape& e = Shape();
TopoDS_Iterator ShapIter(e);
for(ne = 1;ShapIter.More();ShapIter.Next(), ne++) {
ShapeEnumToString(subsha.ShapeType(),stt);
enam = stt+ne+"ShaB"+nb;
DBRep::Set(enam.ToCString(),subsha);
- cout<<"clear; "<<PRODINS<<enam<<"; #draw"<<endl;
+ std::cout<<"clear; "<<PRODINS<<enam<<"; #draw"<<std::endl;
}
}
InitStartElements();
TopTools_IndexedMapOfShape mos;
- cout<<"#Elements : (block new) : ";if (!MoreStartElements()) cout<<0;cout<<endl;
+ std::cout<<"#Elements : (block new) : ";if (!MoreStartElements()) std::cout<<0;std::cout<<std::endl;
mos.Clear();
for (;MoreStartElements();NextStartElement()) {
const TopoDS_Shape& e = StartElement();
curr = mos.Extent();
if(mos.Add(e) > curr) {
- cout<<"#Block number"<<nb<<" (new)."<<endl;
+ std::cout<<"#Block number"<<nb<<" (new)."<<std::endl;
nb++;ne++;
enam = "";
enam = enam+"ste"+ne+"newB"+nb;
} else {
enam = enam+"ele"+ne+"newB"+nb;
DBRep::Set(enam.ToCString(),N);
- cout<<PRODINS<<enam<<"; #draw"<<endl;
+ std::cout<<PRODINS<<enam<<"; #draw"<<std::endl;
}
}
}
TCollection_AsciiString sname("shell_"); sname = home + sname + STATIC_ishell;
TCollection_AsciiString vname("vertex_"); vname = home + vname + STATIC_ishell;
BRep_Builder B;TopoDS_Vertex V;B.MakeVertex(V,myPoint3d,tol3d);
- cout<<"TopOpeBRepBuild_ShellFaceClassifier : write shell "<<sname;
- cout<<" vertex "<<vname<<endl;
+ std::cout<<"TopOpeBRepBuild_ShellFaceClassifier : write shell "<<sname;
+ std::cout<<" vertex "<<vname<<std::endl;
BRepTools::Write(myShell,sname.ToCString());
BRepTools::Write(V,vname.ToCString());
}
TopOpeBRepBuild_Builder* pB = ((TopOpeBRepBuild_Builder*)((void*)A));
myDEBNumber = pB->GdumpSHASETindex();
Standard_Integer iS; Standard_Boolean tSPS = pB->GtraceSPS(S,iS);
- if(tSPS){cout<<"creation SFS "<<myDEBNumber<<" on ";}
- if(tSPS){pB->GdumpSHA(S,NULL);cout<<endl;}
+ if(tSPS){std::cout<<"creation SFS "<<myDEBNumber<<" on ";}
+ if(tSPS){pB->GdumpSHA(S,NULL);std::cout<<std::endl;}
}
if (TopOpeBRepBuild_GettraceCHK() && !myCheckShape) {
- DumpName(cout,"no checkshape in creation of ");cout<<endl;
+ DumpName(std::cout,"no checkshape in creation of ");std::cout<<std::endl;
}
#endif
}
aSubsh = aSubshMap(i);
if (aSubsh.IsNull()) {
#ifdef OCCT_DEBUG
- cout<<"FindStateThroughVertex: warning: all vertices are avoided"<<endl;
+ std::cout<<"FindStateThroughVertex: warning: all vertices are avoided"<<std::endl;
#endif
return TopAbs_UNKNOWN; // failure
}
Handle(Geom2d_Curve) cc = BRep_Tool::CurveOnSurface(newE, tFace, fc, lc);
if(!cc.IsNull()) {
- //cout << "Pcurves exist" << endl;
+ //std::cout << "Pcurves exist" << std::endl;
return;
}
if (LOCAL_PBUILDER_DEB != NULL) {
myDEBNumber = LOCAL_PBUILDER_DEB->GdumpSHASETindex();
Standard_Integer iF; Standard_Boolean tSPS = LOCAL_PBUILDER_DEB->GtraceSPS(F,iF);
- if(tSPS){DumpName(cout,"creation ");cout<<" on ";}
- if(tSPS){LOCAL_PBUILDER_DEB->GdumpSHA(F,NULL);cout<<endl;}
+ if(tSPS){DumpName(std::cout,"creation ");std::cout<<" on ";}
+ if(tSPS){LOCAL_PBUILDER_DEB->GdumpSHA(F,NULL);std::cout<<std::endl;}
}
if (TopOpeBRepBuild_GettraceCHK() && !myCheckShape) {
- DumpName(cout,"no checkshape in creation of ");cout<<endl;
+ DumpName(std::cout,"no checkshape in creation of ");std::cout<<std::endl;
}
#endif
}
#ifdef DRAW
if (TopOpeBRepBuild_GettraceCHK() && CheckShape()) {
- if (!tocheck) DumpCheck(cout," AddShape WIRE on closed face",S,chk);
- else DumpCheck(cout," AddShape redefined",S,chk);
+ if (!tocheck) DumpCheck(std::cout," AddShape WIRE on closed face",S,chk);
+ else DumpCheck(std::cout," AddShape redefined",S,chk);
}
#endif
TCollection_AsciiString str("#**** InitNeighbours");
if (tsh) str = str + " on WES edge " + SNameori(E);
str = str + " #****";
- cout<<endl<<str<<endl;
+ std::cout<<std::endl<<str<<std::endl;
if (tsh) debwesclo(ista);
}
#endif
Standard_Boolean traceSS = TopOpeBRepBuild_GettraceSS();
if ( traceSS ) {
TCollection_AsciiString svel = SNameVEL(V,E,l);
- cout<<PRODINS<<svel<<"; #---- WES MNL"<<endl;
+ std::cout<<PRODINS<<svel<<"; #---- WES MNL"<<std::endl;
}
#endif
if ( traceSS ) {
Standard_Integer rang = myCurrentShapeNeighbours.Extent();
const TopoDS_Edge& EE = TopoDS::Edge(curn);
- cout <<"+ EE "<<iapp<<" , rang "<<rang<<" ";
- TCollection_AsciiString svee=SNameVEE(V,E,EE);cout<<svee<<endl;
+ std::cout <<"+ EE "<<iapp<<" , rang "<<rang<<" ";
+ TCollection_AsciiString svee=SNameVEE(V,E,EE);std::cout<<svee<<std::endl;
}
#endif
}
Standard_Integer newn = NbClosingShapes(myCurrentShapeNeighbours);
#ifdef DRAW
if ( traceSS ) {
- cout<<"#~~~~connexes apres VertexConnectsEdgesClosing : ";
+ std::cout<<"#~~~~connexes apres VertexConnectsEdgesClosing : ";
TCollection_AsciiString svel=SNameVEL(V,E,myCurrentShapeNeighbours);
- cout<<svel<<endl;
+ std::cout<<svel<<std::endl;
}
#endif
#ifdef DRAW
if ( traceSS ) {
- cout<<"#-------- rang "<<rang<<endl;
- TCollection_AsciiString svee=SNameVEE(V,E,EE);cout<<svee<<endl;
+ std::cout<<"#-------- rang "<<rang<<std::endl;
+ TCollection_AsciiString svee=SNameVEE(V,E,EE);std::cout<<svee<<std::endl;
- cout<<" fiE,laE : "<<fiE<<" "<<laE<<endl;
- cout<<" parE "<<parE<<endl;
- cout<<" puE,pvE "<<pE.X()<<" "<<pE.Y();
- cout<<" d1uE,d1vE "<<d1E.X()<<" "<<d1E.Y()<<endl;
- cout<<endl;
- cout<<" fiEE,laEE : "<<fiEE<<" "<<laEE<<endl;
- cout<<" parEE "<<parEE<<endl;
- cout<<" puEE,pvEE "<<pEE.X()<<" "<<pEE.Y();
- cout<<" d1uEE,d1vEE "<<d1EE.X()<<" "<<d1EE.Y()<<endl;
- cout<<" --> cross "<<cross<<endl;
-
- if ( t2 ) cout<<" t2 --> on garde EE"<<endl<<endl;
- else cout<<" t2 --> on vire EE"<<endl<<endl;
+ std::cout<<" fiE,laE : "<<fiE<<" "<<laE<<std::endl;
+ std::cout<<" parE "<<parE<<std::endl;
+ std::cout<<" puE,pvE "<<pE.X()<<" "<<pE.Y();
+ std::cout<<" d1uE,d1vE "<<d1E.X()<<" "<<d1E.Y()<<std::endl;
+ std::cout<<std::endl;
+ std::cout<<" fiEE,laEE : "<<fiEE<<" "<<laEE<<std::endl;
+ std::cout<<" parEE "<<parEE<<std::endl;
+ std::cout<<" puEE,pvEE "<<pEE.X()<<" "<<pEE.Y();
+ std::cout<<" d1uEE,d1vEE "<<d1EE.X()<<" "<<d1EE.Y()<<std::endl;
+ std::cout<<" --> cross "<<cross<<std::endl;
+
+ if ( t2 ) std::cout<<" t2 --> on garde EE"<<std::endl<<std::endl;
+ else std::cout<<" t2 --> on vire EE"<<std::endl<<std::endl;
}
#endif
#ifdef DRAW
if ( traceSS ) {
- cout<<"#~~~~connexes apres filtre geom : ";
- TCollection_AsciiString svel=SNameVEL(Varg,Earg,myCurrentShapeNeighbours);cout<<svel<<endl;
+ std::cout<<"#~~~~connexes apres filtre geom : ";
+ TCollection_AsciiString svel=SNameVEL(Varg,Earg,myCurrentShapeNeighbours);std::cout<<svel<<std::endl;
}
#endif
#ifdef OCCT_DEBUG
Standard_EXPORT void debfctwes(const Standard_Integer /*i*/) {}
Standard_EXPORT void debfctwesmess(const Standard_Integer i,const TCollection_AsciiString& s = "")
-{cout<<"+ + + debfctwes "<<s<<"F"<<i<<endl;debfctwes(i);}
+{std::cout<<"+ + + debfctwes "<<s<<"F"<<i<<std::endl;debfctwes(i);}
extern void debaddpwes(const Standard_Integer iFOR,const TopAbs_State TB1,const Standard_Integer iEG,const TopAbs_Orientation neworiE,
const TopOpeBRepBuild_PBuilder& PB,const TopOpeBRepBuild_PWireEdgeSet& PWES,const TCollection_AsciiString& str1,const TCollection_AsciiString& str2);
#endif
#ifdef OCCT_DEBUG
Standard_Integer iF; Standard_Boolean tSPS = GtraceSPS(F1,iF);
if(tSPS) GdumpSHASTA(iF,TB1,WES,"--- GFillCurveTopologyWES");
- if(tSPS) {cout<<" ShapeInterf ";TopAbs::Print(ShapeInterf,cout);cout<<endl;}
+ if(tSPS) {std::cout<<" ShapeInterf ";TopAbs::Print(ShapeInterf,std::cout);std::cout<<std::endl;}
if(tSPS) {debfctwesmess(iF);}
#endif
#ifdef OCCT_DEBUG
Standard_Boolean tSPS = GtraceSPS(iWESF);
if(tSPS){
- cout<<"ifil : "<<ifil<<" iref : "<<iref<<" iwes : "<<iWESF<<endl;
- cout<<"face "<<ifil<<" is ";TopOpeBRepDS::Print(Conf,cout);cout<<endl;
- cout<<"ComOfCut "<<ComOfCut<<endl;
+ std::cout<<"ifil : "<<ifil<<" iref : "<<iref<<" iwes : "<<iWESF<<std::endl;
+ std::cout<<"face "<<ifil<<" is ";TopOpeBRepDS::Print(Conf,std::cout);std::cout<<std::endl;
+ std::cout<<"ComOfCut "<<ComOfCut<<std::endl;
debfctwesmess(iWESF);
}
#endif
#ifdef OCCT_DEBUG
EhasPConWESF = FC2D_HasCurveOnSurface(E,WESF);
- if (!EhasPConWESF) cout<<"TopOpeBRepBuild_Builder::GFillCurveTopologyWES : Null PCurve on F"<<iWESF<<endl;
+ if (!EhasPConWESF) std::cout<<"TopOpeBRepBuild_Builder::GFillCurveTopologyWES : Null PCurve on F"<<iWESF<<std::endl;
#endif
}
#ifdef OCCT_DEBUG
#define DEBSHASET(sarg,meth,shaset,str) TCollection_AsciiString sarg((meth));(sarg)=(sarg)+(shaset).DEBNumber()+(str);
Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextNOFUFA();
-Standard_EXPORT void debffsfs(const Standard_Integer i){cout<<"+++ debffsfs "<<i<<endl;}
-Standard_EXPORT void debffflo(const Standard_Integer i){cout<<"+++ debffflo "<<i<<endl;}
+Standard_EXPORT void debffsfs(const Standard_Integer i){std::cout<<"+++ debffsfs "<<i<<std::endl;}
+Standard_EXPORT void debffflo(const Standard_Integer i){std::cout<<"+++ debffflo "<<i<<std::endl;}
#endif
static Standard_Boolean STATIC_motheropedef = Standard_False; static TopOpeBRepBuild_GTopo STATIC_Gmotherope;
#ifdef OCCT_DEBUG
Standard_Integer iF; Standard_Boolean tSPS = GtraceSPS(FOR,iF);
- if(tSPS)cout<<endl;
+ if(tSPS)std::cout<<std::endl;
#endif
const TopOpeBRepDS_DataStructure& BDS = myDataStructure->DS();
Standard_Boolean tosplit = GToSplit(FOR,TB1);
#ifdef OCCT_DEBUG
if(tSPS){
GdumpSHASTA(FOR,TB1,"--- GFillFaceSFS START ");
- cout<<" tosplit "<<tosplit<<" tomerge "<<tomerge<<endl;
+ std::cout<<" tosplit "<<tosplit<<" tomerge "<<tomerge<<std::endl;
debffsfs(iF);
}
#endif
#ifdef OCCT_DEBUG
if(tSPS) {
GdumpSHASTA(FOR,TB1,"[[[[[[[[[[[[[[[[[[[[[[[[[[ GFillFaceSFS makemerge START ");
- cout<<endl;
+ std::cout<<std::endl;
}
#endif
#ifdef OCCT_DEBUG
if(tSPS){
TopAbs_State TB11,TB21; GM.StatesON(TB11,TB21);
- cout<<endl;
- cout <<"@@@@"<<endl;
- cout <<"@@@@@@@@ partie 1 : ";TopAbs::Print(TB11,cout);cout<<" ";TopAbs::Print(TB21,cout);cout<<endl;
- cout <<"@@@@"<<endl;
+ std::cout<<std::endl;
+ std::cout <<"@@@@"<<std::endl;
+ std::cout <<"@@@@@@@@ partie 1 : ";TopAbs::Print(TB11,std::cout);std::cout<<" ";TopAbs::Print(TB21,std::cout);std::cout<<std::endl;
+ std::cout <<"@@@@"<<std::endl;
GdumpSAMDOM(LF1, (char *) "LF1 (LFSO1) : ");
GdumpSAMDOM(LF2, (char *) "LF2 (LFDO2) : ");
- cout<<endl;
+ std::cout<<std::endl;
}
#endif
GLOBAL_classifysplitedge = Standard_True;
#ifdef OCCT_DEBUG
if(tSPS){
TopAbs_State TB12,TB22; GM.StatesON(TB12,TB22);
- cout<<endl;
- cout <<"@@@@"<<endl;
- cout <<"@@@@@@@@ partie 2 : ";TopAbs::Print(TB12,cout);cout<<" ";TopAbs::Print(TB22,cout);cout<<endl;
- cout <<"@@@@"<<endl;
+ std::cout<<std::endl;
+ std::cout <<"@@@@"<<std::endl;
+ std::cout <<"@@@@@@@@ partie 2 : ";TopAbs::Print(TB12,std::cout);std::cout<<" ";TopAbs::Print(TB22,std::cout);std::cout<<std::endl;
+ std::cout <<"@@@@"<<std::endl;
GdumpSAMDOM(LF1, (char *) "LF1 (LFSO1) : ");
GdumpSAMDOM(LF2, (char *) "LF2 (LFDO2) : ");
- cout<<endl;
+ std::cout<<std::endl;
}
#endif
GLOBAL_classifysplitedge = Standard_True;
#ifdef OCCT_DEBUG
if(tSPS) {
GdumpSHASTA(FOR,TB1,"]]]]]]]]]]]]]]]]]]]]]]]]]] GFillFaceSFS makemerge END ");
- cout<<endl;
+ std::cout<<std::endl;
}
#endif
if(tSPS){
DEBSHASET(ss,"--- FillFaceSFS apres fufa",SFS," AddStartElement SFS+ face ");
GdumpSHA(flfr2,(Standard_Address)ss.ToCString());
- cout<<" ";TopAbs::Print(TB1,cout)<<" : 1 face ";
- TopAbs::Print(flfr2.Orientation(),cout); cout<<endl;
+ std::cout<<" ";TopAbs::Print(TB1,std::cout)<<" : 1 face ";
+ TopAbs::Print(flfr2.Orientation(),std::cout); std::cout<<std::endl;
}
#endif
SFS.AddStartElement(flfr2);
#ifdef OCCT_DEBUG
if(tSPS){
- GdumpSHASTA(FOR,TB1,"--- GFillFaceSFS END ");cout<<endl;
+ GdumpSHASTA(FOR,TB1,"--- GFillFaceSFS END ");std::cout<<std::endl;
}
#endif
#ifdef OCCT_DEBUG
Standard_EXPORT void debfctwesmess(const Standard_Integer i,const TCollection_AsciiString& s = "");
Standard_EXPORT void debffwesON(const Standard_Integer i);
-Standard_EXPORT void debffwesk(const Standard_Integer i) {cout<<"++ debffwesk "<<i<<endl;}
+Standard_EXPORT void debffwesk(const Standard_Integer i) {std::cout<<"++ debffwesk "<<i<<std::endl;}
#endif
Standard_Boolean TopOpeBRepBuild_FUN_aresamegeom(const TopoDS_Shape& S1,const TopoDS_Shape& S2);
#ifdef OCCT_DEBUG
Standard_Boolean tSPS = GtraceSPS(F1,iF1);
- if(tSPS) cout<<"\n%%%%%%%%%%%%% K = "<<Kfill<<" %%%%%%%%%%%%% ";
+ if(tSPS) std::cout<<"\n%%%%%%%%%%%%% K = "<<Kfill<<" %%%%%%%%%%%%% ";
if(tSPS) GdumpSHASTA(iF1,TB1,WES,"GFillFacesWESK","myFaceReference");
if(tSPS) debffwesk(iF1);
#endif
#ifdef OCCT_DEBUG
if(tSPS){
- cout<<"\n^^^^^^^^ GFillFacesWESK : traitement de 1/2";
+ std::cout<<"\n^^^^^^^^ GFillFacesWESK : traitement de 1/2";
TopAbs_State TB11,TB21; G.StatesON(TB11,TB21);
- cout<<" TB = ";TopAbs::Print(TB,cout); cout<<" ";
- cout<<"(TB1 = ";TopAbs::Print(TB11,cout);cout<<",";
- cout<<" TB2 = ";TopAbs::Print(TB21,cout);cout<<")\n\n";
+ std::cout<<" TB = ";TopAbs::Print(TB,std::cout); std::cout<<" ";
+ std::cout<<"(TB1 = ";TopAbs::Print(TB11,std::cout);std::cout<<",";
+ std::cout<<" TB2 = ";TopAbs::Print(TB21,std::cout);std::cout<<")\n\n";
}
#endif
#ifdef OCCT_DEBUG
if(tSPS){
- cout<<"\n^^^^^^^^ GFillFacesWESK : traitement de 2/1";
+ std::cout<<"\n^^^^^^^^ GFillFacesWESK : traitement de 2/1";
TopAbs_State TB12,TB22; G.StatesON(TB12,TB22);
- cout<<" TB = ";TopAbs::Print(TB,cout); cout<<" ";
- cout<<"(TB1 = ";TopAbs::Print(TB12,cout);cout<<",";
- cout<<" TB2 = ";TopAbs::Print(TB22,cout);cout<<")\n\n";
+ std::cout<<" TB = ";TopAbs::Print(TB,std::cout); std::cout<<" ";
+ std::cout<<"(TB1 = ";TopAbs::Print(TB12,std::cout);std::cout<<",";
+ std::cout<<" TB2 = ";TopAbs::Print(TB22,std::cout);std::cout<<")\n\n";
}
#endif
extern Standard_Integer GLOBAL_iexF;
Standard_Boolean STATIC_trace_iexE = Standard_False;
Standard_Boolean STATIC_trace_iexF = Standard_False;
-Standard_EXPORT void debkeep(const Standard_Integer i) {cout<<"++ debkeep "<<i<<endl;}
+Standard_EXPORT void debkeep(const Standard_Integer i) {std::cout<<"++ debkeep "<<i<<std::endl;}
#endif
//=======================================================================
Standard_Boolean tr = tSPS || tSPSface || tSPSsoli;
if(tr){
if (tSPS) GdumpSHA(S);
- else if (tSPSface) cout<<"EDGE exploration "<<GLOBAL_iexE;
- else if (tSPSsoli) cout<<"FACE exploration "<<GLOBAL_iexF;
- if(keep)cout<<" is kept";else cout<<" is NOT kept";
- cout<<" ";TopAbs::Print(TB,cout);cout<<" / ";
- if(LSclass.IsEmpty())cout<<"empty list";else GdumpLS(LSclass);cout<<endl;
- cout.flush();
+ else if (tSPSface) std::cout<<"EDGE exploration "<<GLOBAL_iexE;
+ else if (tSPSsoli) std::cout<<"FACE exploration "<<GLOBAL_iexF;
+ if(keep)std::cout<<" is kept";else std::cout<<" is NOT kept";
+ std::cout<<" ";TopAbs::Print(TB,std::cout);std::cout<<" / ";
+ if(LSclass.IsEmpty())std::cout<<"empty list";else GdumpLS(LSclass);std::cout<<std::endl;
+ std::cout.flush();
}
#endif
#ifdef OCCT_DEBUG
TopAbs_ShapeEnum t = SL.ShapeType();
- if(tSPS){cout<<"GKeepShapes : ";}
- if(tSPS){cout<<"new ";TopAbs::Print(t,cout);cout<<" "<<++n;}
- if(tSPS){cout<<" from ";GdumpSHA(S);if(keep)cout<<" is kept";else cout<<" is NOT kept";}
- if(tSPS){cout<<" ";TopAbs::Print(TB,cout);cout<<" / ";}
- if(tSPS){if(LSclass.IsEmpty())cout<<"empty list";else GdumpLS(LSclass);cout<<endl;}
+ if(tSPS){std::cout<<"GKeepShapes : ";}
+ if(tSPS){std::cout<<"new ";TopAbs::Print(t,std::cout);std::cout<<" "<<++n;}
+ if(tSPS){std::cout<<" from ";GdumpSHA(S);if(keep)std::cout<<" is kept";else std::cout<<" is NOT kept";}
+ if(tSPS){std::cout<<" ";TopAbs::Print(TB,std::cout);std::cout<<" / ";}
+ if(tSPS){if(LSclass.IsEmpty())std::cout<<"empty list";else GdumpLS(LSclass);std::cout<<std::endl;}
#endif
if (keep) Lou.Append(SL);
#ifdef OCCT_DEBUG
if (TKPB) {
- cout<<""<<endl;
+ std::cout<<""<<std::endl;
for (; itm1.More();itm1.Next()) {
const TopoDS_Shape& f = itm1.Key();
Standard_Integer fi = myDataStructure->Shape(f);
- cout<<"face "<<fi<<" : ";
+ std::cout<<"face "<<fi<<" : ";
const TopTools_ListOfShape& l = itm1.Value();
TopTools_ListIteratorOfListOfShape it(l);
for(; it.More(); it.Next()) {
const TopoDS_Shape& ff = it.Value();
Standard_Integer ffi = myDataStructure->Shape(ff);
- cout<<ffi<<" ";
+ std::cout<<ffi<<" ";
}
- cout<<endl;
+ std::cout<<std::endl;
}
itm1.Initialize(myKPMAPf1f2);
}
if(tSPS || TKPB) {
// Standard_Integer iOU = myDataStructure->Shape(*pfOU);
// Standard_Integer iIN = myDataStructure->Shape(*pfIN);
- GdumpSHA(*pfOU, (char *) "MergeKPartiskole pfOU ");cout<<endl;
+ GdumpSHA(*pfOU, (char *) "MergeKPartiskole pfOU ");std::cout<<std::endl;
GdumpSAMDOM(LFIN, (char *) "LFIN : ");
debiskole();
}
ChangeMerged(she2,myState2);
#ifdef OCCT_DEBUG
- if (TKPB) { cout<<"stsol1 ";TopAbs::Print(stsol1,cout); cout<<" "; }
- if (TKPB) { cout<<"stsol2 ";TopAbs::Print(stsol2,cout); cout<<endl; }
+ if (TKPB) { std::cout<<"stsol1 ";TopAbs::Print(stsol1,std::cout); std::cout<<" "; }
+ if (TKPB) { std::cout<<"stsol2 ";TopAbs::Print(stsol2,std::cout); std::cout<<std::endl; }
debiskole();
#endif
else {
#ifdef OCCT_DEBUG
- cout<<"MergeKPartiskole : ires = "<<ires<<endl;
+ std::cout<<"MergeKPartiskole : ires = "<<ires<<std::endl;
#endif
}
#ifdef OCCT_DEBUG
Standard_Integer iF1; Standard_Boolean tSPS1 = GtraceSPS(f1,iF1);
if(tSPS1) {
- GdumpSHA(f1, (char *) "KPiskole ");cout<<endl;
+ GdumpSHA(f1, (char *) "KPiskole ");std::cout<<std::endl;
GdumpSAMDOM(lf2, (char *) "lf2 : ");
}
#endif
#ifdef OCCT_DEBUG
Standard_Boolean TKPB = TopOpeBRepBuild_GettraceKPB();
- if (TKPB) cout<<"ires = "<<ires<<" icla1 "<<icla1<<" icla2 "<<icla2<<endl;
+ if (TKPB) std::cout<<"ires = "<<ires<<" icla1 "<<icla1<<" icla2 "<<icla2<<std::endl;
#endif
} // TopOpeBRepBuild_Builder::KPiskoleanalyse
#ifdef OCCT_DEBUG
Standard_Integer iF1; Standard_Boolean tSPS = BU.GtraceSPS(Fac1,iF1);
- if(tSPS) { BU.GdumpSHA(Fac1, (char *) "KPmakeFace ");cout<<endl; }
+ if(tSPS) { BU.GdumpSHA(Fac1, (char *) "KPmakeFace ");std::cout<<std::endl; }
#endif
if (Stfac1 == TopAbs_OUT) {
Standard_Boolean tSPS = GtraceSPS(Fac1,iF1);
if(tSPS) {
GdumpSHA(Fac1, (char *) "KPmakeFace ");
- cout<<endl;
+ std::cout<<std::endl;
}
#endif
#ifdef OCCT_DEBUG
Standard_Integer isol = myDataStructure->Shape(Sarg);
Standard_Integer ifac = myDataStructure->Shape(fac);
- if(TKPB){cout<<"isol "<<isol<<endl;}
- if(TKPB){cout<<"nfhsd "<<nfhsd<<endl;}
- if(TKPB){cout<<"ifac "<<ifac<<endl;}
- if(TKPB){cout<<"isplan "<<isplan<<endl;}
- if(TKPB){cout<<"nehg "<<nehg<<endl;}
- if(TKPB){cout<<endl;}
+ if(TKPB){std::cout<<"isol "<<isol<<std::endl;}
+ if(TKPB){std::cout<<"nfhsd "<<nfhsd<<std::endl;}
+ if(TKPB){std::cout<<"ifac "<<ifac<<std::endl;}
+ if(TKPB){std::cout<<"isplan "<<isplan<<std::endl;}
+ if(TKPB){std::cout<<"nehg "<<nehg<<std::endl;}
+ if(TKPB){std::cout<<std::endl;}
#endif
}
#ifdef OCCT_DEBUG
extern void debfillp(const Standard_Integer i);
-extern void debedbu(const Standard_Integer i) {cout<<"++ debedbu "<<i<<endl;}
+extern void debedbu(const Standard_Integer i) {std::cout<<"++ debedbu "<<i<<std::endl;}
#endif
#ifdef DRAW
PVS.InitLoop();
Standard_Boolean novertex = ( ! PVS.MoreLoop() );
#ifdef OCCT_DEBUG
- if(tSPS&&novertex)cout<<"#--- GPVSMakeEdges : no vertex from edge "<<iE<<endl;
+ if(tSPS&&novertex)std::cout<<"#--- GPVSMakeEdges : no vertex from edge "<<iE<<std::endl;
#endif
if (novertex) return;
{
#ifdef OCCT_DEBUG
Standard_Integer iE; Standard_Boolean tSPS = GtraceSPS(EF,iE);
- if(tSPS){cout<<endl;GdumpSHA(EF, (char *) "#--- GEDBUMakeEdges ");cout<<endl;}
+ if(tSPS){std::cout<<std::endl;GdumpSHA(EF, (char *) "#--- GEDBUMakeEdges ");std::cout<<std::endl;}
if(tSPS){GdumpEDBU(EDBU);}
if(tSPS){debedbu(iE);}
#endif
extern Standard_Boolean TopOpeBRepBuild_GettraceCHK();
#define DEBSHASET(sarg,meth,shaset,str) \
TCollection_AsciiString sarg((meth));(sarg)=(sarg)+(shaset).DEBNumber()+(str);
-Standard_EXPORT void debgfabu(const Standard_Integer i) {cout<<"++ debgfabu "<<i<<endl;}
-Standard_EXPORT void debwesmf(const Standard_Integer i) {cout<<"++ debwesmf "<<i<<endl;}
+Standard_EXPORT void debgfabu(const Standard_Integer i) {std::cout<<"++ debgfabu "<<i<<std::endl;}
+Standard_EXPORT void debwesmf(const Standard_Integer i) {std::cout<<"++ debwesmf "<<i<<std::endl;}
Standard_EXPORT Standard_Boolean DEBpurclo = Standard_False;
void debpurclo() {}
-void debpurclomess(Standard_Integer i){cout<<"++ debpurclo "<<i<<endl;debpurclo();}
-Standard_EXPORT void debcorriso(const Standard_Integer i) {cout<<"++ debcorriso "<<i<<endl;}
+void debpurclomess(Standard_Integer i){std::cout<<"++ debpurclo "<<i<<std::endl;debpurclo();}
+Standard_EXPORT void debcorriso(const Standard_Integer i) {std::cout<<"++ debcorriso "<<i<<std::endl;}
extern void* GFABUMAKEFACEPWES_DEB;
#endif
Standard_EXPORT Standard_Boolean FUN_tool_ClosedW(const TopoDS_Wire& W);
// Unused :
/*#ifdef OCCT_DEBUG
-static void FUN_Raise(){cout<<"--------- ERROR in GWESMakeFaces ---------"<<endl;}
+static void FUN_Raise(){std::cout<<"--------- ERROR in GWESMakeFaces ---------"<<std::endl;}
#endif*/
//=======================================================================
#ifdef OCCT_DEBUG
Standard_Integer iF; Standard_Boolean tSPS = GtraceSPS(FF,iF);
DEBSHASET(s,"#--- GWESMakeFaces ",WES," ");
- if(tSPS){ GdumpSHA(FF,(Standard_Address)s.ToCString());cout<<endl; WES.DumpSS();}
+ if(tSPS){ GdumpSHA(FF,(Standard_Address)s.ToCString());std::cout<<std::endl; WES.DumpSS();}
if(tSPS){debwesmf(iF);}
GFABUMAKEFACEPWES_DEB = (void*)&WES;
#endif
#ifdef DRAW
if (tSPS) {
- cout<<endl<<"#<< AVANT PurgeClosingEdges "<<endl;
+ std::cout<<std::endl<<"#<< AVANT PurgeClosingEdges "<<std::endl;
GdumpFABU(FABU);
TopTools_ListOfShape dLOF;TopTools_DataMapOfShapeInteger dMWisOld;
GFABUMakeFaces(FF,FABU,dLOF,dMWisOld);
TopTools_ListIteratorOfListOfShape X(dLOF); for (Standard_Integer i=1;X.More();X.Next(),i++) {
TCollection_AsciiString ss("purclo");ss=ss+i;DBRep::Set(ss.ToCString(),X.Value());
- cout<<"... face "<<ss<<endl;
+ std::cout<<"... face "<<ss<<std::endl;
}
debpurclomess(iF);
DEBpurclo = Standard_True;
#ifdef OCCT_DEBUG
Standard_Integer iF;Standard_Boolean tSPS=GtraceSPS(FF,iF);
if(tSPS) {
- cout<<endl;GdumpSHA(FF,(char *) "#--- GFABUMakeFaces ");cout<<endl;
+ std::cout<<std::endl;GdumpSHA(FF,(char *) "#--- GFABUMakeFaces ");std::cout<<std::endl;
GdumpFABU(FABU);debgfabu(iF);
}
#endif
//--ofv.
#ifdef OCCT_DEBUG
- if ( tSPS ) cout<<"#--- GFABUMakeFaces "<<iF<<" : "<<ne<<" edges"<<endl;
+ if ( tSPS ) std::cout<<"#--- GFABUMakeFaces "<<iF<<" : "<<ne<<" edges"<<std::endl;
#endif
// xpu : 13-11-97
#ifdef OCCT_DEBUG
if(tSPS) {
- cout<<endl;GdumpSHA(FF, (char *) "#--- GFABUMakeFaces avant regularize");cout<<endl;
+ std::cout<<std::endl;GdumpSHA(FF, (char *) "#--- GFABUMakeFaces avant regularize");std::cout<<std::endl;
GdumpFABU(FABU);debgfabu(iF);
}
#endif
{
#ifdef OCCT_DEBUG
Standard_Integer iSO; Standard_Boolean tSPS = GtraceSPS(SOF,iSO);
- if(tSPS){GdumpSHA(SOF, (char *) "#--- GSFSMakeSolids ");cout<<endl;}
+ if(tSPS){GdumpSHA(SOF, (char *) "#--- GSFSMakeSolids ");std::cout<<std::endl;}
#endif
Standard_Boolean ForceClass = Standard_True;
{
#ifdef OCCT_DEBUG
Standard_Integer iSO; Standard_Boolean tSPS = GtraceSPS(SOF,iSO);
- if(tSPS){GdumpSHA(SOF, (char *) "#--- GSOBUMakeSolids ");cout<<endl;}
+ if(tSPS){GdumpSHA(SOF, (char *) "#--- GSOBUMakeSolids ");std::cout<<std::endl;}
if(tSPS){GdumpSOBU(SOBU);debgsobu(iSO);}
#endif
Standard_EXPORT void TopOpeBRepBuild_SetcontextNOPURGE(const Standard_Boolean b) { TopOpeBRepBuild_contextNOPURGE = b; }
Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextNOPURGE() {
Standard_Boolean b = TopOpeBRepBuild_contextNOPURGE;
- if (b) cout<<"context (TopOpeBRepBuild) NOPURGE actif"<<endl;
+ if (b) std::cout<<"context (TopOpeBRepBuild) NOPURGE actif"<<std::endl;
return b;
}
Standard_EXPORT void TopOpeBRepBuild_SetcontextNOREGUFA(const Standard_Boolean b) { TopOpeBRepBuild_contextNOREGUFA = b; }
Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextNOREGUFA() {
Standard_Boolean b = TopOpeBRepBuild_contextNOREGUFA;
- if (b) cout<<"context (TopOpeBRepBuild) NOREGUFA actif"<<endl;
+ if (b) std::cout<<"context (TopOpeBRepBuild) NOREGUFA actif"<<std::endl;
return b;
}
Standard_EXPORT void TopOpeBRepBuild_SetcontextNOREGUSO(const Standard_Boolean b) { TopOpeBRepBuild_contextNOREGUSO = b; }
Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextNOREGUSO() {
Standard_Boolean b = TopOpeBRepBuild_contextNOREGUSO;
- if (b) cout<<"context (TopOpeBRepBuild) NOREGUSO actif"<<endl;
+ if (b) std::cout<<"context (TopOpeBRepBuild) NOREGUSO actif"<<std::endl;
return b;
}
Standard_EXPORT void TopOpeBRepBuild_SetcontextEINTERNAL(const Standard_Boolean b) { TopOpeBRepBuild_contextEINTERNAL = b; }
Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextEINTERNAL() {
Standard_Boolean b = TopOpeBRepBuild_contextEINTERNAL;
- if (b) cout<<"context (TopOpeBRepBuild) EINTERNAL actif"<<endl;
+ if (b) std::cout<<"context (TopOpeBRepBuild) EINTERNAL actif"<<std::endl;
return b;
}
Standard_EXPORT void TopOpeBRepBuild_SetcontextEEXTERNAL(const Standard_Boolean b) { TopOpeBRepBuild_contextEEXTERNAL = b; }
Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextEEXTERNAL() {
Standard_Boolean b = TopOpeBRepBuild_contextEEXTERNAL;
- if (b) cout<<"context (TopOpeBRepBuild) EEXTERNAL actif"<<endl;
+ if (b) std::cout<<"context (TopOpeBRepBuild) EEXTERNAL actif"<<std::endl;
return b;
}
Standard_EXPORT void TopOpeBRepBuild_SetcontextNOSG(const Standard_Boolean b) { TopOpeBRepBuild_contextNOSG = b; }
Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextNOSG() {
Standard_Boolean b = TopOpeBRepBuild_contextNOSG;
- if (b) cout<<"context (TopOpeBRepBuild) NOSG actif"<<endl;
+ if (b) std::cout<<"context (TopOpeBRepBuild) NOSG actif"<<std::endl;
return b;
}
Standard_EXPORT void TopOpeBRepBuild_SetcontextNOFUFA(const Standard_Boolean b) { TopOpeBRepBuild_contextNOFUFA = b; }
Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextNOFUFA() {
Standard_Boolean b = TopOpeBRepBuild_contextNOFUFA;
- if (b) cout<<"context (TopOpeBRepBuild) NOFUFA actif"<<endl;
+ if (b) std::cout<<"context (TopOpeBRepBuild) NOFUFA actif"<<std::endl;
return b;
}
Standard_EXPORT void TopOpeBRepBuild_SetcontextNOFE(const Standard_Boolean b) { TopOpeBRepBuild_contextNOFE = b; }
Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextNOFE() {
Standard_Boolean b = TopOpeBRepBuild_contextNOFE;
- if (b) cout<<"context (TopOpeBRepBuild) NOFE actif"<<endl;
+ if (b) std::cout<<"context (TopOpeBRepBuild) NOFE actif"<<std::endl;
return b;
}
//=======================================================================
Standard_OStream& TopOpeBRepDS_Check::PrintIntg(Standard_OStream& OS)
{
- OS<<endl<<endl<<"************************************************"<<endl;
- OS<<"state of the DS : (only the tested elements)"<<endl<<endl;
+ OS<<std::endl<<std::endl<<"************************************************"<<std::endl;
+ OS<<"state of the DS : (only the tested elements)"<<std::endl<<std::endl;
//Display of the geometry
PrintMap(myMapSurfaceStatus, "Surface", OS);
PrintMap(MapFace, "Face", OS);
PrintMap(MapSolid, "Solid", OS);
- OS<<endl<<endl;
+ OS<<std::endl<<std::endl;
return OS;
}
OS<<" "<<eltstr<<"\t(/"<<MapStat.Extent()<<")\tnumber ";
PrintElts(MapStat, TopOpeBRepDS_OK, b, OS);
- if(!b) OS<<" = OK"<<endl;
+ if(!b) OS<<" = OK"<<std::endl;
PrintElts(MapStat, TopOpeBRepDS_NOK, b, OS);
- if(!b) OS<<" = NOK"<<endl;
+ if(!b) OS<<" = NOK"<<std::endl;
}
return OS;
}
return OS;
}
if(!myMapShapeStatus.IsBound(index)) {
- OS<<"NO CHECK HAS PROCESSING"<<endl;
+ OS<<"NO CHECK HAS PROCESSING"<<std::endl;
return OS;
}
OS<<" ";
Standard_EXPORT void FUN_draw (const TopoDS_Shape& s)
{
char* nnn = TCollection_AsciiString("name").ToCString();
- if (s.IsNull()) cout<<"nullshape"<<endl;
+ if (s.IsNull()) std::cout<<"nullshape"<<std::endl;
DBRep::Set(nnn,s);
}
Standard_EXPORT void FUN_draw (const gp_Pnt& p)
// Check the integrity of the DS
Handle(TopOpeBRepDS_Check) chk = new TopOpeBRepDS_Check(this);
chk->ChkIntg();
-// chk->PrintIntg(cout);
+// chk->PrintIntg(std::cout);
}
//=======================================================================
//=======================================================================
void TopOpeBRepDS_TKI::DumpTKIIterator(const TCollection_AsciiString& s1,const TCollection_AsciiString& s2)
{
- cout<<s1;
+ std::cout<<s1;
Init();
while (More()) {
TopOpeBRepDS_Kind K;Standard_Integer G;
Value(K,G);
Next();
}
- cout<<s2;
- cout.flush();
+ std::cout<<s2;
+ std::cout.flush();
}
//=======================================================================
for (; ils.More(); ils.Next())
{
- cout<<BDS.Shape(ils.Value())<<" ";
+ std::cout<<BDS.Shape(ils.Value())<<" ";
}
}
else if (ts == TopAbs_FACE)
}
for (; ilf.More(); ilf.Next())
{
- cout<<BDS.Shape(ilf.Value())<<" ";
+ std::cout<<BDS.Shape(ilf.Value())<<" ";
}
}
}
return;
}
- cout<<"clear;";
+ std::cout<<"clear;";
for (; ils.More(); ils.Next())
{
- cout<<"tsee f "<<BDS.Shape(ils.Value())<<";";
+ std::cout<<"tsee f "<<BDS.Shape(ils.Value())<<";";
}
- cout<<"tsee e "<<is<<";### edge "<<is<<" connexity"<<endl;
+ std::cout<<"tsee e "<<is<<";### edge "<<is<<" connexity"<<std::endl;
}
else if (ts == TopAbs_FACE)
{
continue;
}
- cout<<"clear;";cout<<"tsee f "<<is<<";";
+ std::cout<<"clear;";std::cout<<"tsee f "<<is<<";";
for (;ilf.More(); ilf.Next())
{
- cout<<"tsee f "<<BDS.Shape(ilf.Value())<<";";
+ std::cout<<"tsee f "<<BDS.Shape(ilf.Value())<<";";
}
- cout<<"tsee e "<<ie<<";### face "<<is<<" connexity"<<endl;
+ std::cout<<"tsee e "<<ie<<";### face "<<is<<" connexity"<<std::endl;
}
}
}
#ifdef OCCT_DEBUG
if (TopOpeBRepTool_GettraceC2D() && C2D.IsNull()) {
- cout<<"#FC2D_make2d1 --> PCurve IsNull"<<endl;
+ std::cout<<"#FC2D_make2d1 --> PCurve IsNull"<<std::endl;
}
#endif
{
#ifdef DRAW
if (TopOpeBRepTool_GettraceC2D()) {
- cout<<"\n#FC2D_MakeCurveOnSurface : "<<endl;
+ std::cout<<"\n#FC2D_MakeCurveOnSurface : "<<std::endl;
TCollection_AsciiString fnam("c2df");GLOBAL_C2D_i++;fnam=fnam+GLOBAL_C2D_i;FDRAW_DINS("",F,fnam,"");
TCollection_AsciiString enam("c2de");GLOBAL_C2D_i++;enam=enam+GLOBAL_C2D_i;FDRAW_DINE(" ",E,enam,"\n");
- cout.flush(); debc2dnull();
+ std::cout.flush(); debc2dnull();
}
#endif
#ifdef OCCT_DEBUG
if (TopOpeBRepTool_GettraceC2D() && C2D.IsNull()) {
- cout<<"#FC2D_make2d2 --> PCurve IsNull"<<endl;
+ std::cout<<"#FC2D_make2d2 --> PCurve IsNull"<<std::endl;
}
#endif
#ifdef DRAW
if (TopOpeBRepTool_GettraceC2D()) {
- cout<<"\n#FC2D_CurveOnSurface : "<<endl;
+ std::cout<<"\n#FC2D_CurveOnSurface : "<<std::endl;
TCollection_AsciiString fnam("c2df");GLOBAL_C2D_i++;fnam=fnam+GLOBAL_C2D_i;FDRAW_DINS("",F,fnam,"");
TCollection_AsciiString enam("c2de");GLOBAL_C2D_i++;enam=enam+GLOBAL_C2D_i;FDRAW_DINE(" ",E,enam,"\n");
- cout.flush();debc2dnull();
+ std::cout.flush();debc2dnull();
}
#endif
#ifdef OCCT_DEBUG
if (TBOX) {
- cout<<"# BS::MakeHAB : ";TopAbs::Print(t,cout);cout<<" : "<<n<<"\n";
- cout.flush();
+ std::cout<<"# BS::MakeHAB : ";TopAbs::Print(t,std::cout);std::cout<<" : "<<n<<"\n";
+ std::cout.flush();
}
#endif
MakeHABCOB(myHAB,myCOB);
myBSB.Initialize(myCOB,myHAB);
#ifdef OCCT_DEBUG
- if (TBOX) {myHBT->DumpB(myCOB);cout<<";# BS::MakeCOB"<<endl;}
+ if (TBOX) {myHBT->DumpB(myCOB);std::cout<<";# BS::MakeCOB"<<std::endl;}
#endif
}
#ifdef OCCT_DEBUG
if (TBOX) {
Standard_Integer nl = (*L).Extent();
- cout<<"#------------------------"<<endl;
- myHBT->DumpB(myLastCompareShapeBox);cout<<"; # BS::Compare"<<endl;
- cout<<"# touche "<<nl<<" boites ";cout.flush();
+ std::cout<<"#------------------------"<<std::endl;
+ myHBT->DumpB(myLastCompareShapeBox);std::cout<<"; # BS::Compare"<<std::endl;
+ std::cout<<"# touche "<<nl<<" boites ";std::cout.flush();
Standard_Integer il;
for (MTClioloi idd((*L));idd.More();idd.Next()) {
- il=idd.Value();cout<<il<<" ";cout.flush();
+ il=idd.Value();std::cout<<il<<" ";std::cout.flush();
}
- cout<<endl<<"#------------------------"<<endl;
+ std::cout<<std::endl<<"#------------------------"<<std::endl;
}
#endif
Standard_Boolean trc = Standard_False;
if (trc) {
for (Standard_Integer j = 1; j <= 2; j++)
- cout<<"B("<<j<<") = ("<<UV(j,1)<<" "<<UV(j,3)<<" "<<UV(j,2)<<" "<<UV(j,4)<<")"<<endl;
+ std::cout<<"B("<<j<<") = ("<<UV(j,1)<<" "<<UV(j,3)<<" "<<UV(j,2)<<" "<<UV(j,4)<<")"<<std::endl;
}
#endif
#ifdef OCCT_DEBUG
// Standard_Boolean trc = TopOpeBRepTool_GettraceCORRISO();
FUN_REINIT();
-// if (trc) cout <<"*********failure in CORRISO***********\n";
+// if (trc) std::cout <<"*********failure in CORRISO***********\n";
#endif
}
static void FUN_Raise()
{
#ifdef OCCT_DEBUG
-// cout <<"*********failure in CORRISO***********\n";
+// std::cout <<"*********failure in CORRISO***********\n";
#endif
}
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = TopOpeBRepTool_GettraceCORRISO();
- if (trc) cout<<"** UVClosed"<<endl;
+ if (trc) std::cout<<"** UVClosed"<<std::endl;
#endif
TopTools_DataMapOfOrientedShapeInteger lfyE; Standard_Integer nfybounds=3; Standard_Boolean stopatfirst = Standard_True;
Standard_Boolean foundfaulty = EdgesWithFaultyUV(myEds,nfybounds,lfyE,stopatfirst);
fyClEds.Clear();
#ifdef OCCT_DEBUG
Standard_Boolean trc = TopOpeBRepTool_GettraceCORRISO();
- if (trc) cout<<"* PurgeFyClosingE"<<endl;
+ if (trc) std::cout<<"* PurgeFyClosingE"<<std::endl;
#endif
// Standard_Real xperiod = myUclosed ? myUper : myVper;
Standard_Real tttol = 1.e-8;
if (!isb) return Standard_False; // NYIRAISE
#ifdef OCCT_DEBUG
Standard_Integer icE = STATIC_PURGE_mapeds.Add(cE);
- if (trc) cout<<"? e"<<icE<<" :"<<endl;
+ if (trc) std::cout<<"? e"<<icE<<" :"<<std::endl;
#endif
// isonOcE2d :
}
if (!isonOcE2d) {
#ifdef OCCT_DEBUG
- if (trc) cout<<"-> valid edge"<<endl;
+ if (trc) std::cout<<"-> valid edge"<<std::endl;
#endif
continue;
}
#ifdef OCCT_DEBUG
// recall in one wire, there are 2 vertices for one non-degenerated closing edge
Standard_Integer ivmapv = STATIC_PURGE_mapv.Add(vce);
- if (trc) {cout<<" connexity for v("<<ivce<<")=v"<<ivmapv;FUN_tool_trace(UVvce);}
+ if (trc) {std::cout<<" connexity for v("<<ivce<<")=v"<<ivmapv;FUN_tool_trace(UVvce);}
#ifdef DRAW
if (trc) {TCollection_AsciiString bb("uv_");bb += TCollection_AsciiString(ivmapv);FUN_tool_draw(bb,UVvce);}
#endif
#ifdef OCCT_DEBUG
Standard_Integer iE = STATIC_PURGE_mapeds.Add(E);
- if (trc) {cout<<" : on e"<<iE<<endl;}
+ if (trc) {std::cout<<" : on e"<<iE<<std::endl;}
#endif
// if (E.IsSame(cE)) continue;
if (mapcl.Contains(E)) continue; // do NOT check connexity on closing edges
if (!samev) continue;
Standard_Real parve = TopOpeBRepTool_TOOL::ParE(ive,E); gp_Pnt2d UVve = TopOpeBRepTool_TOOL::UVF(parve,E2d);
#ifdef OCCT_DEBUG
- if (trc) {cout<<" ve("<<ive<<")";FUN_tool_trace(UVve);}
+ if (trc) {std::cout<<" ve("<<ive<<")";FUN_tool_trace(UVve);}
#endif
if (ive == ivce) continue; // vertex FORWARD connexed to REVERSED one
Standard_Real tttolve = BRep_Tool::Tolerance(ve);
if (sameuv) {
vceok = Standard_True;
#ifdef OCCT_DEBUG
- if (trc){cout<<" connexity->ok"<<endl;}
+ if (trc){std::cout<<" connexity->ok"<<std::endl;}
#endif
}
break;
} //ite(loe)
#ifdef OCCT_DEBUG
- if (trc && !vceok) {cout<<" connexity->KO"<<endl;}
+ if (trc && !vceok) {std::cout<<" connexity->KO"<<std::endl;}
#endif
if (vceok) nvcEok++;
}// ivce=1..2
#ifdef OCCT_DEBUG
if (trc)
- {if (isfycE) cout<<"-> faulty edge"<<endl;
- else cout<<"-> valid edge"<<endl;}
+ {if (isfycE) std::cout<<"-> faulty edge"<<std::endl;
+ else std::cout<<"-> valid edge"<<std::endl;}
#endif
if (isfycE) fyClEds.Append(cE);
}//itce
#ifdef OCCT_DEBUG
Standard_Boolean trc = TopOpeBRepTool_GettraceCORRISO();
Standard_Integer iE = STATIC_PURGE_mapeds.Add(E);
- if (trc) cout<<"? e"<<iE<<" :"<<endl;
+ if (trc) std::cout<<"? e"<<iE<<" :"<<std::endl;
#endif
Ivfaulty = 0;
Standard_Real tttol = 1.e-8;
Standard_Boolean closed = vEs(1).IsSame(vEs(2));
if (closed) {
#ifdef OCCT_DEBUG
- if (trc) {cout<<"closed -> valid edge"<<endl;}
+ if (trc) {std::cout<<"closed -> valid edge"<<std::endl;}
#endif
return Standard_False; // closed edge is assumed valid
}
#ifdef OCCT_DEBUG
// recall in one wire, there are 2 vertices for one non-degenerated closing edge
Standard_Integer ivmapv = STATIC_PURGE_mapv.Add(vE);
- if (trc) {cout<<" connexity for v("<<ivE<<")=v"<<ivmapv;FUN_tool_trace(UVvE);}
+ if (trc) {std::cout<<" connexity for v("<<ivE<<")=v"<<ivmapv;FUN_tool_trace(UVvE);}
#ifdef DRAW
if (trc) {TCollection_AsciiString bb("uv_");bb += TCollection_AsciiString(ivmapv);FUN_tool_draw(bb,UVvE);}
#endif
#ifdef OCCT_DEBUG
Standard_Integer ie = STATIC_PURGE_mapeds.Add(e);
- if (trc) {cout<<" : on e"<<ie<<endl;}
+ if (trc) {std::cout<<" : on e"<<ie<<std::endl;}
#endif
if (e.IsSame(E)) continue;
Standard_Real pare = TopOpeBRepTool_TOOL::ParE(ive,e); gp_Pnt2d UVve = TopOpeBRepTool_TOOL::UVF(pare,aC2DF);
#ifdef OCCT_DEBUG
- if (trc) {cout<<" ve("<<ive<<")";FUN_tool_trace(UVve);}
+ if (trc) {std::cout<<" ve("<<ive<<")";FUN_tool_trace(UVve);}
#endif
if (ive == ivE) continue;
if (isequal) {
vEok = Standard_True;
#ifdef OCCT_DEBUG
- if (trc){cout<<" connexity->ok"<<endl;}
+ if (trc){std::cout<<" connexity->ok"<<std::endl;}
#endif
break;
}
if (!vEok) {nfyv++; Ivfaulty = ivE;}
#ifdef OCCT_DEBUG
- if (trc && !vEok) {cout<<" connexity->KO"<<endl;}
+ if (trc && !vEok) {std::cout<<" connexity->KO"<<std::endl;}
#endif
} // ivE = 1..2
if (nfyv == 2) Ivfaulty = 3;
#ifdef OCCT_DEBUG
- if (trc) {if (Ivfaulty == 0) cout<<"-> valid edge"<<endl; else cout<<"-> faulty edge"<<endl;}
+ if (trc) {if (Ivfaulty == 0) std::cout<<"-> valid edge"<<std::endl; else std::cout<<"-> faulty edge"<<std::endl;}
#endif
return (Ivfaulty != 0);
}
#ifdef OCCT_DEBUG
Standard_Integer ifault = 0;
Standard_Boolean trc = TopOpeBRepTool_GettraceCORRISO();
- if (trc) cout<<endl<<"* EdgesWithFaultyUV"<<endl;
+ if (trc) std::cout<<std::endl<<"* EdgesWithFaultyUV"<<std::endl;
#endif
// fF's checking :
#ifdef OCCT_DEBUG
ifault++;
- if (trc) cout<<"e"<<STATIC_PURGE_mapeds.FindIndex(Echk)<<" has ifyv="<<Ivfaulty<<endl;
+ if (trc) std::cout<<"e"<<STATIC_PURGE_mapeds.FindIndex(Echk)<<" has ifyv="<<Ivfaulty<<std::endl;
#ifdef DRAW
if (trc) {TCollection_AsciiString aa("fault"); FUN_tool_draw(aa,Echk,ifault);}
#endif
Standard_Boolean CompC3D = myGeomTool.CompC3D();
- //cout << "MakeCurves begin" << endl;
+ //std::cout << "MakeCurves begin" << std::endl;
if (!CompC3D) return Standard_False;
Standard_Boolean CompPC1 = myGeomTool.CompPC1();
//--------------------- IFV - "improving" initial curves
#ifdef CurveImprovement
Standard_Integer nbpol = HC3D->NbPoles();
- //cout <<"nbpol = " << nbpol << endl;
+ //std::cout <<"nbpol = " << nbpol << std::endl;
if(nbpol > 100) {
TColgp_Array1OfPnt PolC3D(1, nbpol);
TColgp_Array1OfPnt2d PolPC1(1, nbpol);
if(NbPol < nbpol) {
#ifdef IFV
- cout << "NbPol < nbpol : " << NbPol << " " << nbpol << endl;
+ std::cout << "NbPol < nbpol : " << NbPol << " " << nbpol << std::endl;
#endif
TColgp_Array1OfPnt Polc3d(1, NbPol);
TColgp_Array1OfPnt2d Polpc1(1, NbPol);
}
}
- //cout << NbCalls << " ksi = " << ksi << endl;
- //cout << "IsBad = " << IsBad << endl;
+ //std::cout << NbCalls << " ksi = " << ksi << std::endl;
+ //std::cout << "IsBad = " << IsBad << std::endl;
if(IsBad){
Standard_Real tt = Min(10.*tol3d,Precision::Approximation());
TolReached3d = Approx.TolReached3d();
TolReached2d = Approx.TolReached2d();
#ifdef IFV
- cout << NbCalls << " : Tol = " << TolReached3d << " " << TolReached2d << endl;
+ std::cout << NbCalls << " : Tol = " << TolReached3d << " " << TolReached2d << std::endl;
#endif
Standard_Boolean bf, bl;
#ifdef OCCT_DEBUG
if (TopOpeBRepTool_GettraceCHKBSPL()) {
if(bf || bl) {
- cout<<"Problem orientation GeomLib_CheckBSplineCurve : First = "<<bf;
- cout<<" Last = "<<bl<<endl;
+ std::cout<<"Problem orientation GeomLib_CheckBSplineCurve : First = "<<bf;
+ std::cout<<" Last = "<<bl<<std::endl;
}
}
#endif
#ifdef OCCT_DEBUG
if (TopOpeBRepTool_GettraceCHKBSPL()) {
if(bf || bl) {
- cout<<"Problem orientation GeomLib_CheckBSplineCurve : First = "<<bf;
- cout<<" Last = "<<bl<<endl;
+ std::cout<<"Problem orientation GeomLib_CheckBSplineCurve : First = "<<bf;
+ std::cout<<" Last = "<<bl<<std::endl;
}
}
#endif
#ifdef OCCT_DEBUG
if (TopOpeBRepTool_GettraceCHKBSPL()) {
if(bf || bl) {
- cout<<"Problem orientation GeomLib_CheckBSplineCurve : First = "<<bf;
- cout<<" Last = "<<bl<<endl;
+ std::cout<<"Problem orientation GeomLib_CheckBSplineCurve : First = "<<bf;
+ std::cout<<" Last = "<<bl<<std::endl;
}
}
#endif
#ifdef OCCT_DEBUG
if (TopOpeBRepTool_GettraceKRO()) KRO_CURVETOOL_APPRO.Stop();
#endif
-// cout << "MakeCurves end" << endl;
+// std::cout << "MakeCurves end" << std::endl;
return Standard_True;
}
#ifdef OCCT_DEBUG
if (TopOpeBRepTool_GettracePCURV()) {
- cout<<"--- IsProjectable : ";
- if (projectable) cout<<"projectable"<<endl;
- else cout<<"NOT projectable"<<endl;
+ std::cout<<"--- IsProjectable : ";
+ if (projectable) std::cout<<"projectable"<<std::endl;
+ else std::cout<<"NOT projectable"<<std::endl;
}
#endif
Standard_EXPORT void FDRAW_DINS(const TCollection_AsciiString pref,const TopoDS_Shape& SS,const TCollection_AsciiString Snam,const TCollection_AsciiString suff)
{
DBRep::Set(Snam.ToCString(),SS);
- cout<<pref<<FUN_tool_PRODINS()<<" "<<Snam<<";"<<suff;
+ std::cout<<pref<<FUN_tool_PRODINS()<<" "<<Snam<<";"<<suff;
}
Standard_EXPORT void FDRAW_DINE(const TCollection_AsciiString pref,const TopoDS_Edge& EE,const TCollection_AsciiString Enam,const TCollection_AsciiString suff)
if ( ! VF.IsNull() && !VR.IsNull() && !EE.IsNull() ) {
DBRep::Set(Enam.ToCString(),EE);
Standard_Real f,l; BRep_Tool::Range(EE,f,l);
- cout<<pref<<FUN_tool_PRODINS()<<"-gO "<<Enam<<"; # f,l : "<<f<<","<<l<<suff;
+ std::cout<<pref<<FUN_tool_PRODINS()<<"-gO "<<Enam<<"; # f,l : "<<f<<","<<l<<suff;
#if 0
Standard_Integer nfo=0,nre=0,nin=0,nex=0;
if ( vvo == TopAbs_FORWARD ) {
nfo++; VFnam = Enam + ".vf" + nfo;
DBRep::Set(VFnam.ToCString(),vv);
- cout<<blancV<<FUN_tool_PRODINS()<<VFnam;
+ std::cout<<blancV<<FUN_tool_PRODINS()<<VFnam;
}
else if ( vvo == TopAbs_REVERSED ) {
nre++; VRnam = Enam + ".vr" + nre;
DBRep::Set(VRnam.ToCString(),vv);
- cout<<blancV<<FUN_tool_PRODINS()<<VRnam;
+ std::cout<<blancV<<FUN_tool_PRODINS()<<VRnam;
}
else if ( vvo == TopAbs_INTERNAL ) {
nin++; VInam = Enam + ".vi" + nin;
DBRep::Set(VInam.ToCString(),vv);
- cout<<blancV<<FUN_tool_PRODINS()<<VInam;
+ std::cout<<blancV<<FUN_tool_PRODINS()<<VInam;
}
else if ( vvo == TopAbs_EXTERNAL ) {
nex++; VEnam = Enam + ".ve" + nex;
DBRep::Set(VEnam.ToCString(),vv);
- cout<<blancV<<FUN_tool_PRODINS()<<VEnam;
+ std::cout<<blancV<<FUN_tool_PRODINS()<<VEnam;
}
Standard_Real p = BRep_Tool::Parameter(vv,EE);
- cout<<"; #draw ; par/"<<Enam<<" : "<<p<<endl;
+ std::cout<<"; #draw ; par/"<<Enam<<" : "<<p<<std::endl;
}
#endif
}
Standard_EXPORT void FUN_tool_draw(TCollection_AsciiString aa,const TopoDS_Edge& E, const TopoDS_Face& F,const Standard_Integer ie)
{
- if (E.IsNull()) {cout<<"************* null edge\n"; return;}
+ if (E.IsNull()) {std::cout<<"************* null edge\n"; return;}
Standard_Real f,l; const Handle(Geom2d_Curve)& PC = BRep_Tool::CurveOnSurface(E,F,f,l);
- if (PC.IsNull()) {cout<<"************* no curv on surf\n"; return;}
+ if (PC.IsNull()) {std::cout<<"************* no curv on surf\n"; return;}
TCollection_AsciiString bb(aa); bb += TCollection_AsciiString(ie);
char* aaa = bb.ToCString();
#endif
#ifdef OCCT_DEBUG
- if (tFE) cout<<endl<<"FuseEdges : BuildListEdges "<<endl;
+ if (tFE) std::cout<<std::endl<<"FuseEdges : BuildListEdges "<<std::endl;
#endif
//--------------------------------------------------------
#endif
#ifdef OCCT_DEBUG
- if (tFE) cout<<endl<<"FuseEdges : BuildListResultEdges "<<endl;
+ if (tFE) std::cout<<std::endl<<"FuseEdges : BuildListResultEdges "<<std::endl;
#endif
// if we have edges to fuse
}
#ifdef OCCT_DEBUG
- if (tFE) cout<<endl<<"FuseEdges : Creating New Edge "<<endl;
+ if (tFE) std::cout<<std::endl<<"FuseEdges : Creating New Edge "<<std::endl;
#endif
BRepLib_MakeEdge ME(C,VF,VL);
// we try to use ExtendCurveToPoint, then rebuild the NewEdge
#ifdef OCCT_DEBUG
- if (tFE) cout<<endl<<"FuseEdges : MakeEdge failed. Trying to Extend Curve "<<endl;
+ if (tFE) std::cout<<std::endl<<"FuseEdges : MakeEdge failed. Trying to Extend Curve "<<std::endl;
#endif
Handle(Geom_BoundedCurve) ExtC = Handle(Geom_BoundedCurve)::DownCast(C->Copy());
if (!ExtC.IsNull()) {
NewEdge = ME.Edge();
#ifdef OCCT_DEBUG
- if (tFE) cout<<endl<<"FuseEdges : Updating pcurve "<<endl;
+ if (tFE) std::cout<<std::endl<<"FuseEdges : Updating pcurve "<<std::endl;
#endif
if (UpdatePCurve(OldEdge,NewEdge,LmapEdg))
myMapEdg.Bind(iLst,NewEdge);
}
#ifdef OCCT_DEBUG
- if (tFE) cout<<endl<<"FuseEdges : Perform "<<endl;
+ if (tFE) std::cout<<std::endl<<"FuseEdges : Perform "<<std::endl;
#endif
// if we have fused edges
}
#ifdef OCCT_DEBUG
- if (tFE) cout<<endl<<"FuseEdges : Building New Shape "<<endl;
+ if (tFE) std::cout<<std::endl<<"FuseEdges : Building New Shape "<<std::endl;
#endif
// perform the effective substitution
}
#ifdef OCCT_DEBUG
- if (tFE) cout<<endl<<"FuseEdges : "<< NbVertices() <<" vertices removed"<<endl;
+ if (tFE) std::cout<<std::endl<<"FuseEdges : "<< NbVertices() <<" vertices removed"<<std::endl;
#endif
typC1 != STANDARD_TYPE(Geom_BSplineCurve) &&
typC1 != STANDARD_TYPE(Geom_BezierCurve)) {
#ifdef OCCT_DEBUG
- cout << " TopOpeBRepTool_FuseEdge : Type de Support non traite" << endl;
+ std::cout << " TopOpeBRepTool_FuseEdge : Type de Support non traite" << std::endl;
#endif
return Standard_False;
}
}
}
#ifdef OCCT_DEBUG
- cout<<"FUN_tool_nggeomF NYI"<<endl;
+ std::cout<<"FUN_tool_nggeomF NYI"<<std::endl;
#endif
return gp_Dir(0,0,1);
}
myIMS.Add(S,B);
#ifdef OCCT_DEBUG
if (TBOX) {
- DumpB(Box(S));cout<<"; # HBT::AddBox "<<Index(S)<<" : ";TopAbs::Print(t,cout);cout<<"\n";cout<<endl;
+ DumpB(Box(S));std::cout<<"; # HBT::AddBox "<<Index(S)<<" : ";TopAbs::Print(t,std::cout);std::cout<<"\n";std::cout<<std::endl;
}
#endif
}
#ifdef OCCT_DEBUG
(const Bnd_Box& B)
{
- if (B.IsVoid()) cout<<"# IsVoid";
- else if (B.IsWhole()) cout<<"# IsWhole";
+ if (B.IsVoid()) std::cout<<"# IsVoid";
+ else if (B.IsWhole()) std::cout<<"# IsWhole";
else {
Standard_Real x,y,z,X,Y,Z;
B.Get(x,y,z,X,Y,Z);
- cout<<"bounding "<<x<<" "<<y<<" "<<z<<" "<<X<<" "<<Y<<" "<<Z;
- cout.flush();
+ std::cout<<"bounding "<<x<<" "<<y<<" "<<z<<" "<<X<<" "<<Y<<" "<<Z;
+ std::cout.flush();
}
}
#else
#ifdef OCCT_DEBUG
Standard_Boolean trc = TopOpeBRepTool_GettracePURGE();
- if (trc) cout<<"\n* PurgeClosingEdges:\n\n";
+ if (trc) std::cout<<"\n* PurgeClosingEdges:\n\n";
#endif
TopOpeBRepTool_CORRISO CORRISO(Fin);
Standard_Real tolF = BRep_Tool::Tolerance(Fin);
}
#ifdef OCCT_DEBUG
- if (trc && topurge) cout<<"found FAULTY edge = ed"<<endl;
+ if (trc && topurge) std::cout<<"found FAULTY edge = ed"<<std::endl;
#endif
} // exw
return Standard_True;
// redefinition des parametres de v1,v2 de Ein tels que des parametres de
#ifdef OCCT_DEBUG
if (TopOpeBRepTool_GettraceCORRISO()) {
- cout<<"FUN_correctDegeneratedE : !mmd NYI"<<endl;
+ std::cout<<"FUN_correctDegeneratedE : !mmd NYI"<<std::endl;
}
#endif
ok = Standard_False;
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = TopOpeBRepTool_GettraceCORRISO();
- if (trc) cout<<"\n#### CorrectONUVISO ####\n\n";
+ if (trc) std::cout<<"\n#### CorrectONUVISO ####\n\n";
debcorrUV();
#endif
#ifdef OCCT_DEBUG
if (trc) {
- cout<<"CorrectONUVISO ";
- cout<<"iso faulty "<<tocorrectisoe<<" deg faulty "<<tocorrectdege<<endl;;
+ std::cout<<"CorrectONUVISO ";
+ std::cout<<"iso faulty "<<tocorrectisoe<<" deg faulty "<<tocorrectdege<<std::endl;;
}
debcorrUV();
#endif
#ifdef DRAW
if (trc) {
- cout<<"TopOpeBRepTool correctONUVISO : faulty iso edge"<<endl;
+ std::cout<<"TopOpeBRepTool correctONUVISO : faulty iso edge"<<std::endl;
FUN_tool_draw("fyf",Fsp);FUN_tool_draw("fyisoe",fyisoe);
}
#endif
#ifdef DRAW
if (trc) {
- cout<<"TopOpeBRepTool correctONUVISO : faulty deg edge"<<endl;
+ std::cout<<"TopOpeBRepTool correctONUVISO : faulty deg edge"<<std::endl;
FUN_tool_draw("fyf",Fsp);FUN_tool_draw("fydege",fydege);
}
#endif
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = TopOpeBRepTool_GettraceREGUSO();
- if (trc) cout<<"***** Failure in REGUS **********"<<endl;
+ if (trc) std::cout<<"***** Failure in REGUS **********"<<std::endl;
// throw Standard_Failure("REGUS");
#endif
}
#ifdef OCCT_DEBUG
Standard_Boolean trc = TopOpeBRepTool_GettraceREGUSO();
Standard_Integer ish = FUN_adds(S());
- if (trc) cout<<"** MAPPING ** shape"<<ish<<endl;
+ if (trc) std::cout<<"** MAPPING ** shape"<<ish<<std::endl;
#endif
// mymapeFs, myoldnF :
if (nf > 2) mymapemult.Add(e);
#ifdef OCCT_DEBUG
if (trc) {
- cout <<"co(e"<<FUN_adds(e)<<")= ";
+ std::cout <<"co(e"<<FUN_adds(e)<<")= ";
TopTools_ListIteratorOfListOfShape it(lof);
- for (; it.More(); it.Next())cout<<" f"<<FUN_adds(it.Value());
- cout<<endl;}
+ for (; it.More(); it.Next())std::cout<<" f"<<FUN_adds(it.Value());
+ std::cout<<std::endl;}
#endif
}//itm(mymapeFs)
return Standard_True;
Standard_Boolean classifok = classi.Classilist(nWs,mapWlow);
if (!classifok) {
#ifdef OCCT_DEBUG
- if (trc) cout<<"** classif fails"<<endl;
+ if (trc) std::cout<<"** classif fails"<<std::endl;
#endif
return Standard_False;
}
Standard_Boolean facesbuilt = TopOpeBRepTool_TOOL::WireToFace(Fanc, mapWlow, nFs);
if (!facesbuilt) {
#ifdef OCCT_DEBUG
- if (trc) cout<<"** facesbuilt fails"<<endl;
+ if (trc) std::cout<<"** facesbuilt fails"<<std::endl;
#endif
return Standard_False;
}
#ifdef OCCT_DEBUG
Standard_Boolean trc = TopOpeBRepTool_GettraceREGUSO();
Standard_Integer ish = FUN_adds(S());
- if (trc) cout<<"** SPLITTING FACES ** shape"<<ish<<endl;
+ if (trc) std::cout<<"** SPLITTING FACES ** shape"<<ish<<std::endl;
#endif
TopExp_Explorer exf(myS, TopAbs_FACE);
for (; exf.More(); exf.Next()){
#ifdef OCCT_DEBUG
if (trc) {
- cout <<"split(f"<<FUN_adds(f)<<")= ";
+ std::cout <<"split(f"<<FUN_adds(f)<<")= ";
TopTools_ListIteratorOfListOfShape it(lfsp);
- for (; it.More(); it.Next()) cout<<" f"<<FUN_adds(it.Value());
- cout<<endl;}
+ for (; it.More(); it.Next()) std::cout<<" f"<<FUN_adds(it.Value());
+ std::cout<<std::endl;}
#endif
}//exf(myS)
return Standard_True;
#ifdef OCCT_DEBUG
Standard_Boolean trc = TopOpeBRepTool_GettraceREGUSO();
Standard_Integer ishe = FUN_adds(myS);
- if (trc) cout<<"** REGU **"<<ishe<<endl;
+ if (trc) std::cout<<"** REGU **"<<ishe<<std::endl;
#endif
TopTools_ListOfShape Splits;
Standard_Boolean toregu = !mymapemult.IsEmpty() || (mynF != myoldnF);
Standard_Boolean tr=Standard_False;
if (tr) {
TopTools_MapIteratorOfMapOfShape it(myedstoconnect);
- cout<<"still to connect : ";
- for (; it.More(); it.Next()) cout<<" e"<<FUN_adds(it.Key());
- cout<<endl;
+ std::cout<<"still to connect : ";
+ for (; it.More(); it.Next()) std::cout<<" e"<<FUN_adds(it.Key());
+ std::cout<<std::endl;
}
#endif
Standard_Boolean unchanged = (nFcur==myoldnF) && (mynF==myoldnF);
if (unchanged) {
#ifdef OCCT_DEBUG
- if (trc) cout<<"#** shell"<<ishe<<" valid\n";
+ if (trc) std::cout<<"#** shell"<<ishe<<" valid\n";
#endif
return Standard_False; // nyi analysis if we should raise or not
}
TopoDS_Shell newShe; TopOpeBRepTool_TOOL::MkShell(mylFinBlock,newShe);
Splits.Append(newShe);
#ifdef OCCT_DEBUG
- if (trc) {cout<<"#** shell "<<ishe<<" gives new shell "<<FUN_adds(newShe)<<endl;
- for (TopTools_ListIteratorOfListOfShape it(mylFinBlock); it.More(); it.Next()) cout <<";dins f"<<FUN_adds(it.Value());
- cout<<endl<<endl;}
+ if (trc) {std::cout<<"#** shell "<<ishe<<" gives new shell "<<FUN_adds(newShe)<<std::endl;
+ for (TopTools_ListIteratorOfListOfShape it(mylFinBlock); it.More(); it.Next()) std::cout <<";dins f"<<FUN_adds(it.Value());
+ std::cout<<std::endl<<std::endl;}
#endif
mylFinBlock.Clear();
startBlock = Standard_True;
myf = lof.First();
#ifdef OCCT_DEBUG
Standard_Boolean trc = TopOpeBRepTool_GettraceREGUSO();
- if (trc) cout<<"* Block : first face = f"<<FUN_adds(myf)<<endl;
+ if (trc) std::cout<<"* Block : first face = f"<<FUN_adds(myf)<<std::endl;
#endif
return Standard_True;
}
if (nf == 0) {myedstoconnect.Remove(e); mymapeFs.UnBind(e);
continue;}
#ifdef OCCT_DEBUG
- if (trc) {cout<<"e"<<FUN_adds(e)<<" on "<<nf<<" untouched f:"<<endl;}
+ if (trc) {std::cout<<"e"<<FUN_adds(e)<<" on "<<nf<<" untouched f:"<<std::endl;}
#endif
if (nf == 1) myf = lof.First();
else {
myf = ffound;
}
#ifdef OCCT_DEBUG
- if (trc) cout<<"->myf = f"<<FUN_adds(myf)<<endl;
+ if (trc) std::cout<<"->myf = f"<<FUN_adds(myf)<<std::endl;
#endif
return Standard_True;
}//itm(myedstoconnect)
Standard_Boolean oppo = TopOpeBRepTool_TOOL::Matter(x,y,xxfound,ntfound,tola, angfound);
#ifdef OCCT_DEBUG
- if (trc&&!oppo) cout<<" f"<<FUN_adds(fref)<<",f"<<FUN_adds(ffound)<<" not oppo"<<endl;
+ if (trc&&!oppo) std::cout<<" f"<<FUN_adds(fref)<<",f"<<FUN_adds(ffound)<<" not oppo"<<std::endl;
#endif
if (!oppo) {ffound.Nullify(); continue;}
if (!ok) {FUN_Raise(); return Standard_False;}
}
#ifdef OCCT_DEBUG
- if (trc) cout<<" ang(f"<<FUN_adds(fref)<<",f"<<FUN_adds(ffound)<<")="<<angfound<<endl;
+ if (trc) std::cout<<" ang(f"<<FUN_adds(fref)<<",f"<<FUN_adds(ffound)<<")="<<angfound<<std::endl;
#endif
break;
}
Standard_Real angi = 0;
Standard_Boolean oppo = TopOpeBRepTool_TOOL::Matter(x,y,xxi,nti,tola, angi);
#ifdef OCCT_DEBUG
- if (trc&&!oppo) cout<<" f"<<FUN_adds(fref)<<",f"<<FUN_adds(fi)<<" not oppo"<<endl;
+ if (trc&&!oppo) std::cout<<" f"<<FUN_adds(fref)<<",f"<<FUN_adds(fi)<<" not oppo"<<std::endl;
#endif
if (!oppo) continue;
if (!ok) {FUN_Raise(); return Standard_False;}
}
#ifdef OCCT_DEBUG
- if (trc) cout<<" ang(f"<<FUN_adds(fref)<<",f"<<FUN_adds(fi)<<")="<<angi<<endl;
+ if (trc) std::cout<<" ang(f"<<FUN_adds(fref)<<",f"<<FUN_adds(fi)<<")="<<angi<<std::endl;
#endif
if (angi > angfound) continue;
angfound = angi;
static TopTools_IndexedMapOfOrientedShape STATIC_mapeds;
void FUN_tro(const Standard_Integer i)
{
- if (i==1) cout<<"FORWARD";
- else if (i==2) cout<<"REVERSED";
- else if (i==3) cout<<"INTERNAL";
- else if (i==4) cout<<"EXTERNAL";
- else if (i==5) cout<<"CLOSING";
+ if (i==1) std::cout<<"FORWARD";
+ else if (i==2) std::cout<<"REVERSED";
+ else if (i==3) std::cout<<"INTERNAL";
+ else if (i==4) std::cout<<"EXTERNAL";
+ else if (i==5) std::cout<<"CLOSING";
}
Standard_EXPORT Standard_Integer FUN_adds(const TopoDS_Shape& s) {
TopAbs_ShapeEnum typ = s.ShapeType();
static void FUN_Raise() {
#ifdef OCCT_DEBUG
Standard_Boolean trc = TopOpeBRepTool_GettraceREGUFA();
- if (trc) cout<<"*** Raise REGUW"<<endl;
+ if (trc) std::cout<<"*** Raise REGUW"<<std::endl;
// throw Standard_Failure("REGUW");
#endif
}
if (!HasInit()) throw Standard_Failure("TopOpeBRepTool_REGUW : NO INIT");
#ifdef OCCT_DEBUG
Standard_Boolean trc = TopOpeBRepTool_GettraceREGUFA();
- if (trc) cout<<"** SPLITTING EDGES **"<<endl;
+ if (trc) std::cout<<"** SPLITTING EDGES **"<<std::endl;
#endif
TopTools_IndexedMapOfShape mehasIv;
else issp = TopOpeBRepTool_TOOL::SplitE(e,splits);
if (issp) hasnewsplits = Standard_True;
#ifdef OCCT_DEBUG
- if (trc) cout<<"e"<<FUN_adds(e)<<" gives splits ="<<endl;
+ if (trc) std::cout<<"e"<<FUN_adds(e)<<" gives splits ="<<std::endl;
#endif
if (!(issp || isdone)) continue; //nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnyi
for (; ite.More(); ite.Next()){
const TopoDS_Shape& esp = ite.Value();
#ifdef OCCT_DEBUG
- if (trc) {cout<<" e"<<FUN_adds(esp);}
+ if (trc) {std::cout<<" e"<<FUN_adds(esp);}
#endif
TopExp_Explorer exvv(esp, TopAbs_VERTEX);
for (; exvv.More(); exvv.Next()){
}//exvv(exvv,VERTEX)
}//ite(splits)
#ifdef OCCT_DEBUG
- if (trc) cout<<endl;
+ if (trc) std::cout<<std::endl;
#endif
}
return Standard_True;
if (!HasInit()) throw Standard_Failure("TopOpeBRepTool_REGUW : NO INIT");
#ifdef OCCT_DEBUG
Standard_Boolean trc = TopOpeBRepTool_GettraceREGUFA();
- if (trc) cout<<"** MAPPING **"<<endl;
+ if (trc) std::cout<<"** MAPPING **"<<std::endl;
#endif
// Prequesitories :
if (trc) {
for (Standard_Integer iv = 1; iv <= mymapvEds.Extent(); iv++) {
const TopoDS_Vertex& v = TopoDS::Vertex(mymapvEds.FindKey(iv));
- cout <<"#v"<<FUN_adds(v)<<" :\n";
+ std::cout <<"#v"<<FUN_adds(v)<<" :\n";
const TopOpeBRepTool_connexity& co = mymapvEds(iv);
for (Standard_Integer i=1; i<=5; i++) {
TopTools_ListOfShape eds; Standard_Integer ieds = co.Item(i,eds);
if (ieds == 0) continue;
- cout<<" is ";FUN_tro(i);cout<<" in ";
+ std::cout<<" is ";FUN_tro(i);std::cout<<" in ";
TopTools_ListIteratorOfListOfShape ite(eds);
for (; ite.More(); ite.Next())
{const TopoDS_Edge& e = TopoDS::Edge(ite.Value());
- cout<<"e"<<FUN_adds(e);FUN_tool_tori(e.Orientation());
- TopoDS_Vertex vclo; Standard_Boolean cloE = TopOpeBRepTool_TOOL::ClosedE(e,vclo); if (cloE) cout<<"closed";
- Standard_Boolean dgE = BRep_Tool::Degenerated(e); if (dgE) cout<<"degenerated";
+ std::cout<<"e"<<FUN_adds(e);FUN_tool_tori(e.Orientation());
+ TopoDS_Vertex vclo; Standard_Boolean cloE = TopOpeBRepTool_TOOL::ClosedE(e,vclo); if (cloE) std::cout<<"closed";
+ Standard_Boolean dgE = BRep_Tool::Degenerated(e); if (dgE) std::cout<<"degenerated";
Standard_Boolean iscE = TopOpeBRepTool_TOOL::IsClosingE(e,myCORRISO.S(),Fref());
- if (iscE) cout<<"closing";
- cout<<" ";}
- cout<<endl;
+ if (iscE) std::cout<<"closing";
+ std::cout<<" ";}
+ std::cout<<std::endl;
}//i=1..5
}
}//trc
#ifdef OCCT_DEBUG
if (trc) {
- cout<<endl<<" v0 = v"<<FUN_adds(myv0)<<" p2d0 = ("<<myp2d0.X()<<" "<<myp2d0.Y()<<")"<<endl;
- cout<<" vcur = v"<<FUN_adds(myv)<<" p2d = ("<<myp2d.X()<<" "<<myp2d.Y()<<")"<<endl;
- cout<<" ecur = e"<<FUN_adds(myed)<<endl;
+ std::cout<<std::endl<<" v0 = v"<<FUN_adds(myv0)<<" p2d0 = ("<<myp2d0.X()<<" "<<myp2d0.Y()<<")"<<std::endl;
+ std::cout<<" vcur = v"<<FUN_adds(myv)<<" p2d = ("<<myp2d.X()<<" "<<myp2d.Y()<<")"<<std::endl;
+ std::cout<<" ecur = e"<<FUN_adds(myed)<<std::endl;
}
#endif
return Standard_True;
if (iStep == 1) angfound = TopOpeBRepTool_TOOL::Matter(mytg2d,tg2dfound);
else angfound = 2.*M_PI - TopOpeBRepTool_TOOL::Matter(tg2dfound,mytg2d);
#ifdef OCCT_DEBUG
- if (trc) cout<<"ang(e"<<FUN_adds(myed)<<",e"<<FUN_adds(efound)<<")="<<angfound<<endl;
+ if (trc) std::cout<<"ang(e"<<FUN_adds(myed)<<",e"<<FUN_adds(efound)<<")="<<angfound<<std::endl;
#endif
// purpose : finding out <efound> /
else angi = 2.*M_PI - TopOpeBRepTool_TOOL::Matter(tg2di,mytg2d);
Standard_Boolean eq = Abs(angi-angfound) < tola;
#ifdef OCCT_DEBUG
- if (trc) cout<<"ang(e"<<FUN_adds(myed)<<",e"<<FUN_adds(ei)<<")="<<angi<<endl;
+ if (trc) std::cout<<"ang(e"<<FUN_adds(myed)<<",e"<<FUN_adds(ei)<<")="<<angi<<std::endl;
#endif
if (eq) {
FUN_Raise();
if (!HasInit()) throw Standard_Failure("TopOpeBRepTool_REGUW : NO INIT");
#ifdef OCCT_DEBUG
Standard_Boolean trc = TopOpeBRepTool_GettraceREGUFA();
- if (trc) cout<<endl<<" vcur = v"<<FUN_adds(myv)<<" p2d = ("<<myp2d.X()<<" "<<myp2d.Y()<<")"<<endl;
+ if (trc) std::cout<<std::endl<<" vcur = v"<<FUN_adds(myv)<<" p2d = ("<<myp2d.X()<<" "<<myp2d.Y()<<")"<<std::endl;
#endif
Standard_Integer iv0e1 = (iStep == 1) ? REVERSED : FORWARD;
while (ite.More()) {
const TopoDS_Edge& e = TopoDS::Edge(ite.Value());
#ifdef OCCT_DEBUG
- if (trc) cout<<" e"<<FUN_adds(e);
+ if (trc) std::cout<<" e"<<FUN_adds(e);
#endif
Standard_Boolean issame = e.IsSame(myed);
if (issame) {//xpu240299 FRA60275, fsp4
#ifdef OCCT_DEBUG
- if (trc) cout<<" is same : not valid"<<endl;
+ if (trc) std::cout<<" is same : not valid"<<std::endl;
#endif
le.Remove(ite); continue;
}
if (!samep2d) le.Remove(ite);
else ite.Next();
#ifdef OCCT_DEBUG
- if (trc) {if (samep2d) cout<<" valid"<<endl;
- else cout<<" not valid"<<endl;}
+ if (trc) {if (samep2d) std::cout<<" valid"<<std::endl;
+ else std::cout<<" not valid"<<std::endl;}
#endif
}//ite(le)
ne = le.Extent();
#ifdef OCCT_DEBUG
if (trc) {
- cout<<" vcur = v"<<FUN_adds(myv)<<" p2d = ("<<myp2d.X()<<" "<<myp2d.Y()<<")"<<endl;
- cout<<" ecur = e"<<FUN_adds(myed)<<endl;
+ std::cout<<" vcur = v"<<FUN_adds(myv)<<" p2d = ("<<myp2d.X()<<" "<<myp2d.Y()<<")"<<std::endl;
+ std::cout<<" ecur = e"<<FUN_adds(myed)<<std::endl;
}
#endif
return Standard_True;
iStep = istep;
#ifdef OCCT_DEBUG
Standard_Boolean trc = TopOpeBRepTool_GettraceREGUFA();
- if (trc) cout<<endl<<"** REGU istep=**"<<iStep<<endl;
+ if (trc) std::cout<<std::endl<<"** REGU istep=**"<<iStep<<std::endl;
#endif
Splits.Clear();
Standard_Boolean ok = InitBlock();
if (!ok) {
#ifdef OCCT_DEBUG
- if (trc) cout<<"** InitBlock fails"<<endl;
+ if (trc) std::cout<<"** InitBlock fails"<<std::endl;
#endif
{FUN_Raise(); return Standard_False;}
}
Standard_Boolean onewok = FINI && loW.IsEmpty() && !hasnewsplits;
if (onewok){
#ifdef OCCT_DEBUG
- if (trc) cout<<"wire "<<FUN_adds(Scur)<<" is found valid\n";
+ if (trc) std::cout<<"wire "<<FUN_adds(Scur)<<" is found valid\n";
#endif
return Standard_True;
}//onewok
if (wiok) loW.Append(newW);
else {
#ifdef OCCT_DEBUG
- if (trc) cout<<"** FUN_tool_MakeWire fails"<<endl;
+ if (trc) std::cout<<"** FUN_tool_MakeWire fails"<<std::endl;
#endif
{FUN_Raise(); return Standard_False;}
}
#ifdef OCCT_DEBUG
- if (trc) {cout<<"#->new wire = wi"<<FUN_adds(newW)<<" = ";
+ if (trc) {std::cout<<"#->new wire = wi"<<FUN_adds(newW)<<" = ";
for (TopTools_ListIteratorOfListOfShape it(loEcur); it.More(); it.Next())
- cout<<" e"<<FUN_adds(it.Value());
- cout<<"\n\n";}
+ std::cout<<" e"<<FUN_adds(it.Value());
+ std::cout<<"\n\n";}
#endif
isinit0 = Standard_True;
loEcur.Clear();
Standard_Boolean gotonext = NextinBlock();
if (!gotonext) {
#ifdef OCCT_DEBUG
- if (trc) cout<<"** NextinBlock fails"<<endl;
+ if (trc) std::cout<<"** NextinBlock fails"<<std::endl;
#endif
{FUN_Raise(); return Standard_False;}
}
#ifdef OCCT_DEBUG
Standard_Boolean trc = TopOpeBRepTool_GettraceREGUFA();
if (trc)
- {cout<<"** setting new connexity : v"<<FUN_adds(v)<<" is ";FUN_tro(OriKey);
- cout<<" in e"<<FUN_adds(e);FUN_tool_tori(e.Orientation());
- TopoDS_Vertex vclo; Standard_Boolean cloE = TopOpeBRepTool_TOOL::ClosedE(e,vclo); if (cloE) cout<<" closed";
- Standard_Boolean dgE = BRep_Tool::Degenerated(e); if (dgE) cout<<" degenerated";cout<<endl;}
+ {std::cout<<"** setting new connexity : v"<<FUN_adds(v)<<" is ";FUN_tro(OriKey);
+ std::cout<<" in e"<<FUN_adds(e);FUN_tool_tori(e.Orientation());
+ TopoDS_Vertex vclo; Standard_Boolean cloE = TopOpeBRepTool_TOOL::ClosedE(e,vclo); if (cloE) std::cout<<" closed";
+ Standard_Boolean dgE = BRep_Tool::Degenerated(e); if (dgE) std::cout<<" degenerated";std::cout<<std::endl;}
#endif
return Standard_True;
}
#ifdef OCCT_DEBUG
Standard_Boolean trc = TopOpeBRepTool_GettraceREGUFA();
if (trc)
- {cout<<"** removing old connexity : v"<<FUN_adds(v)<<" for e"<<FUN_adds(e);FUN_tool_tori(e.Orientation());
- TopoDS_Vertex vclo; Standard_Boolean cloE = TopOpeBRepTool_TOOL::ClosedE(e,vclo); if (cloE) cout<<" closed";
- Standard_Boolean dgE = BRep_Tool::Degenerated(e); if (dgE) cout<<" degenerated";cout<<endl;}
+ {std::cout<<"** removing old connexity : v"<<FUN_adds(v)<<" for e"<<FUN_adds(e);FUN_tool_tori(e.Orientation());
+ TopoDS_Vertex vclo; Standard_Boolean cloE = TopOpeBRepTool_TOOL::ClosedE(e,vclo); if (cloE) std::cout<<" closed";
+ Standard_Boolean dgE = BRep_Tool::Degenerated(e); if (dgE) std::cout<<" degenerated";std::cout<<std::endl;}
#endif
return Standard_True;
}
{
switch (sta) {
case SAME:
- cout<<i1<<" gives SAME bnd with "<<i2<<endl; break;
+ std::cout<<i1<<" gives SAME bnd with "<<i2<<std::endl; break;
case DIFF:
- cout<<i1<<" gives OUT bnd with "<<i2<<endl; break;
+ std::cout<<i1<<" gives OUT bnd with "<<i2<<std::endl; break;
case oneINtwo:
- cout<<i1<<" is IN "<<i2<<endl; break;
+ std::cout<<i1<<" is IN "<<i2<<std::endl; break;
case twoINone:
- cout<<i2<<" is IN "<<i1<<endl; break;
+ std::cout<<i2<<" is IN "<<i1<<std::endl; break;
}
}
#endif
Standard_Boolean trc = Standard_False;
if (trc) {
for (Standard_Integer i = 1; i <= 2; i++)
- cout<<"B("<<i<<") = ("<<UV(i,1)<<" "<<UV(i,3)<<" "<<UV(i,2)<<" "<<UV(i,4)<<")"<<endl;
+ std::cout<<"B("<<i<<") = ("<<UV(i,1)<<" "<<UV(i,3)<<" "<<UV(i,2)<<" "<<UV(i,4)<<")"<<std::endl;
}
#endif
#ifdef OCCT_DEBUG
Standard_Boolean trc = TopOpeBRepTool_GettraceREGUFA();
- if (trc) cout<<"** ClassifW :"<<endl;
+ if (trc) std::cout<<"** ClassifW :"<<std::endl;
STATIC_mapw.Clear();
#endif
nite++;
if ((sta == SAME)||(sta == UNKNOWN)) sta = FUN_tool_classiwithp2d(wi);
#ifdef OCCT_DEBUG
- if (trc) {cout<<"#wi :";FUN_tool_coutsta(sta,FUN_adds(wi(1)),FUN_adds(wi(2)));}
+ if (trc) {std::cout<<"#wi :";FUN_tool_coutsta(sta,FUN_adds(wi(1)),FUN_adds(wi(2)));}
#endif
if ((sta == SAME)||(sta == UNKNOWN)) return Standard_False;
if ((sta == DIFF) && itmap.More()) {OUTall = Standard_True; continue;}// w(1) OUT w(2)
osta = FUN_tool_classiBnd2d(OBnd2d);
if ((osta == SAME)||(osta == UNKNOWN)) osta = FUN_tool_classiwithp2d(Owi);
#ifdef OCCT_DEBUG
- if (trc) {cout<<"wi : "; FUN_tool_coutsta(osta,FUN_adds(Owi(1)),FUN_adds(Owi(2)));}
+ if (trc) {std::cout<<"wi : "; FUN_tool_coutsta(osta,FUN_adds(Owi(1)),FUN_adds(Owi(2)));}
#endif
if ((osta == SAME)||(osta == UNKNOWN)) return Standard_False;
if (osta == DIFF) continue; // Ow(1), Ow(2) are disjoint
// Classifying wi(1) with wi(2) :
sta = FUN_tool_classiBnd2d(Bnd2d);
#ifdef OCCT_DEBUG
- if (trc) {cout<<"wi : "; FUN_tool_coutsta(sta,STATIC_mapw.FindIndex(wi(1)),
+ if (trc) {std::cout<<"wi : "; FUN_tool_coutsta(sta,STATIC_mapw.FindIndex(wi(1)),
STATIC_mapw.FindIndex(wi(2)));}
#endif
if ((sta == SAME)||(sta == UNKNOWN)) sta = FUN_tool_classiwithp2d(wi);
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = TopOpeBRepTool_GettraceREGUFA();
- if (trc) cout<<"** MakeFaces :"<<endl;
+ if (trc) std::cout<<"** MakeFaces :"<<std::endl;
#endif
Standard_Boolean toreverse = M_REVERSED(theFace.Orientation());
TopoDS_Face F = TopoDS::Face(theFace.Oriented(TopAbs_FORWARD));
#ifdef OCCT_DEBUG
if (trc) {
- cout<<"sp(fa"<<FUN_adds(theFace)<<")=";
+ std::cout<<"sp(fa"<<FUN_adds(theFace)<<")=";
TopTools_ListIteratorOfListOfShape it(aListOfFaces);
- for (; it.More(); it.Next()) cout<<" fa"<<FUN_adds(it.Value());
- cout<<endl;
+ for (; it.More(); it.Next()) std::cout<<" fa"<<FUN_adds(it.Value());
+ std::cout<<std::endl;
}
#endif
{
#ifdef OCCT_DEBUG
Standard_Boolean trc = TopOpeBRepTool_GettraceREGUFA();
- if (trc) cout<<"** ClassifW :"<<endl;
+ if (trc) std::cout<<"** ClassifW :"<<std::endl;
#endif
Standard_Real tolF = BRep_Tool::Tolerance(F);
Standard_Real toluv = TopOpeBRepTool_TOOL::TolUV(F,tolF);
TopTools_ListIteratorOfListOfShape itw(ldone);
for (; itw.More(); itw.Next()) mapdone.Add(itw.Value());
#ifdef OCCT_DEBUG
- if (trc) cout<<"old wires :wi"<<FUN_adds(Ow1)<<" is OUT all old wires"<<endl;
+ if (trc) std::cout<<"old wires :wi"<<FUN_adds(Ow1)<<" is OUT all old wires"<<std::endl;
#endif
lOws.RemoveFirst();
}//OUTall
else {
#ifdef OCCT_DEBUG
- if (trc) {cout<<"old wires :wi -> ";
+ if (trc) {std::cout<<"old wires :wi -> ";
FUN_tool_coutsta(sta12,FUN_adds(Ow1),FUN_adds(Ow2));
- cout<<endl;}
+ std::cout<<std::endl;}
#endif
const TopTools_ListOfShape& lw2 = mapOwNw.Find(Ow2);
Standard_Integer stabnd2d = CLASSI.ClassiBnd2d(wsma,wgre,toluv,Standard_True);
Standard_Integer sta = CLASSI.Classip2d(wsma,wgre, stabnd2d);
#ifdef OCCT_DEBUG
- if (trc) {cout<<" wires :wi -> ";
+ if (trc) {std::cout<<" wires :wi -> ";
FUN_tool_coutsta(sta,FUN_adds(wsma),FUN_adds(wgre));
- cout<<endl;}
+ std::cout<<std::endl;}
#endif
if (sta == DIFF) continue;
void TopOpeBRepTool_STATE::Print()
{
- cout<<myname<<" : ";
- cout<<"IN/OUT/ON/UNKNOWN = ";
- cout<<Get(TopAbs_IN)<<Get(TopAbs_OUT)<<Get(TopAbs_ON)<<Get(TopAbs_UNKNOWN);
- cout<<endl;
+ std::cout<<myname<<" : ";
+ std::cout<<"IN/OUT/ON/UNKNOWN = ";
+ std::cout<<Get(TopAbs_IN)<<Get(TopAbs_OUT)<<Get(TopAbs_ON)<<Get(TopAbs_UNKNOWN);
+ std::cout<<std::endl;
}
#endif
else if (o == TopAbs_INTERNAL) myState = TopAbs_IN;
else {
#ifdef OCCT_DEBUG
- cout<<"StateP2DReference o<>E,I"<<endl;
+ std::cout<<"StateP2DReference o<>E,I"<<std::endl;
#endif
break;
}
Standard_Real x=T.X();
Standard_Real y=T.Y();
- //-- cout<<"Param:"<<(c.IntervalFirst() + c.IntervalLast()) * param<<" U:"<<P.X()<<" V:"<<P.Y();
- //-- cout<<" tguv x:"<<x<<" , y:"<<y<<endl;
+ //-- std::cout<<"Param:"<<(c.IntervalFirst() + c.IntervalLast()) * param<<" U:"<<P.X()<<" V:"<<P.Y();
+ //-- std::cout<<" tguv x:"<<x<<" , y:"<<y<<std::endl;
if(Edge.Orientation() == TopAbs_FORWARD) {
BRepClass_Edge AEdge(OtherEdge,face);
FClassifier.Compare(AEdge,OtherEdge.Orientation());
if(FClassifier.ClosestIntersection()) {
- //-- cout<<" ---> Edge : "<<FClassifier.Parameter()<<endl;
+ //-- std::cout<<" ---> Edge : "<<FClassifier.Parameter()<<std::endl;
if(ParamInit > FClassifier.Parameter()) {
ParamInit = FClassifier.Parameter();
APointExist = Standard_True;
Standard_Boolean computerestriction = Standard_False;
s.Initialize(face,computerestriction);
s.D0(u,v,APoint);
- //-- cout<<" u="<<u<<" v="<<v<<" -> ("<<APoint.X()<<","<<APoint.Y()<<","<<APoint.Z()<<endl;
+ //-- std::cout<<" u="<<u<<" v="<<v<<" -> ("<<APoint.X()<<","<<APoint.Y()<<","<<APoint.Z()<<std::endl;
return(Standard_True);
}
}
#ifdef OCCT_DEBUG
if (TopOpeBRepTool_GettraceVC()) {
- cout<<"TopOpeBRepTool_ShapeTool PC on edge is ";
- if (isoU) cout<<"isoU f,l "<<Ufirst<<" "<<Ulast<<endl;
- else if (isoV) cout<<"isoV f,l "<<Vfirst<<" "<<Vlast<<endl;
- else cout<<"not isoU, not isoV"<<endl;
- cout<<"par = "<<par<<" --> "<<periopar<<endl;
+ std::cout<<"TopOpeBRepTool_ShapeTool PC on edge is ";
+ if (isoU) std::cout<<"isoU f,l "<<Ufirst<<" "<<Ulast<<std::endl;
+ else if (isoV) std::cout<<"isoV f,l "<<Vfirst<<" "<<Vlast<<std::endl;
+ else std::cout<<"not isoU, not isoV"<<std::endl;
+ std::cout<<"par = "<<par<<" --> "<<periopar<<std::endl;
}
#endif
// au meme point 3d.
#ifdef OCCT_DEBUG
if (TopOpeBRepTool_GettraceNYI()) {
- cout<<"TopOpeBRepTool_ShapeTool::SurfacesSameOriented surfaces non traitees : NYI";
- cout<<endl;
+ std::cout<<"TopOpeBRepTool_ShapeTool::SurfacesSameOriented surfaces non traitees : NYI";
+ std::cout<<std::endl;
}
#endif
}
// au meme point 3d.
#ifdef OCCT_DEBUG
if (TopOpeBRepTool_GettraceNYI()) {
- cout<<"TopOpeBRepTool_ShapeTool::CurvesSameOriented non lineaires : NYI";
- cout<<endl;
+ std::cout<<"TopOpeBRepTool_ShapeTool::CurvesSameOriented non lineaires : NYI";
+ std::cout<<std::endl;
}
#endif
}
Standard_Real par1 = BRep_Tool::Parameter(v1,E);
Standard_Real par2 = BRep_Tool::Parameter(v2,E);
#ifdef OCCT_DEBUG
-// if (par1>par2) cout<<"TopOpeBRepTool_TOOL::Vertices ERROR"<<endl;
+// if (par1>par2) std::cout<<"TopOpeBRepTool_TOOL::Vertices ERROR"<<std::endl;
#endif
Standard_Integer ivparSMA = (par1<par2) ? FORWARD : REVERSED;
Standard_Integer ivparSUP = (par1<par2) ? REVERSED : FORWARD;
}
}
#ifdef OCCT_DEBUG
- cout<<"FUN_tool_nggeomF NYI"<<endl;
+ std::cout<<"FUN_tool_nggeomF NYI"<<std::endl;
#endif
return Standard_False;
} //kpart
hbt->Clear();
#ifdef OCCT_DEBUG
if (TopOpeBRepTool_GettraceBOX()) {
- cout<<endl<<"TOOLBOX : Prepare"<<endl;
+ std::cout<<std::endl<<"TOOLBOX : Prepare"<<std::endl;
}
#endif
}
if (TopOpeBRepTool_GettraceBOX()) {
Standard_Integer i = hbt->Index(S);
Standard_Integer n = hbt->Extent();
- cout<<"TOOLBOX : "<<i<<"/"<<n<<endl;
+ std::cout<<"TOOLBOX : "<<i<<"/"<<n<<std::endl;
}
#endif
return b;
{
switch (Or) {
case TopAbs_FORWARD:
- cout<<"FOR";break;
+ std::cout<<"FOR";break;
case TopAbs_REVERSED:
- cout<<"REV";break;
+ std::cout<<"REV";break;
case TopAbs_INTERNAL:
- cout<<"INT";break;
+ std::cout<<"INT";break;
case TopAbs_EXTERNAL:
- cout<<"EXT";break;
+ std::cout<<"EXT";break;
}
}
#endif
Standard_EXPORT void FUN_tool_trace(const Standard_Integer Index)
{
- if (Index == 1) cout <<"FORWARD ";
- if (Index == 2) cout <<"REVERSED ";
+ if (Index == 1) std::cout <<"FORWARD ";
+ if (Index == 2) std::cout <<"REVERSED ";
}
Standard_EXPORT void FUN_tool_trace(const gp_Pnt2d p2d)
{
- cout<<" = ("<<p2d.X()<<" "<<p2d.Y()<<")"<<endl;
+ std::cout<<" = ("<<p2d.X()<<" "<<p2d.Y()<<")"<<std::endl;
}
gp_Mat M = T.VectorialPart();
if (!compact) OS << "( ";
- OS << setw(15) << M(1,1) << " ";
- OS << setw(15) << M(1,2) << " ";
- OS << setw(15) << M(1,3) << " ";
- OS << setw(15) << V.Coord(1) << " ";
+ OS << std::setw(15) << M(1,1) << " ";
+ OS << std::setw(15) << M(1,2) << " ";
+ OS << std::setw(15) << M(1,3) << " ";
+ OS << std::setw(15) << V.Coord(1) << " ";
if (!compact) OS << " )";
OS << "\n";
if (!compact) OS << "( ";
- OS << setw(15) << M(2,1) << " ";
- OS << setw(15) << M(2,2) << " ";
- OS << setw(15) << M(2,3) << " ";
- OS << setw(15) << V.Coord(2) << " ";
+ OS << std::setw(15) << M(2,1) << " ";
+ OS << std::setw(15) << M(2,2) << " ";
+ OS << std::setw(15) << M(2,3) << " ";
+ OS << std::setw(15) << V.Coord(2) << " ";
if (!compact) OS << " )";
OS << "\n";
if (!compact) OS << "( ";
- OS << setw(15) << M(3,1) << " ";
- OS << setw(15) << M(3,2) << " ";
- OS << setw(15) << M(3,3) << " ";
- OS << setw(15) << V.Coord(3) << " ";
+ OS << std::setw(15) << M(3,1) << " ";
+ OS << std::setw(15) << M(3,2) << " ";
+ OS << std::setw(15) << M(3,3) << " ";
+ OS << std::setw(15) << V.Coord(3) << " ";
if (!compact) OS << " )";
OS << "\n";
}
for (i = 1; i <= nbLoc; i++) {
TopLoc_Location L = myMap(i);
- OS << setw(5) << i << " : \n";
+ OS << std::setw(5) << i << " : \n";
TopLoc_Location L2 = L.NextLocation();
Standard_Boolean simple = L2.IsIdentity();
IS >> buffer;
if (strcmp(buffer,"Locations")) {
- cout << "Not a location table "<<endl;
+ std::cout << "Not a location table "<<std::endl;
return;
}
} while ( ! IS.fail() && strcmp(vers,Version) && strcmp(vers,Version2) );
if (IS.fail()) {
- cout << "File was not written with this version of the topology"<<endl;
+ std::cout << "File was not written with this version of the topology"<<std::endl;
IS.imbue (anOldLocale);
return;
}
//OCC19559
if (!myProgress.IsNull() && myProgress->UserBreak()) {
- cout << "Interrupted by the user"<<endl;
+ std::cout << "Interrupted by the user"<<std::endl;
// on remet le LC_NUMERIC a la precedente valeur
IS.imbue (anOldLocale);
return;
}
//OCC19559
if (!myProgress.IsNull() && myProgress->UserBreak()) {
- cout << "Interrupted by the user"<<endl;
+ std::cout << "Interrupted by the user"<<std::endl;
// on remet le LC_NUMERIC a la precedente valeur
IS.imbue (anOldLocale);
return;
char buffer[255];
IS >> buffer;
if (strcmp(buffer,"TShapes")) {
- cout << "Not a TShape table"<<endl;
+ std::cout << "Not a TShape table"<<std::endl;
// on remet le LC_NUMERIC a la precedente valeur
IS.imbue (anOldLocale);
return;
}
else {
// MakeFace Error Handling : warning only
-// cout << "Warning : one Face has not been mapped" << endl;
+// std::cout << "Warning : one Face has not been mapped" << std::endl;
// Handle(TransferBRep_ShapeMapper) errShape =
// new TransferBRep_ShapeMapper(Face);
// FP->AddWarning(errShape, " a Face from a Shell has not been mapped");
aCShell = new StepShape_ClosedShell;
aCShell->Init (aOShell->Name(),aOShell->CfsFaces());
#ifdef OCCT_DEBUG
- cout<<"Warning: MakeBRepWithVoids: Open shell in the solid; treated as closed"<<endl;
+ std::cout<<"Warning: MakeBRepWithVoids: Open shell in the solid; treated as closed"<<std::endl;
#endif
}
}
S.Append(aCShell);
}
#ifdef OCCT_DEBUG
- else cout<<"*** MakeBRepWithVoids : Shell not mapped"<<endl;
+ else std::cout<<"*** MakeBRepWithVoids : Shell not mapped"<<std::endl;
#endif
}
#ifdef OCCT_DEBUG
- else cout << "Shell not mapped" << endl;
+ else std::cout << "Shell not mapped" << std::endl;
#endif
/* //:d7
if (It.Value().Closed()) {
}
else {
#ifdef OCCT_DEBUG
- cout << "Shell not mapped" << endl;
+ std::cout << "Shell not mapped" << std::endl;
#endif
done = Standard_False;
}
// -------------------------
#ifdef OCCT_DEBUG
- cout << "Warning: TopoDSToStep_MakeStepEdge: edge without 3d curve; creating..." << endl;
+ std::cout << "Warning: TopoDSToStep_MakeStepEdge: edge without 3d curve; creating..." << std::endl;
#endif
if ((SA.GetType() == GeomAbs_Plane) &&
(CA.GetType() == GeomAbs_Line)) {
if (theOuterWire.IsNull()) {
#ifdef OCCT_DEBUG
- cout<< "Warning : Face without wire not mapped";
+ std::cout<< "Warning : Face without wire not mapped";
#endif
FP->AddWarning(errShape, " Face without wire not mapped");
myError = TopoDSToStep_InfiniteFace;
if (MkWire.IsDone()) Loop = Handle(StepShape_Loop)::DownCast(MkWire.Value());
else {
#ifdef OCCT_DEBUG
- cout << TopoDSToStep::DecodeWireError(MkWire.Error())->String() << endl;
+ std::cout << TopoDSToStep::DecodeWireError(MkWire.Error())->String() << std::endl;
#endif
FP->AddWarning(errShape, " a Wire not mapped");
continue;
//#11 CurrentEdge = ItW.Current();
//if (ItW.Current().Orientation() != ItW.Orientation())
- //cout << "DEBUG : Attention WireExplorer Orientation" << endl;
+ //std::cout << "DEBUG : Attention WireExplorer Orientation" << std::endl;
// ---------------------------------
// --- Is the edge Degenerated ? ---
void TopoDSToStep_Tool::SetCurrentShell(const TopoDS_Shell& S)
{
#ifdef OCCT_DEBUG
- cout << "Process a Shell which is ";
+ std::cout << "Process a Shell which is ";
switch(S.Orientation())
{
case TopAbs_FORWARD:
{
- cout << "FORWARD in the Solid;" << endl;
+ std::cout << "FORWARD in the Solid;" << std::endl;
break;
}
case TopAbs_REVERSED:
{
- cout << "REVERSED in the Solid;" << endl;
+ std::cout << "REVERSED in the Solid;" << std::endl;
break;
}
default:
{
- cout << "INTERNAL OR EXTERNAL SHELL" << endl;
+ std::cout << "INTERNAL OR EXTERNAL SHELL" << std::endl;
}
}
#endif
void TopoDSToStep_Tool::SetCurrentFace(const TopoDS_Face& F)
{
#ifdef OCCT_DEBUG
- cout << " Process a Face which is ";
+ std::cout << " Process a Face which is ";
switch(F.Orientation())
{
case TopAbs_FORWARD:
{
- cout << "FORWARD in the Shell;" << endl;
+ std::cout << "FORWARD in the Shell;" << std::endl;
break;
}
case TopAbs_REVERSED:
{
- cout << "REVERSED in the Shell;" << endl;
+ std::cout << "REVERSED in the Shell;" << std::endl;
break;
}
default:
{
- cout << "INTERNAL OR EXTERNAL FACE" << endl;
+ std::cout << "INTERNAL OR EXTERNAL FACE" << std::endl;
}
}
#endif
void TopoDSToStep_Tool::SetCurrentWire(const TopoDS_Wire& W)
{
#ifdef OCCT_DEBUG
- cout << " Process a Wire which is ";
+ std::cout << " Process a Wire which is ";
switch(W.Orientation())
{
case TopAbs_FORWARD:
{
- cout << "FORWARD in the Face" << endl;
+ std::cout << "FORWARD in the Face" << std::endl;
break;
}
case TopAbs_REVERSED:
{
- cout << "REVERSED in the Face;" << endl;
+ std::cout << "REVERSED in the Face;" << std::endl;
break;
}
default:
{
- cout << "INTERNAL OR EXTERNAL Wire" << endl;
+ std::cout << "INTERNAL OR EXTERNAL Wire" << std::endl;
}
}
#endif
void TopoDSToStep_Tool::SetCurrentEdge(const TopoDS_Edge& E)
{
#ifdef OCCT_DEBUG
- cout << " Process Edge which is ";
+ std::cout << " Process Edge which is ";
switch(E.Orientation())
{
case TopAbs_FORWARD:
{
- cout << "FORWARD in the Wire" << endl;
+ std::cout << "FORWARD in the Wire" << std::endl;
break;
}
case TopAbs_REVERSED:
{
- cout << "REVERSED in the Wire" << endl;
+ std::cout << "REVERSED in the Wire" << std::endl;
break;
}
default:
{
- cout << "INTERNAL OR EXTERNAL EDGE" << endl;
+ std::cout << "INTERNAL OR EXTERNAL EDGE" << std::endl;
}
}
#endif
if (theEdge.Orientation() == TopAbs_INTERNAL ||
theEdge.Orientation() == TopAbs_EXTERNAL ) {
#ifdef OCCT_DEBUG
- cout <<"Warning: TopoDSToStep_WireframeBuilder::GetTrimmedCurveFromEdge: Edge is internal or external; dropped" << endl;
+ std::cout <<"Warning: TopoDSToStep_WireframeBuilder::GetTrimmedCurveFromEdge: Edge is internal or external; dropped" << std::endl;
#endif
return Standard_False;
}
// (anEdge.Orientation() == TopAbs_FORWARD));
}
#ifdef OCCT_DEBUG
- else cout << "Warning: TopoDSToStep_WireframeBuilder::GetTrimmedCurveFromEdge: Null-length curve not mapped" << endl;
+ else std::cout << "Warning: TopoDSToStep_WireframeBuilder::GetTrimmedCurveFromEdge: Null-length curve not mapped" << std::endl;
#endif
}
else {
if (GetTrimmedCurveFromFace(curFace, aMap, aCurveList)) result = Standard_True;
#ifdef OCCT_DEBUG
if(!result) {
- cout << "ERROR extracting trimmedCurve from Face" << endl;
- //BRepTools::Dump(curFace,cout); cout<<endl;
+ std::cout << "ERROR extracting trimmedCurve from Face" << std::endl;
+ //BRepTools::Dump(curFace,std::cout); std::cout<<std::endl;
}
#endif
}
{
S<<"\n*******************************************************************\n";
if (mode == 1) { // Statistiques de base
- S << "******** Basic Statistics ********"<<endl;
+ S << "******** Basic Statistics ********"<<Message_EndLine;
Standard_Integer nbr = 0, nbe = 0, nbw = 0;
Standard_Integer i, max = NbMapped(), nbroots = NbRoots();
- S << "**** Nb Final Results : "<<nbroots<<endl;
+ S << "**** Nb Final Results : "<<nbroots<<Message_EndLine;
for (i = 1; i <= max; i ++) {
const Handle(Transfer_Binder)& binder = MapItem(i);
S<<"**** Warnings on : "<<Interface_MSG::Blanks(nbw,4)<<nbw<<" Entities\n";
S<<"*******************************************************************";
}
- S<<endl;
+ S<<Message_EndLine;
}
themessenger << amsg.Value();
if (amsg.IsEdited()&&thetrace>2)
themessenger << " [from: " << amsg.Original() << "]";
- themessenger << endl;
+ themessenger << Message_EndLine;
}
}
StartTrace (binder,start,thelevel,1);
themessenger << " --> Fail : " << mess;
if (orig[0] != '\0'&&thetrace>2) themessenger << " [from: " << orig << "]";
- themessenger << endl;
+ themessenger << Message_EndLine;
}
}
StartTrace (binder,start,thelevel,2);
themessenger << " --> Warning : " << mess;
if (orig[0] != '\0'&&thetrace>2) themessenger << " [from: " << orig << "]";
- themessenger << endl;
+ themessenger << Message_EndLine;
}
}
break;
case Transfer_StatusDone : // Transfert deja fait
//#ifdef TRANSLOG
- themessenger << " .. and Transfer done" << endl;
+ themessenger << " .. and Transfer done" << Message_EndLine;
//#endif
// if (former->HasResult()) former->SetAlreadyUsed();
return former;
return former;
case Transfer_StatusError : // pas propre, ca ...
if (thetrace) {
- themessenger << " *** Transfer in Error Status :" << endl;
+ themessenger << " *** Transfer in Error Status :" << Message_EndLine;
StartTrace (former, start, thelevel,0);
// (*themessenger->Out()) << flush;
}
throw Transfer_TransferFailure("TransferProcess : Transfer in Error Status");
case Transfer_StatusLoop : // la boucle est bouclee ...
if (thetrace) {
- themessenger << " *** Transfer Head of Dead Loop :" << endl;
+ themessenger << " *** Transfer Head of Dead Loop :" << Message_EndLine;
StartTrace (former, start, thelevel,0);
// (*themessenger->Out()) << flush;
}
throw Transfer_TransferDeadLoop("TransferProcess : Transfer at Head of a Dead Loop");
}
#ifdef TRANSLOG
- cout << "Transfer,level "<<thelevel<<Message_Flush;
+ std::cout << "Transfer,level "<<thelevel<<Message_Flush;
#endif
//}
former->SetStatusExec(Transfer_StatusRun);
}
#ifdef TRANSLOG
- cout << " GO .." << endl;
+ std::cout << " GO .." << std::endl;
#endif
Handle(Transfer_Binder) binder;
// ... Exceptions a Rattraper : elles ne se ressemblent pas toutes ... !
catch (Transfer_TransferDeadLoop const&) {
if (binder.IsNull()) {
- themessenger << " *** Dead Loop with no Result" << endl;
+ themessenger << " *** Dead Loop with no Result" << Message_EndLine;
if (thetrace) StartTrace (binder, start, thelevel-1,0);
binder = new Transfer_VoidBinder;
Bind (start,binder); newbind = Standard_True;
} else if (binder->StatusExec() == Transfer_StatusLoop) {
if (thetrace) {
- themessenger << " *** Dead Loop : Finding head of Loop :" << endl;
+ themessenger << " *** Dead Loop : Finding head of Loop :" << Message_EndLine;
StartTrace (binder, start, thelevel-1,0);
}
else StartTrace (binder, start,thelevel-1,4);
// Autrement dit, on change d exception (on est sorti de la boucle)
} else {
if (thetrace) {
- themessenger << " *** Dead Loop : Actor in Loop :" << endl;
+ themessenger << " *** Dead Loop : Actor in Loop :" << Message_EndLine;
StartTrace (binder, start, thelevel-1,0);
}
}
}
catch (Standard_Failure const& anException) {
if (binder.IsNull()) {
- themessenger << " *** Exception Raised with no Result" << endl;
+ themessenger << " *** Exception Raised with no Result" << Message_EndLine;
binder = new Transfer_VoidBinder;
Bind (start,binder); newbind = Standard_True;
}
binder->AddFail("Transfer stopped by exception raising");
if (thetrace) {
- themessenger << " *** Raised : " << anException.GetMessageString() << endl;
+ themessenger << " *** Raised : " << anException.GetMessageString() << Message_EndLine;
StartTrace (binder, start, thelevel-1,4);
}
thelevel = oldlev;
else Rebind(start,binder);
// (du coup, <thelastbnd> vaut <binder>)
#ifdef TRANSLOG
- cout << " ... OK" << endl;
+ std::cout << " ... OK" << std::endl;
#endif
}
else {
}
//old if (isused) sout << " -- (Already Used in another Transfer)";
}
- themessenger << endl;
+ themessenger << Message_EndLine;
}
{
S<<"\n*******************************************************************\n";
// if (mode == 1) { // Statistiques de base
- S << "******** Basic Statistics ********"<<endl;
+ S << "******** Basic Statistics ********"<<Message_EndLine;
Handle(Interface_InterfaceModel) model = Model();
- if (model.IsNull()) S<<"**** Model unknown"<<endl;
+ if (model.IsNull()) S<<"**** Model unknown"<<Message_EndLine;
else
- S<<"**** Nb Entities : "<<model->NbEntities()<<endl;
+ S<<"**** Nb Entities : "<<model->NbEntities()<<Message_EndLine;
Standard_Integer nbr = 0, nbe = 0, nbw = 0;
Standard_Integer i, max = NbMapped(), nbroots = NbRoots();
- S << "**** Nb Final Results : "<<nbroots<<endl;
+ S << "**** Nb Final Results : "<<nbroots<<Message_EndLine;
for (i = 1; i <= max; i ++) {
const Handle(Transfer_Binder)& binder = MapItem(i);
S<<"**** Warnings on : "<<Interface_MSG::Blanks(nbw,4)<<nbw<<" Entities\n";
S<<"*******************************************************************";
// }
- S<<endl;
+ S<<Message_EndLine;
}
Handle(Message_Messenger) sout = theProc->Messenger();
sout<<"-- Transfer(Read) : ";
theModel->Print (ent,sout);
- sout<<endl;
+ sout<<Message_EndLine;
}
TP.Transfer(ent);
theProc->SetRoot(ent);
Handle(Message_Messenger) sout = theProc->Messenger();
if (theProc->TraceLevel() > 1)
- sout<<"-- Transfer(Read-List) : "<<nb<<" Items"<<endl;
+ sout<<"-- Transfer(Read-List) : "<<nb<<" Items"<<Message_EndLine;
for (i = 1; i <= nb; i ++) {
Handle(Standard_Transient) ent = list->Value(i);
if (theModel->Number(ent) == 0) continue;
{
sout<<"-- Transfer(Read-List), Item "<<i<<" : ";
theModel->Print (ent,sout);
- sout<<endl;
+ sout<<Message_EndLine;
}
TP.Transfer(ent);
theProc->SetRoot(ent);
{
if(unitsdictionary.IsNull())
{
-// cout<<"Allocation du dictionnaire"<<endl;
+// std::cout<<"Allocation du dictionnaire"<<std::endl;
unitsdictionary = new Units_UnitsDictionary();
-// cout<<"Creation du dictionnaire"<<endl;
+// std::cout<<"Creation du dictionnaire"<<std::endl;
unitsdictionary->Creates();
}
else if(amode)
{
-// cout<<"Creation du dictionnaire"<<endl;
+// std::cout<<"Creation du dictionnaire"<<std::endl;
unitsdictionary->Creates();
}
return unitsdictionary;
}
#ifdef OCCT_DEBUG
- cout<<"Warning: BAD Quantity = Units::Quantity(quantity('" << aquantity << "'))" << endl;
+ std::cout<<"Warning: BAD Quantity = Units::Quantity(quantity('" << aquantity << "'))" << std::endl;
#endif
return nullquantity;
}
}
#ifdef OCCT_DEBUG
- cout<<"Warning: BAD Quantity = Units::Quantity(unit('" << symbol << "'))" << endl;
+ std::cout<<"Warning: BAD Quantity = Units::Quantity(unit('" << symbol << "'))" << std::endl;
#endif
return NULL;
}
Handle(Units_Lexicon) Units::LexiconUnits(const Standard_Boolean amode)
{
if(lexiconunits.IsNull()) {
-// cout<<"Allocation du lexique d'unites"<<endl;
+// std::cout<<"Allocation du lexique d'unites"<<std::endl;
lexiconunits = new Units_UnitsLexicon();
-// cout<<"Creation du lexique d'unites"<<endl;
+// std::cout<<"Creation du lexique d'unites"<<std::endl;
lexiconunits->Creates(amode);
}
return lexiconunits;
Handle(Units_Lexicon) Units::LexiconFormula()
{
if(lexiconformula.IsNull()) {
-// cout<<"Allocation du lexique d'expression"<<endl;
+// std::cout<<"Allocation du lexique d'expression"<<std::endl;
lexiconformula = new Units_Lexicon();
-// cout<<"Creation du lexique d'expression"<<endl;
+// std::cout<<"Creation du lexique d'expression"<<std::endl;
lexiconformula->Creates();
}
return lexiconformula;
Units_UnitSentence unitsentence(aUnit);
if(!unitsentence.IsDone()) {
#ifdef OCCT_DEBUG
- cout<<"can not convert - incorrect unit => return 0.0"<<endl;
+ std::cout<<"can not convert - incorrect unit => return 0.0"<<std::endl;
#endif
return 0.0;
}
Units_UnitSentence unitsentence(aUnit);
if(!unitsentence.IsDone()) {
#ifdef OCCT_DEBUG
- cout<<"Warning: can not convert - incorrect unit => return 0.0"<<endl;
+ std::cout<<"Warning: can not convert - incorrect unit => return 0.0"<<std::endl;
#endif
return 0.0;
}
void Units_Dimensions::Dump(const Standard_Integer ashift) const
{
int i;
- for(i=0; i<ashift; i++)cout<<" ";
- cout<<" with the physical dimensions : "<<endl;
- for(i=0; i<ashift; i++)cout<<" ";
- cout<<" mass : "<<themass<<endl;
- for(i=0; i<ashift; i++)cout<<" ";
- cout<<" length : "<<thelength<<endl;
- for(i=0; i<ashift; i++)cout<<" ";
- cout<<" time : "<<thetime<<endl;
- for(i=0; i<ashift; i++)cout<<" ";
- cout<<" electric current : "<<theelectriccurrent<<endl;
- for(i=0; i<ashift; i++)cout<<" ";
- cout<<" thermodynamic temperature : "<<thethermodynamictemperature<<endl;
- for(i=0; i<ashift; i++)cout<<" ";
- cout<<" amount of substance : "<<theamountofsubstance<<endl;
- for(i=0; i<ashift; i++)cout<<" ";
- cout<<" luminous intensity : "<<theluminousintensity<<endl;
- for(i=0; i<ashift; i++)cout<<" ";
- cout<<" plane angle : "<<theplaneangle<<endl;
- for(i=0; i<ashift; i++)cout<<" ";
- cout<<" solid angle : "<<thesolidangle<<endl;
+ for(i=0; i<ashift; i++)std::cout<<" ";
+ std::cout<<" with the physical dimensions : "<<std::endl;
+ for(i=0; i<ashift; i++)std::cout<<" ";
+ std::cout<<" mass : "<<themass<<std::endl;
+ for(i=0; i<ashift; i++)std::cout<<" ";
+ std::cout<<" length : "<<thelength<<std::endl;
+ for(i=0; i<ashift; i++)std::cout<<" ";
+ std::cout<<" time : "<<thetime<<std::endl;
+ for(i=0; i<ashift; i++)std::cout<<" ";
+ std::cout<<" electric current : "<<theelectriccurrent<<std::endl;
+ for(i=0; i<ashift; i++)std::cout<<" ";
+ std::cout<<" thermodynamic temperature : "<<thethermodynamictemperature<<std::endl;
+ for(i=0; i<ashift; i++)std::cout<<" ";
+ std::cout<<" amount of substance : "<<theamountofsubstance<<std::endl;
+ for(i=0; i<ashift; i++)std::cout<<" ";
+ std::cout<<" luminous intensity : "<<theluminousintensity<<std::endl;
+ for(i=0; i<ashift; i++)std::cout<<" ";
+ std::cout<<" plane angle : "<<theplaneangle<<std::endl;
+ for(i=0; i<ashift; i++)std::cout<<" ";
+ std::cout<<" solid angle : "<<thesolidangle<<std::endl;
}
//=======================================================================
}
#ifdef OCCT_DEBUG
- cout<<" La grandeur physique "<<aquantity<<" n'existe pas."<<endl;
+ std::cout<<" La grandeur physique "<<aquantity<<" n'existe pas."<<std::endl;
#endif
}
}
#ifdef OCCT_DEBUG
- cout<<" La grandeur physique "<<aquantity<<" n'existe pas."<<endl;
+ std::cout<<" La grandeur physique "<<aquantity<<" n'existe pas."<<std::endl;
#endif
}
inline void Units_Lexicon::Dump() const
{
Standard_Integer index;
- cout<<" LEXICON : "<<endl;
+ std::cout<<" LEXICON : "<<std::endl;
for(index=1;index<=thesequenceoftokens->Length();index++)
thesequenceoftokens->Value(index)->Dump(1,0);
}
Units_UnitSentence unit(aunit);
if(!unit.IsDone()) {
#ifdef OCCT_DEBUG
- cout<<"can not create Units_Measurement - incorrect unit"<<endl;
+ std::cout<<"can not create Units_Measurement - incorrect unit"<<std::endl;
#endif
myHasToken = Standard_False;
}
Handle(Units_Token) oldtoken = thetoken;
Units_UnitSentence newunit(aunit);
if(!newunit.IsDone()) {
- cout<<"Units_Measurement: can not convert - incorrect unit => result is not correct"<<endl;
+ std::cout<<"Units_Measurement: can not convert - incorrect unit => result is not correct"<<std::endl;
return;
}
Handle(Units_Token) newtoken=newunit.Evaluate();
}
#ifdef OCCT_DEBUG
else {
- cout<<" The units don't have the same physical dimensions"<<endl;
+ std::cout<<" The units don't have the same physical dimensions"<<std::endl;
}
#endif
}
void Units_Measurement::Dump() const
{
- cout<<" Measurement : "<<themeasurement<<endl;
+ std::cout<<" Measurement : "<<themeasurement<<std::endl;
thetoken->Dump(1,1);
}
const Standard_Integer alevel) const
{
Standard_Integer index;
- cout<<endl;
- for(int i=0; i<ashift; i++)cout<<" ";
- cout<<Name()<<endl;
+ std::cout<<std::endl;
+ for(int i=0; i<ashift; i++)std::cout<<" ";
+ std::cout<<Name()<<std::endl;
// thedimensions->Dump(ashift+1);
if(alevel > 0)
{
// unknown expression - not create sentene
thesequenceoftokens->Clear();
#ifdef OCCT_DEBUG
- cout<<"Warning: can not create correct sentence from string: "<<astring<<endl;
+ std::cout<<"Warning: can not create correct sentence from string: "<<astring<<std::endl;
#endif
return;
}
// incorrect situation
thesequenceoftokens->Clear();
#ifdef OCCT_DEBUG
- cout<<"Warning: can not create correct sentence from string: "<<astring<<endl;
+ std::cout<<"Warning: can not create correct sentence from string: "<<astring<<std::endl;
#endif
return;
}
//=======================================================================
static Handle(Units_Token) CalculateLocal(const Handle(Units_TokensSequence)& aSeq)
{
- //cout<<endl;
+ //std::cout<<std::endl;
//for(int index=1; index<=aSeq->Length(); index++) {
// Handle(Units_Token) tok = aSeq->Value(index);
- // cout<<tok->Word()<<" ";
+ // std::cout<<tok->Word()<<" ";
//}
- //cout<<endl;
+ //std::cout<<std::endl;
Handle(Units_Token) tok1,tok2;
Standard_Integer i,j;
}
//if(IPrint==1) {
- // cout<<endl;
+ // std::cout<<std::endl;
// for(index=1; index<=thesequenceoftokens->Length(); index++) {
// Handle(Units_Token) tok = thesequenceoftokens->Value(index);
- // cout<<tok->Word()<<" ";
+ // std::cout<<tok->Word()<<" ";
// }
- // cout<<endl;
+ // std::cout<<std::endl;
// for(index=1; index<=thesequenceoftokens->Length(); index++) {
- // cout<<level[index-1]<<" ";
+ // std::cout<<level[index-1]<<" ";
// }
- // cout<<endl;
+ // std::cout<<std::endl;
//}
if(curlevel) {
- cout<<" Incorrect number of brackets"<<endl;
+ std::cout<<" Incorrect number of brackets"<<std::endl;
return new Units_Token();
}
rtoken = thesequenceoftokens->Value(1)->Creates();
if( rtoken->Value()==0. ) {
- cout << "*BAD token value from unit '" << rtoken->Word() << "'" << endl;
+ std::cout << "*BAD token value from unit '" << rtoken->Word() << "'" << std::endl;
rtoken->Value(1.);
}
*/ // end old variant
inline void Units_Sentence::Dump() const
{
Standard_Integer index;
- cout<<" UNIT SENTENCE with : "<<endl;
+ std::cout<<" UNIT SENTENCE with : "<<std::endl;
for(index=1;index<=thesequenceoftokens->Length();index++)
thesequenceoftokens->Value(index)->Dump(1,1);
}
const Standard_Integer alevel) const
{
Units_Token::Dump(ashift,alevel);
- for(int i=0; i<ashift; i++)cout<<" ";
- cout<<" move : "<<themove<<endl;
+ for(int i=0; i<ashift; i++)std::cout<<" ";
+ std::cout<<" move : "<<themove<<std::endl;
}
TCollection_AsciiString string;
// int i;
-// for(i=0; i<ashift; i++)cout<<" ";
+// for(i=0; i<ashift; i++)std::cout<<" ";
for(index=1;index<=thesymbolssequence->Length();index++)
{
string = thesymbolssequence->Value(index)->String();
- if(index != 1) cout << " or " ;
- cout<<"\""<<string.ToCString()<<"\"";
+ if(index != 1) std::cout << " or " ;
+ std::cout<<"\""<<string.ToCString()<<"\"";
}
- cout<< " Name: " <<Name().ToCString()<<" (= *" << thevalue << " SI + " << themove << ")"<<endl;
+ std::cout<< " Name: " <<Name().ToCString()<<" (= *" << thevalue << " SI + " << themove << ")"<<std::endl;
}
{
TCollection_AsciiString string = Mean();
if(string.Search(amean) != -1)
- cout<<Word()<<" encountered twice with the same signification : "<<amean<<endl;
+ std::cout<<Word()<<" encountered twice with the same signification : "<<amean<<std::endl;
string = string + amean;
themean = string;
}
{
if(fabs(atoken->Value())<1.e-40) {
#ifdef OCCT_DEBUG
- cout<<"Warning: division on token with value=0 => return initial token."<<endl;
+ std::cout<<"Warning: division on token with value=0 => return initial token."<<std::endl;
#endif
return this;
}
TCollection_AsciiString word = Word();
TCollection_AsciiString mean = Mean();
- for(i=0; i<ashift; i++)cout<<" ";
- cout << "Units_Token::Dump of " << this << endl;
- for(i=0; i<ashift; i++)cout<<" ";
- cout<<word.ToCString()<<endl;
- for(i=0; i<ashift; i++)cout<<" ";
- cout<<" value : "<<thevalue<<endl;
- for(i=0; i<ashift; i++)cout<<" ";
- cout<<" mean : "<<mean.ToCString()<<endl;
+ for(i=0; i<ashift; i++)std::cout<<" ";
+ std::cout << "Units_Token::Dump of " << this << std::endl;
+ for(i=0; i<ashift; i++)std::cout<<" ";
+ std::cout<<word.ToCString()<<std::endl;
+ for(i=0; i<ashift; i++)std::cout<<" ";
+ std::cout<<" value : "<<thevalue<<std::endl;
+ for(i=0; i<ashift; i++)std::cout<<" ";
+ std::cout<<" mean : "<<mean.ToCString()<<std::endl;
if(alevel)thedimensions->Dump(ashift);
}
TCollection_AsciiString string;
// int i;
-// for(i=0; i<ashift; i++)cout<<" ";
+// for(i=0; i<ashift; i++)std::cout<<" ";
for(index=1;index<=thesymbolssequence->Length();index++)
{
string = thesymbolssequence->Value(index)->String();
- if(index != 1) cout << " or " ;
- cout<<"\""<<string.ToCString()<<"\"";
+ if(index != 1) std::cout << " or " ;
+ std::cout<<"\""<<string.ToCString()<<"\"";
}
- cout<< " Name: " <<Name().ToCString()<<" (= " << thevalue << " SI)" <<endl;
+ std::cout<< " Name: " <<Name().ToCString()<<" (= " << thevalue << " SI)" <<std::endl;
}
//=======================================================================
currenttoken = sequence->Value(1);
- //cout<<endl;
+ //std::cout<<std::endl;
//for(int ind=1; ind<=sequence->Length(); ind++) {
// Handle(Units_Token) tok = sequence->Value(ind);
- // cout<<tok->Word()<<" ";
+ // std::cout<<tok->Word()<<" ";
//}
- //cout<<endl;
+ //std::cout<<std::endl;
//for(ind=1; ind<=sequence->Length(); ind++) {
// Handle(Units_Token) tok = sequence->Value(ind);
- // cout<<tok->Mean()<<" ";
+ // std::cout<<tok->Mean()<<" ";
//}
- //cout<<endl;
+ //std::cout<<std::endl;
for(index=2;index<=sequence->Length();index++) {
previoustoken = currenttoken;
return unitssequence->Value(1)->SymbolsSequence()->Value(1)->String();
else {
#ifdef OCCT_DEBUG
- cout<<" Pas d'unite active pour "<<aquantity<<endl;
+ std::cout<<" Pas d'unite active pour "<<aquantity<<std::endl;
#endif
return "";
}
}
}
- cout<<" La grandeur physique "<<aquantity<<" n'existe pas."<<endl;
+ std::cout<<" La grandeur physique "<<aquantity<<" n'existe pas."<<std::endl;
return "";
}
case 1:
default:
Units_Explorer explorer(this);
- cout<<" UNITS DICTIONARY : "<<endl;
+ std::cout<<" UNITS DICTIONARY : "<<std::endl;
for(;explorer.MoreQuantity();explorer.NextQuantity())
{
- cout<<explorer.Quantity()<<endl;;
+ std::cout<<explorer.Quantity()<<std::endl;;
for(; explorer.MoreUnit(); explorer.NextUnit())
- cout<<" "<<explorer.Unit()<<endl;
+ std::cout<<" "<<explorer.Unit()<<std::endl;
}
inline void Units_UnitsLexicon::Dump() const
{
- cout<<" UNITSLEXICON : "<<endl;
+ std::cout<<" UNITSLEXICON : "<<std::endl;
Units_Lexicon::Dump();
}
Units_UnitSentence unitsentence(aunit);
if(!unitsentence.IsDone()) {
- cout<<"Units_UnitsSystem::Specify : incorrect unit"<<endl;
+ std::cout<<"Units_UnitsSystem::Specify : incorrect unit"<<std::endl;
return;
}
Handle(Units_Token) token = unitsentence.Evaluate();
// Units_NoSuchType_Raise_if(quantity.IsNull(),aquantity);
if( quantity.IsNull() ) {
- cout<<"Warning: in Units_UnitsSystem : Units_NoSuchType '" << aquantity << "'" << endl;
+ std::cout<<"Warning: in Units_UnitsSystem : Units_NoSuchType '" << aquantity << "'" << std::endl;
return;
}
return unitssequence->Value(index2)->SymbolsSequence()->Value(1)->String();
else {
#ifdef OCCT_DEBUG
- cout<<" Pas d'unite active pour "<<aquantity<<endl;
+ std::cout<<" Pas d'unite active pour "<<aquantity<<std::endl;
#endif
return TCollection_AsciiString() ;
}
{
Units_UnitSentence unitsentence(aunit);
if(!unitsentence.IsDone()) {
- cout<<"Units_UnitsSystem::ConvertValueToUserSystem : incorrect unit => return 0"<<endl;
+ std::cout<<"Units_UnitsSystem::ConvertValueToUserSystem : incorrect unit => return 0"<<std::endl;
return 0.;
}
return ConvertSIValueToUserSystem(aquantity,avalue*(unitsentence.Evaluate())->Value());
Handle(Standard_Transient) transient = This();
Handle(Units_UnitsSystem) unitssystem = Handle(Units_UnitsSystem)::DownCast (transient);
Units_Explorer explorer(unitssystem);
- cout<<" UNITSSYSTEM : "<<endl;
+ std::cout<<" UNITSSYSTEM : "<<std::endl;
for(; explorer.MoreQuantity(); explorer.NextQuantity()) {
- cout<<explorer.Quantity()<<endl;
+ std::cout<<explorer.Quantity()<<std::endl;
for(; explorer.MoreUnit(); explorer.NextUnit())
- cout<<" "<<explorer.Unit()<<endl;
+ std::cout<<" "<<explorer.Unit()<<std::endl;
}
}
}
#ifdef OCCT_DEBUG
else {
- cout <<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << endl;
+ std::cout <<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << std::endl;
}
#endif
}
#ifdef OCCT_DEBUG
else {
- cout<<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << endl;
+ std::cout<<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << std::endl;
}
#endif
}
#ifdef OCCT_DEBUG
else {
- cout<<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << endl;
+ std::cout<<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << std::endl;
}
#endif
}
#ifdef OCCT_DEBUG
else {
- cout<<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << endl;
+ std::cout<<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << std::endl;
}
#endif
}
#ifdef OCCT_DEBUG
else {
- cout<<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << endl;
+ std::cout<<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << std::endl;
}
#endif
}
#ifdef OCCT_DEBUG
else {
- cout<<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << endl;
+ std::cout<<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << std::endl;
}
#endif
}
#ifdef OCCT_DEBUG
else
- cout<<"Warning: BAD Quantity returns in UnitsAPI::AnyToLS(" << aData << "," << aUnit << ")" << endl;
+ std::cout<<"Warning: BAD Quantity returns in UnitsAPI::AnyToLS(" << aData << "," << aUnit << ")" << std::endl;
#endif
return aValue;
}
}
#ifdef OCCT_DEBUG
else
- cout<<"Warning: BAD Quantity returns in UnitsAPI::AnyToLS(" << aData << "," << aUnit << "," << aDim.get() << ")" << endl;
+ std::cout<<"Warning: BAD Quantity returns in UnitsAPI::AnyToLS(" << aData << "," << aUnit << "," << aDim.get() << ")" << std::endl;
#endif
return aValue;
}
}
#ifdef OCCT_DEBUG
else
- cout<<"Warning: BAD Quantity returns in UnitsAPI::AnyToLS(" << aData << "," << aUnit << ")" << endl;
+ std::cout<<"Warning: BAD Quantity returns in UnitsAPI::AnyToLS(" << aData << "," << aUnit << ")" << std::endl;
#endif
return aValue;
}
#ifdef OCCT_DEBUG
else {
- cout<<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << endl;
+ std::cout<<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << std::endl;
}
#endif
}
#ifdef OCCT_DEBUG
else {
- cout<<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << endl;
+ std::cout<<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << std::endl;
}
#endif
}
else {
// debug
-// cout <<"UnitsMethods: SurfType = "<< aSurface->DynamicType();
+// std::cout <<"UnitsMethods: SurfType = "<< aSurface->DynamicType();
return aCurve2d;
}
}
else if (aCurve2d->IsKind(STANDARD_TYPE(Geom2d_Parabola))) {
#ifdef OCCT_DEBUG
- cout << "PCURVE of Parabola type in U or V Periodic Surface" << endl;
- cout << "Parameters Not transformed to Degree" << endl;
+ std::cout << "PCURVE of Parabola type in U or V Periodic Surface" << std::endl;
+ std::cout << "Parameters Not transformed to Degree" << std::endl;
#endif
}
else if (aCurve2d->IsKind(STANDARD_TYPE(Geom2d_Hyperbola))) {
#ifdef OCCT_DEBUG
- cout << "PCURVE of Hyperbola type in U or V Periodic Surface" << endl;
- cout << "Parameters Not transformed to Degree" << endl;
+ std::cout << "PCURVE of Hyperbola type in U or V Periodic Surface" << std::endl;
+ std::cout << "Parameters Not transformed to Degree" << std::endl;
#endif
}
}
else {
#ifdef OCCT_DEBUG
- cout << "PCURVE of Other Types of Bounded Curve in U or V Periodic Surface" << endl;
- cout << "Parameters Not transformed to Degree" << endl;
+ std::cout << "PCURVE of Other Types of Bounded Curve in U or V Periodic Surface" << std::endl;
+ std::cout << "Parameters Not transformed to Degree" << std::endl;
#endif
}
}
}
else {
// debug
-// cout <<"UnitsMethods: SurfType = "<< aSurface->DynamicType();
+// std::cout <<"UnitsMethods: SurfType = "<< aSurface->DynamicType();
return aPcurve;
}
}
else if (aPcurve->IsKind(STANDARD_TYPE(Geom2d_Parabola))) {
#ifdef OCCT_DEBUG
- cout << "PCURVE of Parabola type" << endl;
- cout << "Parameters Not Yet transformed according to LenghtUnit" << endl;
+ std::cout << "PCURVE of Parabola type" << std::endl;
+ std::cout << "Parameters Not Yet transformed according to LenghtUnit" << std::endl;
#endif
return aPcurve;
}
else if (aPcurve->IsKind(STANDARD_TYPE(Geom2d_Hyperbola))) {
#ifdef OCCT_DEBUG
- cout << "PCURVE of Hyperbola type" << endl;
- cout << "Parameters Not Yet transformed according to LenghtUnit" << endl;
+ std::cout << "PCURVE of Hyperbola type" << std::endl;
+ std::cout << "Parameters Not Yet transformed according to LenghtUnit" << std::endl;
#endif
return aPcurve;
}
}
else {
#ifdef OCCT_DEBUG
- cout << "DegreeToRadian : Type " << aPcurve->DynamicType();
- cout << " not yet implemented" << endl;
+ std::cout << "DegreeToRadian : Type " << aPcurve->DynamicType();
+ std::cout << " not yet implemented" << std::endl;
#endif
}
return aPcurve;
static Standard_Integer vr(Draw_Interpretor& , Standard_Integer , const char** a)
{
- ifstream s(a[1]);
+ std::ifstream s(a[1]);
BRep_Builder builder;
TopoDS_Shape shape;
BRepTools::Read(shape, s, builder);
Standard_Boolean ToCheck = Standard_True;
if (!checkValid.IsEmpty()) {
#ifdef OCCT_DEBUG
- cout <<"DONT_SWITCH_IS_VALID positionnee a :"<<checkValid.ToCString()<<"\n";
+ std::cout <<"DONT_SWITCH_IS_VALID positionnee a :"<<checkValid.ToCString()<<"\n";
#endif
if ( checkValid=="true" || checkValid=="TRUE" ) {
ToCheck= Standard_False;
}
} else {
#ifdef OCCT_DEBUG
- cout <<"DONT_SWITCH_IS_VALID non positionne\n";
+ std::cout <<"DONT_SWITCH_IS_VALID non positionne\n";
#endif
}
Standard_Boolean IsValid = Standard_True;
// Get isFilled
Standard_Boolean isFilled;
std::cout << "Enter filled status (0 or 1)\n";
- cin >> isFilled;
+ std::cin >> isFilled;
// Construction of the circle
gp_Pnt A = BRep_Tool::Pnt (TopoDS::Vertex (aShapeA));
do
{
std::cout << " Enter the value of the radius:\n";
- cin >> theRad;
+ std::cin >> theRad;
} while (theRad <= 0);
// Get filled status
Standard_Boolean isFilled;
std::cout << "Enter filled status (0 or 1)\n";
- cin >> isFilled;
+ std::cin >> isFilled;
// Recover the normal to the plane. tag
TopoDS_Face myFace = TopoDS::Face(aShapeA);
{
if (!ViewerTest_myViews.IsBound1(theViewName))
{
- cout << "Wrong view name\n";
+ std::cout << "Wrong view name\n";
return;
}
ViewerTest_myContexts.UnBind2(aCurrentContext);
}
}
- cout << "3D View - " << theViewName << " was deleted.\n";
+ std::cout << "3D View - " << theViewName << " was deleted.\n";
if (ViewerTest_EventManager::ToExitOnCloseView())
{
Draw_Interprete ("exit");
{
OSD_Path thePath(aFile);
TCollection_AsciiString theFile;thePath.SystemName(theFile);
- ofstream outfile;
- OSD_OpenStream(outfile, theFile.ToCString(), ios::out);
+ std::ofstream outfile;
+ OSD_OpenStream(outfile, theFile.ToCString(), std::ios::out);
Handle(VrmlConverter_IsoAspect) ia = new VrmlConverter_IsoAspect; // UIso
Handle(VrmlConverter_IsoAspect) ia1 = new VrmlConverter_IsoAspect; //VIso
ia->SetMaterial(myUisoMaterial);
if (aCurve.GetType() == GeomAbs_BSplineCurve) {
nbintervals = aCurve.NbKnots() - 1;
-// cout << "NbKnots "<<aCurve.NbKnots() << endl;
+// std::cout << "NbKnots "<<aCurve.NbKnots() << std::endl;
nbintervals = Max(1, nbintervals/3);
}
Standard_Real U;
Standard_Integer N = Max(2, NbP*nbintervals);
-// cout << "nbintervals " << nbintervals << endl;
-// cout << "N " << N << endl;
+// std::cout << "nbintervals " << nbintervals << std::endl;
+// std::cout << "N " << N << std::endl;
gp_Vec V;
HAV1 = new TColgp_HArray1OfVec(1, N);
}
}
-// cout << " Array HAI1 - coordIndex " << endl;
+// std::cout << " Array HAI1 - coordIndex " << std::endl;
// for ( i=HAI1->Lower(); i <= HAI1->Upper(); i++ )
// {
-// cout << HAI1->Value(i) << endl;
+// std::cout << HAI1->Value(i) << std::endl;
// }
// creation of Vrml objects
Handle(VrmlConverter_LineAspect) LA = new VrmlConverter_LineAspect;
LA = aDrawer->LineAspect();
-// cout << "LA->HasMaterial() = " << LA->HasMaterial() << endl;
+// std::cout << "LA->HasMaterial() = " << LA->HasMaterial() << std::endl;
// Separator 1 {
Vrml_Separator SE1;
Standard_Real aLimit = aDrawer->MaximalParameterValue();
FindLimits(aCurve, aLimit, V1, V2);
-// cout << "V1 = "<< V1 << endl;
-// cout << "V2 = "<< V2 << endl;
-// cout << "NbPoints = "<< NbPoints << endl;
-// cout << "aLimit = "<< aLimit << endl;
+// std::cout << "V1 = "<< V1 << std::endl;
+// std::cout << "V2 = "<< V2 << std::endl;
+// std::cout << "NbPoints = "<< NbPoints << std::endl;
+// std::cout << "aLimit = "<< aLimit << std::endl;
DrawCurve(aCurve,
NbPoints,
if (Precision::IsNegativeInfinite(V1)) V1 = -aDrawer->MaximalParameterValue();
if (Precision::IsPositiveInfinite(V2)) V2 = aDrawer->MaximalParameterValue();
-// cout << "V1 = "<< V1 << endl;
-// cout << "V2 = "<< V2 << endl;
-// cout << "NbPoints = "<< NbPoints << endl;
+// std::cout << "V1 = "<< V1 << std::endl;
+// std::cout << "V2 = "<< V2 << std::endl;
+// std::cout << "NbPoints = "<< NbPoints << std::endl;
DrawCurve(aCurve,
NbPoints,
if (Precision::IsNegativeInfinite(V1)) V1 = -aDrawer->MaximalParameterValue();
if (Precision::IsPositiveInfinite(V2)) V2 = aDrawer->MaximalParameterValue();
-// cout << "V1 = "<< V1 << endl;
-// cout << "V2 = "<< V2 << endl;
-// cout << "NbPoints = "<< aNbPoints << endl;
+// std::cout << "V1 = "<< V1 << std::endl;
+// std::cout << "V2 = "<< V2 << std::endl;
+// std::cout << "NbPoints = "<< aNbPoints << std::endl;
DrawCurve(aCurve,
aNbPoints,
}
}
-//cout << " Array HAI1 - coordIndex " << endl;
+//std::cout << " Array HAI1 - coordIndex " << std::endl;
//
//for ( i=HAI1->Lower(); i <= HAI1->Upper(); i++ )
// {
-// cout << HAI1->Value(i) << endl;
+// std::cout << HAI1->Value(i) << std::endl;
// }
diagonal =1000000.;
theRequestedDeflection = aDrawer->DeviationCoefficient() * diagonal;
}
-// cout << "diagonal = " << diagonal << endl;
-// cout << "theRequestedDeflection = " << theRequestedDeflection << endl;
+// std::cout << "diagonal = " << diagonal << std::endl;
+// std::cout << "theRequestedDeflection = " << theRequestedDeflection << std::endl;
}
else
{
Ytarget = (Ymin + Ymax)/2;
Ztarget = (Zmin + Zmax)/2;
-// cout << " target: " << endl;
-// cout << " X: " << Xtarget << " Y: " << Ytarget << " Z: " << Ztarget << endl;
+// std::cout << " target: " << std::endl;
+// std::cout << " X: " << Xtarget << " Y: " << Ytarget << " Z: " << Ztarget << std::endl;
// gp_Pnt Target(Xtarget, Ytarget, Ztarget);
// gp_Vec VTarget(Target.X(),Target.Y(),Target.Z());
Source.SetY(Ytarget+aVec.Y());
Source.SetZ(Ztarget+aVec.Z());
-// cout << " source: " << endl;
-// cout << " X: " << Source.X() << " Y: " << Source.Y() << " Z: " << Source.Z() << endl;
+// std::cout << " source: " << std::endl;
+// std::cout << " X: " << Source.X() << " Y: " << Source.Y() << " Z: " << Source.Z() << std::endl;
gp_Vec VSource(Source.X(),Source.Y(),Source.Z());
// gp_Vec Proj(Source,Target);
-// cout << " Vec(source-target): " << endl;
-// cout << " X: " << Proj.X() << " Y: " << Proj.Y() << " Z: " << Proj.Z() << endl;
+// std::cout << " Vec(source-target): " << std::endl;
+// std::cout << " X: " << Proj.X() << " Y: " << Proj.Y() << " Z: " << Proj.Z() << std::endl;
gp_Dir Ypers (XUp,YUp,ZUp);
}
gp_Dir Xpers = Ypers.Crossed(Zpers);
-// cout << " Dir(Zpers): " << endl;
-// cout << " X: " << Zpers.X() << " Y: " << Zpers.Y() << " Z: " << Zpers.Z() << endl;
-// cout << " Dir(Xpers): " << endl;
-// cout << " X: " << Xpers.X() << " Y: " << Xpers.Y() << " Z: " << Xpers.Z() << endl;
+// std::cout << " Dir(Zpers): " << std::endl;
+// std::cout << " X: " << Zpers.X() << " Y: " << Zpers.Y() << " Z: " << Zpers.Z() << std::endl;
+// std::cout << " Dir(Xpers): " << std::endl;
+// std::cout << " X: " << Xpers.X() << " Y: " << Xpers.Y() << " Z: " << Xpers.Z() << std::endl;
gp_Ax3 Axe (Source, Zpers, Xpers);
V2.SetY(0);
V2.SetZ(P2.Z());
-// cout << " Angle: " << V1.Angle(V2) << endl;
-// cout << " ****************** " << endl;
+// std::cout << " Angle: " << V1.Angle(V2) << std::endl;
+// std::cout << " ****************** " << std::endl;
if ( Abs(V1.Angle(V2)) > Abs(MaxAngle) ) MaxAngle = Abs(V1.Angle(V2));
V2.SetX(0);
V2.SetY(P2.Y());
V2.SetZ(P2.Z());
-// cout << " Angle: " << V1.Angle(V2) << endl;
-// cout << " ****************** " << endl;
+// std::cout << " Angle: " << V1.Angle(V2) << std::endl;
+// std::cout << " ****************** " << std::endl;
if ( Abs(V1.Angle(V2)) > Abs(MaxAngle) ) MaxAngle = Abs(V1.Angle(V2));
if ( Abs(P2.Y()) > Abs(MaxHeight) )
{
-// cout << " Height Y: " << P2.Y() << endl;
-// cout << " ****************** " << endl;
+// std::cout << " Height Y: " << P2.Y() << std::endl;
+// std::cout << " ****************** " << std::endl;
MaxHeight = Abs(P2.Y());
}
if ( Abs(P2.X()) > Abs(MaxHeight) )
{
-// cout << " Height X: " << P2.X() << endl;
-// cout << " ****************** " << endl;
+// std::cout << " Height X: " << P2.X() << std::endl;
+// std::cout << " ****************** " << std::endl;
MaxHeight = Abs(P2.X());
}
}
Height = MaxHeight;
-// cout << " MaxHeight: " << Height << endl;
-// cout << " ****************** " << endl;
+// std::cout << " MaxHeight: " << Height << std::endl;
+// std::cout << " ****************** " << std::endl;
Angle = MaxAngle;
-// cout << " MaxAngle: " << Angle << endl;
-// cout << " ****************** " << endl;
+// std::cout << " MaxAngle: " << Angle << std::endl;
+// std::cout << " ****************** " << std::endl;
if (Light == VrmlConverter_SpotLight)
{
nbVertices += T->NbNodes();
}
-// cout << "nbTriangles = "<< nbTriangles << endl;
-// cout << "nbVertices = "<< nbVertices << endl << endl;
+// std::cout << "nbTriangles = "<< nbTriangles << std::endl;
+// std::cout << "nbVertices = "<< nbVertices << std::endl << std::endl;
//----------------------------
// now we are going to iterate again to build graphic data from the triangle.
//-----------------------------
/*
- cout << " ******************** " << endl;
- cout << " Array HAV1 - Coordinare3 " << endl;
+ std::cout << " ******************** " << std::endl;
+ std::cout << " Array HAV1 - Coordinare3 " << std::endl;
for ( i=HAV1->Lower(); i <= HAV1->Upper(); i++ )
{
- cout << HAV1->Value(i).X() << " " << HAV1->Value(i).Y()<< " " << HAV1->Value(i).Z() << endl;
+ std::cout << HAV1->Value(i).X() << " " << HAV1->Value(i).Y()<< " " << HAV1->Value(i).Z() << std::endl;
}
if(SA->HasNormals())
{
- cout << " ******************** " << endl;
- cout << " Array HAV2 - Normals " << endl;
+ std::cout << " ******************** " << std::endl;
+ std::cout << " Array HAV2 - Normals " << std::endl;
for ( i=HAV2->Lower(); i <= HAV2->Upper(); i++ )
{
- cout << HAV2->Value(i).X() << " " << HAV2->Value(i).Y()<< " " << HAV2->Value(i).Z() << endl;
+ std::cout << HAV2->Value(i).X() << " " << HAV2->Value(i).Y()<< " " << HAV2->Value(i).Z() << std::endl;
}
- cout << " ******************** " << endl;
- cout << " Array HAI3 - normalIndex " << endl;
+ std::cout << " ******************** " << std::endl;
+ std::cout << " Array HAI3 - normalIndex " << std::endl;
for ( i=HAI3->Lower(); i <= HAI3->Upper(); i++ )
{
- cout << HAI3->Value(i) << endl;
+ std::cout << HAI3->Value(i) << std::endl;
}
}
- cout << " ******************** " << endl;
- cout << " Array HAI1 - coordIndex " << endl;
+ std::cout << " ******************** " << std::endl;
+ std::cout << " Array HAI1 - coordIndex " << std::endl;
for ( i=HAI1->Lower(); i <= HAI1->Upper(); i++ )
{
- cout << HAI1->Value(i) << endl;
+ std::cout << HAI1->Value(i) << std::endl;
}
- cout << " ******************** " << endl;
+ std::cout << " ******************** " << std::endl;
*/
//----------------------------
diagonal =1000000.;
theRequestedDeflection = aDrawer->DeviationCoefficient() * diagonal;
}
-// cout << "diagonal = " << diagonal << endl;
-// cout << "theRequestedDeflection = " << theRequestedDeflection << endl;
+// std::cout << "diagonal = " << diagonal << std::endl;
+// std::cout << "theRequestedDeflection = " << theRequestedDeflection << std::endl;
}
else
{
}
}
else {
- cout << "Cannot evaluate curve on surface"<<endl;
+ std::cout << "Cannot evaluate curve on surface"<<std::endl;
}
}
else {
Handle(Poly_Triangulation) aT;
TopLoc_Location aL;
-// cout << "Quantity of Curves = " << qnt << endl;
+// std::cout << "Quantity of Curves = " << qnt << std::endl;
// Wire (without any neighbour)
qnt++;
}
-// cout << "Quantity of Vertexes = " << qnt << endl;
+// std::cout << "Quantity of Vertexes = " << qnt << std::endl;
if (qnt != 0)
{
laU = aDrawer->UIsoAspect();
laV = aDrawer->VIsoAspect();
-// cout << endl;
+// std::cout << std::endl;
-// cout << "Face:aDrawer>UMaterial1 = " << aDrawer->UIsoAspect()->HasMaterial() << endl;
-// cout << "Face:aDrawer>VMaterial1 = " << aDrawer->VIsoAspect()->HasMaterial() << endl;
-// cout << "Face:aDrawer>LineAspect1 = " << aDrawer->LineAspect()->HasMaterial() << endl;
-// cout << "Face:la1 = " << latmp->HasMaterial() << endl;
-// cout << "Face:laU1 = " << laU->HasMaterial() << endl;
-// cout << "Face:laV1 = " << laV->HasMaterial() << endl;
-// cout << "Face:iau1 = " << iautmp->HasMaterial() << endl;
-// cout << "Face:iav1 = " << iavtmp->HasMaterial() << endl;
+// std::cout << "Face:aDrawer>UMaterial1 = " << aDrawer->UIsoAspect()->HasMaterial() << std::endl;
+// std::cout << "Face:aDrawer>VMaterial1 = " << aDrawer->VIsoAspect()->HasMaterial() << std::endl;
+// std::cout << "Face:aDrawer>LineAspect1 = " << aDrawer->LineAspect()->HasMaterial() << std::endl;
+// std::cout << "Face:la1 = " << latmp->HasMaterial() << std::endl;
+// std::cout << "Face:laU1 = " << laU->HasMaterial() << std::endl;
+// std::cout << "Face:laV1 = " << laV->HasMaterial() << std::endl;
+// std::cout << "Face:iau1 = " << iautmp->HasMaterial() << std::endl;
+// std::cout << "Face:iav1 = " << iavtmp->HasMaterial() << std::endl;
// creation of Vrml objects
aDrawer->SetUIsoAspect(iautmp);
aDrawer->SetVIsoAspect(iavtmp);
-// cout << endl;
+// std::cout << std::endl;
-// cout << "Face:aDrawer>UMaterial4 = " << aDrawer->UIsoAspect()->HasMaterial() << endl;
-// cout << "Face:aDrawer>VMaterial4 = " << aDrawer->VIsoAspect()->HasMaterial() << endl;
-// cout << "Face:aDrawer>LineAspect4 = " << aDrawer->LineAspect()->HasMaterial() << endl;
-// cout << "Face:la4 = " << latmp->HasMaterial() << endl;
-// cout << "Face:laU4 = " << laU->HasMaterial() << endl;
-// cout << "Face:laV4 = " << laV->HasMaterial() << endl;
-// cout << "Face:iau4 = " << iautmp->HasMaterial() << endl;
-// cout << "Face:iav4 = " << iavtmp->HasMaterial() << endl;
+// std::cout << "Face:aDrawer>UMaterial4 = " << aDrawer->UIsoAspect()->HasMaterial() << std::endl;
+// std::cout << "Face:aDrawer>VMaterial4 = " << aDrawer->VIsoAspect()->HasMaterial() << std::endl;
+// std::cout << "Face:aDrawer>LineAspect4 = " << aDrawer->LineAspect()->HasMaterial() << std::endl;
+// std::cout << "Face:la4 = " << latmp->HasMaterial() << std::endl;
+// std::cout << "Face:laU4 = " << laU->HasMaterial() << std::endl;
+// std::cout << "Face:laV4 = " << laV->HasMaterial() << std::endl;
+// std::cout << "Face:iau4 = " << iautmp->HasMaterial() << std::endl;
+// std::cout << "Face:iav4 = " << iavtmp->HasMaterial() << std::endl;
}
qnt++;
}
-// cout << "Quantity of Curves = " << qnt << endl;
+// std::cout << "Quantity of Curves = " << qnt << std::endl;
// Wire (without any neighbour)
qnt++;
}
-// cout << "Quantity of Vertexes = " << qnt << endl;
+// std::cout << "Quantity of Vertexes = " << qnt << std::endl;
if (qnt != 0)
{
if (OK(aStatus, ReadMultiString (theBuffer, lstURL))) {
NCollection_List<TCollection_AsciiString>::Iterator anIter (lstURL);
for (; anIter.More(); anIter.Next()) {
- ifstream aStream;
+ std::ifstream aStream;
const TCollection_AsciiString& aFileName = anIter.Value();
if (!OK(aStatus, openFile (aStream, aFileName)))
break;
(Standard_IStream& theStream,
const TCollection_AsciiString& theFilename)
{
- ifstream& aStream = static_cast<ifstream&> (theStream);
+ std::ifstream& aStream = static_cast<std::ifstream&> (theStream);
VrmlData_ErrorStatus aStatus (VrmlData_EmptyData);
NCollection_List<TCollection_ExtendedString>::Iterator aDirIter =
Scene().VrmlDirIterator();
continue;
const TCollection_AsciiString aFullName =
TCollection_AsciiString (aDirIter.Value()) + theFilename;
- aStream.open (aFullName.ToCString(), ios::in);
+ aStream.open (aFullName.ToCString(), std::ios::in);
if (aStream.fail())
aStream.clear();
else {
}
}
if (aStatus == VrmlData_EmptyData) {
- aStream.open (theFilename.ToCString(), ios::in);
+ aStream.open (theFilename.ToCString(), std::ios::in);
if (!aStream.fail())
aStatus = VrmlData_StatusOK;
}
theBuffer.Input.getline (theBuffer.Line, sizeof(theBuffer.Line));
theBuffer.LineCount++;
const int stat = theBuffer.Input.rdstate();
- if (stat & ios::badbit) {
+ if (stat & std::ios::badbit) {
aStatus = VrmlData_UnrecoverableError;
}
- else if (stat & ios::failbit) {
- if (stat & ios::eofbit) {
+ else if (stat & std::ios::failbit) {
+ if (stat & std::ios::eofbit) {
aStatus = VrmlData_EndOfFile;
}
else {
(* myOutput) << "\n";
}
const int stat = myOutput->rdstate();
- if (stat & ios::badbit)
+ if (stat & std::ios::badbit)
aStatus = VrmlData_UnrecoverableError;
- else if (stat & ios::failbit)
-// if (stat & ios::eofbit)
+ else if (stat & std::ios::failbit)
+// if (stat & std::ios::eofbit)
// aStatus = VrmlData_EndOfFile;
// else
aStatus = VrmlData_GeneralError;
protected:
/**
- * Read whatever line from the input checking the istream flags.
+ * Read whatever line from the input checking the std::istream flags.
*/
Standard_EXPORT static VrmlData_ErrorStatus
readLine (VrmlData_InBuffer& theBuffer);
for (; i <= NbFathers(); i++) {
if ( !myFathers(i)->Label().IsNull() )
myFathers(i)->Label().EntryDump(anOS);
- anOS<<endl;
+ anOS<<std::endl;
}
}
i = 1;
for (; i <= NbChildren(); i++) {
if ( !myChildren(i)->Label().IsNull() )
myChildren(i)->Label().EntryDump(anOS);
- anOS<<endl;
+ anOS<<std::endl;
}
}
-// anOS<<endl;
+// anOS<<std::endl;
return anOS;
}
if (! L.FindAttribute(XCAFDoc::ShapeRefGUID(), Node) ||
! Node->HasFather()) {
#ifdef OCCT_DEBUG
- cout<<"Error: XCAFDoc_ShapeTool, SetLabelNameByLink(): NO NODE"<<endl;
+ std::cout<<"Error: XCAFDoc_ShapeTool, SetLabelNameByLink(): NO NODE"<<std::endl;
#endif
return;
}
theDumpLog<<", "<< *(void**)&S.Location();
theDumpLog<<") ";
}
- theDumpLog<<endl;
+ theDumpLog<<std::endl;
Handle(TDataStd_TreeNode) Node;
TDF_ChildIterator NodeIterator(L);
DumpAssembly(theDumpLog, NodeIterator.Value(), level+1, deep);
}
if(level == 0)
- theDumpLog<<endl;
+ theDumpLog<<std::endl;
}
//=======================================================================
TDF_LabelSequence SeqLabels;
GetShapes( SeqLabels);
- if (SeqLabels.Length()>0) theDumpLog<<endl;
+ if (SeqLabels.Length()>0) theDumpLog<<std::endl;
Standard_Integer i;
for (i=1; i<=SeqLabels.Length(); i++) {
DumpAssembly(theDumpLog, SeqLabels.Value(i), level, deep);
SeqLabels.Clear();
GetFreeShapes(SeqLabels);
- theDumpLog<<endl<<"Free Shapes: "<<SeqLabels.Length()<<endl;
+ theDumpLog<<std::endl<<"Free Shapes: "<<SeqLabels.Length()<<std::endl;
for (i = 1; i<=SeqLabels.Length(); i++) {
DumpShape(theDumpLog, SeqLabels.Value(i), level, deep);
- theDumpLog<<endl;
+ theDumpLog<<std::endl;
}
return theDumpLog;
}
TDF_Tool::Entry(aRef->Father()->Label(), Entry);
theDumpLog<<" (refers to "<<Entry<<")";
}
- //cout<<endl;
+ //std::cout<<std::endl;
Handle(TDataStd_Name) Name;
if (L.FindAttribute(TDataStd_Name::GetID(),Name))
theDumpLog<<" \""<<Name->Get()<<"\" ";
Standard_EXPORT virtual Standard_OStream& Dump (Standard_OStream& theDumpLog) const Standard_OVERRIDE;
- //! Print to ostream <theDumpLog> type of shape found on <L> label
+ //! Print to std::ostream <theDumpLog> type of shape found on <L> label
//! and the entry of <L>, with <level> tabs before.
//! If <deep>, print also TShape and Location addresses
Standard_EXPORT static void DumpShape (Standard_OStream& theDumpLog, const TDF_Label& L, const Standard_Integer level = 0, const Standard_Boolean deep = Standard_False);
// set style for all component from Next Usage Occurrence.
#ifdef OCCT_DEBUG
- cout << "Set the style for SHUO next_usage-occurrance" << endl;
+ std::cout << "Set the style for SHUO next_usage-occurrance" << std::endl;
#endif
/*
// may be work, but static it returns excess shapes. It is more faster to use OLD version.
Handle(AIS_InteractiveObject)& ais)
{
-// cout << "XCAFPrs_Driver::Update" << endl;
+// std::cout << "XCAFPrs_Driver::Update" << std::endl;
// WARNING! The label L can be out of any document
// (this is a case for reading from the file)
// Handle(TDocStd_Document) DOC = TDocStd_Document::Get(L);
{
if( argc < 2 )
{
- cout<<"Invalid numbers of arguments should be: XTestDoc shape"<<endl;
+ std::cout<<"Invalid numbers of arguments should be: XTestDoc shape"<<std::endl;
return 1;
}
TopoDS_Shape shape = DBRep::Get(argv[1]);
tol = -tol;
}
localVolume = CalculVolume(aShape, aPoint, tol, withForce, di);
- //cout << "Volume : " << setw(15) << localVolume << "\n" << endl;
+ //std::cout << "Volume : " << std::setw(15) << localVolume << "\n" << std::endl;
Standard_SStream aSStream;
- aSStream << "Volume : " << setw(15) << localVolume << "\n";
+ aSStream << "Volume : " << std::setw(15) << localVolume << "\n";
di << aSStream;
return 0;
}
gp_Pln aPlane;
Handle(Geom_Plane) aSurf = Handle(Geom_Plane)::DownCast(DrawTrSurf::GetSurface(argv[2]));
if (aSurf.IsNull()) {
- cout << argv[2] << " is not a plane" << endl;
+ std::cout << argv[2] << " is not a plane" << std::endl;
return 1;
}
aPlane = aSurf->Pln();
{
static Standard_Integer time = 0;
if ( ! time )
- cout << "Warning: XSAlgo_AlgoContainer::ProcessShape(): Sequence " << str.ToCString() <<
- " is not defined in " << prscfile << " resource; do default processing" << endl;
+ std::cout << "Warning: XSAlgo_AlgoContainer::ProcessShape(): Sequence " << str.ToCString() <<
+ " is not defined in " << prscfile << " resource; do default processing" << std::endl;
time++;
}
#endif
}
catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- cout << "Error: XSAlgo_AlgoContainer::ProcessShape(): Exception in ShapeFix::Shape" << endl;
- anException.Print(cout); cout << endl;
+ std::cout << "Error: XSAlgo_AlgoContainer::ProcessShape(): Exception in ShapeFix::Shape" << std::endl;
+ anException.Print(std::cout); std::cout << std::endl;
#endif
(void)anException;
}
}
catch (Standard_Failure) {
#ifdef OCCT_DEBUG
- cout << "Error: XSAlgo_AlgoContainer::PerformFixShape(): Exception in ShapeFix::Shape" << endl;
+ std::cout << "Error: XSAlgo_AlgoContainer::PerformFixShape(): Exception in ShapeFix::Shape" << std::endl;
#endif
}
return shape;
if ( DU/8. > (UL/6. - UF/6.) || DV/8. > (VL/6. - VF/6.) ) {
ShapeBuild_Edge().RemovePCurve(E,face);
#ifdef OCCT_DEBUG
- cout<<"Removing pcuve periodic"<<endl;
+ std::cout<<"Removing pcuve periodic"<<std::endl;
#endif
return Standard_False;
}
if (!((Dist11 <= preci) && (Dist22 <= preci))) {
ShapeBuild_Edge().RemovePCurve(E,face);
#ifdef OCCT_DEBUG
- cout<<"Removing pcurve points"<<endl;
+ std::cout<<"Removing pcurve points"<<std::endl;
#endif
return Standard_False;
}
resBinder->AddResult(TransientListBinder);
// resBinder->SetNext(TransientListBinder, Standard_True);
#ifdef OCCT_DEBUG
- cout<<"Info: TransientListBinder created for splitted shape"<<endl;
+ std::cout<<"Info: TransientListBinder created for splitted shape"<<std::endl;
}
else {
- cout<<"Warning: XSAlgo_AlgoContainer::MergeTransferInfo() "
- <<"No results were found for splitted shape. "<<endl;
- //<<"Transfer_FinderProcess->NbMapped() = "<<FP->NbMapped()<<endl;
+ std::cout<<"Warning: XSAlgo_AlgoContainer::MergeTransferInfo() "
+ <<"No results were found for splitted shape. "<<std::endl;
+ //<<"Transfer_FinderProcess->NbMapped() = "<<FP->NbMapped()<<std::endl;
#endif
}
}
const Standard_CString arg3 = pilot->Arg(3);
const Handle(Transfer_TransientProcess) &TP = XSControl::Session(pilot)->TransferReader()->TransientProcess();
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (TP.IsNull()) { sout<<"No Transfer Read"<<endl; return IFSelect_RetError;}
+ if (TP.IsNull()) { sout<<"No Transfer Read"<<Message_EndLine; return IFSelect_RetError;}
// **** tpdraw ****
if (argc < 2) {
- sout<<"Donner [mode facultatif : item ou root] , NUMERO , nom DRAW facultatif"<<endl;
- sout<<" mode si present : item ou root, sinon n0 d entite modele"<<endl;
+ sout<<"Donner [mode facultatif : item ou root] , NUMERO , nom DRAW facultatif"<<Message_EndLine;
+ sout<<" mode si present : item ou root, sinon n0 d entite modele"<<Message_EndLine;
sout<<" NUMERO entier : d entite, d item transfert ou de root transfert\n"
- << " ou * pour dire tous"<<endl;
+ << " ou * pour dire tous"<<Message_EndLine;
return IFSelect_RetError;
}
Standard_Integer mode = 0, num=0;
else if (arg1[0] == 'r') mode = 2;
Standard_Boolean tout = Standard_False;
if (mode == 0) {
- if (argc < 2) { sout<<"Donner au moins un NUMERO ou *"<<endl; return IFSelect_RetError; }
+ if (argc < 2) { sout<<"Donner au moins un NUMERO ou *"<<Message_EndLine; return IFSelect_RetError; }
if (arg1[0] == '*') tout = Standard_True;
else num = IFSelect_Functions::GiveEntityNumber(XSControl::Session(pilot),arg1);
} else {
Handle(Interface_InterfaceModel) model = TP->Model();
if (model.IsNull()) {
if (mode == 0) {
- sout<<"Pas de modele, preciser n0 d item de transfert"<<endl;
+ sout<<"Pas de modele, preciser n0 d item de transfert"<<Message_EndLine;
return IFSelect_RetError;
}
}
if (mode == 2) { sout<<"Racine de transfert"; max = TP->NbRoots(); }
if (tout) {
n1 = 1; n2 = max;
- sout<<", listage de 1 a "<<max<<endl;
+ sout<<", listage de 1 a "<<max<<Message_EndLine;
}
else if (num <= 0 || num > max) {
- sout<<" - Num="<<num<<" hors limite (de 1 a "<<max<<")"<<endl;
+ sout<<" - Num="<<num<<" hors limite (de 1 a "<<max<<")"<<Message_EndLine;
return IFSelect_RetError;
} else {
n1 = n2 = num; nbvar = -1; // nbvar : 1ere shape simple = pas de n0
- sout<<", n0 "<<num<<endl;
+ sout<<", n0 "<<num<<Message_EndLine;
}
for (i = n1; i <= n2; i ++) {
if (index > 0) binder = TP->MapItem (index);
if (binder.IsNull()) index = 0;
if (index == 0) {
- if (!tout) sout<<"Entite n0 "<<num<<" : non repertoriee"<<endl;
+ if (!tout) sout<<"Entite n0 "<<num<<" : non repertoriee"<<Message_EndLine;
continue;
}
if (!binder->HasResult()) {
- if (!tout) sout<<"Entite n0 "<<num<<" : pas de resultat"<<endl;
+ if (!tout) sout<<"Entite n0 "<<num<<" : pas de resultat"<<Message_EndLine;
continue;
}
sh = TransferBRep::ShapeResult (binder);
if (!sh.IsNull()) {
//sh = shb->Result();
nbvar ++;
- if (sh.IsNull()) { sout<<" (no Shape recorded)"<<endl; continue; }
+ if (sh.IsNull()) { sout<<" (no Shape recorded)"<<Message_EndLine; continue; }
if (tout) sout<<"[ "<<i<<" ]:";
if (num == 0) sout<<" pas dans le modele";
else sout<<" ent.n0 "<<num;
else if (argc > 2 && mode == 0) sprintf (nomvar,"%s_%d",arg2,nbvar);
else sprintf (nomvar,"tp_%d",i);
}
- sout<<" -> 1 DRAW Shape: "<<nomvar<<endl;
+ sout<<" -> 1 DRAW Shape: "<<nomvar<<Message_EndLine;
XSControl::Vars(pilot)->SetShape(nomvar,sh);
continue;
}
sout<<" -> "<<nbs<<" DRAW Shapes :";
for (Standard_Integer j = 1; j <= nbs; j ++) {
sh = slb->Shape(j); if (nbvar < 0) nbvar = 0; nbvar ++;
- if (sh.IsNull()) { sout<<" (no Shape recorded)"<<endl; continue; }
+ if (sh.IsNull()) { sout<<" (no Shape recorded)"<<Message_EndLine; continue; }
if (argc > 3 && mode > 0) sprintf (nomvar,"%s_%d",arg3,nbvar);
else if (argc > 2 && mode == 0) sprintf (nomvar,"%s_%d",arg2,nbvar);
else sprintf (nomvar,"tp_%d_%d",i,nbvar);
sout<<" "<<nomvar;
XSControl::Vars(pilot)->SetShape(nomvar,sh);
}
- sout<<endl;
+ sout<<Message_EndLine;
continue;
}
DeclareAndCast(Transfer_SimpleBinderOfTransient,trb,binder);
if (!trb.IsNull()) {
Handle(Standard_Transient) resu = trb->Result();
if (resu.IsNull()) {
- sout<<"Entite n0 "<<num<<" : pas de resultat"<<endl;
+ sout<<"Entite n0 "<<num<<" : pas de resultat"<<Message_EndLine;
continue;
}
DeclareAndCast(Geom_Geometry,geom,resu);
sout<<"Entite n0 "<<num<<" : resultat "<<resu->DynamicType()->Name();
- if (geom.IsNull()) { sout<<endl; continue; }
+ if (geom.IsNull()) { sout<<Message_EndLine; continue; }
nbvar ++;
if (nbvar == 0) {
if (argc > 3 && mode > 0) sprintf (nomvar,"%s",arg3);
}
char* nomv = nomvar;
XSControl::Vars(pilot)->Set (nomv,geom);
- sout<<" -> DRAW Geom : "<<nomvar<<endl;
+ sout<<" -> DRAW Geom : "<<nomvar<<Message_EndLine;
continue;
}
if (sh.IsNull() && trb.IsNull())
- if (!tout) sout<<"Entite n0 "<<num<<" : resultat pas une Shape mais "<<binder->ResultTypeName()<<endl;
+ if (!tout) sout<<"Entite n0 "<<num<<" : resultat pas une Shape mais "<<binder->ResultTypeName()<<Message_EndLine;
}
- if (sh.IsNull()) sout<<" (No Shape)"<<endl;
+ if (sh.IsNull()) sout<<" (No Shape)"<<Message_EndLine;
return IFSelect_RetDone;
}
const Standard_CString arg1 = pilot->Arg(1);
const Handle(Transfer_TransientProcess) &TP = XSControl::Session(pilot)->TransferReader()->TransientProcess();
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (TP.IsNull()) { sout<<"No Transfer Read"<<endl; return IFSelect_RetError;}
+ if (TP.IsNull()) { sout<<"No Transfer Read"<<Message_EndLine; return IFSelect_RetError;}
// **** tpcompound ****
- if (argc < 2) { sout<<"Give a NAME for the Compound + optional givelist, else roots are taken"<<endl; return IFSelect_RetError; }
+ if (argc < 2) { sout<<"Give a NAME for the Compound + optional givelist, else roots are taken"<<Message_EndLine; return IFSelect_RetError; }
Handle(TopTools_HSequenceOfShape) list;
if (argc == 2) list = TransferBRep::Shapes(TP);
else {
Handle(TColStd_HSequenceOfTransient) lise = IFSelect_Functions::GiveList(pilot->Session(),pilot->CommandPart(2));
- if (lise.IsNull()) { sout<<"Not a valid entity list : "<<pilot->CommandPart(2)<<endl; return IFSelect_RetError; }
+ if (lise.IsNull()) { sout<<"Not a valid entity list : "<<pilot->CommandPart(2)<<Message_EndLine; return IFSelect_RetError; }
list = TransferBRep::Shapes (TP,lise);
sout<<lise->Length()<<" Entities, ";
}
- if (list.IsNull()) { sout<<"No Shape listed"<<endl; return IFSelect_RetError; }
+ if (list.IsNull()) { sout<<"No Shape listed"<<Message_EndLine; return IFSelect_RetError; }
Standard_Integer nb = list->Length();
- sout<<nb<<" Shape(s) listed"<<endl;
+ sout<<nb<<" Shape(s) listed"<<Message_EndLine;
TopoDS_Compound C;
BRep_Builder B;
B.MakeCompound(C);
TCollection_AsciiString nomsh, noms;
const Handle(XSControl_TransferReader) &TR = XSControl::Session(pilot)->TransferReader();
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (TR.IsNull()) { sout<<" manque init"<<endl; return IFSelect_RetError; }
+ if (TR.IsNull()) { sout<<" manque init"<<Message_EndLine; return IFSelect_RetError; }
const Handle(Interface_InterfaceModel) &mdl = TR->Model();
- if (mdl.IsNull()) { sout<<" modele absent"<<endl; return IFSelect_RetError; }
+ if (mdl.IsNull()) { sout<<" modele absent"<<Message_EndLine; return IFSelect_RetError; }
Standard_Integer num = (argc > 1 ? IFSelect_Functions::GiveEntityNumber(XSControl::Session(pilot),arg1) : 0);
if (argc > 1) nomsh = arg1;
else nomsh = cascomp ? "TREAD_COMP" : "TREAD_LIST";
- if (cassave) sout<<" save shapes -> current directory"<<endl;
+ if (cassave) sout<<" save shapes -> current directory"<<Message_EndLine;
if (num == 0 || cascomp) {
TopoDS_Compound C; // pour cas compound
B.MakeCompound(C);
const Handle(TopTools_HSequenceOfShape) &list = TR->ShapeResultList(Standard_True);
- sout<<" TOUS RESULTATS par ShapeResultList, soit "<<list->Length()<<endl;
+ sout<<" TOUS RESULTATS par ShapeResultList, soit "<<list->Length()<<Message_EndLine;
for (Standard_Integer i = 1, nb = list->Length(); i <= nb; ++i)
{
noms = nomsh + "_" + i;
- if ( (i%1000) == 0) sout<<"("<<i<<")"<<endl;
+ if ( (i%1000) == 0) sout<<"("<<i<<")"<<Message_EndLine;
else if ( (i%100) == 0) sout<<"*";
else if ( (i%10) == 0) sout<<"0";
else sout<<".";
else if (!cascomp && cassave) BRepTools::Write (list->Value(i), noms.ToCString());
else if (cascomp) B.Add (C,list->Value(i));
}
- sout<<endl;
+ sout<<Message_EndLine;
if (cascomp && !cassave) XSControl::Vars(pilot)->SetShape (nomsh.ToCString(), C);
else if (cascomp && cassave) BRepTools::Write (C, nomsh.ToCString());
} else {
- if (num < 1 || num > mdl->NbEntities()) { sout<<" incorrect:"<<arg1<<endl; return IFSelect_RetError; }
+ if (num < 1 || num > mdl->NbEntities()) { sout<<" incorrect:"<<arg1<<Message_EndLine; return IFSelect_RetError; }
TopoDS_Shape sh = TR->ShapeResult(mdl->Value(num));
- if (sh.IsNull()) { sout<<" Pas de resultat pour "<<arg1<<endl; return IFSelect_RetError; }
+ if (sh.IsNull()) { sout<<" Pas de resultat pour "<<arg1<<Message_EndLine; return IFSelect_RetError; }
if (argc > 2) nomsh = arg2;
else nomsh = TCollection_AsciiString ("TREAD_") + num;
if (!cascomp && !cassave) XSControl::Vars(pilot)->SetShape (nomsh.ToCString(), sh);
else if (!cascomp && cassave) BRepTools::Write (sh, nomsh.ToCString());
- else sout<<"Option non comprise"<<endl;
+ else sout<<"Option non comprise"<<Message_EndLine;
}
return IFSelect_RetDone;
}
// **** fromshape (tread) ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
if (argc < 2) {
- sout<<"Give name of a DRAW Shape"<<endl;
+ sout<<"Give name of a DRAW Shape"<<Message_EndLine;
return IFSelect_RetError;
}
const char* a1 = (char *)arg1;
TopoDS_Shape Shape = XSControl::Vars(pilot)->GetShape(a1);
if (Shape.IsNull()) {
- sout<<"Not a DRAW Shape:"<<arg1<<endl;
+ sout<<"Not a DRAW Shape:"<<arg1<<Message_EndLine;
return IFSelect_RetError;
}
Standard_Boolean yena = Standard_False;
// IMPORT
const Handle(XSControl_TransferReader) &TR = XSControl::Session(pilot)->TransferReader();
- if (TR.IsNull()) { } // sout<<"No read transfer (import) recorded"<<endl;
+ if (TR.IsNull()) { } // sout<<"No read transfer (import) recorded"<<std::endl;
else {
yena = Standard_True;
if ( ! silent ) sout<<"Shape "<<arg1<<" : ";
if (TP.IsNull()) {
if ( silent )
sout << "Shape "<<arg1<<" : ";
- sout<<"no map"<<endl;
+ sout<<"no map"<<Message_EndLine;
}
else {
TopoDS_Shape S0 = Shape;
// skl 11.05.2004
// if Shape is a compound try to make "fromshape" for its subshapes
if(Shape.ShapeType()==TopAbs_COMPOUND) {
- sout<<endl<<"Subshapes imported from entities:";
+ sout<<Message_EndLine<<"Subshapes imported from entities:";
TopoDS_Iterator Iter(Shape);
for (; Iter.More(); Iter.Next()) {
TopoDS_Shape subsh = Iter.Value();
else {
sout<<"imported from entity ";
XSControl::Session(pilot)->Model()->Print(ent,sout);
- if ( silent ) sout << " in file " << XSControl::Session(pilot)->LoadedFile() << endl;
+ if ( silent ) sout << " in file " << XSControl::Session(pilot)->LoadedFile() << Message_EndLine;
}
- if ( ! silent ) sout<<endl;
+ if ( ! silent ) sout<<Message_EndLine;
}
// ET EN EXPORT ?
sout<<"Shape "<<arg1<<": exported to entity ";
XSControl::Session(pilot)->Model()->Print(ent,sout);
if ( silent ) sout << " in file " << XSControl::Session(pilot)->LoadedFile();
- sout<<endl;
+ sout<<Message_EndLine;
}
// abv 31.08.00: treat case of splitted shape (several results)
// it is supposed that results are of the same type and lie in one-level comp
}
if (nb > 0) {
if ( silent ) sout << " in file " << XSControl::Session(pilot)->LoadedFile();
- sout<<endl;
+ sout<<Message_EndLine;
}
}
/* else {
start = Standard_False;
XSControl::Session(pilot)->Model()->Print(cent,sout);
}
- if ( ! start ) sout<<endl;
+ if ( ! start ) sout<<std::endl;
}
} */
}
}
}
- if (!yena) sout<<"No transfer (either import or export) recorded"<<endl;
+ if (!yena) sout<<"No transfer (either import or export) recorded"<<Message_EndLine;
return IFSelect_RetVoid;
}
Handle(Transfer_TransientProcess) TP;
if (!TR.IsNull()) TP = TR->TransientProcess();
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (TP.IsNull()) { sout<<"no transfer map"<<endl; return IFSelect_RetVoid; }
+ if (TP.IsNull()) { sout<<"no transfer map"<<Message_EndLine; return IFSelect_RetVoid; }
if (argc < 2) {
- sout<<"Give name of a DRAW Shape + optional shape type v-e-w-f(D)-s"<<endl;
+ sout<<"Give name of a DRAW Shape + optional shape type v-e-w-f(D)-s"<<Message_EndLine;
return IFSelect_RetError;
}
const char* a1 = (const char *)arg1;
TopoDS_Shape Shape = XSControl::Vars(pilot)->GetShape(a1);
- if (Shape.IsNull()) { sout<<"Not a DRAW Shape:"<<arg1<<endl; return IFSelect_RetError; }
+ if (Shape.IsNull()) { sout<<"Not a DRAW Shape:"<<arg1<<Message_EndLine; return IFSelect_RetError; }
sout<<"Shape "<<arg1<<" : ";
Handle(TColStd_HSequenceOfTransient) list =
XSControl_ConnectedShapes::AdjacentEntities (Shape,TP,TopAbs_FACE);
Standard_Integer i, nb = list->Length();
- sout<<nb<<" Entities produced Connected Shapes :"<<endl;
+ sout<<nb<<" Entities produced Connected Shapes :"<<Message_EndLine;
const Handle(Interface_InterfaceModel) &model = XSControl::Session(pilot)->Model();
sout<<"(";
for (i = 1; i <= nb; i ++) {
if (i > 1) sout<<",";
sout<<model->Number(list->Value(i));
}
- sout<<")"<<endl;
+ sout<<")"<<Message_EndLine;
return IFSelect_RetDone;
}
Standard_Integer argc = pilot->NbWords();
Handle(Message_Messenger) sout = Message::DefaultMessenger();
if (argc < 4) {
- sout<<"Give : filename or . for current model; varname or . to take fileroot\n GiveList, * for all transferrable roots"<<endl;
+ sout<<"Give : filename or . for current model; varname or . to take fileroot\n GiveList, * for all transferrable roots"<<Message_EndLine;
return IFSelect_RetError;
}
const Standard_CString arg1 = pilot->Arg(1);
TCollection_AsciiString fnom,rnom;
Standard_Boolean modfic = XSControl_FuncShape::FileAndVar
(WS,arg1,arg2,"IMPORT",fnom,rnom);
- if (modfic) sout<<" File to read : "<<fnom<<endl;
- else sout<<" Model taken from the session : "<<fnom<<endl;
- sout<<" -- Names of variables BREP-DRAW prefixed by : "<<rnom<<endl;
+ if (modfic) sout<<" File to read : "<<fnom<<Message_EndLine;
+ else sout<<" Model taken from the session : "<<fnom<<Message_EndLine;
+ sout<<" -- Names of variables BREP-DRAW prefixed by : "<<rnom<<Message_EndLine;
// keep the current command, because sub-commands will be called
TCollection_AsciiString compart = pilot->CommandPart (3);
comload.AssignCat(arg1);
IFSelect_ReturnStatus status = pilot->Execute(comload);
if (status != IFSelect_RetDone)
- { sout<<"Abandon import"<<endl; return status; }
+ { sout<<"Abandon import"<<Message_EndLine; return status; }
} else {
- sout<<"Currently Loaded Model"<<endl;
+ sout<<"Currently Loaded Model"<<Message_EndLine;
}
// Selecting Entities
sout<<"List given by "<<compart.ToCString()<<" : ";
list = WS->GiveList (compart.ToCString());
}
- if (list.IsNull()) { sout<<"No list defined. Abandon"<<endl; return IFSelect_RetError; }
+ if (list.IsNull()) { sout<<"No list defined. Abandon"<<Message_EndLine; return IFSelect_RetError; }
Standard_Integer nbl = list->Length();
- sout<<"Nb entities selected : "<<nbl<<endl;
+ sout<<"Nb entities selected : "<<nbl<<Message_EndLine;
// Starting Transfer
WS->InitTransferReader (0);
const Handle(XSControl_TransferReader) &TR = WS->TransferReader();
- if (TR.IsNull()) { sout<<" init not done or failed"<<endl; return IFSelect_RetError; }
+ if (TR.IsNull()) { sout<<" init not done or failed"<<Message_EndLine; return IFSelect_RetError; }
TR->BeginTransfer();
// Transferring
Standard_Integer nbt = TR->TransferList(list);
- sout<<"Nb Entities Selected : "<<nbl<<" have given "<<nbt<<" results"<<endl;
+ sout<<"Nb Entities Selected : "<<nbl<<" have given "<<nbt<<" results"<<Message_EndLine;
// Filling VARS. one compound (trimpcomp) or one shape per ent (trimport)
Standard_Boolean iscomp = (pilot->Arg(0)[5] == 'c');
BRep_Builder B;
B.MakeCompound (C);
Handle(Interface_InterfaceModel) mdl = TR->Model();
- if (mdl.IsNull()) { sout<<" modele absent"<<endl; return IFSelect_RetError; }
+ if (mdl.IsNull()) { sout<<" modele absent"<<Message_EndLine; return IFSelect_RetError; }
for (Standard_Integer il= 1; il <= nbl; il ++) {
Handle(Standard_Transient) ent = list->Value(il);
sh = TR->ShapeResult(ent);
XSControl::Vars(pilot)->SetShape(nomsh,sh);
}
}
- if (nbs == 0) sout<<"No Shape produced"<<endl;
+ if (nbs == 0) sout<<"No Shape produced"<<Message_EndLine;
else if (nbs == 1) {
- sout<<"One Shape produced, named "<<rnom.ToCString()<<endl;
+ sout<<"One Shape produced, named "<<rnom.ToCString()<<Message_EndLine;
XSControl::Vars(pilot)->SetShape(rnom.ToCString(),sh);
} else if (iscomp) {
- sout<<"One compound made of "<<nbs<<" Shapes, named "<<rnom.ToCString()<<endl;
+ sout<<"One compound made of "<<nbs<<" Shapes, named "<<rnom.ToCString()<<Message_EndLine;
XSControl::Vars(pilot)->SetShape(rnom.ToCString(),C);
} else { // several individual shapes
- sout<<nbs<<" Shapes, named "<<rnom.ToCString()<<"_1 to "<<rnom.ToCString()<<"_"<<nbs<<endl;
+ sout<<nbs<<" Shapes, named "<<rnom.ToCString()<<"_1 to "<<rnom.ToCString()<<"_"<<nbs<<Message_EndLine;
}
return IFSelect_RetDone;
// **** twrite ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
Handle(XSControl_TransferWriter) TW = XSControl::Session(pilot)->TransferWriter();
- if (argc < 2) { sout<<" donner nom de shape draw"<<endl; return IFSelect_RetError; }
- sout<<"Attention, on alimente le modele courant ..."<<endl;
+ if (argc < 2) { sout<<" donner nom de shape draw"<<Message_EndLine; return IFSelect_RetError; }
+ sout<<"Attention, on alimente le modele courant ..."<<Message_EndLine;
// Shape
for (Standard_Integer i = 1; i < argc; i ++) {
const char* ai = (const char *)pilot->Arg(i);
TopoDS_Shape Shape = XSControl::Vars(pilot)->GetShape(ai);
- if (Shape.IsNull()) { sout<<"pas un nom de shape draw:"<<arg1<<endl; continue; }
+ if (Shape.IsNull()) { sout<<"pas un nom de shape draw:"<<arg1<<Message_EndLine; continue; }
sout<<"Pour Shape : "<<ai;
Standard_Integer stat = TW->TransferWriteShape (XSControl::Session(pilot)->Model(),Shape);
- sout<<" Transfer Write Status = "<<stat<<endl;
+ sout<<" Transfer Write Status = "<<stat<<Message_EndLine;
}
pilot->Session()->ComputeGraph();
// Transient ? (Geom) : ignore
if (list.IsNull()) list = new TopTools_HSequenceOfShape();
if (name[0] == '*' && (name[1] == '\0' || (name[1] == '*' && name[2] == '\0'))) {
const Handle(Transfer_TransientProcess) &TP = session->TransferReader()->TransientProcess();
- if (TP.IsNull()) { sout<<"last transfer : unknown"<<endl;return 0; }
+ if (TP.IsNull()) { sout<<"last transfer : unknown"<<Message_EndLine;return 0; }
Handle(TopTools_HSequenceOfShape) li = TransferBRep::Shapes(TP,(name[1] == '\0'));
if (li.IsNull()) return 0;
list->Append (li);
list->Append(Shape);
nbsh ++;
}
- sout<<" -> taken "<<nbsh<<" Shapes"<<endl;
+ sout<<" -> taken "<<nbsh<<" Shapes"<<Message_EndLine;
return nbsh;
}
const char* a1 = (const char *)name;
TopoDS_Shape Shape = session->Vars()->GetShape(a1);
- if (Shape.IsNull()) { sout<<"not a shape draw:"<<a1<<endl; return 0; }
+ if (Shape.IsNull()) { sout<<"not a shape draw:"<<a1<<Message_EndLine; return 0; }
list->Append(Shape);
return 1;
}
if (argc > 1) return (XSControl::Session(pilot)->SelectNorm(arg1) ?
IFSelect_RetDone : IFSelect_RetFail);
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- sout<<"Selected Norm:"<<XSControl::Session(pilot)->SelectedNorm()<<endl;
+ sout<<"Selected Norm:"<<XSControl::Session(pilot)->SelectedNorm()<<Message_EndLine;
return IFSelect_RetVoid;
}
Handle(XSControl_Controller) control = WS->NormAdaptor();
Handle(Message_Messenger) sout = Message::DefaultMessenger();
if (argc == 1)
- sout<<"Current Norm. xnorm newnorm to change"<<endl;
- else sout<<"Current Norm :"<<endl;
- if (control.IsNull()) sout<<"no norm currently defined"<<endl;
+ sout<<"Current Norm. xnorm newnorm to change"<<Message_EndLine;
+ else sout<<"Current Norm :"<<Message_EndLine;
+ if (control.IsNull()) sout<<"no norm currently defined"<<Message_EndLine;
else
- sout<<" Long Name (complete) : "<<control->Name(Standard_False)<<endl
- << " Short name (resource) : "<<control->Name(Standard_True)<<endl;
+ sout<<" Long Name (complete) : "<<control->Name(Standard_False)<<Message_EndLine
+ << " Short name (resource) : "<<control->Name(Standard_True)<<Message_EndLine;
if (argc == 1) return IFSelect_RetVoid;
control = XSControl_Controller::Recorded(arg1);
if (control.IsNull()) {
- sout<<" No norm named : "<<arg1<<endl;
+ sout<<" No norm named : "<<arg1<<Message_EndLine;
return IFSelect_RetError;
}
WS->SetController(control);
- sout<<"new norm : "<<control->Name()<<endl;
+ sout<<"new norm : "<<control->Name()<<Message_EndLine;
return IFSelect_RetDone;
}
// **** newmodel ****
if (!XSControl::Session(pilot)->NewModel().IsNull()) return IFSelect_RetDone;
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- sout<<"No new Model produced"<<endl;
+ sout<<"No new Model produced"<<Message_EndLine;
return IFSelect_RetFail;
}
const Handle(Transfer_FinderProcess) &FP = XSControl::Session(pilot)->TransferWriter()->FinderProcess();
const Handle(Transfer_TransientProcess) &TP = XSControl::Session(pilot)->TransferReader()->TransientProcess();
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (modew) { if(!FP.IsNull()) FP->Clear(); else sout<<"No Transfer Write"<<endl; }
- else { if(!TP.IsNull()) TP->Clear(); else sout<<"No Transfer Read"<<endl; }
+ if (modew) { if(!FP.IsNull()) FP->Clear(); else sout<<"No Transfer Write"<<Message_EndLine; }
+ else { if(!TP.IsNull()) TP->Clear(); else sout<<"No Transfer Read"<<Message_EndLine; }
return IFSelect_RetDone;
}
//const Standard_CString arg2 = pilot->Arg(2);
const Handle(Transfer_TransientProcess) &TP = XSControl::Session(pilot)->TransferReader()->TransientProcess();
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (TP.IsNull()) { sout<<"No Transfer Read"<<endl; return IFSelect_RetError;}
+ if (TP.IsNull()) { sout<<"No Transfer Read"<<Message_EndLine; return IFSelect_RetError;}
// **** tpstat ****
Standard_Integer mod1 = -1;
}
}
// A present help eventuel
- if (mod1 < -1) sout<<"Unknown Mode"<<endl;
+ if (mod1 < -1) sout<<"Unknown Mode"<<Message_EndLine;
if (mod1 < 0) {
sout<<"Modes available :\n"
<<"g : general c : checks (count) C (list)\n"
<<" L : list per couple type entity/result\n"
<<" *n *s *b *t *r *l *L : idem on ALL recorded items\n"
<<" ?n ?s ?b ?t ... : idem on abnormal items\n"
- <<" n select : n applied on a selection idem for s b t r l"<<endl;
+ <<" n select : n applied on a selection idem for s b t r l"<<Message_EndLine;
if (mod1 < -1) return IFSelect_RetError;
return IFSelect_RetVoid;
}
XSControl_TransferReader::PrintStatsOnList (TP,list,mod1,mod2);
// TP->PrintStats (1,sout);
}
- else sout<<"TransferRead : not defined"<<endl;
+ else sout<<"TransferRead : not defined"<<Message_EndLine;
return IFSelect_RetVoid;
}
const Handle(Transfer_TransientProcess) &TP = XSControl::Session(pilot)->TransferReader()->TransientProcess();
// **** tpent ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (TP.IsNull()) { sout<<"No Transfer Read"<<endl; return IFSelect_RetError;}
+ if (TP.IsNull()) { sout<<"No Transfer Read"<<Message_EndLine; return IFSelect_RetError;}
Handle(Interface_InterfaceModel) model = TP->Model();
if (model.IsNull()) return IFSelect_RetFail;
- if (argc < 2) { sout<<"Give ENTITY NUMBER (IN MODEL TransferProcess)"<<endl; return IFSelect_RetError; }
+ if (argc < 2) { sout<<"Give ENTITY NUMBER (IN MODEL TransferProcess)"<<Message_EndLine; return IFSelect_RetError; }
Standard_Integer num = atoi(arg1);
- if (num <= 0 || num > model->NbEntities()) { sout<<"Number not in [1 - "<<model->NbEntities()<<"]"<<endl; return IFSelect_RetError; }
+ if (num <= 0 || num > model->NbEntities()) { sout<<"Number not in [1 - "<<model->NbEntities()<<"]"<<Message_EndLine; return IFSelect_RetError; }
Handle(Standard_Transient) ent = model->Value(num);
Standard_Integer index = TP->MapIndex (ent);
- if (index == 0) sout<<"Entity "<<num<<" not recorded in transfer"<<endl;
+ if (index == 0) sout<<"Entity "<<num<<" not recorded in transfer"<<Message_EndLine;
else XSControl::Session(pilot)->PrintTransferStatus (index,Standard_False,sout);
return IFSelect_RetVoid;
}
const Standard_CString arg1 = pilot->Arg(1);
// **** tpitem/tproot/twitem/twroot ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 2) { sout<<"Give ITEM NUMBER (in TransferProcess)"<<endl; return IFSelect_RetError; }
+ if (argc < 2) { sout<<"Give ITEM NUMBER (in TransferProcess)"<<Message_EndLine; return IFSelect_RetError; }
Standard_Integer num = atoi(arg1);
if (pilot->Word(0).Value(3) == 'r') num = -num;
Standard_Boolean modew = Standard_False;
Handle(Transfer_Finder) finder;
Handle(Standard_Transient) ent;
if (!XSControl::Session(pilot)->PrintTransferStatus(num,modew,sout))
- sout<<" - Num="<<num<<" incorrect"<<endl;
+ sout<<" - Num="<<num<<" incorrect"<<Message_EndLine;
return IFSelect_RetVoid;
}
Handle(Standard_Transient) ent;
Handle(Message_Messenger) sout = Message::DefaultMessenger();
if (mdl.IsNull() || TR.IsNull() || TP.IsNull())
- { sout<<" init not done"<<endl; return IFSelect_RetError; }
+ { sout<<" init not done"<<Message_EndLine; return IFSelect_RetError; }
if (!tous) num = atoi(arg1);
// Enregistrer les racines
if (tous) {
Standard_Integer nb = TP->NbRoots();
- sout<<" Recording "<<nb<<" Roots"<<endl;
+ sout<<" Recording "<<nb<<" Roots"<<Message_EndLine;
for (Standard_Integer i = 1; i <= nb; i ++) {
ent = TP->Root(i);
- if (TR->RecordResult (ent)) sout<<" Root n0."<<i<<endl;
- else sout<<" Root n0."<<i<<" not recorded"<<endl;
+ if (TR->RecordResult (ent)) sout<<" Root n0."<<i<<Message_EndLine;
+ else sout<<" Root n0."<<i<<" not recorded"<<Message_EndLine;
}
} else {
- if (num < 1 || num > mdl->NbEntities()) sout<<"incorrect number:"<<num<<endl;
- else if (TR->RecordResult(mdl->Value(num))) sout<<" Entity n0."<<num<<endl;
- else sout<<" Entity n0."<<num<<" not recorded"<<endl;
+ if (num < 1 || num > mdl->NbEntities()) sout<<"incorrect number:"<<num<<Message_EndLine;
+ else if (TR->RecordResult(mdl->Value(num))) sout<<" Entity n0."<<num<<Message_EndLine;
+ else sout<<" Entity n0."<<num<<" not recorded"<<Message_EndLine;
}
return IFSelect_RetDone;
}
Handle(Message_Messenger) sout = Message::DefaultMessenger();
// **** trstat : TransferReader ****
const Handle(XSControl_TransferReader) &TR = XSControl::Session(pilot)->TransferReader();
- if (TR.IsNull()) { sout<<" init not done"<<endl; return IFSelect_RetError; }
+ if (TR.IsNull()) { sout<<" init not done"<<Message_EndLine; return IFSelect_RetError; }
Handle(Interface_InterfaceModel) mdl = TR->Model();
- if (mdl.IsNull()) { sout<<" No model"<<endl; return IFSelect_RetError; }
- sout<<" Statistics : FileName : "<<TR->FileName()<<endl;
+ if (mdl.IsNull()) { sout<<" No model"<<Message_EndLine; return IFSelect_RetError; }
+ sout<<" Statistics : FileName : "<<TR->FileName()<<Message_EndLine;
if (argc == 1) {
// stats generales
TR->PrintStats(10,0);
} else {
// stats unitaires
Standard_Integer num = atoi(arg1);
- if (num < 1 || num > mdl->NbEntities()) { sout<<" incorrect number:"<<arg1<<endl; return IFSelect_RetError; }
+ if (num < 1 || num > mdl->NbEntities()) { sout<<" incorrect number:"<<arg1<<Message_EndLine; return IFSelect_RetError; }
Handle(Standard_Transient) ent = mdl->Value(num);
- if (!TR->IsRecorded(ent)) { sout<<" Entity "<<num<<" not recorded"<<endl; return IFSelect_RetError; }
+ if (!TR->IsRecorded(ent)) { sout<<" Entity "<<num<<" not recorded"<<Message_EndLine; return IFSelect_RetError; }
Handle(Transfer_ResultFromModel) RM = TR->FinalResult(ent);
Handle(TColStd_HSequenceOfTransient) list = TR->CheckedList(ent);
Standard_Integer i, nb = list->Length();
if (nb > 0) sout<<" Entities implied by Check/Result :"<<nb<<" i.e.:";
for (i = 1; i <= nb; i ++) { sout<<" "; mdl->Print(list->Value(i),sout); }
- sout<<endl;
- if (RM.IsNull()) { sout<<" no other info"<<endl; return IFSelect_RetVoid; }
+ sout<<Message_EndLine;
+ if (RM.IsNull()) { sout<<" no other info"<<Message_EndLine; return IFSelect_RetVoid; }
Interface_CheckIterator chl = RM->CheckList(Standard_False);
pilot->Session()->PrintCheckList(chl,Standard_False,IFSelect_EntitiesByItem);
}
TR = XSControl::Session(pilot)->TransferReader();
if (TR.IsNull()) {
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- sout<<" init not done or failed"<<endl;
+ sout<<" init not done or failed"<<Message_EndLine;
return IFSelect_RetError;
}
}
// **** tread : TransferReader ****
Handle(Message_Messenger) sout = Message::DefaultMessenger();
const Handle(XSControl_TransferReader) &TR = XSControl::Session(pilot)->TransferReader();
- if (TR.IsNull()) { sout<<" init not done"<<endl; return IFSelect_RetError; }
+ if (TR.IsNull()) { sout<<" init not done"<<Message_EndLine; return IFSelect_RetError; }
const Handle(Interface_InterfaceModel) &mdl = TR->Model();
- if (mdl.IsNull()) { sout<<" No model"<<endl; return IFSelect_RetError; }
+ if (mdl.IsNull()) { sout<<" No model"<<Message_EndLine; return IFSelect_RetError; }
if (argc < 2) {
// DeclareAndCast(IFSelect_Selection,sel,pilot->Session()->NamedItem("xst-model-roots"));
Handle(Standard_Transient) sel = pilot->Session()->NamedItem("xst-model-roots");
- if (sel.IsNull()) { sout<<"Select Roots absent"<<endl; return IFSelect_RetError; }
+ if (sel.IsNull()) { sout<<"Select Roots absent"<<Message_EndLine; return IFSelect_RetError; }
Handle(TColStd_HSequenceOfTransient) list = pilot->Session()->GiveList(sel);
- sout<<" Transferring all roots i.e. : "<<TR->TransferList(list)<<endl;
+ sout<<" Transferring all roots i.e. : "<<TR->TransferList(list)<<Message_EndLine;
} else {
Handle(TColStd_HSequenceOfTransient) list =
IFSelect_Functions::GiveList(pilot->Session(),pilot->CommandPart(1));
- sout<<" Transfer of "<<list->Length()<<" entities"<<endl;
+ sout<<" Transfer of "<<list->Length()<<" entities"<<Message_EndLine;
Standard_Integer nb = TR->TransferList(list);
- sout<<" Gives "<<nb<<" results"<<endl;
+ sout<<" Gives "<<nb<<" results"<<Message_EndLine;
}
return IFSelect_RetDone;
}
// **** TReader -> TProcess ****
const Handle(XSControl_TransferReader) &TR = XSControl::Session(pilot)->TransferReader();
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (TR.IsNull()) sout<<" No TransferReader"<<endl;
- else if (TR->TransientProcess().IsNull()) sout<<" Transfer Reader without Process"<<endl;
+ if (TR.IsNull()) sout<<" No TransferReader"<<Message_EndLine;
+ else if (TR->TransientProcess().IsNull()) sout<<" Transfer Reader without Process"<<Message_EndLine;
return IFSelect_RetVoid;
}
Standard_Integer modemin,modemax;
Handle(Message_Messenger) sout = Message::DefaultMessenger();
if (control->ModeWriteBounds (modemin,modemax)) {
- sout<<"Write Mode : allowed values "<<modemin<<" to "<<modemax<<endl;
+ sout<<"Write Mode : allowed values "<<modemin<<" to "<<modemax<<Message_EndLine;
for (Standard_Integer modd = modemin; modd <= modemax; modd ++) {
- sout<<modd<<" : "<<control->ModeWriteHelp (modd)<<endl;;
+ sout<<modd<<" : "<<control->ModeWriteHelp (modd)<<Message_EndLine;;
}
}
- sout<<"Write Mode : actual = "<<TW->TransferMode()<<endl;
+ sout<<"Write Mode : actual = "<<TW->TransferMode()<<Message_EndLine;
if (argc <= 1) return IFSelect_RetVoid;
Standard_Integer mod = atoi(arg1);
- sout<<"New value -> "<<arg1<<endl;
+ sout<<"New value -> "<<arg1<<Message_EndLine;
TW->SetTransferMode(mod);
- if (!control->IsModeWrite (mod)) sout<<"Warning : this new value is not supported"<<endl;
+ if (!control->IsModeWrite (mod)) sout<<"Warning : this new value is not supported"<<Message_EndLine;
return IFSelect_RetDone;
}
// XSControl_TransferWriter::PrintStatsProcess (FP,mod1,mod2);
FP->PrintStats (1,sout);
}
- else sout<<"TransferWrite: not defined"<<endl;
+ else sout<<"TransferWrite: not defined"<<Message_EndLine;
return IFSelect_RetVoid;
}
Standard_EXPORT TopoDS_Shape OneShape() const;
//! Prints the check list attached to loaded data, on the Standard
- //! Trace File (starts at cout)
+ //! Trace File (starts at std::cout)
//! All messages or fails only, according to <failsonly>
//! mode = 0 : per entity, prints messages
//! mode = 1 : per message, just gives count of entities per check
Standard_Integer num = myModel->Number(ent);
Handle(TCollection_HAsciiString) lab = myModel->StringLabel(ent);
sout<<"\n*******************************************************************\n";
- sout << "****** Transferring one Entity ******"<<endl;
+ sout << "****** Transferring one Entity ******"<<Message_EndLine;
if (!lab.IsNull())
sout<<"****** N0 in file : "<<Interface_MSG::Blanks(num,5)<<num
<<" Ident : "<<lab->ToCString()
// Pour le log-file
if (level > 0) {
sout<<"\n*******************************************************************\n";
- sout << "****** Transferring a list of "<<Interface_MSG::Blanks(nb,5)<<" Entities ******"<<endl;
+ sout << "****** Transferring a list of "<<Interface_MSG::Blanks(nb,5)<<" Entities ******"<<Message_EndLine;
sout<<"\n*******************************************************************\n";
Handle(IFSelect_SignatureList) sl = new IFSelect_SignatureList;
Interface_EntityIterator roots = G.RootEntities();
Standard_Integer nb = roots.NbEntities();
sout<<"\n*******************************************************************\n";
- sout << "****** Transferring the "<<Interface_MSG::Blanks(nb,5)<<" Root Entities ******"<<endl;
+ sout << "****** Transferring the "<<Interface_MSG::Blanks(nb,5)<<" Root Entities ******"<<Message_EndLine;
sout<<"\n*******************************************************************\n";
Handle(IFSelect_SignatureList) sl = new IFSelect_SignatureList;
for (roots.Start(); roots.More(); roots.Next())
Handle(Message_Messenger) sout = myTP->Messenger();
// A ameliorer ... !
sout<<"\n*******************************************************************\n";
- sout << "****** Statistics on Transfer (Read) ******"<<endl;
+ sout << "****** Statistics on Transfer (Read) ******"<<Message_EndLine;
sout<<"\n*******************************************************************\n";
- if (what > 10) { sout<<" *** Not yet implemented"<<endl; return; }
+ if (what > 10) { sout<<" *** Not yet implemented"<<Message_EndLine; return; }
if (what < 10) {
- sout << "****** Data recorded on Last Transfer ******"<<endl;
+ sout << "****** Data recorded on Last Transfer ******"<<Message_EndLine;
PrintStatsProcess (myTP,what,mode);
}
// reste what = 10 : on liste les racines des final results
- sout << "****** Final Results ******"<<endl;
- if (myModel.IsNull()) { sout<<"**** Model unknown"<<endl; return; }
+ sout << "****** Final Results ******"<<Message_EndLine;
+ if (myModel.IsNull()) { sout<<"**** Model unknown"<<Message_EndLine; return; }
Handle(TColStd_HSequenceOfTransient) list = RecordedList();
Standard_Integer i, nb = list->Length();
Handle(IFSelect_SignatureList) counter;
}
if (!counter.IsNull()) counter->PrintList(sout,myModel,pcm);
- sout<<endl;
+ sout<<Message_EndLine;
}
{
if (nb <= 0 || nl == 0) return;
sout<<"****** "<<mess<<": ";
- if (nb == nl) sout<<"100 %"<<endl;
- else if (nb*100/nl == 0) sout<<"< 1 %"<<endl;
- else sout<<(nb*100/nl < 10 ? " " : " ")<<nb*100/nl<<" %"<<endl;
+ if (nb == nl) sout<<"100 %"<<Message_EndLine;
+ else if (nb*100/nl == 0) sout<<"< 1 %"<<Message_EndLine;
+ else sout<<(nb*100/nl < 10 ? " " : " ")<<nb*100/nl<<" %"<<Message_EndLine;
}
if (what == 0) { TP->PrintStats(0,sout); return; }
sout<<"\n*******************************************************************\n";
- sout << "****** Statistics on Transfer Process (Read) ******"<<endl;
+ sout << "****** Statistics on Transfer Process (Read) ******"<<Message_EndLine;
if (what == 1) sout << "****** Individual Transfers (Roots) ******\n";
if (what == 2) sout << "****** All recorded data about Transfer ******\n";
if (what == 3) sout << "****** Abnormal records ******\n";
IFSelect_PrintCount pcm = IFSelect_CountByItem;
if (mode == 6) pcm = IFSelect_ListByItem;
- sout <<"**** Entities in Model : "<<model->NbEntities()<<endl;
- sout <<"**** Nb Items (Transfer) : "<<nb<<endl;
+ sout <<"**** Entities in Model : "<<model->NbEntities()<<Message_EndLine;
+ sout <<"**** Nb Items (Transfer) : "<<nb<<Message_EndLine;
if (!nolist)
- sout<<"**** Nb Items (Listed) : "<<nl<<endl;
+ sout<<"**** Nb Items (Listed) : "<<nl<<Message_EndLine;
for (itrp.Start(); itrp.More(); itrp.Next()) {
nbi ++;
else if (mode == 1 || mode == 2) {
sout<<"["<<Interface_MSG::Blanks (nbi,4)<<nbi<<" ]:";
model->Print (ent,sout);
- sout<<" "<<model->TypeName(ent,Standard_False)<<" (not recorded)"<<endl;
+ sout<<" "<<model->TypeName(ent,Standard_False)<<" (not recorded)"<<Message_EndLine;
continue;
}
}
sout<<"["<<Interface_MSG::Blanks (i,4)<<i<<" ]:";
model->Print (ent,sout);
sout<<" "<<model->TypeName(ent,Standard_False);
- sout<<" Result:"<<mess<<endl;
+ sout<<" Result:"<<mess<<Message_EndLine;
if (mode == 1) continue;
const Handle(Interface_Check)& ch = binder->Check();
if (newnbw > 0) {
sout<<" - Warnings : "<<newnbw<<":\n";
- for (newi = 1; newi <= newnbw; newi ++) sout<<ch->CWarning(newi)<<endl;
+ for (newi = 1; newi <= newnbw; newi ++) sout<<ch->CWarning(newi)<<Message_EndLine;
}
if (newnbf > 0) {
sout<<" - Fails : "<<newnbf<<":\n";
- for (newi = 1; newi <= newnbf; newi ++) sout<<ch->CFail(newi)<<endl;
+ for (newi = 1; newi <= newnbf; newi ++) sout<<ch->CFail(newi)<<Message_EndLine;
}
continue;
}
// Fin de l iteration
}
if (!counter.IsNull()) counter->PrintList(sout,model,pcm);
- else sout<<endl;
+ else sout<<Message_EndLine;
// Pourcentages
if (mode != 3 && nbi > 0) {
- sout << "****** Percentages according Transfer Status ******"<<endl;
+ sout << "****** Percentages according Transfer Status ******"<<Message_EndLine;
PrintPercent (sout,"Result ",nbr+nbrw,nl);
PrintPercent (sout,"Result + FAIL ",nbrf,nl);
PrintPercent (sout,"FAIL, no Result ",nbf,nl);
PrintPercent (sout,"Just Warning ",nbw,nl);
PrintPercent (sout,"Nothing Recorded",nbnr,nl);
/* if (nbr+nbrw > 0)
- sout<<"****** Result : "<< (nbr+nbrw)*100/nl<<" %"<<endl;
+ sout<<"****** Result : "<< (nbr+nbrw)*100/nl<<" %"<<std::endl;
if (nbrf > 0)
- sout<<"****** Result + FAIL : "<< (nbrf)*100/nl<<" %"<<endl;
+ sout<<"****** Result + FAIL : "<< (nbrf)*100/nl<<" %"<<std::endl;
if (nbf > 0)
- sout<<"****** FAIL, no Result : "<< (nbf)*100/nl<<" %"<<endl;
+ sout<<"****** FAIL, no Result : "<< (nbf)*100/nl<<" %"<<std::endl;
if (nbw > 0)
- sout<<"****** Just Warning : "<< (nbw)*100/nl<<" %"<<endl;
+ sout<<"****** Just Warning : "<< (nbw)*100/nl<<" %"<<std::endl;
if (nbnr > 0)
- sout<<"****** Nothing Recorded: "<< (nbnr)*100/nl<<" %"<<endl; */
+ sout<<"****** Nothing Recorded: "<< (nbnr)*100/nl<<" %"<<std::endl; */
}
return;
}
Handle(Message_Messenger) sout = myTransferWriter->Messenger();
// A ameliorer ... !
sout<<"\n*******************************************************************\n";
- sout << "****** Statistics on Transfer (Write) ******"<<endl;
+ sout << "****** Statistics on Transfer (Write) ******"<<Message_EndLine;
sout<<"\n*******************************************************************\n";
sout << "****** Transfer Mode = "<<myTransferMode;
Standard_CString modehelp = myController->ModeWriteHelp (myTransferMode);
if (modehelp && modehelp[0] != 0) sout<<" I.E. "<<modehelp;
- sout<<" ******"<<endl;
+ sout<<" ******"<<Message_EndLine;
}
OCC_CATCH_SIGNALS
PrintStats(myTransferMode);
sout << "****** Transferring Transient, CDL Type = ";
- sout<<obj->DynamicType()->Name()<<" ******"<<endl;
+ sout<<obj->DynamicType()->Name()<<" ******"<<Message_EndLine;
status = myController->TransferWriteTransient
(obj,myTransferWriter,model,myTransferMode);
}
catch(Standard_Failure const& anException) {
sout<<"**** **** TransferWriteShape, EXCEPTION : ";
sout<<anException.GetMessageString();
- sout<<endl;
+ sout<<Message_EndLine;
status = IFSelect_RetFail;
}
return status;
OCC_CATCH_SIGNALS
PrintStats(myTransferMode);
sout << "****** Transferring Shape, ShapeType = " << shape.ShapeType();
- sout<<" ******"<<endl;
+ sout<<" ******"<<Message_EndLine;
status = myController->TransferWriteShape
(shape,myTransferWriter,model,myTransferMode);
}
catch(Standard_Failure const& anException) {
sout<<"**** **** TransferWriteShape, EXCEPTION : ";
sout<<anException.GetMessageString();
- sout<<endl;
+ sout<<Message_EndLine;
status = IFSelect_RetFail;
}
return status;
void XSControl_Utils::TraceLine (const Standard_CString line) const
{
Handle(Message_Messenger) sout = Message::DefaultMessenger();
- sout<<line<<endl;
+ sout<<line<<Message_EndLine;
}
void XSControl_Utils::TraceLines (const Handle(Standard_Transient)& lines) const
if (!linha.IsNull()) {
nb = linha->Length();
for (i = 1; i <= nb; i ++)
- if (!linha->Value(i).IsNull()) sout<<linha->Value(i)->ToCString()<<endl;
+ if (!linha->Value(i).IsNull()) sout<<linha->Value(i)->ToCString()<<Message_EndLine;
return;
}
DeclareAndCast(TColStd_HSequenceOfAsciiString,lina,lines);
if (!lina.IsNull()) {
nb = lina->Length();
for (i = 1; i <= nb; i ++)
- sout<<lina->Value(i).ToCString()<<endl;
+ sout<<lina->Value(i).ToCString()<<Message_EndLine;
return;
}
DeclareAndCast(TColStd_HSequenceOfHExtendedString,linhe,lines);
nb = linhe->Length();
for (i = 1; i <= nb; i ++)
if (!linhe->Value(i).IsNull())
- sout << linhe->Value(i) << endl;
+ sout << linhe->Value(i) << Message_EndLine;
return;
}
DeclareAndCast(TColStd_HSequenceOfExtendedString,linee,lines);
if (!linee.IsNull()) {
nb = linee->Length();
for (i = 1; i <= nb; i ++)
- sout << linee->Value(i) << endl;
+ sout << linee->Value(i) << Message_EndLine;
return;
}
DeclareAndCast(TCollection_HAsciiString,lin1a,lines);
{
S<<" ** Transfer Root n0."<<ne;
}
- S<<endl;
+ S<<Message_EndLine;
ent = FP->FindTransient(finder);
- S<<" -> Type "<<finder->DynamicType()->Name()<<endl;
+ S<<" -> Type "<<finder->DynamicType()->Name()<<Message_EndLine;
FP->StartTrace (binder,finder,0,0); // pb sout/S
if (!ent.IsNull()) {
S<<" ** Resultat Transient, type "<<ent->DynamicType()->Name();
const Handle(Interface_InterfaceModel) &model = Model();
if (!model.IsNull())
{ S<<" In output Model, Entity "; model->Print(ent,S); }
- S<<endl;
+ S<<Message_EndLine;
}
}
else {
if (TP.IsNull()) return Standard_False;
Handle(Interface_InterfaceModel) model = TP->Model();
- if (model.IsNull()) cout<<"No Model"<<endl;
- else if (model != Model()) cout<<"Model different from the session"<<endl;
+ if (model.IsNull()) std::cout<<"No Model"<<std::endl;
+ else if (model != Model()) std::cout<<"Model different from the session"<<std::endl;
if (num == 0) return Standard_False;
Standard_Integer ne=0, nr=0, max = TP->NbMapped() ,maxr = TP->NbRoots();
{
S<<" ** Transfer Root n0."<<ne;
}
- S<<endl;
+ S<<Message_EndLine;
if (!model.IsNull()) { S<<" In Model, Entity "; model->Print(ent,S); }
binder = TP->MapItem (ne);
- S<<endl;
+ S<<Message_EndLine;
TP->StartTrace (binder,ent,0,0);
}
Standard_Integer i,nbw = ch->NbWarnings(), nbf = ch->NbFails();
if (nbw > 0) {
S<<" - Warnings : "<<nbw<<" :\n";
- for (i = 1; i <= nbw; i ++) S<<ch->CWarning(i)<<endl;
+ for (i = 1; i <= nbw; i ++) S<<ch->CWarning(i)<<Message_EndLine;
}
if (nbf > 0) {
S<<" - Fails : "<<nbf<<" :\n";
- for (i = 1; i <= nbf; i ++) S<<ch->CFail(i)<<endl;
+ for (i = 1; i <= nbf; i ++) S<<ch->CFail(i)<<Message_EndLine;
}
}
return Standard_True;
void XSDRAW::SetController (const Handle(XSControl_Controller)& control)
{
if (thepilot.IsNull()) XSDRAW::LoadSession();
- if (control.IsNull()) cout<<"XSTEP Controller not defined"<<endl;
+ if (control.IsNull()) std::cout<<"XSTEP Controller not defined"<<std::endl;
else if (!Session().IsNull()) Session()->SetController (control);
- else cout<<"XSTEP Session badly or not defined"<<endl;
+ else std::cout<<"XSTEP Session badly or not defined"<<std::endl;
}
Handle(TColStd_HSequenceOfTransient) list;
if (!first || first[0] == '\0') {
char ligne[80]; ligne[0] = '\0'; char truc;
-// cin.clear(); cin.get (ligne,79,'\n');
- cin >> ligne; Standard_Size ln = strlen(ligne);
+// std::cin.clear(); std::cin.get (ligne,79,'\n');
+ std::cin >> ligne; Standard_Size ln = strlen(ligne);
char *ff = &ligne[0], *ss = NULL;
- cin.get(truc); if (truc != '\n') { cin>>&ligne[ln+1]; ss = &ligne[ln+1]; }
+ std::cin.get(truc); if (truc != '\n') { std::cin>>&ligne[ln+1]; ss = &ligne[ln+1]; }
return XSDRAW::GetList (ff,ss);
}
// return IFSelect_Functions::GiveList (Session(),first,second);
Standard_Integer XSDRAW_WHAT (const Handle(Standard_Transient)& ent)
{
- if (ent.IsNull()) { cout<<"(Null Handle)"<<endl; return 0; }
+ if (ent.IsNull()) { std::cout<<"(Null Handle)"<<std::endl; return 0; }
Handle(Interface_InterfaceModel) model = XSDRAW::Model();
- if (model.IsNull()) { cout<<"(No model) Type:"<<ent->DynamicType()->Name()<<endl; return 0; }
- cout<<" Num/Id :";
+ if (model.IsNull()) { std::cout<<"(No model) Type:"<<ent->DynamicType()->Name()<<std::endl; return 0; }
+ std::cout<<" Num/Id :";
model->Print (ent, Message::DefaultMessenger(), 0);
- cout<<" -- Recorded Type:"<<model->TypeName (ent)<<endl;
+ std::cout<<" -- Recorded Type:"<<model->TypeName (ent)<<std::endl;
return model->Number(ent);
}
{
char fname[110];
sprintf(fname, "Shape_%d",number);
- ofstream f(fname,ios::out);
- cout << "Output file name : " << fname << endl;
+ std::ofstream f(fname,std::ios::out);
+ std::cout << "Output file name : " << fname << std::endl;
f << "DBRep_DrawableShape\n";
BRepTools::Write(shape, f);
//mode OnlyVisible does not work.
// nent = Reader.NbRootsForTransfer();
if (!fromtcl) {
- cout<<"Mode (0 End, 1 Visible Roots, 2 All Roots, 3 Only One Entity, 4 Selection) :"<<flush;
+ std::cout<<"Mode (0 End, 1 Visible Roots, 2 All Roots, 3 Only One Entity, 4 Selection) :"<<std::flush;
modepri = -1;
// amv 26.09.2003 : this is used to avoid error of enter's simbol
char str[80];
- cin>>str;
+ std::cin>>str;
modepri = Draw::Atoi(str);
}
di<<"Count of shapes produced : "<<Reader.NbShapes()<<"\n";
Standard_Integer answer = 1;
if (Reader.NbShapes() > 1) {
- cout << " pass(0) one shape for all (1)\n or one shape per root (2)\n + WriteBRep (one for all : 3) (one per root : 4) : " << flush;
+ std::cout << " pass(0) one shape for all (1)\n or one shape per root (2)\n + WriteBRep (one for all : 3) (one per root : 4) : " << std::flush;
answer = -1;
//amv 26.09.2003
char str_a[80];
- cin >> str_a;
+ std::cin >> str_a;
answer = Draw::Atoi(str_a);
}
if ( answer == 0) continue;
}
else if (modepri == 3) { // One Entity
- cout << "Only One Entity"<<endl;
- cout<<"spline_continuity (read) : "<<Interface_Static::IVal("read.iges.bspline.continuity")<<" (0 : no modif, 1 : C1, 2 : C2)"<<endl;
- cout<<" To modify : command param read.iges.bspline.continuity"<<endl;
- cout << " give the number of the Entity : " << flush;
+ std::cout << "Only One Entity"<<std::endl;
+ std::cout<<"spline_continuity (read) : "<<Interface_Static::IVal("read.iges.bspline.continuity")<<" (0 : no modif, 1 : C1, 2 : C2)"<<std::endl;
+ std::cout<<" To modify : command param read.iges.bspline.continuity"<<std::endl;
+ std::cout << " give the number of the Entity : " << std::flush;
nent = XSDRAW::GetEntityNumber();
if (!Reader.TransferOne (nent)) di<<"Transfer entity n0 "<<nent<<" : no result\n";
}
}
else {
- cout<<"Name of Selection :"<<flush;
+ std::cout<<"Name of Selection :"<<std::flush;
list = XSDRAW::GetList();
- if (list.IsNull()) { cout<<"No list defined"<<endl; continue; }
+ if (list.IsNull()) { std::cout<<"No list defined"<<std::endl; continue; }
}
Standard_Integer nbl = list->Length();
if (nbl == 0) continue;
while (answer) {
if (!fromtcl) {
- cout<<"Choice: 0 abandon 1 transfer all 2 with confirmation 3 list n0s ents :"<<flush;
+ std::cout<<"Choice: 0 abandon 1 transfer all 2 with confirmation 3 list n0s ents :"<<std::flush;
answer = -1;
// anv 26.09.2003
char str_answer[80];
- cin>>str_answer;
+ std::cin>>str_answer;
answer = Draw::Atoi(str_answer);
}
if (answer <= 0 || answer > 3) continue;
if(!fromtcl)
fromtcl = argc > k;
if(aFullMode)
- cout<<"Full model for translation with additional info will be used \n"<<flush;
+ std::cout<<"Full model for translation with additional info will be used \n"<<std::flush;
else
- cout<<"Reduced model for translation without additional info will be used \n"<<flush;
+ std::cout<<"Reduced model for translation without additional info will be used \n"<<std::flush;
sr.WS()->SetModeStat(aFullMode);
di<<" Type:"<<sr.RootForTransfer(i)->DynamicType()->Name()<<"\n";
}
- cout<<"Mode (0 End, 1 root n0 1, 2 one root/n0, 3 one entity/n0, 4 Selection) : "<<flush;
- cin>>modepri;
+ std::cout<<"Mode (0 End, 1 root n0 1, 2 one root/n0, 3 one entity/n0, 4 Selection) : "<<std::flush;
+ std::cin>>modepri;
}
if (modepri == 0) { di<<"End Reading STEP\n"; return 0; }
if (modepri <= 2) {
num = 1;
if (modepri == 2) {
- cout<<"Root N0 : "<<flush; cin>>num;
+ std::cout<<"Root N0 : "<<std::flush; std::cin>>num;
}
progress->NewScope ( 80, "Translation" );
progress->Show();
}
else if (modepri == 3) {
- cout<<"Entity : "<<flush; num = XSDRAW::GetEntityNumber();
+ std::cout<<"Entity : "<<std::flush; num = XSDRAW::GetEntityNumber();
if (!sr.TransferOne (num)) di<<"Transfer entity n0 "<<num<<" : no result\n";
else {
nbs = sr.NbShapes();
}
if (list.IsNull()) { di<<"No list defined. Give a selection name or * for all transferrable roots\n"; continue; }
} else {
- cout<<"Name of Selection :"<<flush;
+ std::cout<<"Name of Selection :"<<std::flush;
list = XSDRAW::GetList();
if (list.IsNull()) { di<<"No list defined\n"; continue; }
}
const Interface_Graph& graph = WS->Graph();
STEPSelections_AssemblyExplorer exp(graph);
- exp.Dump(cout);
+ exp.Dump(std::cout);
return 0;
}
if( argc < 2)
{
- cout<<"Error: Invalid number of parameters. Should be: getfileunits name_file"<<endl;
+ std::cout<<"Error: Invalid number of parameters. Should be: getfileunits name_file"<<std::endl;
return 1;
}
STEPControl_Reader aStepReader;
VrmlData_DataMapOfShapeAppearance aShapeAppMap;
//-----------------------------------------------------------
- filebuf aFic;
- istream aStream (&aFic);
+ std::filebuf aFic;
+ std::istream aStream (&aFic);
- if (aFic.open(argv[2], ios::in)) {
+ if (aFic.open(argv[2], std::ios::in)) {
// Get path of the VRML file.
OSD_Path aPath(argv[2]);
const TColgp_Array1OfPnt& aCoords = myMesh->Nodes();
Standard_Integer len = aCoords.Length(), i, j;
myNodeCoords = new TColStd_HArray2OfReal(1, len, 1, 3);
- cout << "Nodes : " << len << endl;
+ std::cout << "Nodes : " << len << std::endl;
gp_XYZ xyz;
myElemNormals = new TColStd_HArray2OfReal(1, len, 1, 3);
myElemNodes = new TColStd_HArray2OfInteger(1, len, 1, 3);
- cout << "Elements : " << len << endl;
+ std::cout << "Elements : " << len << std::endl;
for( i = 1; i <= len; i++ )
{
myElemNormals->SetValue (i, 3, aN.Z());
}
}
- cout << "Construction is finished" << endl;
+ std::cout << "Construction is finished" << std::endl;
}
//================================================================
if (theGUID == XmlStorageDriver)
{
#ifdef OCCT_DEBUG
- cout << "XmlDrivers : Storage Plugin" << endl;
+ std::cout << "XmlDrivers : Storage Plugin" << std::endl;
#endif
static Handle(Standard_Transient) model_sd =
new XmlDrivers_DocumentStorageDriver
if (theGUID == XmlRetrievalDriver)
{
#ifdef OCCT_DEBUG
- cout << "XmlDrivers : Retrieval Plugin" << endl;
+ std::cout << "XmlDrivers : Retrieval Plugin" << std::endl;
#endif
static Handle (Standard_Transient) model_rd =
new XmlDrivers_DocumentRetrievalDriver ();
if (theGUID == XmlLStorageDriver)
{
#ifdef OCCT_DEBUG
- cout << "XmlLDrivers : Storage Plugin" << endl;
+ std::cout << "XmlLDrivers : Storage Plugin" << std::endl;
#endif
static Handle(Standard_Transient) model_sd =
new XmlLDrivers_DocumentStorageDriver
if (theGUID == XmlLRetrievalDriver)
{
#ifdef OCCT_DEBUG
- cout << "XmlLDrivers : Retrieval Plugin" << endl;
+ std::cout << "XmlLDrivers : Retrieval Plugin" << std::endl;
#endif
static Handle (Standard_Transient) model_rd =
new XmlLDrivers_DocumentRetrievalDriver ();
if (time(&nowbin) == (time_t) - 1)
{
#ifdef OCCT_DEBUG
- cerr << "Storage ERROR : Could not get time of day from time()" << endl;
+ std::cerr << "Storage ERROR : Could not get time of day from time()" << std::endl;
#endif
}
if (strftime(nowstr, SLENGTH, "%Y-%m-%d", nowstruct) == (size_t) 0)
{
#ifdef OCCT_DEBUG
- cerr << "Storage ERROR : Could not get string from strftime()" << endl;
+ std::cerr << "Storage ERROR : Could not get string from strftime()" << std::endl;
#endif
}
if (aParser.parse(theIStream, Standard_False, aWithoutRoot))
{
TCollection_AsciiString aData;
- cout << aParser.GetError(aData) << ": " << aData << endl;
+ std::cout << aParser.GetError(aData) << ": " << aData << std::endl;
myReaderStatus = PCDM_RS_FormatFailure;
return;
}
theNewDocument->SetReferenceCounter(aRefCounter);
}
catch (Standard_Failure const&) {
- // cout << "warning: could not read the reference counter in " << aFileName << endl;
+ // std::cout << "warning: could not read the reference counter in " << aFileName << std::endl;
TCollection_ExtendedString aMsg("Warning: ");
aMsg = aMsg.Cat("could not read the reference counter").Cat("\0");
if(!aMsgDriver.IsNull())
if(!anAbsolutePath.IsEmpty()) aPath=anAbsolutePath;
}
if(!aMsgDriver.IsNull()) {
- // cout << "reference found; ReferenceIdentifier: " << theReferenceIdentifier << "; File:" << thePath << ", version:" << theDocumentVersion;
+ // std::cout << "reference found; ReferenceIdentifier: " << theReferenceIdentifier << "; File:" << thePath << ", version:" << theDocumentVersion;
TCollection_ExtendedString aMsg("Warning: ");
aMsg = aMsg.Cat("reference found; ReferenceIdentifier: ").Cat(aRefId).Cat("; File:").Cat(aPath).Cat(", version:").Cat(aDocumentVersion).Cat("\0");
aMsgDriver->Send(aMsg.ToExtString(), Message_Warning);
return myRelocTable.Extent();
}
#ifdef OCCT_DEBUG
- cout << "First step failed" << endl; // No MessageDriver available
+ std::cout << "First step failed" << std::endl; // No MessageDriver available
#endif
return -1; // error
}
#ifdef OCCT_DEBUG
else if (!UnsuppTypesMap().Contains (aType))
{
- cout << "attribute driver for type "<< aType -> Name()<< " not found"<< endl;
+ std::cout << "attribute driver for type "<< aType -> Name()<< " not found"<< std::endl;
UnsuppTypesMap().Add (aType);
}
#endif
TCollection_AsciiString newName;
if(Storage_Schema::CheckTypeMigration(aName, newName)) {
#ifdef OCCT_DEBUG
- cout << "CheckTypeMigration:OldType = " <<aName.GetString() << " Len = "<<strlen(aName.GetString())<<endl;
- cout << "CheckTypeMigration:NewType = " <<newName << " Len = "<< newName.Length()<<endl;
+ std::cout << "CheckTypeMigration:OldType = " <<aName.GetString() << " Len = "<<strlen(aName.GetString())<<std::endl;
+ std::cout << "CheckTypeMigration:NewType = " <<newName << " Len = "<< newName.Length()<<std::endl;
#endif
aName = newName.ToCString();
}
else
{
const TCollection_AsciiString anAsciiName = aName;
- cerr << "XmlDriver warning: "
- << "label contains object of unknown type "<< anAsciiName<< endl;
+ std::cerr << "XmlDriver warning: "
+ << "label contains object of unknown type "<< anAsciiName<< std::endl;
}
#endif
}
aDelta = aDeltaValue != 0;
}
#ifdef OCCT_DEBUG
- cout << "Current Document Format Version = " << theRelocTable.GetHeaderData()->StorageVersion().IntegerValue() <<endl;
+ std::cout << "Current Document Format Version = " << theRelocTable.GetHeaderData()->StorageVersion().IntegerValue() <<std::endl;
#endif
aByteArray->SetDelta(aDelta);
<< n3 << " ";
}
- stream << ends;
+ stream << std::ends;
Standard_Character* dump = (Standard_Character*)stream.str(); // copying! Don't forget to delete it.
XmlObjMgt::SetStringValue(theTarget, dump, Standard_True);
// ostrstream aStream;
// aStream.rdbuf() -> setbuf (0, 16380);
myShapeSet.Write (aStream);
- aStream << ends;
+ aStream << std::ends;
char * aStr = (char *)aStream.str();
LDOM_Text aText = aDoc.createTextNode (aStr);
delete [] aStr;
TDF_Tool::Label(aNg->Label().Data(), anEntry, tLab, Standard_True);
aNgName.ContextLabel(tLab);
#ifdef OCCT_DEBUG
- cout << "Retrieving Context Label = " << anEntry.ToCString() <<endl;
+ std::cout << "Retrieving Context Label = " << anEntry.ToCString() <<std::endl;
#endif
}
}
#ifdef OCCT_DEBUG
else
- cout << "Retrieving Context Label is NULL" <<endl;
+ std::cout << "Retrieving Context Label is NULL" <<std::endl;
#endif
if(theRelocTable.GetHeaderData()->StorageVersion().IntegerValue() > 4 &&
}
#ifdef OCCT_DEBUG
else
- cout << "Current Document Format Version = " << theRelocTable.GetHeaderData()->StorageVersion().IntegerValue() <<endl;
+ std::cout << "Current Document Format Version = " << theRelocTable.GetHeaderData()->StorageVersion().IntegerValue() <<std::endl;
#endif
return Standard_True;
}
XmlObjMgt::SetTagEntryString (aDOMString, anEntry);
anElem.setAttribute(::ContextLabelString(), aDOMString);
#ifdef OCCT_DEBUG
- cout << "XmlMNaming_NamingDriver::Store: ContextLabel Entry = " << anEntry << endl;
+ std::cout << "XmlMNaming_NamingDriver::Store: ContextLabel Entry = " << anEntry << std::endl;
if (aDOMString != NULL)
{
Standard_CString aStr = Standard_CString(aDOMString.GetString());
- cout << "XmlMNaming_NamingDriver::Store: ContextLabel DOMString = " << aStr << endl;
+ std::cout << "XmlMNaming_NamingDriver::Store: ContextLabel DOMString = " << aStr << std::endl;
} else
- cout << "XmlMNaming_NamingDriver::Store: aDOMString is NULL" <<endl;
+ std::cout << "XmlMNaming_NamingDriver::Store: aDOMString is NULL" <<std::endl;
#endif
// orientation
if( myLocations == 0 )
{
#ifdef OCCT_DEBUG
- cout<<"Pointer to LocationSet is NULL\n";
+ std::cout<<"Pointer to LocationSet is NULL\n";
#endif
return;
}
if(aGUID == XmlStorageDriver)
{
#ifdef OCCT_DEBUG
- cout << "XmlTObjDrivers : Storage Plugin" << endl;
+ std::cout << "XmlTObjDrivers : Storage Plugin" << std::endl;
#endif
static Handle(Standard_Transient) model_sd
= new XmlTObjDrivers_DocumentStorageDriver
if(aGUID == XmlRetrievalDriver)
{
#ifdef OCCT_DEBUG
- cout << "XmlTObjDrivers : Retrieval Plugin" << endl;
+ std::cout << "XmlTObjDrivers : Retrieval Plugin" << std::endl;
#endif
static Handle (Standard_Transient) model_rd
= new XmlTObjDrivers_DocumentRetrievalDriver;
if(aGUID == XSStorageDriver)
{
#ifdef OCCT_DEBUG
- cout << "XmlXCAFDrivers : Storage Plugin" << endl;
+ std::cout << "XmlXCAFDrivers : Storage Plugin" << std::endl;
#endif
static Handle(Standard_Transient) model_sd
= new XmlXCAFDrivers_DocumentStorageDriver
if(aGUID == XSRetrievalDriver)
{
#ifdef OCCT_DEBUG
- cout << "XmlXCAFDrivers : Retrieval Plugin" << endl;
+ std::cout << "XmlXCAFDrivers : Retrieval Plugin" << std::endl;
#endif
static Handle (Standard_Transient) model_rd
= new XmlXCAFDrivers_DocumentRetrievalDriver;
o << "math_BissecNewton ";
if(Done) {
o << " Status = Done \n";
- o << " The Root is: " << x << endl;
- o << " The value at this Root is: " << f << endl;
+ o << " The Root is: " << x << std::endl;
+ o << " The value at this Root is: " << f << std::endl;
}
else {
o << " Status = not Done \n";
o << "math_BracketMinimum ";
if(Done) {
o << " Status = Done \n";
- o << " The bracketed triplet is: " << endl;
- o << Ax << ", " << Bx << ", " << Cx << endl;
- o << " The corresponding function values are: "<< endl;
- o << FAx << ", " << FBx << ", " << FCx << endl;
+ o << " The bracketed triplet is: " << std::endl;
+ o << Ax << ", " << Bx << ", " << Cx << std::endl;
+ o << " The corresponding function values are: "<< std::endl;
+ o << FAx << ", " << FBx << ", " << FCx << std::endl;
}
else {
o << " Status = not Done \n";
o << "math_BracketedRoot ";
if(Done) {
o << " Status = Done \n";
- o << " Number of iterations = " << NbIter << endl;
- o << " The Root is: " << TheRoot << endl;
- o << " The value at the root is: " << TheError << endl;
+ o << " Number of iterations = " << NbIter << std::endl;
+ o << " The Root is: " << TheRoot << std::endl;
+ o << " The value at the root is: " << TheError << std::endl;
}
else {
o << " Status = not Done \n";
Standard_Real IniVal = Value(N, Poly, IniSol);
Standard_Integer Index;
-// cout << "Improve\n";
+// std::cout << "Improve\n";
for(Index = 1; Index < 10; Index++) {
Values(N, Poly, Sol, Val, Der);
if(Abs(Der) <= ZERO) break;
Delta = - Val / Der;
if(Abs(Delta) <= EPSILON * Abs(Sol)) break;
Sol = Sol + Delta;
-// cout << " Iter = " << Index << " Delta = " << Delta
+// std::cout << " Iter = " << Index << " Delta = " << Delta
// << " Val = " << Val << " Der = " << Der << "\n";
}
if(Abs(Val) <= Abs(IniVal)) {
o<< "math_FunctionAllRoots ";
if(done) {
o<< " Status = Done \n";
- o << " Number of null intervals = " << pdeb.Length() << endl;
- o << " Number of points where the function is null: " << piso.Length() << endl;
+ o << " Number of null intervals = " << pdeb.Length() << std::endl;
+ o << " Number of points where the function is null: " << piso.Length() << std::endl;
}
else {
o<< " Status = not Done \n";
o<< "math_FunctionRoot ";
if(Done) {
o<< " Status = Done \n";
- o << " Number of iterations = " << NbIter << endl;
- o << " The Root is: " << TheRoot << endl;
- o << "The value at the root is: " << TheError << endl;
+ o << " Number of iterations = " << NbIter << std::endl;
+ o << " The Root is: " << TheRoot << std::endl;
+ o << "The value at the root is: " << TheError << std::endl;
}
else {
o<< " Status = not Done \n";
Standard_Real t;
#ifdef OCCT_DEBUG
if (myDebug) {
- cout << " Ajout de la solution numero : " << n+1 << endl;
- cout << " Valeur de la racine :" << X << endl;
+ std::cout << " Ajout de la solution numero : " << n+1 << std::endl;
+ std::cout << " Valeur de la racine :" << X << std::endl;
}
#endif
TColStd_SequenceOfInteger& NbStateSol) {
#ifdef OCCT_DEBUG
if (myDebug) {
- cout <<"--> Resolution :" << ++nbsolve << endl;
- cout <<" x1 =" << x1 << " y1 =" << y1 << endl;
- cout <<" x2 =" << x2 << " y2 =" << y2 << endl;
+ std::cout <<"--> Resolution :" << ++nbsolve << std::endl;
+ std::cout <<" x1 =" << x1 << " y1 =" << y1 << std::endl;
+ std::cout <<" x2 =" << x2 << " y2 =" << y2 << std::endl;
}
#endif
fb-=K;
}
#ifdef OCCT_DEBUG
- cout<<" Non Convergence dans math_FunctionRoots.cxx "<<endl;
+ std::cout<<" Non Convergence dans math_FunctionRoots.cxx "<<std::endl;
#endif
}
{
#ifdef OCCT_DEBUG
if (myDebug) {
- cout << "---- Debut de math_FunctionRoots ----" << endl;
+ std::cout << "---- Debut de math_FunctionRoots ----" << std::endl;
nbsolve = 0;
}
#endif
Standard_Real NEpsX = 0.0000000001 * DeltaU;
if(EpsX < NEpsX) {
EpsX = NEpsX;
- //-- cout<<" \n EpsX Init = "<<_EpsX<<" devient : (deltaU : "<<DeltaU<<" ) EpsX = "<<EpsX<<endl;
+ //-- std::cout<<" \n EpsX Init = "<<_EpsX<<" devient : (deltaU : "<<DeltaU<<" ) EpsX = "<<EpsX<<std::endl;
}
//--
Null2 = EpsNull*EpsNull;
o << "math_FunctionRoots ";
if(Done) {
o << " Status = Done \n";
- o << " Number of solutions = " << Sol.Length() << endl;
+ o << " Number of solutions = " << Sol.Length() << std::endl;
for (Standard_Integer i = 1; i <= Sol.Length(); i++) {
- o << " Solution Number " << i << "= " << Sol.Value(i) << endl;
+ o << " Solution Number " << i << "= " << Sol.Value(i) << std::endl;
}
}
else {
//==========================================================
//static Standard_Boolean mydebug = Standard_True;
//#undef FSR_DEBUG
-//#define FSR_DEBUG(arg) {if (mydebug) { cout << arg << endl; }}
+//#define FSR_DEBUG(arg) {if (mydebug) { std::cout << arg << std::endl; }}
//===========================================================
class MyDirFunction : public math_Function
// de faire une seconde iteration...
Save(0) = Max (F2, EpsSqrt);
Standard_Real aTol_Func = Epsilon(F2);
- FSR_DEBUG("=== Mode Debug de Function Set Root" << endl);
+ FSR_DEBUG("=== Mode Debug de Function Set Root" << std::endl);
FSR_DEBUG(" F2 Initial = " << F2);
if ((F2 <= Eps) || (Gnr1 <= Eps2)) {
o << "math_Gauss ";
if(Done) {
o<< " Status = Done \n";
- o << " Determinant of A = " << D << endl;
+ o << " Determinant of A = " << D << std::endl;
}
else {
o << " Status = not Done \n";
if (minLength < Precision::PConfusion())
{
#ifdef OCCT_DEBUG
- cout << "math_GlobOptMin::Perform(): Degenerated parameters space" << endl;
+ std::cout << "math_GlobOptMin::Perform(): Degenerated parameters space" << std::endl;
#endif
return;
o <<"math_Jacobi ";
if (Done) {
o << " Status = Done \n";
- o << " The eigenvalues vector is: " << EigenValues << endl;
+ o << " The eigenvalues vector is: " << EigenValues << std::endl;
}
else {
o << "Status = not Done \n";
void math_NewtonMinimum::Dump(Standard_OStream& o) const
{
o<< "math_Newton Optimisation: ";
- o << " Done =" << Done << endl;
- o << " Status = " << (Standard_Integer)TheStatus << endl;
- o << " Location Vector = " << Location() << endl;
- o << " Minimum value = "<< Minimum()<< endl;
- o << " Previous value = "<< PreviousMinimum << endl;
- o << " Number of iterations = " <<NbIterations() << endl;
- o << " Convexity = " << Convex << endl;
- o << " Eigen Value = " << MinEigenValue << endl;
+ o << " Done =" << Done << std::endl;
+ o << " Status = " << (Standard_Integer)TheStatus << std::endl;
+ o << " Location Vector = " << Location() << std::endl;
+ o << " Minimum value = "<< Minimum()<< std::endl;
+ o << " Previous value = "<< PreviousMinimum << std::endl;
+ o << " Number of iterations = " <<NbIterations() << std::endl;
+ o << " Convexity = " << Convex << std::endl;
+ o << " Eigen Value = " << MinEigenValue << std::endl;
}
//-- est ce une racine double ou une erreur numerique ?
Standard_Real qw=Zer(i+1);
Standard_Real va=ko(4)+qw*(2.0*ko(3)+qw*(3.0*ko(2)+qw*(4.0*ko(1))));
- //-- cout<<" Val Double ("<<qw<<")=("<<va<<")"<<endl;
+ //-- std::cout<<" Val Double ("<<qw<<")=("<<va<<")"<<std::endl;
if(Abs(va)>Eps) {
bko=Standard_True;
nbko++;
#ifdef OCCT_DEBUG
//if(nbko==1) {
- // cout<<"Pb ds math_TrigonometricFunctionRoots CC="
- // <<A<<" CS="<<B<<" C="<<C<<" S="<<D<<" Cte="<<E<<endl;
+ // std::cout<<"Pb ds math_TrigonometricFunctionRoots CC="
+ // <<A<<" CS="<<B<<" C="<<C<<" S="<<D<<" Cte="<<E<<std::endl;
//}
#endif
break;
//-- lbr le 7 mars 97 (newton converge tres tres loin de la solution initilale)
Standard_Real DeltaNewton = TetaNewton-Teta;
if((DeltaNewton > SupmInfs100) || (DeltaNewton < -SupmInfs100)) {
- //-- cout<<"\n Newton X0="<<Teta<<" -> "<<TetaNewton<<endl;
+ //-- std::cout<<"\n Newton X0="<<Teta<<" -> "<<TetaNewton<<std::endl;
}
else {
Teta=TetaNewton;
if (NbIter > 1) {
if (Xmax <= EpsLix) {
if (ErrMax <= EpsLic) {
-// cout <<"Convergence atteinte dans Uzawa"<<endl;
+// std::cout <<"Convergence atteinte dans Uzawa"<<std::endl;
Done = Standard_True;
}
else {
-// cout <<"convergence non atteinte pour le probleme dual"<<endl;
+// std::cout <<"convergence non atteinte pour le probleme dual"<<std::endl;
Done = Standard_False;
return;
}
o << "math_Uzawa";
if(Done) {
o << " Status = Done \n";
- o << " Number of iterations = " << NbIter << endl;
- o << " The solution vector is: " << Resul << endl;
+ o << " Number of iterations = " << NbIter << std::endl;
+ o << " The solution vector is: " << Resul << std::endl;
}
else {
o << " Status = not Done \n";
aFileName += "/dfbrowser.txt";
// print dump to file(not in a string stream because result might be too long)
std::ofstream aFileStream;
- OSD_OpenStream(aFileStream, aFileName, ios::out);
+ OSD_OpenStream(aFileStream, aFileName, std::ios::out);
if (anItem->HasAttribute())
{
Handle(TDF_Attribute) anAttribute = anItem->GetAttribute();
anIt++;
if (anIt == theArgsNb)
{
- cout << "Empty argument of '" << aParam << "'.\n";
+ std::cout << "Empty argument of '" << aParam << "'.\n";
return 1;
}
TCollection_AsciiString aPluginName;
anIt++;
if (anIt == theArgsNb)
{
- cout << "Empty argument of '" << aParam << "'.\n";
+ std::cout << "Empty argument of '" << aParam << "'.\n";
return 1;
}
TopoDS_Shape aShape = DBRep::Get (theArgs[anIt]);
anIt++;
if (aShape.IsNull())
{
- cout << "Wrong shape name: " << aParam << ".\n";
+ std::cout << "Wrong shape name: " << aParam << ".\n";
return 1;
}
NCollection_List<TCollection_AsciiString> anArgPlugins;
anIt++;
if (anIt == theArgsNb)
{
- cout << "Empty argument of '" << aParam << "'.\n";
+ std::cout << "Empty argument of '" << aParam << "'.\n";
return 1;
}
TCollection_AsciiString aFileName (theArgs[anIt]);
anIt++;
if (anIt == theArgsNb)
{
- cout << "Empty argument of '" << aParam << "'.\n";
+ std::cout << "Empty argument of '" << aParam << "'.\n";
return 1;
}
aNeedDirectory = true;
anIt++;
if (anIt == theArgsNb)
{
- cout << "Empty argument of '" << aParam << "'.\n";
+ std::cout << "Empty argument of '" << aParam << "'.\n";
return 1;
}
// search shape with given name
anIt++;
if (anIt == theArgsNb)
{
- cout << "Empty argument of '" << aParam << "'.\n";
+ std::cout << "Empty argument of '" << aParam << "'.\n";
return 1;
}
aNeedToHideInspector = Draw::Atoi (theArgs[anIt]) == 0;
}
else
{
- cout << "Wrong argument of command: " << aParam.ToCString() << "\n";
+ std::cout << "Wrong argument of command: " << aParam.ToCString() << "\n";
return 1;
}
}