Suppress remaining couts in packages explicitly mentioned in the original bug description
if(It.Value()->GraphicStatus()==AIS_DS_Displayed)
theMap.Add(It.Key());
}
-#ifdef AIS_DEB
- cout<<"\tFrom Neutral Point : "<<theMap.Extent()<<endl;
-#endif
//parse all local contexts...
+#ifdef AIS_DEB
+ cout<<"\tFrom Neutral Point : "<<theMap.Extent()<<endl;
Standard_Integer NbDisp;
for(AIS_DataMapIteratorOfDataMapOfILC it1(myLocalContexts);it1.More();it1.Next()){
const Handle(AIS_LocalContext)& LC = it1.Value();
NbDisp = LC->DisplayedObjects(theMap);
-#ifdef AIS_DEB
cout<<"\tIn Local Context "<<it1.Key()<<" : "<<NbDisp<<endl;
-#endif
-
}
+#endif
Handle(AIS_InteractiveObject) curIO;
Handle(Standard_Transient) Tr;
for(TColStd_MapIteratorOfMapOfTransient it2(theMap);it2.More();it2.Next()){
#include <AIS_MapIteratorOfMapOfInteractive.hxx>
#endif
-//unused
-/*#ifdef DEB
-static void InfoOnLight(const Handle(V3d_View) aView)
-{
- Standard_Real V1=0.,V2=0.,V3=0.;
- Standard_Integer IndexOfLit(0);
-
- static Standard_Boolean FirstTime (Standard_True);
- if(FirstTime)
- {
- FirstTime = Standard_False;
- for (aView->InitActiveLights();aView->MoreActiveLights();aView->NextActiveLights()){
- IndexOfLit++;
- cout<<"lumiere no "<<IndexOfLit<<"\n************\n\t";
- Handle(V3d_Light) Li = aView->ActiveLight();
- Quantity_NameOfColor Col;
- Li->Color(Col);
- cout<<"Color :"<<Standard_Integer(Col)<<"\n\t"<<endl;
- cout<<"type :";
- switch(Li->Type()){
- case V3d_AMBIENT:
- {
- cout<<" AMBIENT\n\t";
-//POP K4L
-// Handle(V3d_AmbientLight)::DownCast(Li)->DisplayPosition(V1,V2,V3);
- cout<<"Position : X1 = "<<V1<<" X2 = "<<V2<<" X3 = "<<V3<<endl;
- break;
- }
- case V3d_DIRECTIONAL:
- {
- cout<<" DIRECTIONAL\n\t";
- Handle(V3d_DirectionalLight)::DownCast(Li)->DisplayPosition(V1,V2,V3);
- cout<<"Position : X1 = "<<V1<<" X2 = "<<V2<<" X3 = "<<V3<<endl;
- Handle(V3d_DirectionalLight)::DownCast(Li)->Direction(V1,V2,V3);
- cout<<"Direction : V1 = "<<V1<<" V2 = "<<V2<<" V3 = "<<V3<<endl;
-
- break;
- }
- case V3d_POSITIONAL:
- {
- cout<<" POSITIONAL\n\t";
- Handle(V3d_PositionalLight)::DownCast(Li)->Position(V1,V2,V3);
- cout<<"Position : X1 = "<<V1<<" X2 = "<<V2<<" X3 = "<<V3<<endl;
- Handle(V3d_PositionalLight)::DownCast(Li)->Target(V1,V2,V3);
- cout<<"Target : x1 = "<<V1<<" x2 = "<<V2<<" x3 = "<<V3<<endl;
- break;
- }
- case V3d_SPOT:
- {
- cout<<" SPOT\n\t";
- cout<<" DIRECTIONAL\n\t";
- Handle(V3d_SpotLight)::DownCast(Li)->Position(V1,V2,V3);
- cout<<"Position : X1 = "<<V1<<" X2 = "<<V2<<" X3 = "<<V3<<endl;
- Handle(V3d_SpotLight)::DownCast(Li)->Direction(V1,V2,V3);
- cout<<"Direction : V1 = "<<V1<<" V2 = "<<V2<<" V3 = "<<V3<<endl;
- Handle(V3d_PositionalLight)::DownCast(Li)->Target(V1,V2,V3);
- cout<<"Target : x1 = "<<V1<<" x2 = "<<V2<<" x3 = "<<V3<<endl;
- cout<<"\tAngle :"<<Handle(V3d_SpotLight)::DownCast(Li)->Angle()<<endl;
- break;
- }
- }
- }
- }
-}
-#endif
-*/
//=======================================================================
//function : MoveTo
//purpose :
}
else{
// reframing failed. Leave with PointsConfondus
+#ifdef BREPBLEND_DEB
cout<<"reframing failed"<<endl;
+#endif
State = Blend_SamePoints;
}
}
previousP.ParameterOnC2(),
previousP.Parameter(), tolesp);
Arrive = Standard_True;
+#ifdef BREPBLEND_DEB
if (line->NbPoints()>=2) {
// Show that there is a stop during processing
cout<<"No more advancement in the processing"<<endl;
}
+#endif
}
else {
param = parprec + sens * stepw; // there is no risk to exceed Bound.
case Blend_SamePoints :
{
// Stop
+#ifdef BREPBLEND_DEB
cout << " Mixed points in the processing" << endl;
+#endif
Extrst1.SetValue(previousP.PointOnC1(),
previousP.ParameterOnC1(),
previousP.Parameter(), tolesp);
math_FunctionSetRoot rsnld(Finv, toler, 30);
rsnld.Perform(Finv, Solinv, infb, supb);
if (!rsnld.IsDone()) {
+#ifdef BREPBLEND_DEB
cout << "RSNLD not done "<< endl << endl;
+#endif
return Standard_False;
}
math_FunctionSetRoot rsnld(Finv, toler, 30);
rsnld.Perform(Finv, Solinv, infb, supb);
if (!rsnld.IsDone()) {
+#ifdef BREPBLEND_DEB
cout << "RSNLD not done "<< endl << endl;
+#endif
return Standard_False;
}
math_FunctionSetRoot rsnld(FinvP, toler, 30);
rsnld.Perform(FinvP, Solinv, infb, supb);
if (!rsnld.IsDone()) {
+#ifdef BREPBLEND_DEB
cout << "RSNLD not done "<< endl << endl;
+#endif
return Standard_False;
}
rsnld.Root(Solinv);
math_FunctionSetRoot rsnld(FinvP, toler, 30);
rsnld.Perform(FinvP, Solinv, infb, supb);
if (!rsnld.IsDone()) {
+#ifdef BREPBLEND_DEB
cout << "RSNLD not done "<< endl << endl;
+#endif
return Standard_False;
}
rsnld.Root(Solinv);
if (!rsnld.IsDone()) {
+#ifdef BLEND_DEB
cout << "RSNLD not done "<< endl << endl;
+#endif
return Standard_False;
}
// Resolution...
rsnld.Perform(FuncInv,solrst,infb,supb);
if (!rsnld.IsDone()) {
+#ifdef BLEND_DEB
cout << "Walking::Recadre : RSNLD not done " << endl;
+#endif
recadre = Standard_False;
}
else {
rsnld.Perform(FuncInv,solrst,infb,supb);
if (!rsnld.IsDone()) {
+#ifdef BLEND_DEB
cout << "Walking::Recadre : RSNLD not done " << endl;
+#endif
recadre = Standard_False;
}
else {
o[npi] = n1 == -1;
m[npi] = Multiple;
}
-#ifdef DEB
+#ifdef HLRALGO_DEB
else if (ERROR) {
cout << " error : HLRAlgo_PolyData::HideByOneTriangle " << endl;
cout << " ( more than 2 points )." << endl;
o[npi] = n1 == -1;
m[npi] = Multiple;
}
-#ifdef DEB
+#ifdef HLRALGO_DEB
else if (ERROR) {
cout << " error : HLRAlgo_PolyData::HideByOneTriangle " << endl;
cout << " ( more than 2 points )." << endl;
o[npi] = n1 == -1;
m[npi] = Multiple;
}
-#ifdef DEB
+#ifdef HLRALGO_DEB
else if (ERROR) {
cout << " error : HLRAlgo_PolyData::HideByOneTriangle " << endl;
cout << " ( more than 2 points )." << endl;
Nod3NrmX = 1;
Nod3NrmY = 0;
Nod3NrmZ = 0;
-#ifdef DEB
+#ifdef HLRALGO_DEB
if (ERROR)
cout << "HLRAlgo_PolyInternalData::AddNode" << endl;
#endif
}
if (find == 0) {
myNbPISeg--;
-#ifdef DEB
+#ifdef HLRALGO_DEB
if (ERROR) {
cout << "HLRAlgo_PolyInternalData::UpdateLinks : segment error";
cout << endl;
Nod3NdSg = myNbPISeg;
Nod4NdSg = myNbPISeg;
}
-#ifdef DEB
+#ifdef HLRALGO_DEB
else if (ERROR) {
cout << "HLRAlgo_PolyInternalData::UpdateLinks : triangle error ";
cout << endl;
inline Handle(Geom2d_BezierCurve)
HLRBRep_CurveTool::Bezier (const Standard_Address C)
{
+#ifdef HLRBREP_DEB
cout<<" HLRBRep_CurveTool::Bezier : Not Implemented "<<endl;
+#endif
//-- return(((HLRBRep_Curve *)C)->Bezier());
return(0);
}
inline Handle(Geom2d_BSplineCurve)
HLRBRep_CurveTool::BSpline (const Standard_Address C)
{
+#ifdef HLRBREP_DEB
cout<<" HLRBRep_CurveTool::BSpline : Not Implemented "<<endl;
+#endif
//-- return(((HLRBRep_Curve *)C)->BSpline());
return(0);
}
}
//-- ============================================================
void Destroy() {
-#ifdef DEB
+#ifdef HLRBREP_DEB
if(N) {
Standard_Integer nnn=0;
StNbMoy=StNbMoyNonNul=0;
free(IndUV[i]);
IndUV[i]=NULL;
}
- else { cout<<" IndUV ~~~~~~~~~~~~~~~~~~~~~~~~~~~~"<<endl; }
-
+#ifdef HLRBREP_DEB
+ else
+ cout<<" IndUV ~~~~~~~~~~~~~~~~~~~~~~~~~~~~"<<endl;
+#endif
}
for(i=0;i<N;i++) {
if(UV[i]) {
free(UV[i]);
UV[i]=NULL;
}
+#ifdef HLRBREP_DEB
else { cout<<" UV ~~~~~~~~~~~~~~~~~~~~~~~~~~~~"<<endl; }
+#endif
}
- if(nbUV) { free(nbUV); nbUV=NULL; } else { cout<<" nbUV ~~~~~~~~~~~~~~~~~~~~~~~~~~~~"<<endl; }
- if(IndUV) { free(IndUV); IndUV=NULL;} else { cout<<" IndUV ~~~~~~~~~~~~~~~~~~~~~~~~~~~~"<<endl; }
- if(UV) { free(UV); UV=NULL; } else { cout<<" UV ~~~~~~~~~~~~~~~~~~~~~~~~~~~~"<<endl; }
+ if(nbUV) { free(nbUV); nbUV=NULL; }
+ if(IndUV) { free(IndUV); IndUV=NULL;}
+ if(UV) { free(UV); UV=NULL; }
N=0;
}
}
eb1->Orientation(ie1,myFEOri);
}
}
+#ifdef HLRBREP_DEB
else {
cout << "HLRBRep_Data::OrientOthEdge " << I;
cout << " Edge " << myFE << " : ";
cout << "UVPoint not found, Edge not Oriented" << endl;
}
+#endif
}
}
}
(Standard_Address)VertMax,
(Standard_Address)MinMaxVert);
-
-
-#if 0
+#ifdef HLRBREP_DEB
{
Standard_Integer qwe,qwep8,q,q1,q2;
printf("\n E:%d -------\n",E);
}
#endif
-
-
-
if (((MaxFace1 - MinVert1) & 0x80008000) != 0 ||
((MaxVert1 - MinFace1) & 0x80008000) != 0 ||
((MaxFace2 - MinVert2) & 0x80008000) != 0 ||
case TopAbs_IN :
HLRBRep_EdgeIList::AddInterference(ILHidden,Int,EIT);
ILOn.Remove(It); break;
- case TopAbs_UNKNOWN : cout << "UNKNOWN state staft" << endl;
+ case TopAbs_UNKNOWN :
+#ifdef HLRBREP_DEB
+ cout << "UNKNOWN state staft" << endl;
+#endif
case TopAbs_ON :
It.Next(); break;
} break;
case TopAbs_IN :
HLRBRep_EdgeIList::AddInterference(ILHidden,Int,EIT);
ILOn.Remove(It); break;
- case TopAbs_UNKNOWN : cout << "UNKNOWN state stbef" << endl;
+ case TopAbs_UNKNOWN :
+#ifdef HLRBREP_DEB
+ cout << "UNKNOWN state stbef" << endl;
+#endif
case TopAbs_ON :
It.Next(); break;
} break;
HLRBRep_EdgeIList::AddInterference(ILHidden,Int,EIT);
ILOn.Remove(It); break;
case TopAbs_UNKNOWN :
+#ifdef HLRBREP_DEB
cout << "UNKNOWN state after" << endl;
+#endif
It.Next(); break;
} break;
case TopAbs_ON :
case TopAbs_OUT :
Int.Transition(TopAbs_REVERSED); break;
case TopAbs_UNKNOWN :
- cout << "UNKNOWN state after" << endl; break;
+#ifdef HLRBREP_DEB
+ cout << "UNKNOWN state after" << endl;
+#endif
+ break;
}
It.Next(); break;
case TopAbs_OUT :
case TopAbs_OUT :
ILOn.Remove(It); break;
case TopAbs_UNKNOWN :
+#ifdef HLRBREP_DEB
cout << "UNKNOWN state after" << endl;
+#endif
It.Next(); break;
} break;
case TopAbs_UNKNOWN :
- cout << "UNKNOWN state stbef" << endl; break;
+#ifdef HLRBREP_DEB
+ cout << "UNKNOWN state stbef" << endl;
+#endif
+ break;
}
}
}
df = DS[i-1]->NbFaces ();
}
catch(Standard_Failure) {
- cout << "An exception was catched when preparing the Shape " << i;
- cout << " and computing its OutLines " << endl;
- Handle(Standard_Failure) fail = Standard_Failure::Caught();
- cout << fail << endl;
+ if (myDebug)
+ {
+ cout << "An exception was catched when preparing the Shape " << i;
+ cout << " and computing its OutLines " << endl;
+ Handle(Standard_Failure) fail = Standard_Failure::Caught();
+ cout << fail << endl;
+ }
DS[i-1] = new HLRBRep_Data(0,0,0);
dv = 0;
de = 0;
fd++;
}
- 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;
- if (SideFace)
- cout << "Side : " << setw(5) << nbFSide << " , ";
- cout << "Cachantes : " << setw(5) << nbCache << endl << endl;
+ 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;
+ if (SideFace)
+ cout << "Side : " << setw(5) << nbFSide << " , ";
+ cout << "Cachantes : " << setw(5) << nbCache << endl << endl;
+ }
}
Standard_Integer QWE=0,QWEQWE;
if(TRACE10) {
if(++QWE>QWEQWE) {
QWE=0;
- cout<<"*";
+ if (myDebug)
+ cout<<"*";
}
}
else {
if (fd->Hiding()) {
if(TRACE10 && TRACE==Standard_False) {
if(++QWE>QWEQWE) {
- cout<<".";
+ if (myDebug)
+ cout<<".";
QWE=0;
}
}
NN++;
}
}
-#ifdef DEB
+#ifdef HLRBREP_DEB
else if (DoError) {
cout << " HLRBRep_PolyAlgo::StoreShell : Face ";
cout << f << " non triangulated" << endl;
}
}
}
-#ifdef DEB
+#ifdef HLRBREP_DEB
else if (DoError) {
cout << "HLRBRep_PolyAlgo::StoreShell : Face ";
cout << f << " deja stockee" << endl;
Nod1NrmX = 1;
Nod1NrmY = 0;
Nod1NrmZ = 0;
-#ifdef DEB
+#ifdef HLRBREP_DEB
if (DoError) {
cout << "HLRBRep_PolyAlgo::Normal : AverageNormal error";
cout << endl;
Standard_Real d = sqrt (X * X + Y * Y + Z * Z);
if (OK && d < 1.e-10) {
OK = Standard_False;
-#ifdef DEB
+#ifdef HLRBREP_DEB
if (DoError) {
cout << "HLRAlgo_PolyInternalData:: inverted normals on ";
cout << "node " << iNode << endl;
&(((HLRAlgo_Array1OfPINod*)PINod1)->ChangeValue(Pol1(iPol)));
Nod12Indices = (*pi1p2)->Indices();
Nod12RValues = (*pi1p2)->RValues();
-#ifdef DEB
+#ifdef HLRBREP_DEB
if (DoError) {
if (Nod11NrmX*Nod12NrmX +
Nod11NrmY*Nod12NrmY +
}
}
}
-#ifdef DEB
+#ifdef HLRBREP_DEB
else if (DoError) {
cout << "HLRBRep_PolyAlgo::InitBiPointsWithConnexity : Edge ";
cout << e << " connex 1 sans PolygonOnTriangulation" << endl;
&(((HLRAlgo_Array1OfPINod*)PINod2)->ChangeValue(Pol2(iPol)));
Nod22Indices = (*pi2p2)->Indices();
Nod22RValues = (*pi2p2)->RValues();
-#ifdef DEB
+#ifdef HLRBREP_DEB
if (DoError) {
if (Nod11NrmX*Nod12NrmX +
Nod11NrmY*Nod12NrmY +
ZTI2 = Z2 = Nod12PntZ;
if (Nod12Edg1 == (Standard_Boolean) e) U2 = Nod12PCu1;
else if (Nod12Edg2 == (Standard_Boolean) e) U2 = Nod12PCu2;
-#ifdef DEB
+#ifdef HLRBREP_DEB
else {
cout << " HLRBRep_PolyAlgo::InitBiPointsWithConnexity : ";
cout << "Parameter error on Node " << i1p2 << endl;
if (Hatcher.TrimDone (IndH) && !Hatcher.TrimFailed (IndH))
Hatcher.ComputeDomains (IndH);
if (!Hatcher.IsDone (IndH)) {
- cout << "HLRTopoBRep::MakeIsoLines : Face " << FI << endl;
+#ifdef HLRTOBREP_DEB
+ cout << "HLRTopoBRep::MakeIsoLines : Face " << FI << endl;
cout << "U iso of parameter: " << UPrm;
switch (Hatcher.Status (IndH)) {
case HatchGen_NoProblem :
cout << " Incompatible States" << endl;
break;
}
+#endif
Hatcher.RemHatching (IndH);
continue;
}
if (Hatcher.TrimDone (IndH) && !Hatcher.TrimFailed (IndH))
Hatcher.ComputeDomains (IndH);
if (!Hatcher.IsDone (IndH)) {
+#ifdef HLRTOBREP_DEB
cout << "HLRTopoBRep::MakeIsoLines : Face " << FI << endl;
cout << "V iso of parameter: " << VPrm;
switch (Hatcher.Status (IndH)) {
cout << " Incompatible States" << endl;
break;
}
+#endif
Hatcher.RemHatching (IndH);
continue;
}
//HatchGen_ElementsGen::HatchGen_ElementsGen(const HatchGen_ElementsGen& Other) {
HatchGen_ElementsGen::HatchGen_ElementsGen(const HatchGen_ElementsGen& ) {
+#ifdef HATCHGEN_DEB
cout<<" Magic Constructor in HatchGen_ElementsGen:: "<<endl;
+#endif
}
HatchGen_ElementsGen::HatchGen_ElementsGen() {
#endif
if (!myIntersector.IsDone()) {
+#if TRACE_HATCHER
cout<<" Intersector -> Done = False ";
+#endif
return Standard_False ;
}
}
catch (Standard_Failure)
{
- cout << "Couldn't compute angle between derivative vectors" <<endl;
+#ifdef SHAPEANALYSIS_DEB
+ cout << "Couldn't compute angle between derivative vectors" <<endl;
+#endif
return Standard_False;
}
// cout << "angle1 " << angle1<< endl;
void ShapeAnalysis_WireOrder::SetCouples(const Standard_Real /*gap*/)
{
+#ifdef SHAPEANALYSIS_DEB
cout<<"ShapeAnalysis_WireOrder:SetCouple not yet implemented"<<endl;
+#endif
}
//=======================================================================
V1=sae.FirstVertex(E1);
V2=sae.LastVertex(E2);
if(!V1.IsSame(V2)) {
+#ifdef SHAPEFIX_DEB
cout<<"wire not closed --> stop split"<<endl;
+#endif
return Standard_False;
}
// create face