mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-29 14:00:49 +03:00
0030895: Coding Rules - specify std namespace explicitly for std::cout and streams
"endl" manipulator for Message_Messenger is renamed to "Message_EndLine". The following entities from std namespace are now used with std:: explicitly specified (from Standard_Stream.hxx): std::istream,std::ostream,std::ofstream,std::ifstream,std::fstream, std::filebuf,std::streambuf,std::streampos,std::ios,std::cout,std::cerr, std::cin,std::endl,std::ends,std::flush,std::setw,std::setprecision, std::hex,std::dec.
This commit is contained in:
@@ -74,13 +74,13 @@ static void Descendants(const TopoDS_Shape&,
|
||||
|
||||
#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();
|
||||
@@ -94,7 +94,7 @@ static void Descendants(const TopoDS_Shape&,
|
||||
|
||||
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();
|
||||
@@ -124,7 +124,7 @@ static void Descendants(const TopoDS_Shape&,
|
||||
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;
|
||||
}
|
||||
@@ -143,7 +143,7 @@ static void Descendants(const TopoDS_Shape&,
|
||||
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;
|
||||
}
|
||||
@@ -292,7 +292,7 @@ static void Descendants(const TopoDS_Shape&,
|
||||
|
||||
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
|
||||
@@ -499,7 +499,7 @@ static void Descendants(const TopoDS_Shape&,
|
||||
|
||||
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()) {
|
||||
@@ -510,7 +510,7 @@ static void Descendants(const TopoDS_Shape&,
|
||||
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();
|
||||
@@ -531,7 +531,7 @@ static void Descendants(const TopoDS_Shape&,
|
||||
|
||||
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;
|
||||
@@ -543,12 +543,12 @@ static void Descendants(const TopoDS_Shape&,
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
@@ -946,7 +946,7 @@ static void Descendants(const TopoDS_Shape&,
|
||||
// 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();
|
||||
@@ -1170,7 +1170,7 @@ Standard_Boolean BRepFeat_Form::TransformShapeFU(const Standard_Integer flag)
|
||||
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;
|
||||
}
|
||||
@@ -1228,8 +1228,8 @@ Standard_Boolean BRepFeat_Form::TransformShapeFU(const Standard_Integer flag)
|
||||
}
|
||||
#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;
|
||||
|
@@ -100,7 +100,7 @@ void BRepFeat_MakeCylindricalHole::Perform(const Standard_Real Radius)
|
||||
myBotFace = theCylinder.BottomFace();
|
||||
myValidate = Standard_False;
|
||||
|
||||
// BRepTools::Dump(theTool,cout);
|
||||
// BRepTools::Dump(theTool,std::cout);
|
||||
Standard_Boolean Fuse = Standard_False;
|
||||
//
|
||||
AddTool(theTool);
|
||||
@@ -524,7 +524,7 @@ void BRepFeat_MakeCylindricalHole::PerformBlind(const Standard_Real Radius,
|
||||
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();
|
||||
|
@@ -99,7 +99,7 @@ void BRepFeat_MakeDPrism::Init(const TopoDS_Shape& Sbase,
|
||||
{
|
||||
#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();
|
||||
@@ -144,11 +144,11 @@ void BRepFeat_MakeDPrism::Init(const TopoDS_Shape& Sbase,
|
||||
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
|
||||
}
|
||||
@@ -164,7 +164,7 @@ void BRepFeat_MakeDPrism::Add(const TopoDS_Edge& E,
|
||||
{
|
||||
#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()) {
|
||||
@@ -210,7 +210,7 @@ void BRepFeat_MakeDPrism::Perform(const Standard_Real Height)
|
||||
{
|
||||
#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();
|
||||
@@ -281,7 +281,7 @@ void BRepFeat_MakeDPrism::Perform(const TopoDS_Shape& Until)
|
||||
{
|
||||
#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();
|
||||
@@ -403,7 +403,7 @@ void BRepFeat_MakeDPrism::Perform(const TopoDS_Shape& From,
|
||||
{
|
||||
#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();
|
||||
@@ -574,7 +574,7 @@ void BRepFeat_MakeDPrism::PerformUntilEnd()
|
||||
{
|
||||
#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();
|
||||
@@ -608,7 +608,7 @@ void BRepFeat_MakeDPrism::PerformFromEnd(const TopoDS_Shape& Until)
|
||||
{
|
||||
#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();
|
||||
@@ -754,7 +754,7 @@ void BRepFeat_MakeDPrism::PerformThruAll()
|
||||
{
|
||||
#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();
|
||||
@@ -806,7 +806,7 @@ void BRepFeat_MakeDPrism::PerformUntilHeight(const TopoDS_Shape& Until,
|
||||
{
|
||||
#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);
|
||||
@@ -924,7 +924,7 @@ void BRepFeat_MakeDPrism::BossEdges (const Standard_Integer signature)
|
||||
{
|
||||
#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();
|
||||
@@ -1073,7 +1073,7 @@ static Standard_Real HeightMax(const TopoDS_Shape& theSbase, // shape initial
|
||||
// Standard_Real par = Max( Max( abs(c[1] - c[0]), abs(c[3] - c[2]) ), abs(c[5] - c[4]) );
|
||||
//#endif
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Height = > " << par << endl;
|
||||
std::cout << "Height = > " << par << std::endl;
|
||||
#endif
|
||||
return par;
|
||||
}
|
||||
|
@@ -109,7 +109,7 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
|
||||
{
|
||||
#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();
|
||||
@@ -146,8 +146,8 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
|
||||
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
|
||||
|
||||
@@ -177,7 +177,7 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
|
||||
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();
|
||||
@@ -188,7 +188,7 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
|
||||
|
||||
// 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;
|
||||
@@ -251,7 +251,7 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
|
||||
|
||||
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();
|
||||
@@ -277,7 +277,7 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
|
||||
|
||||
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);
|
||||
@@ -353,7 +353,7 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
|
||||
// ---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;
|
||||
@@ -365,8 +365,8 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
|
||||
#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;
|
||||
@@ -382,7 +382,7 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
|
||||
// Control if there is everything required to have the material at the proper side
|
||||
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();
|
||||
@@ -683,8 +683,8 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
|
||||
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;
|
||||
@@ -698,8 +698,8 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
|
||||
#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;
|
||||
@@ -715,7 +715,7 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
|
||||
// Control if there is everything required to have the material at the proper side
|
||||
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();
|
||||
@@ -763,7 +763,7 @@ void BRepFeat_MakeLinearForm::Add(const TopoDS_Edge& E,
|
||||
{
|
||||
#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;
|
||||
@@ -803,11 +803,11 @@ void BRepFeat_MakeLinearForm::Perform()
|
||||
{
|
||||
#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();
|
||||
@@ -846,7 +846,7 @@ void BRepFeat_MakeLinearForm::Perform()
|
||||
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();
|
||||
@@ -861,8 +861,8 @@ void BRepFeat_MakeLinearForm::Perform()
|
||||
#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;
|
||||
@@ -922,7 +922,7 @@ void BRepFeat_MakeLinearForm::Perform()
|
||||
{
|
||||
#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;
|
||||
@@ -1181,7 +1181,7 @@ static void SetGluedFaces(const TopTools_DataMapOfShapeListOfShape& theSlmap,
|
||||
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);
|
||||
|
@@ -68,7 +68,7 @@ void BRepFeat_MakePipe::Init(const TopoDS_Shape& Sbase,
|
||||
{
|
||||
#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();
|
||||
@@ -111,10 +111,10 @@ void BRepFeat_MakePipe::Init(const TopoDS_Shape& Sbase,
|
||||
}
|
||||
#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
|
||||
}
|
||||
@@ -130,7 +130,7 @@ void BRepFeat_MakePipe::Add(const TopoDS_Edge& E,
|
||||
{
|
||||
#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()) {
|
||||
@@ -176,7 +176,7 @@ void BRepFeat_MakePipe::Perform()
|
||||
{
|
||||
#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();
|
||||
@@ -232,7 +232,7 @@ void BRepFeat_MakePipe::Perform(const TopoDS_Shape& Until)
|
||||
{
|
||||
#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();
|
||||
@@ -276,7 +276,7 @@ void BRepFeat_MakePipe::Perform(const TopoDS_Shape& From,
|
||||
{
|
||||
#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();
|
||||
|
@@ -98,7 +98,7 @@ void BRepFeat_MakePrism::Init(const TopoDS_Shape& Sbase,
|
||||
{
|
||||
#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();
|
||||
@@ -144,10 +144,10 @@ void BRepFeat_MakePrism::Init(const TopoDS_Shape& Sbase,
|
||||
}
|
||||
#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
|
||||
}
|
||||
@@ -163,7 +163,7 @@ void BRepFeat_MakePrism::Add(const TopoDS_Edge& E,
|
||||
{
|
||||
#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()) {
|
||||
@@ -210,7 +210,7 @@ void BRepFeat_MakePrism::Perform(const Standard_Real Length)
|
||||
{
|
||||
#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();
|
||||
@@ -310,7 +310,7 @@ void BRepFeat_MakePrism::Perform(const TopoDS_Shape& Until)
|
||||
{
|
||||
#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();
|
||||
@@ -407,7 +407,7 @@ void BRepFeat_MakePrism::Perform(const TopoDS_Shape& From,
|
||||
{
|
||||
#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();
|
||||
@@ -587,7 +587,7 @@ void BRepFeat_MakePrism::PerformUntilEnd()
|
||||
{
|
||||
#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();
|
||||
@@ -632,7 +632,7 @@ void BRepFeat_MakePrism::PerformFromEnd(const TopoDS_Shape& Until)
|
||||
{
|
||||
#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();
|
||||
@@ -764,7 +764,7 @@ void BRepFeat_MakePrism::PerformThruAll()
|
||||
{
|
||||
#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();
|
||||
@@ -815,7 +815,7 @@ void BRepFeat_MakePrism::PerformUntilHeight(const TopoDS_Shape& Until,
|
||||
{
|
||||
#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);
|
||||
|
@@ -104,7 +104,7 @@ void BRepFeat_MakeRevol::Init(const TopoDS_Shape& Sbase,
|
||||
{
|
||||
#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;
|
||||
@@ -148,10 +148,10 @@ void BRepFeat_MakeRevol::Init(const TopoDS_Shape& Sbase,
|
||||
}
|
||||
#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
|
||||
}
|
||||
@@ -167,7 +167,7 @@ void BRepFeat_MakeRevol::Add(const TopoDS_Edge& E,
|
||||
{
|
||||
#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()) {
|
||||
@@ -213,7 +213,7 @@ void BRepFeat_MakeRevol::Perform(const Standard_Real Angle)
|
||||
{
|
||||
#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();
|
||||
@@ -329,7 +329,7 @@ void BRepFeat_MakeRevol::Perform(const TopoDS_Shape& Until)
|
||||
{
|
||||
#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;
|
||||
@@ -360,7 +360,7 @@ void BRepFeat_MakeRevol::Perform(const TopoDS_Shape& Until)
|
||||
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);
|
||||
@@ -449,7 +449,7 @@ void BRepFeat_MakeRevol::Perform(const TopoDS_Shape& From,
|
||||
{
|
||||
#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();
|
||||
@@ -601,7 +601,7 @@ void BRepFeat_MakeRevol::PerformThruAll()
|
||||
{
|
||||
#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);
|
||||
}
|
||||
@@ -616,7 +616,7 @@ void BRepFeat_MakeRevol::PerformUntilAngle(const TopoDS_Shape& Until,
|
||||
{
|
||||
#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);
|
||||
@@ -790,7 +790,7 @@ static void VerifGluedFaces(const TopoDS_Face& theSkface,
|
||||
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();
|
||||
}
|
||||
|
@@ -125,7 +125,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
|
||||
{
|
||||
#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();
|
||||
@@ -174,7 +174,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
|
||||
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();
|
||||
@@ -208,8 +208,8 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
|
||||
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
|
||||
|
||||
@@ -294,7 +294,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
|
||||
|
||||
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();
|
||||
@@ -320,7 +320,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
|
||||
|
||||
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() ==
|
||||
@@ -360,7 +360,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
|
||||
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();
|
||||
@@ -372,7 +372,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
|
||||
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();
|
||||
@@ -474,7 +474,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
|
||||
// ---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;
|
||||
@@ -486,8 +486,8 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
|
||||
#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;
|
||||
@@ -503,7 +503,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
|
||||
// Control if there is everything required to have the material at the proper side
|
||||
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();
|
||||
@@ -800,8 +800,8 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
|
||||
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);
|
||||
@@ -891,7 +891,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
|
||||
|
||||
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();
|
||||
@@ -912,8 +912,8 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
|
||||
#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;
|
||||
@@ -929,7 +929,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
|
||||
// Control if there is everything required to have the material at the proper side
|
||||
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();
|
||||
@@ -978,7 +978,7 @@ void BRepFeat_MakeRevolutionForm::Add(const TopoDS_Edge& E,
|
||||
{
|
||||
#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;
|
||||
@@ -1018,11 +1018,11 @@ void BRepFeat_MakeRevolutionForm::Perform()
|
||||
{
|
||||
#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();
|
||||
@@ -1124,7 +1124,7 @@ void BRepFeat_MakeRevolutionForm::Perform()
|
||||
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();
|
||||
@@ -1217,7 +1217,7 @@ void BRepFeat_MakeRevolutionForm::Perform()
|
||||
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();
|
||||
@@ -1231,8 +1231,8 @@ void BRepFeat_MakeRevolutionForm::Perform()
|
||||
#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;
|
||||
@@ -1258,7 +1258,7 @@ Standard_Boolean BRepFeat_MakeRevolutionForm::Propagate(TopTools_ListOfShape& Sl
|
||||
{
|
||||
#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;
|
||||
@@ -1703,7 +1703,7 @@ static void SetGluedFaces(const TopTools_DataMapOfShapeListOfShape& theSlmap,
|
||||
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);
|
||||
|
@@ -95,13 +95,13 @@ void BRepFeat_RibSlot::LFPerform()
|
||||
{
|
||||
#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();
|
||||
@@ -175,7 +175,7 @@ void BRepFeat_RibSlot::LFPerform()
|
||||
(!Collage)) {
|
||||
theOpe = 2;
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Passage to topological operations" << endl;
|
||||
std::cout << "Passage to topological operations" << std::endl;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -196,7 +196,7 @@ void BRepFeat_RibSlot::LFPerform()
|
||||
else {
|
||||
theOpe = 2;
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Passage to topologic operation" << endl;
|
||||
std::cout << "Passage to topologic operation" << std::endl;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -264,7 +264,7 @@ const TopTools_ListOfShape& BRepFeat_RibSlot::Modified
|
||||
{
|
||||
#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;
|
||||
@@ -290,7 +290,7 @@ const TopTools_ListOfShape& BRepFeat_RibSlot::Generated
|
||||
{
|
||||
#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();
|
||||
@@ -441,7 +441,7 @@ gp_Pnt BRepFeat_RibSlot::CheckPoint(const TopoDS_Edge& e,
|
||||
{
|
||||
#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
|
||||
@@ -474,7 +474,7 @@ gp_Dir BRepFeat_RibSlot::Normal(const TopoDS_Face& F,const gp_Pnt& P)
|
||||
{
|
||||
#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;
|
||||
@@ -561,7 +561,7 @@ void BRepFeat_RibSlot::EdgeExtention(TopoDS_Edge& e,
|
||||
{
|
||||
#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);
|
||||
@@ -624,7 +624,7 @@ TopoDS_Face BRepFeat_RibSlot::ChoiceOfFaces(TopTools_ListOfShape& faces,
|
||||
{
|
||||
#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;
|
||||
|
||||
@@ -682,7 +682,7 @@ Standard_Real BRepFeat_RibSlot::HeightMax(const TopoDS_Shape& theSbase,
|
||||
{
|
||||
#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);
|
||||
@@ -724,7 +724,7 @@ Standard_Boolean BRepFeat_RibSlot::ExtremeFaces(const Standard_Boolean RevolRib,
|
||||
{
|
||||
#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();
|
||||
@@ -752,7 +752,7 @@ Standard_Boolean BRepFeat_RibSlot::ExtremeFaces(const Standard_Boolean RevolRib,
|
||||
// ---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;
|
||||
@@ -898,7 +898,7 @@ Standard_Boolean BRepFeat_RibSlot::ExtremeFaces(const Standard_Boolean RevolRib,
|
||||
|
||||
//--- 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;
|
||||
@@ -940,7 +940,7 @@ Standard_Boolean BRepFeat_RibSlot::ExtremeFaces(const Standard_Boolean RevolRib,
|
||||
}
|
||||
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;
|
||||
@@ -960,13 +960,13 @@ Standard_Boolean BRepFeat_RibSlot::ExtremeFaces(const Standard_Boolean RevolRib,
|
||||
|
||||
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;
|
||||
}
|
||||
@@ -976,7 +976,7 @@ Standard_Boolean BRepFeat_RibSlot::ExtremeFaces(const Standard_Boolean RevolRib,
|
||||
// ---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()) {
|
||||
@@ -1156,7 +1156,7 @@ Standard_Boolean BRepFeat_RibSlot::ExtremeFaces(const Standard_Boolean RevolRib,
|
||||
}
|
||||
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;
|
||||
}
|
||||
@@ -1183,7 +1183,7 @@ void BRepFeat_RibSlot::PtOnEdgeVertex(const Standard_Boolean RevolRib,
|
||||
{
|
||||
#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;
|
||||
@@ -1258,7 +1258,7 @@ Standard_Boolean BRepFeat_RibSlot::SlidingProfile(TopoDS_Face& Prof,
|
||||
{
|
||||
#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
|
||||
@@ -1375,7 +1375,7 @@ Standard_Boolean BRepFeat_RibSlot::SlidingProfile(TopoDS_Face& Prof,
|
||||
|
||||
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;
|
||||
@@ -1504,7 +1504,7 @@ Standard_Boolean BRepFeat_RibSlot::SlidingProfile(TopoDS_Face& Prof,
|
||||
|
||||
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;
|
||||
@@ -1538,7 +1538,7 @@ Standard_Boolean BRepFeat_RibSlot::SlidingProfile(TopoDS_Face& Prof,
|
||||
|
||||
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;
|
||||
@@ -1570,7 +1570,7 @@ Standard_Boolean BRepFeat_RibSlot::NoSlidingProfile(TopoDS_Face& Prof,
|
||||
{
|
||||
#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;
|
||||
|
||||
@@ -1707,7 +1707,7 @@ Standard_Boolean BRepFeat_RibSlot::NoSlidingProfile(TopoDS_Face& Prof,
|
||||
|
||||
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;
|
||||
@@ -2197,7 +2197,7 @@ Standard_Boolean BRepFeat_RibSlot::NoSlidingProfile(TopoDS_Face& Prof,
|
||||
|
||||
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;
|
||||
@@ -2227,7 +2227,7 @@ Standard_Boolean BRepFeat_RibSlot::NoSlidingProfile(TopoDS_Face& Prof,
|
||||
|
||||
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;
|
||||
|
@@ -53,7 +53,7 @@ Standard_EXPORT void BRepFeat_SetcontextCHRONO(const Standard_Boolean b)
|
||||
{ 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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user