Porting to new OCCT version

This commit is contained in:
jfa 2019-09-03 12:25:16 +03:00
parent 3b33c84634
commit efa7eecc97
3 changed files with 21 additions and 20 deletions

View File

@ -277,18 +277,18 @@ TopoDS_Shape BlockFix_CheckTool::PossibleBlock(const Standard_Integer num) const
void BlockFix_CheckTool::DumpCheckResult(Standard_OStream& S) const void BlockFix_CheckTool::DumpCheckResult(Standard_OStream& S) const
{ {
if(!myHasCheck) if(!myHasCheck)
S<<"Check not performed!"<<endl; S<<"Check not performed!"<<std::endl;
else { else {
S<<"dump results of check:"<<endl; S<<"dump results of check:"<<std::endl;
S<<" total number of solids = "<<myNbSolids<<endl; S<<" total number of solids = "<<myNbSolids<<std::endl;
S<<" including: number of good blocks = "<<myNbBlocks<<endl; S<<" including: number of good blocks = "<<myNbBlocks<<std::endl;
S<<" number of possible blocks = "<<NbPossibleBlocks()<<endl; S<<" number of possible blocks = "<<NbPossibleBlocks()<<std::endl;
S<<" including: need remove degenerative = "<<myNbDegen<<endl; S<<" including: need remove degenerative = "<<myNbDegen<<std::endl;
S<<" need unionfaces = "<<myNbUF<<endl; S<<" need unionfaces = "<<myNbUF<<std::endl;
S<<" need unionedges = "<<myNbUE<<endl; S<<" need unionedges = "<<myNbUE<<std::endl;
S<<" need both unionfaces and unionedges = "<<myNbUFUE<<endl; S<<" need both unionfaces and unionedges = "<<myNbUFUE<<std::endl;
Standard_Integer nbtmp = myNbSolids - myNbBlocks - NbPossibleBlocks(); Standard_Integer nbtmp = myNbSolids - myNbBlocks - NbPossibleBlocks();
S<<" number of impossible blocks = "<<nbtmp<<endl; S<<" number of impossible blocks = "<<nbtmp<<std::endl;
} }
} }

View File

@ -82,6 +82,7 @@
#ifdef _DEBUG_ #ifdef _DEBUG_
static int MYDEBUG = 0; static int MYDEBUG = 0;
using namespace std;
#else #else
static int MYDEBUG = 0; static int MYDEBUG = 0;
#endif #endif

View File

@ -288,22 +288,22 @@ GEOM::CreationInformationSeq* GEOM_BaseObject_i::GetCreationInformation()
#ifdef _DEBUG_ #ifdef _DEBUG_
if ( operationName.empty() ) if ( operationName.empty() )
{ {
cout << endl << endl << endl << "Warning: " << endl << "Dear developer!!!" << endl std::cout << std::endl << std::endl << std::endl << "Warning: " << std::endl << "Dear developer!!!" << std::endl
<< " Consider implementing " << " Consider implementing "
<< typeid(*(driver.operator->())).name() << "::GetCreationInformation() " << endl << typeid(*(driver.operator->())).name() << "::GetCreationInformation() " << std::endl
<< " for the case of operation which has created '" << GetName() << "' object" << endl << " for the case of operation which has created '" << GetName() << "' object" << std::endl
<< "PLEEEEEEEASE" << endl << "PLEEEEEEEASE" << std::endl
<< "\tPLEEEEEEEASE" << endl << "\tPLEEEEEEEASE" << std::endl
<< "\t\tPLEEEEEEEASE" << endl << "\t\tPLEEEEEEEASE" << std::endl
<< "\t\t\tPLEEEEEEEASE" << endl << "\t\t\tPLEEEEEEEASE" << std::endl
<< "\t\t\t\tPLEEEEEEEASE" << endl; << "\t\t\t\tPLEEEEEEEASE" << std::endl;
} }
#endif #endif
} }
catch(...) catch(...)
{ {
#ifdef _DEBUG_ #ifdef _DEBUG_
cout << "Ecxeption in GEOM_BaseObject_i::GetCreationInformation()" << endl; std::cout << "Ecxeption in GEOM_BaseObject_i::GetCreationInformation()" << std::endl;
#endif #endif
} }
} }